News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Group Box Container

Started by SideSwipe, April 09, 2007, 02:26:58 AM

Previous topic - Next topic

SideSwipe

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
"Crashing through life !"

zooba

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

SideSwipe

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
"Crashing through life !"

MichaelW

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.
eschew obfuscation

ramguru

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)

zooba

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

KetilO

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]

SideSwipe

Thank you for the example!

SS
"Crashing through life !"