http://gambas.8142.n7.nabble.com/file/n51457/2015-05-05-101559_1280x1024_scrot.png
http://gambas.8142.n7.nabble.com/file/n51457/2015-05-05-101344_1280x1024_scrot.png
--
View this message in context:
Il 05/05/2015 08:59, abbat81 ha scritto:
http://gambas.8142.n7.nabble.com/file/n51457/2015-05-05-101559_1280x1024_scrot.png
http://gambas.8142.n7.nabble.com/file/n51457/2015-05-05-101344_1280x1024_scrot.png
--
View this message in context:
...very strange !
Mar 5/5/15, abbat81 abbat...@mail.ru ha scritto:
Oggetto: Re: [Gambas-user] R: How to know is my Form activated or not?
A: gambas-user@lists.sourceforge.net
Data: Martedì 5 maggio 2015, 08:59
http://gambas.8142.n7
Dim dw As DesktopWindow
For Each dw In Desktop.Windows
Print _ dw.VisibleName
Next
I got next:
_
_
_
_
_
_
_
_
_
_
_
_
--
View this message in context:
http://gambas.8142.n7.nabble.com/How-to-know-is-my-Form-activated-or-not-tp51426p51453.html
Sent from the
Abbat,
I don't know if you got my reply to the list. I'd go like this instead
(this is code to add to the form(s) you want to check):
* Private $bActive As Boolean = False** 'This private form
variable will hold the form's state
** Public Property Read IsActive As Boolean 'This
*
Regards
Lun 4/5/15, abbat81 abbat...@mail.ru ha scritto:
Oggetto: Re: [Gambas-user] R: How to know is my Form activated or not?
A: gambas-user@lists.sourceforge.net
Data: Lunedì 4 maggio 2015, 14
Does not work in my project.
dw.VisibleName is empty
(Gambas 5.4.1, I cannot update, Ub 12.04)
--
View this message in context:
http://gambas.8142.n7.nabble.com/How-to-know-is-my-Form-activated-or-not-tp51426p51445.html
Sent from the gambas-user mailing list archive at Nabble.com.
Me.Caption = my visible name
Dom 3/5/15, abbat81 abbat...@mail.ru ha scritto:
Oggetto: Re: [Gambas-user] R: How to know is my Form activated or not?
A: gambas-user@lists.sourceforge.net
Data: Domenica 3 maggio 2015, 13:28
Does
If you know visible-name of Form, you could use (gb.Desktop):
Public Sub Button1_Click()
Dim dw As DesktopWindow
For Each dw In Desktop.Windows
' If the visible-name is the same as the name of the form that we seek, then
it detects that:
If dw.VisibleName = visible-name
Abbat,
I'd go like this instead:
* Private _active As Boolean = False** 'This private form
variable will hold the form's state
** Public Property Read IsActive As Boolean 'This property will
return the private variable value**
** Private Function IsActive_Read() As Boolean
Fabien,
Thanks for the clarification.
Actually, as an old-time VB6 and more recently VBNet and Gambas
developer, I tend to use camel-case and actually dropped the
*b*/Boolean, *l*/Long, *s*/String, etc prefixes not long ago.
Also, I normally used to go *m_variableName* for a module (local to
the
Public Toto as String 'is public
Public _Toto as string 'Is public but hidden
Private $sToto as String 'Is Private
Property _Toto as String 'Is public access but hidden
Dim sToto as string 'Is Local
In Fact it is the convention used on the gambas IDE and generally on
my own projects.
Even
2015-05-02 20:51 GMT+02:00 ML d4t4f...@gmail.com:
Abbat,
I'd go like this instead:
* Private _active As Boolean = False** 'This private form
variable will hold the form's state
** Public Property Read IsActive As Boolean 'This property will
return the private variable
13 matches
Mail list logo