Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
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
Posted on 04-24-07 07:11 PM Link | Quote | ID: 29529


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
Posted on 04-24-07 08:45 PM (rev. 2 of 04-24-07 08:46 PM) Link | Quote | ID: 29547


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
Posted on 04-24-07 08:49 PM Link | Quote | ID: 29551


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

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.019 seconds. (321KB of memory used)
MySQL - queries: 42, rows: 53/54, time: 0.015 seconds.