The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => RadAsm Support Forum => Topic started by: SideSwipe on April 09, 2007, 02:26:58 AM

Title: Group Box Container
Post by: SideSwipe on April 09, 2007, 02:26:58 AM
Hello:

How do I make the group box act like a container? I am using a TabStrip Control and I want to hide a group box and have all of the controls inside hide also. Also when I drag the groupbox around on the form, I want all of the controls inside to drag along with it.

Thanks in advance!
SS
Title: Re: Group Box Container
Post by: zooba on April 09, 2007, 03:24:37 AM
I'm not sure exactly how it works in RadAsm, but when I use a group box I create a window (custom class) with no border and put the group box and all it's contents inside.

If you're doing this in a dialog, I've got no ideas, sorry.

Cheers,

Zooba :U
Title: Re: Group Box Container
Post by: SideSwipe on April 09, 2007, 04:09:11 AM
Hello:

Thanks for the reply. Yes I am trying to do this in the RadAsm resource editor. I coded a dialog box with a tab control that has 4 tabs. I want each tab event to show one group box and hide the other three. Problem is, the group box hides but the controls inside the group box stay visible. Also, it is really hard to stack the group boxes and other controls.

The EasyCode IDE has group boxes that are proper containers, the controls stay inside the container. It is easier to overlay many group boxes on top of each other. My questions are: is it possible to do this in RadAsm? How to do it if possible?

Regards,

SS
Title: Re: Group Box Container
Post by: MichaelW on April 09, 2007, 04:09:38 AM
I don't know about dragging, but in a dialog the WS_GROUP style specifies the first control in a group, with the group extending up to, but not including, the next control in the tab order that has the WS_GROUP style. The Group Box control actually only provides visual grouping.
Title: Re: Group Box Container
Post by: ramguru on April 09, 2007, 06:28:05 AM
Quote from: SideSwipe on April 09, 2007, 02:26:58 AM
How do I make the group box act like a container? I am using a TabStrip Control and I want to hide a group box and have all of the controls inside hide also. Also when I drag the groupbox around on the form, I want all of the controls inside to drag along with it.

This is too sophisticated for resource editor, it will never happen nor it should. All controls you're creating in res_editor are children of dialog, if some controls were children of groupbox that would be possible (but that is again impossible  :lol for resource script)
Title: Re: Group Box Container
Post by: zooba on April 10, 2007, 08:13:53 AM
A group box can't (well, shouldn't) have children, it is a control of class BUTTON (with BS_GROUPBOX). The easiest solution is to hide the other controls separately.

Cheers,

Zooba :U
Title: Re: Group Box Container
Post by: KetilO on April 10, 2007, 01:39:38 PM
Resource scripts does not support other container than the dialog itself. However it is possible to create child dialogs within a dialog. Included is a tab strip example showing this.

KetilO

[attachment deleted by admin]
Title: Re: Group Box Container
Post by: SideSwipe on April 26, 2007, 12:53:07 AM
Thank you for the example!

SS