[Gambas-devel] New gambas MDI Component.

Ron Onstenk ronstk at ...124...
Wed Jun 28 05:16:19 CEST 2006


On Wednesday 28 June 2006 00:18, Fabien Bodard wrote:
> (Hey Ron!, i've done some change on your code... special windows like Forms 
> can't be resized so i deasable the menu tile_window if one of then are this 
> type and forget the resizing in cascade.)
> 

For mnuCascade_Click()
I see you changed $aWindows in svWS.Children
When I lookup in the .Add I see you do
  hForm = NEW FChildform(svWS, hWin, bResizable) AS "ChildForm"
  ...
  $aWindow.Add(hForm)

Then the are the same? Assume FOR EACH looks nicer.
My reason to change the width/height is to get the intinutive bottom-right corner
in the WS to be able to resize it if outside the visible WS space.

For mnuTile_Click()
You say Forms can't be resized. I think that not true.
They SHOULD not resized because the layout is f**ked-up
Anyway a major fault of my side i did this. :(


I hope you like my new correction/changes
In FChildform I add a property
In FWorkSpace I add comments in Add(....) why the property is done.
Re-enabled the resize of the hWin/FChildform in mnuTile and mnuCascade.
Changed the xw declaration to FChildform, the correct one.
Used the new property to prevent the Form editors to resize.
Update to the dimensions in mnuTile (Taskbar forgotten).
Changed the for next with ix and iy to for each 
(nicer to have the same For next in both)
Commented in Watch_Close the mnuTile.Enable.

Works here now as I wanted and you started to create. :)

One point.
If I use the ctrl-x or ctrl-c and use ctrl-v to cut&paste it, the paste, 
can happens in the wrong editor (FChildform).
Using the RMB menu for cut&paste is OK.

I have this problem also found in the original gb.form.mdi and reported.
It looks now more persistent to occur. Not sure if that is true. 

Ron





-------------- next part --------------
A non-text attachment was scrubbed...
Name: mda_update.tar.gz
Type: application/x-tgz
Size: 4268 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20060628/97b76c26/attachment.bin>


More information about the Devel mailing list