Re: [Gambas-user] Check if a form is opened/show

2012-08-11 Thread Fabien Bodard
Or simply: If FMain then If fmain is not used then it is not instanciate so its value must be null... I think... Another way can be to add a static value to fmain 'in fmain Static Private $iCnt as integer Property Read IsOpened as boolean PUblic sub _New() inc $iCnt endif Public sub

Re: [Gambas-user] Check if a form is opened/show

2012-08-11 Thread Bruce
On Sat, 2012-08-11 at 13:47 +0200, Fabien Bodard wrote: Or simply: If FMain then If fmain is not used then it is not instanciate so its value must be null... I think... Another way can be to add a static value to fmain 'in fmain Static Private $iCnt as integer Property Read

Re: [Gambas-user] Check if a form is opened/show

2012-08-10 Thread Shane
On 10/08/12 10:24, rocko wrote: Is there a way to check if a form is opened?? If Fmain.Open = True Then do...something endif I tries .Show but got an error. is this what you need ? http://gambasdoc.org/help/comp/gb.qt4/window/visible?v3 time to read the docs ;-)

Re: [Gambas-user] Check if a form is opened/show

2012-08-10 Thread Jussi Lahtinen
If Form.Visible is not what you need, then you can declare Opened boolean to form and set it true in Form_Open event. Jussi On 10 August 2012 03:24, rocko sunblast...@gmail.com wrote: Is there a way to check if a form is opened?? If Fmain.Open = True Then do...something endif I

[Gambas-user] Check if a form is opened/show

2012-08-09 Thread rocko
Is there a way to check if a form is opened?? If Fmain.Open = True Then do...something endif I tries .Show but got an error. -- Live Security Virtual Conference Exclusive live event will cover all the ways