Re: [Gambas-user] A few questions prompted by recent posts

2015-05-02 Thread Benoît Minisini
Le 03/05/2015 00:46, adamn...@gmail.com a écrit : > The comments on identifier naming, about both conventions (like > sWhatever for a string and bWhatever for a boolean) and also IDE > interpretations (like "_MyClass" is hidden) have reminded me of a > couple of things I have been meaning to ask: >

Re: [Gambas-user] How to profile memory usage in gambas application ?

2015-05-02 Thread Benoît Minisini
Le 03/05/2015 03:19, Olivier Cruilles a écrit : > After trying some possibilities I found the problem. If the Editor is in > ReadOnly mode, it does not accept insertion of text. > > I use the Editor object in this case only to display text (read only mode) > for the user and not to be modified in

[Gambas-user] A few questions prompted by recent posts

2015-05-02 Thread adamn...@gmail.com
The comments on identifier naming, about both conventions (like sWhatever for a string and bWhatever for a boolean) and also IDE interpretations (like "_MyClass" is hidden) have reminded me of a couple of things I have been meaning to ask: 1) the automatic hiding of Identifiers beginning with "

Re: [Gambas-user] How to profile memory usage in gambas application ?

2015-05-02 Thread Olivier Cruilles
Second try do not work too. Cordialement, Olivier Cruilles > Le 2 mai 2015 à 17:38, Olivier Cruilles a écrit : > > Ok, I will investigate and I back to you. > > Thank you > > Cordialement, > > Olivier Cruilles > > >> Le 2 mai 2015 à 17:11, Benoît Minisini a >> écrit : >> >> Le 01/05/2

Re: [Gambas-user] How to profile memory usage in gambas application ?

2015-05-02 Thread Olivier Cruilles
In fact I’m not able to use Editor1.Insert() because it does not works for me so it’s for this reason I use Editor.Text &= … I use one of the last svn revision. My code is something like that: 1- First try Editor1.Insert(DataToAdd, Editor1.Lines.Count - 1, Editor.Lines[Editor1.Lines.Count -

Re: [Gambas-user] How to profile memory usage in gambas application ?

2015-05-02 Thread Olivier Cruilles
Ok, I will investigate and I back to you. Thank you Cordialement, Olivier Cruilles > Le 2 mai 2015 à 17:11, Benoît Minisini a écrit > : > > Le 01/05/2015 20:05, Olivier Cruilles a écrit : >> Hi Benoit, Is there a way to monitor usage of memory of objects >> (Class, Collection, etc...) in Ga

Re: [Gambas-user] How to profile memory usage in gambas application ?

2015-05-02 Thread Benoît Minisini
Le 01/05/2015 20:05, Olivier Cruilles a écrit : > Hi Benoit, Is there a way to monitor usage of memory of objects > (Class, Collection, etc...) in Gambas please ? May be you have > already developed something like time execution profiler already > existing in Gambas but for memory usage ? My proble

Re: [Gambas-user] R: How to know is my Form activated or not?

2015-05-02 Thread Fabien Bodard
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 _MyC

Re: [Gambas-user] R: How to know is my Form activated or not?

2015-05-02 Thread ML
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_* for a module (local to the class) varia

Re: [Gambas-user] R: How to know is my Form activated or not?

2015-05-02 Thread Fabien Bodard
2015-05-02 20:51 GMT+02:00 ML : > 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** > > **

Re: [Gambas-user] R: How to know is my Form activated or not?

2015-05-02 Thread ML
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 'The

[Gambas-user] R: How to know is my Form activated or not?

2015-05-02 Thread Ru Vuott
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

[Gambas-user] Issue 620 in gambas: Datebox doesn't respect localizations

2015-05-02 Thread gambas
Status: New Owner: Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 620 by jussi.la...@gmail.com: Datebox doesn't respect localizations https://code.google.com/p/gambas/issues/detail?id=620

Re: [Gambas-user] Issue 619 in gambas: Translation is confused by single \ character

2015-05-02 Thread gambas
Comment #3 on issue 619 by jussi.la...@gmail.com: Translation is confused by single \ character https://code.google.com/p/gambas/issues/detail?id=619 Yes, it works now as expected. -- You received this message because this project is configured to send all issue notifications to this addres

Re: [Gambas-user] Issue 619 in gambas: Translation is confused by single \ character

2015-05-02 Thread gambas
Updates: Status: Fixed Comment #2 on issue 619 by benoit.m...@gmail.com: Translation is confused by single \ character https://code.google.com/p/gambas/issues/detail?id=619 It should be fixed in revision #7049. Can you try it so that I can backport it in the future 3.7.2 release? --

Re: [Gambas-user] [CRASH REPORT] Database example

2015-05-02 Thread Benoît Minisini
Le 22/04/2015 11:18, Frank a écrit : > Hello, > > Damned, my program crashed Gambas that way : > > When I try to create a table with MySQL I get this error > (Segmentationfault (11)) > I tried the existing databaseexample of Gambas an got the same error. This > worked fine in the past (Gambas 3.5.4

Re: [Gambas-user] How to know is my Form activated or not?

2015-05-02 Thread Tobias Boege
On Sat, 02 May 2015, abbat81 wrote: > In Event I use *Form_Activate()* and *Form_Deactivate()* > > But I need to have boolean Y/N when I ask. > How about Private $bActive As Boolean Public Sub Form_Activate() $bActive = True End Public Sub Form_Deactivate() $bActive = False

[Gambas-user] How to know is my Form activated or not?

2015-05-02 Thread abbat81
In Event I use *Form_Activate()* and *Form_Deactivate()* But I need to have boolean Y/N when I ask. -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-know-is-my-Form-activated-or-not-tp51426.html Sent from the gambas-user mailing list archive at Nabble.com. ---

[Gambas-user] IconView1.Picture does not work if IconView1.Count = 0

2015-05-02 Thread abbat81
After I've creared a IconView1 (IconView1.Clear) and I have nothing to display in the control. Anyway, I'd like to see a pevious backgroud picture in it. IconView1.Picture = Picture["pic.jpg"] - does not work if IconView1.Count = 0 -- View this message in context: http://gambas.8142.n7.nabb