dock floating Toolbar

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

dock floating Toolbar

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:17 pm

by Didier >> Sat, 16 Feb 2008 10:51:28 GMT

Hi,
As we know, in Microsoft Office--eg Word,
Double click a floating toolbar, the toolbar will dock automatically.

How to implement this function in JADE 6 ?

Appriciate for any help
Didier
2008.2.16

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: dock floating Toolbar

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:17 pm

by cnwtb2 >> Sun, 17 Feb 2008 22:08:24 GMT

To float a dock bar use a method like the following:

floatDockBar( pJDB : JadeDockBar input );

vars
x, y : Real ;
height : Integer ;
begin
pJDB .windowToScreen( x, y );
pJDB .float( x.Integer, y.Integer, pJDB .width.Integer, pJDB ..height.Integer );
pJDB .floated( pJDB );
end;

To dock the dock bar use a method like the following:

floatDockBar( pJDB : JadeDockBar input );

vars

begin
pJDB .parent := myJadeDockContainer;
pJDB .top := myJadeDockContainer.height;
pJDB .docked(pJDB );
end;

Play around with the above code and you will be able implement what you need

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: dock floating Toolbar

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:17 pm

by cnwtb2 >> Sun, 17 Feb 2008 22:09:57 GMT

The docking method should be called 'dockDockBar' not 'floatDockBar'...apologies for the confusion

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: dock floating Toolbar

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:17 pm

by Didier >> Mon, 18 Feb 2008 6:48:57 GMT

Hi,
When double click the floating toolbar title,
How to catch the dbclick event ?

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: dock floating Toolbar

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:17 pm

by cnwtb2 >> Tue, 19 Feb 2008 2:12:11 GMT

Can you explain what you mean because the dblClick event will be triggered when you double click the JadeDockBar so I presume there is a scenario that this event is not being triggered.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: dock floating Toolbar

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:17 pm

by BeeJay >> Wed, 20 Feb 2008 1:36:17 GMT

They're not referring to double clicking the JadeDockBar, rather they are referring to double clicking the "Window Title Bar" that Jade automatically creates for a free floating JadeDockBar.

Unfortunately double clicking this title bar does not fire the doubleClick event for the underlying JadeDockBar control, so they can't implement that event to capture the doubleClick event and automatically dock the free floating JadeDockBar.

I'm not actually sure if any event fires as a result of double clicking the title bar area of a free floating JadeDockBar. If you have a valid support contract it may be worth opening a contact in Parsys to ask Jade Support what events, if any, fire in this situation.

Cheers,
BeeJay.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 15 guests

cron