Control Sets

I may be making this harder than it is. First let me explain why I went down this road. I need a label on a Bevel Button that is multi-line. Since I apparently can’t just make the caption multi-line, I made the caption blank and put a regular label on top of the button. Since a label doesn’t have an action event like the button, and I read that Control Sets let multiple controls share events, it seemed reasonable to make the label and the button a control set.

I can’t get them into a set. Is that because only like controls can be members of a Control Set? If the user clicks the label instead of the button, which will probably be most of the time, is the only way to make it automatically execute the same code as the button to set up a mousedown event and have it run the same method?

Control sets must all be the same type of control… you cannot mix and match them
Why not just forego the BevelButton and Label, and do it all with a Canvas instead… Draw what you want, how you want it… and Canvas DOES have all the required events.

actually after a little testing, if you click on the label the button action event executes. Apparently, if you click anywhere within the bounds of the control, regardless if anything is on top of it, it still executes the action event.

[quote=339975:@william plunkett]
I can’t get them into a set. Is that because only like controls can be members of a Control Set? [/quote]
Yes
They must be the same type of control to be in a set

And the click probably falls through the label to the control under it if the label does nothing with it