Nexus - a library of custom gadgets (discussion / bugs etc.)
Nexus - a library of custom gadgets (discussion / bugs etc.)
I may look like a mule, but I'm not a complete ass.
Founded! 
*Your gadgets are VERY nice!
Code: Select all
Case 2
If nxExplorerBar_GetGadgetItemState(1,0) = 0
nxExplorerBar_SetGadgetItemState(1, 4, 1)
EndIf
Case 3
If nxExplorerBar_GetGadgetItemState(1,0) = 1
nxExplorerBar_SetGadgetItemState(1, 4, 0)
EndIf
You can't! All explorerbar's operate this way.
Now, what you can do is add a callback (as I did with my demo program) and trap the #nxExplorerBar_ItemWidthChanged message. This will fire whenever the item-widths change because of the apearance of the scrollbar etc. You'll see in the demo program that I used it to adjust the string gadget and imagebutton gadget embedded within one of the items so that they were not covered by the sudden appearance of a scrollbar etc.
Nexus will automatically adjust all of the item widths, but not of any child controls you add to individual items (such as the string gadget) because it cannot second guess how you wish to handle the resizing/repositioning etc.
Now, what you can do is add a callback (as I did with my demo program) and trap the #nxExplorerBar_ItemWidthChanged message. This will fire whenever the item-widths change because of the apearance of the scrollbar etc. You'll see in the demo program that I used it to adjust the string gadget and imagebutton gadget embedded within one of the items so that they were not covered by the sudden appearance of a scrollbar etc.
Nexus will automatically adjust all of the item widths, but not of any child controls you add to individual items (such as the string gadget) because it cannot second guess how you wish to handle the resizing/repositioning etc.
I may look like a mule, but I'm not a complete ass.

