1. Win32Lib GUI Question RE: Floating Toolbars

Generally, how do they make it so that you can pull toolbars away from
their docked positions, then dock 'em again?

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

new topic     » topic index » view message » categorize

2. Re: Win32Lib GUI Question RE: Floating Toolbars

> Generally, how do they make it so that you can pull toolbars away from
> their docked positions, then dock 'em again?
> 

Actually thats a huge pain to implement.  You have to process mouse events
and dynamically modify the Window styles.  Like for example you need to know
when they left click down on the title area in the toolbar to start a drag
process.  If they drag it far enough away, modify the Window style to popup
instead of child.  *Poof* its detached.

Just the opposite to put it back.  If your dragging the toolbar around
and you get within a certain distance to a dockable side (generally 1 pixel
less than needed to pop it off) you switch window styles to make it a child
Window again...

Like I said, big pain.  But if you get it working it looks real cool...


Don Phillips - aka Graebel
     National Instruments
     mailto: eunexus @ yahoo.com

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32Lib GUI Question RE: Floating Toolbars

Don wrote:
> 
> > Generally, how do they make it so that you can pull toolbars away from
> > their docked positions, then dock 'em again?
> > 
> 
> Actually thats a huge pain to implement.  You have to process mouse events
> and dynamically modify the Window styles.  Like for example you need to know
> when they left click down on the title area in the toolbar to start a drag
> process.  If they drag it far enough away, modify the Window style to popup
> instead of child.  *Poof* its detached.

Ahhhh. Thanks, Don! :)

> Like I said, big pain.  But if you get it working it looks real cool...

I might work on something like that for a future app. Sounds like too
much trouble right now. :)

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view message » categorize

4. Re: Win32Lib GUI Question RE: Floating Toolbars

cklester wrote:
> 
> Don wrote:
> > 
> > > Generally, how do they make it so that you can pull toolbars away from
> > > their docked positions, then dock 'em again?
> > > 
> > 
> > Actually thats a huge pain to implement.  You have to process mouse events
> > and dynamically modify the Window styles.  Like for example you need to know
> > when they left click down on the title area in the toolbar to start a drag
> > process.  If they drag it far enough away, modify the Window style to popup
> > instead of child.  *Poof* its detached.
> 
> Ahhhh. Thanks, Don! :)
> 
> > Like I said, big pain.  But if you get it working it looks real cool...
> 
> I might work on something like that for a future app. Sounds like too
> much trouble right now. :)

Yeah, and to be honest, how many people actually USE dockable toolbars any 
more?  

Jonas

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu