IonicWind Software

Aurora Compiler => GUI => Topic started by: Pip1957 on July 24, 2006, 08:00:44 AM

Title: Toolbar Placement
Post by: Pip1957 on July 24, 2006, 08:00:44 AM
Using the mdidemo in the examples folder can anyone show me how to position the toolbar above the statusbar. ???
Title: Re: Toolbar Placement
Post by: Ionic Wind Support Team on July 24, 2006, 01:41:07 PM
Add the style ACCS_BOTTOM instead of ACCS_TOP.
Title: Re: Toolbar Placement
Post by: Pip1957 on July 24, 2006, 01:52:19 PM
Paul if I do that it overrites the statusbar, I was wondering if you could place it as you could in Ibasic Pro.
Title: Re: Toolbar Placement
Post by: Ionic Wind Support Team on July 24, 2006, 03:52:13 PM
It does the same thing in the IBasic Pro MDI demo too.  I think the demo your talking about wasn't an MDI one and I was calculating the positions in response to WM_SIZE.  Since Tom never restored the forums it's probably lost forever.

In any event if you override OnSize in the frame, and return TRUE, you can calculate everything your self.  The m_hClient member of CWindow contains the handle of the client window for the frame.  So the steps required to have items 'stacked' in the frame window would be to:

- calculate the height of both elements
- Subtract this from the clients height (the bottom of the rectangle)
- Use the API function MoveWindow to change the size of the client window
- Then move the toolbar above the status bar.

Paul.