Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Child 'sub' dialog problem Collapse All
Subject Author Date
Offer Har Aug 23, 2006 - 8:04 PM

Dead support,

I have a dialog bar (derived from CExtResizableDialog) inside that dialog there is a static control derived class. This class programmatically loads a ’sub’-dialog into that static contol (the dialog loading is changes according to user inputs)
The sub-dialog is also derived from CExtResizableDialog.

The dialogs contains controls that are not ProfUIS derived controls (3rd party controls and legacy controls).

The controls are not displayed correctly:
1) Their frame is not displayed.
2) When the dialog loses focus all controls disappear.

I am setting clip child & clip children the true in all dialog. I tried to make the static control transparent - no help.

Please note that without clipping all looks fine, but the dialog flickers like hell...

What can i do to fix this problem?

Regards,

Offer.

Technical Support Aug 24, 2006 - 7:57 AM

lease let us know more details about the problem:

1) Whether the problem occurs in the child dialog only?

2) How is the child dialog created? Whether its parent window is the top dialog or the static control in the top-dialog? In the latter case whether the static control has the WS_CLIPCHILDREN|WS_CLIPSIBLINGS standard window styles?

3) It would be helpful to take a look at the part of .rc file with the dialog template resources for both dialogs and C++ classes corresponding to these dialogs.

Offer Har Aug 25, 2006 - 8:25 AM

1) Yes - in the child-dialog only.

2) The parent is a dialog that is created inside a CExtControlBar. a stati constil does not have the WS_CLIPCHILDREN|WS_CLIPSIBLINGS - these are only dialog styles. Anyhow, i tried to add them to the statis using ModifyStyle in the OnInitDialog of the containing dialog - no change.

3) I will send you the RC by mail.

Technical Support Aug 27, 2006 - 10:02 AM

The dialog template resource is correct. Please also send us the source code for the container dialog class. We need to see how the child dialog window is created with regard to the IDC_STATIC_SHAPE container window

Offer Har Aug 27, 2006 - 5:03 PM

Dear Support,

I found out the problem - The child dialog was set with Transparent flag.
When i removed that flag things look much better...