Open gb.Form.Dialog maximised (full screen)
Posted
#1
(In Topic #665)
Trainee
bazzvn
Posted
Guru

Posted
Regular

Code (gambas)
- ' It watchs all windows, present and future, on the desktop:
- ' The "title" of the Dialog window must be certain and unique:
- .Title = "Abcde"
- ' ...then checks if the "Abcde" window has opened:
- ' If so, the Dialog window is resized:
- .Resize(Screen.AvailableWidth, Screen.AvailableHeight)
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Regular

bazzvn said
…If it's not possible then I guess I'll just have to go with a file chooser on a maximized form.
Don't know if this helps, but you can make Controls expand when the mouse enters the control.
As an example, open a new project and add a Splitter, put a DirChooser inside on the left and a TextArea inside on the right.
When the mouse enters the DirChooser, it is expanded to [almost] the full size of the form.
Posted
Trainee
The only thing I had to add was 1 line of code after resizing, to reposition the form:
Code
.Move(0,0) 'Move the dialog
With best wishes,
bazzvn
1 guest and 0 members have just viewed this.


