Re: [Gambas-user] Documentation: Events not firing in dynamically instantiated forms.

2014-11-28 Thread Jorge Carrión
I must say that this has been a very, very enlightening discussion. Thank you all, folks. This simplify a lot some workarounds in my code. Regards 2014-11-28 2:06 GMT+01:00 T Lee Davidson t.lee.david...@gmail.com: On 11/27/2014 06:52 PM, Benoît Minisini wrote: I have updated the 'Gambas

[Gambas-user] gb.gsl: Polynomial arithmetic / gb.flint

2014-11-28 Thread Tobias Boege
Hi Benoit, the Polynomial class in gb.gsl does not support all the arithmetic operations I'm going to need. I'd like to multiply two polynomials and to divide a polynomial by a (non-zero) scalar. I just saw that GSL doesn't implement polynomial arithmetic at all and you wrote the addition and

Re: [Gambas-user] Documentation: Events not firing in dynamically instantiated forms.

2014-11-28 Thread Gian
Il 28/11/2014 10:03, Jorge Carrión ha scritto: I must say that this has been a very, very enlightening discussion. Thank you all, folks. This simplify a lot some workarounds in my code. Regards 2014-11-28 2:06 GMT+01:00 T Lee Davidson t.lee.david...@gmail.com: On 11/27/2014 06:52 PM,

[Gambas-user] 'FontChooser.SelectedFont' is not static

2014-11-28 Thread Lewis Balentine
Sorry to be a pest but I have run into another problem I can not seem to get past and I can find no examples. I am trying to use the FontChooser control (gb.form) in a very simple form. '- Public Sub FontBox1_Click() ' Dim S As String ' Dim S As

Re: [Gambas-user] 'FontChooser.SelectedFont' is not static

2014-11-28 Thread Jussi Lahtinen
Use IDE to put the FontChooser on your form, or instantiate it first (with New command). Jussi On Fri, Nov 28, 2014 at 2:24 PM, Lewis Balentine le...@keywild.com wrote: Sorry to be a pest but I have run into another problem I can not seem to get past and I can find no examples. I am trying

Re: [Gambas-user] 'FontChooser.SelectedFont' is not static

2014-11-28 Thread Lewis Balentine
Use IDE to put the FontChooser on your form That is what I did. Then in the IDE I double-clicked on the control. That is what produced the sub declaration that I tried to use below. [System] Gambas=3.6.2 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86_64 Distribution=Linux Mint

Re: [Gambas-user] 'FontChooser.SelectedFont' is not static

2014-11-28 Thread Jussi Lahtinen
No that is FontBox, not FontChooser. Jussi On Fri, Nov 28, 2014 at 3:42 PM, Lewis Balentine le...@keywild.com wrote: Use IDE to put the FontChooser on your form That is what I did. Then in the IDE I double-clicked on the control. That is what produced the sub declaration that I tried to

Re: [Gambas-user] 'FontChooser.SelectedFont' is not static

2014-11-28 Thread Lewis Balentine
daaa seems that I am confusing FontBox with FontChooser. gee ... I feel like a dunce. Still have not got it to working but I am at least off on another foray through the possibilities :) On 11/28/2014 07:42 AM, Lewis Balentine wrote: Use IDE to put the FontChooser on your form That is

Re: [Gambas-user] [GambasMag] Articles for Feb 2015 issue

2014-11-28 Thread Fabien Bodard
Yes Kevin it's a great idea !! 2014-11-28 6:55 GMT+01:00 Kevin Fishburne kevinfishbu...@eightvirtues.com: On 11/24/2014 09:33 AM, Randall Morgan wrote: Hi Tobi, I have had some health issues and so I haven't been able to put much time into the magazine. I have also moved 1600 miles from

Re: [Gambas-user] 'FontChooser.SelectedFont' is not static

2014-11-28 Thread Fabien Bodard
Hum try that ... Public Sub FontBox1_Click() If Last.Value then TextArea1.Font = Font[Last.Value] End This is for the fontbox The font chooser is a complete control set to make dialog or area to choose font. 2014-11-28 14:57 GMT+01:00 Jussi Lahtinen jussi.lahti...@gmail.com: No that is

[Gambas-user] Possible bug on offline help

2014-11-28 Thread Gian
Hello everyone, if I use the off-line help I get everywhere this “This page does not exist” see attached. If I use the on-line help is ok. regards Gianluigi -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT

Re: [Gambas-user] Possible bug on offline help

2014-11-28 Thread Gian
Il 28/11/2014 15:39, Gian ha scritto: Hello everyone, if I use the off-line help I get everywhere this “This page does not exist” see attached. If I use the on-line help is ok. regards Gianluigi -- Download BIRT iHub

Re: [Gambas-user] 'FontChooser.SelectedFont' is not static

