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 General Discussion » Transparent dialog in 2003 style Collapse All
Subject Author Date
Jacquie Howard Aug 19, 2005 - 4:07 PM

Hi again,


I would now like to have a fixed size panel with a dialog on top to display fixed data like Outlook does in its message window to display "From" "To" etc data.  I have chosen a dialog because I would also like to include a TextEdit field in the panel.


I am modeling it on the FixedSizePanels sample and its working great except I would like the dialog to be transparent so the shading of the underlying panel is displayed ( Iam using the 2003 style).  I have tried setting the "transparent" attribute for the dialog but it doesn’t work.


 


Please advise how I can achieve this.


Thanks,


Jacquie

Technical Support Aug 20, 2005 - 12:55 PM

We have already coded this kind of control bar for our internal purposes. Please download this project.

The CMainFrame::m_wndStackedBar property is a stacked bar like you need. It is implemented in the CExtFullRowContainerBar class (the source code is included). The stacked bar is a full row control bar which consists of several parts and automatically computes the summary size depending on visibility of its parts. The CMainFrame window in this sample instantiates the following parts in the CMainFrame::OnCreate() method:

CExtContainerWndCaption m_wndStackedPartCaption;
 CExtContainerWndAddressField m_wndStackedPartAddressFROM;
 CExtContainerWndAddressField m_wndStackedPartAddressTO;
 CExtContainerWndAddressField m_wndStackedPartAddressCC;
 CExtContainerWndAddressField m_wndStackedPartAddressBCC;
 CExtContainerWndLabeledEdit m_wndStackedPartSubject;
 CExtContainerWndSeparator m_wndStackedPartSeparatorBeforeAttachments;
 CExtContainerWndLabeledEdit m_wndStackedPartAttachments;

As you can see we have implemented several part types: the caption, address field (button+edit), labeled edit (static+edit) and separator. If you hide any of this windows with ShowWindow(SW_HIDE), then the parent stacked bar container will automatically recompute its size and the frame window’s layout.