Re: [Gambas-user] gb.text deprecated question

2011-07-11 Thread Fabien Bodard
http://gambasdoc.org/help/doc/gb2togb3?v3 read that page :) gb.IgnoreCase 2011/7/12 richard terry : > gb.Text (gb) > STATIC PROPERTY READ Text AS Integer > Constant that represents a case insensitive comparison. >         This constant is deprecated in Gambas 3.0. > > I've just noticed my exe bu

[Gambas-user] gb.text deprecated question

2011-07-11 Thread richard terry
gb.Text (gb) STATIC PROPERTY READ Text AS Integer Constant that represents a case insensitive comparison. This constant is deprecated in Gambas 3.0. I've just noticed my exe bugs out on this during a replace, ?what do I replace it with?? -

Re: [Gambas-user] How to stop an Observer?

2011-07-11 Thread tobias
i also considered using Object.Lock() this works with the textbox but not with an observer...? -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of applicat

Re: [Gambas-user] How to stop an Observer?

2011-07-11 Thread Benoît Minisini
> > > > Why do you want to stop the observer? > > as usual, i'm just interested ;) > in my example, the raising of observer events may become unnecessary or > unwelcome because they restrict a control (i wanted to try another way > of limiting the input of a textbox to number only, for example).

Re: [Gambas-user] How to stop an Observer?

2011-07-11 Thread tobias
of course, i could also use a flag instead, but i love it to research in the gambas universe :) -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of applica

Re: [Gambas-user] How to stop an Observer?

2011-07-11 Thread tobias
On 11.07.2011 22:39, Benoît Minisini wrote: >> On 11.07.2011 20:47, tobias wrote: >>> hi, >>> >>> i wonder how to stop an observer from raising events? my code >>> demonstrative code looks like this: >>> >>> (gambas2) >>> >>> PRIVATE hObs AS Observer >>> >>> PUBLIC SUB ObserveSubject(hSubject AS Te

Re: [Gambas-user] ScrollArea Problem

2011-07-11 Thread Benoît Minisini
> Hi, > > Gambas 3, ScrollArea (painted=true) > > when i set "Painted" property to True i get the following Message: > see attachment and IDE crashes. > > Is there some ScrollArea example code available or some infos > how to use this widget ? > > wally The bug should be fixed in revision #393

Re: [Gambas-user] How to stop an Observer?

2011-07-11 Thread Benoît Minisini
> On 11.07.2011 20:47, tobias wrote: > > hi, > > > > i wonder how to stop an observer from raising events? my code > > demonstrative code looks like this: > > > > (gambas2) > > > > PRIVATE hObs AS Observer > > > > PUBLIC SUB ObserveSubject(hSubject AS TextBox) > > > > IF hObs THEN > >

Re: [Gambas-user] How to stop an Observer?

2011-07-11 Thread tobias
On 11.07.2011 20:47, tobias wrote: > hi, > > i wonder how to stop an observer from raising events? my code > demonstrative code looks like this: > > (gambas2) > > PRIVATE hObs AS Observer > > PUBLIC SUB ObserveSubject(hSubject AS TextBox) > IF hObs THEN > ReleaseSubject() > ENDIF >

Re: [Gambas-user] ComboBox_Click Problem

2011-07-11 Thread tobias
On 11.07.2011 21:37, Matti wrote: > Hi Tobias, > > for me, it looks like ComboBox.Text is made only to show something like > "Please > select something" or "All entries". As soon as you select an item, > ComboBox.Text > is replaced by that item. I tried the Click and the Change event, and in both

Re: [Gambas-user] ComboBox_Click Problem

2011-07-11 Thread Matti
Hi Tobias, for me, it looks like ComboBox.Text is made only to show something like "Please select something" or "All entries". As soon as you select an item, ComboBox.Text is replaced by that item. I tried the Click and the Change event, and in both cases it's gone. Benoit might correct me her

[Gambas-user] How to stop an Observer?

2011-07-11 Thread tobias
hi, i wonder how to stop an observer from raising events? my code demonstrative code looks like this: (gambas2) PRIVATE hObs AS Observer PUBLIC SUB ObserveSubject(hSubject AS TextBox) IF hObs THEN ReleaseSubject() ENDIF hObs = NEW Observer(hSubject) END PUBLIC SUB ReleaseSubject

[Gambas-user] About Printer

2011-07-11 Thread Demosthenes Koptsis
These days i am learning Printer class and i have some questions about it. For the beginning i print a blank page and some status messages in a textarea. the code is this - Public Sub btnPrint_Click() If prtPrinter.Configure() Then Return Me.Enabled = False Inc Application

[Gambas-user] Desktop.SendKeys

2011-07-11 Thread tobias
hi, i have an open terminal running a program that may run for long time. i want to use Desktop.SendKeys to send a CTRL+C to the terminal. (that's just an example. i know there are some very smarter ways of achieving that ;)) if i use Desktop.SendKeys("{[CONTROL_L]C}") nothing happens but if no

[Gambas-user] Application_Read

2011-07-11 Thread Demosthenes Koptsis
i have an application who reads the data from stdin with Application_Read the implementation is -- Public Sub Application_Read() Line Input txtArea.Text End - i try to send data to the running process with echo xxx > /proc/7417/fd/0 where 7417 is the pid. But i cant get