2014-11-28 Thread Lewis Balentine
Yes I have it now ... just trying to fine tune it a bit. I am writing a demo program as I work through some of Gambas trials and tribulations. It will have example code for: select directory select file select font read/write settings read/write to file display file

Re: [Gambas-user] Possible bug on offline help

2014-11-28 Thread Gian
Il 28/11/2014 15:44, Gian ha scritto: Il 28/11/2014 15:39, Gian ha scritto: Hello everyone, if I use the off-line help I get everywhere this “This page does not exist” see attached. If I use the on-line help is ok. regards Gianluigi

Re: [Gambas-user] Possible bug on offline help

2014-11-28 Thread Benoît Minisini
Le 28/11/2014 15:39, Gian a écrit : Hello everyone, if I use the off-line help I get everywhere this “This page does not exist” see attached. If I use the on-line help is ok. regards Gianluigi Mmm... Did you download the offline documentation? -- Benoît Minisini

Re: [Gambas-user] 'FontChooser.SelectedFont' is not static

2014-11-28 Thread Jussi Lahtinen
daaa seems that I am confusing FontBox with FontChooser. gee ... I feel like a dunce. Don't worry, that happens. Part of human cognition, sometimes you will see what you expect or think you will see, instead of what there really is. It's good thing to know them well:

Re: [Gambas-user] Possible bug on offline help

2014-11-28 Thread Jørn Erik Mørne
Den 28. nov. 2014 15:39, skrev Gian: Hello everyone, if I use the off-line help I get everywhere this “This page does not exist” see attached. If I use the on-line help is ok. regards Gianluigi -- Download BIRT

Re: [Gambas-user] Possible bug on offline help

2014-11-28 Thread Gian
Il 28/11/2014 20:31, Jørn Erik Mørne ha scritto: Den 28. nov. 2014 15:39, skrev Gian: Hello everyone, if I use the off-line help I get everywhere this “This page does not exist” see attached. If I use the on-line help is ok. regards Gianluigi

Re: [Gambas-user] Possible bug on offline help

