| |||
Views: 88,485,936 |
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search | 04-26-24 07:32 AM |
|
Guest: Register | Login |
0 users currently in Computing | 1 guest |
Main - Computing - Windows Toolbars Questions (C/WinAPI) | New thread | New reply |
DahrkDaiz |
| ||
Nipper Plant Sandwich Artist Level: 46 Posts: 39/417 EXP: 674444 Next: 37330 Since: 02-22-07 Last post: 3486 days Last view: 3406 days |
Ok I've got a basic tool bar created and working just fine. However, I'm having trouble with a few things.
First: How exactly does grouping buttons work? How does the program know what group a button might belong to? (by defining a button's style with TBSTYLE_GROUPCHECK) Second: How can I force a button's state? I've set a buton's style to TBSTYLE_CHECK and it check/unchecks fine, but I can't seem to force the buttons into a checked or unchecked state, even by sending TBSTATE_CHECK to the button, it does nothing. Any suggestions help will greatly be appreciated. |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 207/5344 EXP: 30944523 Next: 718458 Since: 02-20-07 From: The Netherlands Last post: 4498 days Last view: 2633 days |
I'd guess it uses the seperator lines to group 'em. Can't find any concrete information so far.
I assume that by "sending TBSTATE_CHECK" you mean "sending TB_SETSTATE with a TBSTATE_CHECK param"? Edit: "A group is defined as a contiguous collection of buttons, all with the TBSTYLE_GROUPCHECK style." ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
DahrkDaiz |
| ||
Nipper Plant Sandwich Artist Level: 46 Posts: 40/417 EXP: 674444 Next: 37330 Since: 02-22-07 Last post: 3486 days Last view: 3406 days |
Yeah I got the group buttons right, it's the consecutive buttons that have that group set, if you do that, then use a button without the style, I believe that cuts that group off and would start another one if you used it again.
I also got the check thing working, I was setting TBSTYLE_CHECK in the state property of the TBBUTTON structure, rather than the style lol. Well, I just now need to figure out the deal with transparency. |
Main - Computing - Windows Toolbars Questions (C/WinAPI) | New thread | New reply |
© 2005-2023 Acmlm, blackhole89, Xkeeper et al. |
MySQL - queries: 42, rows: 53/54, time: 0.015 seconds. |