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 <dockwidget>.frame.grip_options
> 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 ;-(
> 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
> 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.
<widget>.dragdock.onlayoutchanged will be called too, dragdock.activewidget
returns the active docked widget, it can be nil.
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