[Gambas-devel] Preview gb.form.md[ia]

Benoit Minisini gambas at ...1...
Sat Aug 5 19:15:24 CEST 2006


On Saturday 05 August 2006 18:57, Ron Onstenk wrote:
> On Saturday 05 August 2006 18:40, Benoit Minisini wrote:
> > On Saturday 05 August 2006 18:30, Ron Onstenk wrote:
> > > This is a preview the current working .mdi/.mda
> > > It is based on the .mdi made by Benoit and the
> > > .mda made by Fabien and a windows manager by myself.
>
> ---8<---
>
> > > All buttons are programmable on/off or the complete Head can switch
> > > off. The area below with the text or form are resizeable.
> > >
> > > The best thing is it is the .mdi and .mda together
> > > The way I do it now is by a flag in the source code.
> > > The result is if the flag is not set it works 99.9999999% the same
> > > If set it should work still the same way.
> > > In fact the API has not changed for Workspace but there is a .Options
> > > property add.
>
> ---8<---
>
> > > Rename my old variable/control names to more correct ones.
> > > Names now are based on old controls replaced by totally different.
> > > Create a  project as demo for (new) Workspace.
> > >
> > > Remember, it is just a preview to get a impression.
> > >
> > >
> > > Ron
> >
> > Looks cool.
> >
> > Is it possible to merge gb.form.mdi and gb.form.mda, i.e. being able to
> > switch between the gb.form.mdi tab view where all windows are maximized
> > with a TabStrip, and gb.form.mda where all windows can be freely resized,
> > without the need for a TabStrip?
> >
> > Regards,
>
> 1)
> It is already merged together. :)
>
> 2)
> The switch is basic already done but hardcoded.
> I think dynamic switching can give problems, but with New WorkSpace(x, y,
> USEMDA) it could work. Not in progress ATM.

You can only make 'NEW Workspace(Parent)'. If you want more parameters, they 
all must be optional, otherwise the Workspace cannot be used by the IDE form 
editor.

So the switching must be dynamic - This is always the problem when you make 
controls.

>
> 3)
> The Tabstip stays always alive ATM.

Not necessarily a problem. As you may have noticed, it stays behind the parent 
panel of MDI child windows, so it could be easily hidden.

> The child Windows Titlebar can switched complete off. The taskbar must do
> it. If they are switched of only resize is possible, no buttons anymore.
> Here one of the problems with the close button I must pay attention to.
>
> I will look a way to hide it if it is possible in special case.
>
>
> Ron

To make your title bar and your resize borders, I think you have to reparent 
the MDI child window inside some other container that manages them. One can 
imagine that, in the gb.form.mdi mode, this container keeps being there, but 
displays only the MDI child window entirely. But this needs some 
modifications in the gb.form.mdi code, as at the moment all MDI child windows 
are direct child of the same panel.

Regards,

-- 
Benoit Minisini





More information about the Devel mailing list