2014-11-28 Thread Benoît Minisini
Le 28/11/2014 16:46, Gian a écrit : Il 28/11/2014 16:32, Benoît Minisini ha scritto: Mmm... Did you download the offline documentation? No Benoit, I was online when I downloaded the help according to your instructions (http://gambas.8142.n7.nabble.com/Support-for-offline-help-td47438.html).

Re: [Gambas-user] Possible bug on offline help

2014-11-28 Thread Jussi Lahtinen
Everything seems to work OK with revision 6681. Off-line and on-line help. I downloaded the off-line documentation via the button in IDE preferences. [System] Gambas=3.6.90 OperatingSystem=Linux Kernel=3.13.0-40-generic Architecture=x86_64 Distribution=Ubuntu 14.04.1 LTS Desktop=XFCE Theme=QGtk

Re: [Gambas-user] gb.gsl: Polynomial arithmetic / gb.flint

2014-11-28 Thread Benoît Minisini
Le 28/11/2014 12:05, Tobias Boege a écrit : Hi Benoit, the Polynomial class in gb.gsl does not support all the arithmetic operations I'm going to need. I'd like to multiply two polynomials and to divide a polynomial by a (non-zero) scalar. I just saw that GSL doesn't implement polynomial

Re: [Gambas-user] Problem with Process_Read

2014-11-28 Thread Benoît Minisini
Le 28/11/2014 02:54, Jussi Lahtinen a écrit : Did you recompile your project entirely before running it? Yes, and now twice. I deleted my trunk folder, checked it out again. Uninstalled Gambas entirely from my system and recompiled it. Same result. Jussi Can you try revision #6683? I

Re: [Gambas-user] Possible bug on offline help

2014-11-28 Thread Gian
Il 28/11/2014 20:44, Gian ha scritto: Il 28/11/2014 20:31, Jørn Erik Mørne ha scritto: Den 28. nov. 2014 15:39, skrev Gian: Hello everyone, if I use the off-line help I get everywhere this “This page does not exist” see attached. If I use the on-line help is ok. regards Gianluigi

Re: [Gambas-user] Possible bug on offline help

2014-11-28 Thread Gian
Il 28/11/2014 20:46, Benoît Minisini ha scritto: Le 28/11/2014 16:46, Gian a écrit : Il 28/11/2014 16:32, Benoît Minisini ha scritto: Mmm... Did you download the offline documentation? No Benoit, I was online when I downloaded the help according to your instructions

[Gambas-user] Cannot download OfflineHelp because Desktop.NetworkAvailable incorrectly returns False

2014-11-28 Thread T Lee Davidson
I couldn't download the offline Help and wanted to know why. I have found that NetworkAvailable_Read() in Desktop.class is relying on '/sbin' being configured in the user's path. On my system, it is not. And, so `ifconfg` and `ip` from a console both produce, command not found. It is

Re: [Gambas-user] Possible bug on offline help

2014-11-28 Thread Gian
Il 28/11/2014 21:35, Gian ha scritto: Il 28/11/2014 20:46, Benoît Minisini ha scritto: Le 28/11/2014 16:46, Gian a écrit : Il 28/11/2014 16:32, Benoît Minisini ha scritto: Mmm... Did you download the offline documentation? No Benoit, I was online when I downloaded the help according to your

Re: [Gambas-user] Possible bug on offline help

2014-11-28 Thread Benoît Minisini
Le 28/11/2014 23:21, Gian a écrit : Il 28/11/2014 21:35, Gian ha scritto: Il 28/11/2014 20:46, Benoît Minisini ha scritto: Le 28/11/2014 16:46, Gian a écrit : Il 28/11/2014 16:32, Benoît Minisini ha scritto: Mmm... Did you download the offline documentation? No Benoit, I was online when I

Re: [Gambas-user] Problem with Process_Read

2014-11-28 Thread Jussi Lahtinen
Now something else happens... again with command line version. mTest.Process_Read.1623: #47: Read error mTest.DoTests.1543 mTest.Main.1832 Jussi On Fri, Nov 28, 2014 at 10:15 PM, Benoît Minisini gam...@users.sourceforge.net wrote: Le 28/11/2014 02:54, Jussi Lahtinen a écrit : Did you

Re: [Gambas-user] Cannot download OfflineHelp because Desktop.NetworkAvailable incorrectly returns False

2014-11-28 Thread Benoît Minisini
Le 28/11/2014 22:47, T Lee Davidson a écrit : I couldn't download the offline Help and wanted to know why. I have found that NetworkAvailable_Read() in Desktop.class is relying on '/sbin' being configured in the user's path. On my system, it is not. And, so `ifconfg` and `ip` from a console

Re: [Gambas-user] Possible bug on offline help

2014-11-28 Thread Jørn Erik Mørne
Den 28. nov. 2014 21:33, skrev Gian: Il 28/11/2014 20:44, Gian ha scritto: Il 28/11/2014 20:31, Jørn Erik Mørne ha scritto: Den 28. nov. 2014 15:39, skrev Gian: Hello everyone, if I use the off-line help I get everywhere this “This page does not exist” see attached. If I use the on-line

Re: [Gambas-user] Possible bug on offline help

2014-11-28 Thread Gian
Il 28/11/2014 23:30, Benoît Minisini ha scritto: Le 28/11/2014 23:21, Gian a écrit : Il 28/11/2014 21:35, Gian ha scritto: Il 28/11/2014 20:46, Benoît Minisini ha scritto: Le 28/11/2014 16:46, Gian a écrit : Il 28/11/2014 16:32, Benoît Minisini ha scritto: Mmm... Did you download the offline

[Gambas-user] Order forms events

2014-11-28 Thread Gian
Hi all, Normally the order of forms events is this: Enter 1) _new 2) Form_Open 3) Form_Resize 4) Form_BeforeArrange 5) Form_Arrange 6) Form_Move 7) Form_Show 8) Form_Move 9) Form_Activate 10) Form_GotFocus Exit 11) Form_Close 12) Form_Deactivate 13) Form_Hide but sometimes in enter is this: 1)

[Gambas-user] UTC conversion Tip for Date class doesn't work as expected

2014-11-28 Thread T Lee Davidson
http://gambaswiki.org/wiki/lang/type/date says, Dates can be converted to numbers. Then the number returned is the number of days stored internally and the fraction of day represented by the number of microseconds. And ,there is a tip box that says: [[ tip As date are internally stored in UTC,

Re: [Gambas-user] Order forms events

2014-11-28 Thread Benoît Minisini
Le 29/11/2014 00:56, Gian a écrit : Hi all, Normally the order of forms events is this: Enter 1) _new 2) Form_Open 3) Form_Resize 4) Form_BeforeArrange 5) Form_Arrange 6) Form_Move 7) Form_Show 8) Form_Move 9) Form_Activate 10) Form_GotFocus Exit 11) Form_Close 12)

Re: [Gambas-user] Order forms events

2014-11-28 Thread Gian
Il 29/11/2014 01:06, Benoît Minisini ha scritto: Yes. Events like Show or Activate come from the window manager, and so you cannot know exactly when they are received. Regards, If I may ask, why two events Form_Move Thanks Regards Gianluigi

Re: [Gambas-user] UTC conversion Tip for Date class doesn't work as expected

