Page 1 of 1
Nexus - a library of custom gadgets (discussion / bugs etc.)
Posted: Tue Mar 04, 2008 4:54 pm
by srod
Posted: Fri May 16, 2008 6:43 pm
by ricardo
Hello
Im playing with the nxExplorerBar DEMO, just wondering if when user expands some #nxExplorerBar_GroupWithUpDown i can switch other groups to just have one expanded.
Thanks in advance.
Posted: Fri May 16, 2008 6:57 pm
by ricardo
Founded!
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
*Your gadgets are VERY nice!
Posted: Fri May 16, 2008 7:15 pm
by ricardo
Another question:
Whn the scrollarea appears, it reduces the ExplorerBar (because the widht of the scrollarea).
How can i avoid it?
Posted: Fri May 16, 2008 7:58 pm
by srod
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.