Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-06-01 Thread fredvs
> That means that your window manager hides the maximize button only if cxmin, cxmax, cymin and cymax are set? Yes, exactly. > Looks suboptimal to me For me too, what has cxmin/cymin to do with maximization...? My Linux system is last Mint 18 (and his own window manager). Fre;D -- Sent

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-31 Thread Martin Schreiber
On Friday 01 June 2018 00:07:16 fredvs wrote: > Hello Martin. > > As workaround, here a way to hide the maximize button and not maximize if > 2xclick on menubar: > > procedure tmainfo.updatelayout(); > begin > > bounds_cxmax:= 0; > bounds_cxmin:= 0; > bounds_cymax:= 0; > bounds_cymin:= 0; > > ...

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-31 Thread fredvs
Hello Martin. As workaround, here a way to hide the maximize button and not maximize if 2xclick on menubar: procedure tmainfo.updatelayout(); begin bounds_cxmax:= 0; bounds_cxmin:= 0; bounds_cymax:= 0; bounds_cymin:= 0; ... // do the resize things if needed... bounds_cxmax:= bounds_cx;

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-31 Thread Martin Schreiber
On Thursday 31 May 2018 15:11:10 fredvs wrote: > Ooops,it was snipped... > > Maybe, is it possible with MSE to have forms without any title-bar ? > > And then create a virtual title-bar with only system+minimize icon. > And set the position of menu-panel in bottom of that virtual title-bar ? > Or

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-31 Thread Martin Schreiber
On Thursday 31 May 2018 14:58:34 fredvs wrote: > > You can try to set .bounds_cxmax/bounds_cymax. > > Yes, of course it set like this. > But maximize button is still visible and 2xclik on the titlebar maximize > it. > > Maybe is it possible with MSE to have forms without any title-bar ? >

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-31 Thread fredvs
Ooops,it was snipped... Maybe, is it possible with MSE to have forms without any title-bar ? And then create a virtual title-bar with only system+minimize icon. And set the position of menu-panel in bottom of that virtual title-bar ? Fre;D -- Sent from:

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-31 Thread fredvs
> You can try to set .bounds_cxmax/bounds_cymax. Yes, of course it set like this. But maximize button is still visible and 2xclik on the titlebar maximize it. Maybe is it possible with MSE to have forms without any title-bar ? Setting -- Sent from:

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-31 Thread Martin Schreiber
On Thursday 31 May 2018 14:39:17 fredvs wrote: > > By the way, is it possible to hide the "Maximize" icon of a form and not > permite to maximize a form while 2Xclick on the title-bar ? > I assume it depends on the window manager. You can try to set .bounds_cxmax/bounds_cymax. Martin

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-31 Thread fredvs
Hello. OK, I did follow your order: 1) Create a simple demo. 2) OK, it works out of the box (==> Aaargh). 3) Delete the files of extra-dockform in StrumPract. 4) Re-create those extra-dockform from scratch + paste older-code. 5) Run it and... now perfect, out-of-the-box...! 6) ;-)

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-30 Thread fredvs
Re-hello. Here a video showing the scrollbar that does not appear with a TDockForm. At begin of video, you may see that with a TMainForm it works perfectly. msedockform_scroll.mp4 Of course checking StrumPract

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-30 Thread fredvs
> You are joking? Huh, yes. Ok, changing tdockpanel1fo = class(tdockpanelform) with tdockpanel1fo = class(tdockform) Fixes the "1" auto-added for title-form. There is still a problem with vertical scrollbar that will not appear if the height of container > height of dockform . (And this

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-30 Thread Martin Schreiber
On Wednesday 30 May 2018 13:53:00 fredvs wrote: > > Then I'll wait for the simple test case. It is better than guessing. > > OK, here a very simple test case (review the video to reproduce the thing): > > https://github.com/fredvs/strumpract > You are joking? Martin

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-30 Thread fredvs
> Then I'll wait for the simple test case. It is better than guessing. OK, here a very simple test case (review the video to reproduce the thing): https://github.com/fredvs/strumpract Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-30 Thread Martin Schreiber
On Wednesday 30 May 2018 13:06:14 fredvs wrote: > > Please send a simple testprogram which shows the problem. > > Hello. > > Here video of a test program (not ready to show the code). > > msedockpanel_title.mp4 > p4> >

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-30 Thread fredvs
> Please send a simple testprogram which shows the problem. Hello. Here video of a test program (not ready to show the code). msedockpanel_title.mp4 Fre;D -- Sent from:

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-29 Thread Martin Schreiber
On Wednesday 30 May 2018 02:09:28 fredvs wrote: > > But, when a tab is changed, the title of the the tdockpanelform is changed > for "1". > How to keep the original assigned title (not this automatic change) ? > Please send a simple testprogram which shows the problem. Martin

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-29 Thread fredvs
Hello Martin. OK, I get the active form in tab with basedock.dragdock.activewidget and if a tab is changed with the form.onshow of the activewidget, All works perfectly. But, when a tab is changed, the title of the the tdockpanelform is changed for "1". How to keep the original assigned title

Re: [MSEide-MSEgui-talk] OnTabChanged ?

2018-05-29 Thread Martin Schreiber
On Tuesday 29 May 2018 17:24:10 fredvs wrote: > Hello Martin. > > On a tabbed form (currentsplitdir = sd_tabed) how to know that a other tab > (form) was selected ? > dragdock.onlayoutchanged will be triggered. > How to know what active form (=tab) is active ? > In onlayoutchanged

[MSEide-MSEgui-talk] OnTabChanged ?

2018-05-29 Thread fredvs
Hello Martin. On a tabbed form (currentsplitdir = sd_tabed) how to know that a other tab (form) was selected ? How to know what active form (=tab) is active ? Is tdockpanelform the good choice for extra-dock panels? ( if you remember the StrumPract main form, I want to have others dock-forms