2014-11-28 Thread Benoît Minisini
Le 29/11/2014 00:57, T Lee Davidson a écrit : http://gambaswiki.org/wiki/lang/type/date says, Dates can be converted to numbers. Then the number returned is the number of days stored internally and the fraction of day represented by the number of microseconds. And ,there is a tip box that

Re: [Gambas-user] Order forms events

2014-11-28 Thread Benoît Minisini
Le 29/11/2014 01:14, Gian a écrit : Il 29/11/2014 01:06, Benoît Minisini ha scritto: Yes. Events like Show or Activate come from the window manager, and so you cannot know exactly when they are received. Regards, If I may ask, why two events Form_Move Thanks Regards Gianluigi Because

Re: [Gambas-user] Order forms events

2014-11-28 Thread Gian
Il 29/11/2014 01:25, Benoît Minisini ha scritto: Le 29/11/2014 01:14, Gian a écrit : Il 29/11/2014 01:06, Benoît Minisini ha scritto: Yes. Events like Show or Activate come from the window manager, and so you cannot know exactly when they are received. Regards, If I may ask, why two events

Re: [Gambas-user] UTC conversion Tip for Date class doesn't work as expected

2014-11-28 Thread T Lee Davidson
On 11/28/2014 07:24 PM, Benoît Minisini wrote: You're right, the tip is false, i.e. it works only when System.TimeZone 0, otherwise you have a 24h error. It was written before System.TimeZone exist. So you must do that instead: UTCDate = DateAdd(LocalDate, gb.Second,

Re: [Gambas-user] UTC conversion Tip for Date class doesn't work as expected

2014-11-28 Thread Benoît Minisini
Le 29/11/2014 01:32, T Lee Davidson a écrit : On 11/28/2014 07:24 PM, Benoît Minisini wrote: You're right, the tip is false, i.e. it works only when System.TimeZone 0, otherwise you have a 24h error. It was written before System.TimeZone exist. So you must do that instead: UTCDate =

Re: [Gambas-user] UTC conversion Tip for Date class doesn't work as expected

2014-11-28 Thread T Lee Davidson
On 11/28/2014 07:33 PM, Benoît Minisini wrote: Le 29/11/2014 01:32, T Lee Davidson a écrit : On 11/28/2014 07:24 PM, Benoît Minisini wrote: You're right, the tip is false, i.e. it works only when System.TimeZone 0, otherwise you have a 24h error. It was written before System.TimeZone exist.

[Gambas-user] Environmental Variable

2014-11-28 Thread Lewis Balentine
Is there a way to read an Environmental Variable other than: Dim HomeEnvStr as String Shell echo $HOME to HomeEnvStr thank you, Lewis -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate!

Re: [Gambas-user] Environmental Variable

2014-11-28 Thread T Lee Davidson
On 11/28/2014 11:40 PM, Lewis Balentine wrote: Is there a way to read an Environmental Variable other than: Dim HomeEnvStr as String Shell echo $HOME to HomeEnvStr thank you, Lewis Yep. Application.Env (gb) -- Lee __ Artificial Intelligence is no match for natural stupidity.

Re: [Gambas-user] Environmental Variable

2014-11-28 Thread T Lee Davidson
On 11/28/2014 11:50 PM, T Lee Davidson wrote: On 11/28/2014 11:40 PM, Lewis Balentine wrote: Is there a way to read an Environmental Variable other than: Dim HomeEnvStr as String Shell echo $HOME to HomeEnvStr thank you, Lewis Yep. Application.Env (gb) I almost forgot. For $HOME, you

Re: [Gambas-user] Environmental Variable

2014-11-28 Thread Lewis Balentine
Most interesting. Thank you. On 11/28/2014 10:53 PM, T Lee Davidson wrote: On 11/28/2014 11:50 PM, T Lee Davidson wrote: On 11/28/2014 11:40 PM, Lewis Balentine wrote: Is there a way to read an Environmental Variable other than: Dim HomeEnvStr as String Shell echo $HOME to HomeEnvStr

[Gambas-user] Conversion of array value to integer

2014-11-28 Thread Ian
If you have an array value that is a number - TmpAry[0] = 1 If you try to convert it to an integer with CInt you get an error Not a Function CInt(TmpAry[0]) You get the same error with Val(TmpAry[0]) You DON’T get the same error for CFloat(TmpAry[0]) ? I assume this is a bug ? Thanks, Ian.

Re: [Gambas-user] Conversion of array value to integer

2014-11-28 Thread T Lee Davidson
On 11/29/2014 12:08 AM, Ian wrote: If you have an array value that is a number - TmpAry[0] = 1 If you try to convert it to an integer with CInt you get an error Not a Function CInt(TmpAry[0]) You get the same error with Val(TmpAry[0]) You DON’T get the same error for CFloat(TmpAry[0]) ?