Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-12 Thread code dz
you're right , you fixed it already ;)
thanks .

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-12 Thread Martin Schreiber
On Tuesday 12 September 2017 11:51:46 code dz wrote:
> Hi Martin
> i got divition by zero error while docking .
> i am using the current git

Are you sure that you use current git master? I recently fixed the broken 
tabbed docking.

Martin

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-12 Thread Martin Schreiber
On Monday 11 September 2017 23:03:33 fredvs wrote:
> Hello Martin.
>
> Im deep in mse dock.
>
> OK, "simple" main dock form is working impressive perfectly.
>
> Floated forms the same.
>
> Now time to jump into "tabed" main dock form.
>
> This to give 3 layout options in main menu (Dock, Tab, Float).
>
You know that it is possible to switch to tabs by dragging the grip to the 
center of the window? Switching back to split mode happens by dragging the 
grip to the bottom or the left border of the window.

> Maybe you remember when I was taking about the hint of the grip for docked
> forms that does not appear like wanted.
> What I did understand is to use for changing the hint of grip panel:
>
> ---> dragdock.caption := ' Use this to Drag Drop the Song Player window '
>
> But for me it does not appear in grip-panel, in place the title of the form
> appears as hint when moving mouse on grip panel.
>
> But now I know where he is!
>
> This reveals where it was hidden:
>
> --->  basedock.dragdock.currentsplitdir:= sd_tabed;
>
> See picture:
> 
>
> Could it be that it was inverted (the caption of the tab should be the
> title of the form and reverse for the grip-panel) ?
>
> Or maybe I am mixing things.
>
Split caption can be activated by .frame.grip_options 
go_showsplitcaption.

> Anyway, I did change dragdock.caption to have correct tab title.
> (Of course, if tab-layout is choosed, main-menu should have less items, but
> that is for tonigth...).
>
> See picture2.
> 
>
> Other thing.
> When doing this:
> --> basedock.dragdock.currentsplitdir:= sd_tabed;
> OK, main form becomes tabbed.
>
> But how to come back with a no-tabbed main dock form ?
> This does not do the trick:
> --> basedock.dragdock.currentsplitdir:= sd_none;
>
> The main form stay tabbed ;-(
>
 basedock.dragdock.currentsplitdir:= sd_horz;

> Other thing:
> When selecting a tab, the heigth of main form is changed, how to keep or
> change by code the size of main form when a tab is selected ?

You probably need to check "currentsplitdir" in mainfo.updatelayout() and act 
accordingly.

> And how to play with the tabs, how to know what tab was selected and assign
> a method for each tab selected ?
>
"onshow" of the selected docked form will be called. 
.dragdock.onlayoutchanged will be called too, dragdock.activewidget 
returns the active docked widget, it can be nil.

Martin

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-12 Thread code dz
Hi Martin
i got divition by zero error while docking .
i am using the current git
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk