Nexus - a library of custom gadgets (discussion / bugs etc.)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Nexus - a library of custom gadgets (discussion / bugs etc.)

Post by srod »

I may look like a mule, but I'm not a complete ass.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post 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.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post 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!
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

Another question:

Whn the scrollarea appears, it reduces the ExplorerBar (because the widht of the scrollarea).
How can i avoid it?
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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.
I may look like a mule, but I'm not a complete ass.
Post Reply