Re: [Gambas-user] Did anyone have a script to record webcame picture in video files

2010-12-22 Thread Jussi Lahtinen
file first, and open it in gambas3. i'm wating for ur solutions for my project. thanks. http://old.nabble.com/file/p30510255/TACAMCCTVrev2.rar TACAMCCTVrev2.rar Jussi Lahtinen wrote: Project -- Make -- Source archive And put the script in that tar ball also. Jussi

[Gambas-user] Week function and localization

2010-12-22 Thread Jussi Lahtinen
? Week(Date(2005, 7, 24)) 30 Calendar says 29, however this doesn't seem to be this simple... See end of this page, section 'weeks', week number options. http://www.timeanddate.com/calendar/custommenu.html?year=2005country=9wno=5holm=1df=1 Seems that there are several ways how week numbers are

Re: [Gambas-user] Week function and localization

2010-12-22 Thread Jussi Lahtinen
How did I missed them... Jussi 2010/12/22 Benoît Minisini gam...@users.sourceforge.net ? Week(Date(2005, 7, 24)) 30 Calendar says 29, however this doesn't seem to be this simple... See end of this page, section 'weeks', week number options.

Re: [Gambas-user] Type Mismatch error with max neg long int as constant

2010-12-22 Thread Jussi Lahtinen
Very similar problem... Public Const LowestInteger As Integer = -2147483648 Yields; Out of range Gambas 3 rev 3389 @ Ubuntu 10.10 Jussi 2010/11/27 Benoît Minisini gam...@users.sourceforge.net In Gambas2, I get a type mismatch error...but no error if ends in a 7 PUBLIC CONST

Re: [Gambas-user] IsFloat

2010-12-21 Thread Jussi Lahtinen
I was wondering if some (definitely not all!) of IsXXX functions should have different names, example SafeForXXX or similar? That would describe their new functionality better. Example, IsNull really tells if value Is Null or not (so IsNull is good name), but IsFloat tells only if value is safe to

Re: [Gambas-user] IsFloat

2010-12-21 Thread Jussi Lahtinen
Also that would prevent mix up with IsXXX functions when moving from Gambas 2 to 3. Jussi On Tue, Dec 21, 2010 at 19:18, Jussi Lahtinen jussi.lahti...@gmail.comwrote: I was wondering if some (definitely not all!) of IsXXX functions should have different names, example SafeForXXX or similar

Re: [Gambas-user] Did anyone have a script to record webcame picture in video files

2010-12-20 Thread Jussi Lahtinen
Jussi Lahtinen wrote: It is easier to help if you send your whole project. I can't see any handling for CatProcess. Jussi On Sat, Dec 18, 2010 at 02:11, firman firman@gmail.com wrote: I Almost done my project about monitoring camera using webcam with gambas 3

[Gambas-user] Bug with IsDate?

2010-12-20 Thread Jussi Lahtinen
Hi! I don't quite understand how this should work... IsDate(Now) returns False, and IsDate(Str(Now)) returns True. I don't understand why IsXXX functions accept anything else than string. Help window says 'IsDate(Value As Variant) As Boolean' and below it it continues 'IsDate( String ) As

Re: [Gambas-user] Bug with IsDate?

2010-12-20 Thread Jussi Lahtinen
Question still valid, but I think there is problem with localization. ? IsDate(Cstr(Now)) False ? IsDate(Str(Now)) True Jussi On Mon, Dec 20, 2010 at 21:00, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Hi! I don't quite understand how this should work... IsDate(Now) returns False

Re: [Gambas-user] Bug with IsDate?

2010-12-20 Thread Jussi Lahtinen
The wiki has been recently updated, but your IDE only update its documentation cache once a week. Is there way to force IDE to update cache? To wish list? But, I'm still not sure I quite understand. If IsDate() takes only string, why I don't get Type mismatch: wanted string got date

[Gambas-user] IsFloat

2010-12-20 Thread Jussi Lahtinen
Hi! Is this correct; ? IsFloat(123) False 123 should be safe value for float, even if it can be stored to integer. With consistent logic IsLong(1) should answer False, so I think this is bug. Gambas 3 rev 3384 @ Ubuntu 10.10 64bit Jussi

Re: [Gambas-user] Bug with IsInteger?

2010-12-19 Thread Jussi Lahtinen
$ echo $LANG en_GB.utf8 $ echo $LC_ALL So, LC_ALL doesn't seem to contain anything. Jussi 2010/12/19 Benoît Minisini gam...@users.sourceforge.net Also this: $ gbx3 -e 'IsInteger(12 + 5.4)' Gives; True What LANG=C exactly does? Jussi It tells programs to run with the C

[Gambas-user] Bug with IsNumber

2010-12-13 Thread Jussi Lahtinen
Hi! With Gambas 3 revision 3361 @ Ubuntu 10.04 64bit, IsNumber(False) returns False. Is this new behaviour correct? Jussi -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your

Re: [Gambas-user] Bug with IsNumber

2010-12-13 Thread Jussi Lahtinen
IsNumber(Value As Variant) As Boolean... Then why variant? Jussi 2010/12/13 Benoît Minisini gam...@users.sourceforge.net Hi! With Gambas 3 revision 3361 @ Ubuntu 10.04 64bit, IsNumber(False) returns False. Is this new behaviour correct? Jussi Yes. Now IsNumber() takes a string

Re: [Gambas-user] Bit manipulation functions

2010-11-20 Thread Jussi Lahtinen
PRINT Bin(-9):; Bin(-9) PRINT Bin(Lsl(-9, 1)):; Bin(Lsl(-9, 1)) PRINT Bin(Lsr(-9, 1)):; Bin(Lsr(-9, 1)) Bin(-9) :0111 Bin(Lsl(-9,1)):11101110

Re: [Gambas-user] Bit manipulation functions

2010-11-20 Thread Jussi Lahtinen
Argh... no. Try this: ? bin(Lsr(-9,1),32) 0011 Jussi On Sat, Nov 20, 2010 at 17:55, Jussi Lahtinen jussi.lahti...@gmail.comwrote: PRINT Bin(-9):; Bin(-9) PRINT Bin(Lsl(-9, 1)):; Bin(Lsl(-9, 1)) PRINT Bin(Lsr(-9, 1)):; Bin(Lsr(-9, 1)) Bin(-9

Re: [Gambas-user] Bit manipulation functions

2010-11-20 Thread Jussi Lahtinen
because lsr processes 32 bits of the short -9 and not 64 bits of the long binary number? Yes, -9 is considered as short. Try: ? bin(lsr(clng(-9),1), 64) 0011 Jussi

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-17 Thread Jussi Lahtinen
But then I don't understand why Finally exist... At least that test function is equal without it. Is there proper usage for it, or is it for historical etc reasons? Finally exists so that you can have some code that is always executed at the end of the function, even if there was an

Re: [Gambas-user] GambasTester 0.9.9

2010-11-17 Thread Jussi Lahtinen
More errors fixed from GambasTester, and now self test ignores comment lines. Jussi On Mon, Nov 15, 2010 at 23:02, Jussi Lahtinen jussi.lahti...@gmail.comwrote: OK, these are not the errors I meant... These are obviously my errors. I fixed Format$ to be compared against Str$(). There might

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-16 Thread Jussi Lahtinen
But then I don't understand why Finally exist... At least that test function is equal without it. Is there proper usage for it, or is it for historical etc reasons? BTW. You didn't get errors from any date commands? Nor crash from line 1038 of mTest? I'll send logs about that crash later. Jussi

[Gambas-user] GambasTester 0.9.9

2010-11-15 Thread Jussi Lahtinen
Hi! My quickdirty side project for Gambas 3 is now ready to be share. It makes some seemingly stupid and some, actually stupid tests, to confirm that current revision works. It is far from perfect, but better than nothing. I hope people keep on improving this. There are still few untested commands

Re: [Gambas-user] GambasTester 0.9.9

2010-11-15 Thread Jussi Lahtinen
OK, these are not the errors I meant... These are obviously my errors. I fixed Format$ to be compared against Str$(). There might be other similar errors too... Jussi 2010/11/15 Benoît Minisini gam...@users.sourceforge.net If Format$(Pi, #.##) 3.14 Then Return 85 Endif this test

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-14 Thread Jussi Lahtinen
More... ? Week(07/24/2005) 30 Should be 29. Jussi On Sat, Nov 13, 2010 at 19:36, Jussi Lahtinen jussi.lahti...@gmail.comwrote: More... Dim TestSingle As Single Dim pp As Pointer TestSingle = 33.1 pp = VarPtr(TestSingle) SinglePtr(pp) = 33.1 is False! Gives -2... Jussi

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-14 Thread Jussi Lahtinen
TestErrorManagment(iWhich As Integer) As Integer Dim iError As Integer If iWhich = 1 Then iError = 1 / 0 Else iError = 20 Endif Finally Inc iError Return iError Catch iError = 3 End Jussi On Sun, Nov 14, 2010 at 15:02, Jussi Lahtinen jussi.lahti...@gmail.comwrote: More... ? Week(07/24/2005

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-13 Thread Jussi Lahtinen
More... Dim TestSingle As Single Dim pp As Pointer TestSingle = 33.1 pp = VarPtr(TestSingle) SinglePtr(pp) = 33.1 is False! Gives -2... Jussi On Fri, Nov 12, 2010 at 23:44, Jussi Lahtinen jussi.lahti...@gmail.comwrote: I'll send my whole project to you later. According

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-12 Thread Jussi Lahtinen
I will look at the log, but I don't understand what you did *exactly* to get the crash. That is why I wrote elusive... I can't figure out what exactly causes this crash. But copypaste this to IDE console; ? bin(rol(1073741784+ shl(9,2) + shr(24,3),X ),32) Then replace X with some random

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-12 Thread Jussi Lahtinen
, so this is seems to be precision problem. Is this OK? Jussi On Fri, Nov 12, 2010 at 17:18, Jussi Lahtinen jussi.lahti...@gmail.comwrote: I will look at the log, but I don't understand what you did *exactly* to get the crash. That is why I wrote elusive... I can't figure out what exactly

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-12 Thread Jussi Lahtinen
I'll send my whole project to you later. According to documentation this should yield True. ? IsBlank( \\t) I got always False... BTW. I'll check all math functions against wolfram|Alpha, so sometimes I'm not sure where to put limit of acceptable accuracy. Jussi 2010/11/12 Benoît Minisini

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-12 Thread Jussi Lahtinen
I'll send my whole project to you later. According to documentation this should yield True. ? IsBlank( \\t) I got always False... It's a typo mistake. Read: IsBlank( \t) OK. BTW. I'll check all math functions against wolfram|Alpha, so sometimes I'm not sure where to put limit

Re: [Gambas-user] string operator ==

2010-11-10 Thread Jussi Lahtinen
There is other similar bug or non-convinient feature. IF NOT 1 = 2 THEN PRINT This is never printed ENDIF IF NOT 1 = 1 THEN PRINT This is also never printed ENDIF IF NOT (1 = 2) THEN PRINT This however works ENDIF Tested with Gambas 2.21 and with Gambas 3 rev 3281. @ Ubuntu 10.04 64bit Jussi

Re: [Gambas-user] string operator ==

2010-11-10 Thread Jussi Lahtinen
OK, makes sense. Though there should be warning in documentation (to NOT section and to Differences From Visual Basic). And maybe compiler warning? Jussi 2010/11/10 Benoît Minisini gam...@users.sourceforge.net There is other similar bug or non-convinient feature. IF NOT 1 = 2 THEN

Re: [Gambas-user] MOD arithetic operator

2010-11-09 Thread Jussi Lahtinen
Sorry about nitpicking... but modulo, integer division, addition, subtraction are operators. MOD, %, DIV, + , - are called operator symbols, or just symbols. Jussi On Tue, Nov 9, 2010 at 14:05, user demosthen...@gmail.com wrote: In my opinion that is correct choice. Because if you remove

Re: [Gambas-user] IDE crash with browse

2010-11-07 Thread Jussi Lahtinen
same line. Jussi On Fri, Oct 15, 2010 at 18:01, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Hi! Way to reproduce the problem: 1. Open search window 2. type some word for search 3. click browse 4. press arrow key to right or left Reason: If gvwFind is not in focus

Re: [Gambas-user] how to apply a revision

2010-11-05 Thread Jussi Lahtinen
I'm not sure I understand right... but. You probably want to download whole source of development version. Read from here what you need and how to compile: http://gambas.sourceforge.net/en/download.html http://gambasdoc.org/help/install?viewen Jussi On Fri, Nov 5, 2010 at 16:38, Daniel Vanhee

[Gambas-user] .gambas folder?

2010-11-03 Thread Jussi Lahtinen
Hi! I'm writing backup script that excludes gambas executable, but exclude option doesn't make difference between .gambas folder and *.gambas files. So, what is .gambas folder for? For debugging symbols? Jussi -- Achieve

Re: [Gambas-user] .gambas folder?

2010-11-03 Thread Jussi Lahtinen
Ok, so no need to back up them, thanks! Jussi 2010/11/3 Benoît Minisini gam...@users.sourceforge.net Hi! I'm writing backup script that excludes gambas executable, but exclude option doesn't make difference between .gambas folder and *.gambas files. So, what is .gambas folder for? For

Re: [Gambas-user] Under construction or bug?

2010-11-02 Thread Jussi Lahtinen
Class: *''This is test variable* *Public* Test *As* Integer *''This is test variable* *''This is test variable* Form: *Public Sub *Form_Open*()* *Dim* aa *As New* Class1 aa*.* --- When I write this far, I expect to see This is test variable in help window, instead of No help found.. *End*

Re: [Gambas-user] Under construction or bug?

2010-11-02 Thread Jussi Lahtinen
Source attached, if needed for some reason. Jussi On Tue, Nov 2, 2010 at 19:49, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Class: *''This is test variable* *Public* Test *As* Integer *''This is test variable* *''This is test variable* Form: *Public Sub *Form_Open*()* *Dim* aa

Re: [Gambas-user] Bug with transparent pictures

2010-10-26 Thread Jussi Lahtinen
wrote: Well i don't know why your are using a picture to draw on a drawing area... but i suspect there a a reason to that :) it work well for me. on the same revision on ubuntu 10.10 64 2010/10/25 Jussi Lahtinen jussi.lahti...@gmail.com: Hmmm I don't understand. I don't need alpha mask

[Gambas-user] Bug with transparent pictures

2010-10-25 Thread Jussi Lahtinen
Hi! See attachments. Gambas3 rev 3268 @ Ubuntu 10.04 64bit Jussi DrawingAreaBug-0.0.1.tar.gz Description: GNU Zip compressed data attachment: Screenshot-DrawingAreaBug.png-- Nokia and ATT present the 2010 Calling All

Re: [Gambas-user] Bug with transparent pictures

2010-10-25 Thread Jussi Lahtinen
I tried to add line (tmp is picture): tmp.Fill(Color.Transparent) But result is not much better, all I get is white background, not transparent. Jussi 2010/10/25 Benoît Minisini gam...@users.sourceforge.net Hi! See attachments. Gambas3 rev 3268 @ Ubuntu 10.04 64bit Jussi This is

Re: [Gambas-user] Bug with transparent pictures

2010-10-25 Thread Jussi Lahtinen
Hmmm I don't understand. I don't need alpha mask, just transparent mask. I need to draw completely opaque text on picture (and arrow). Jussi 2010/10/25 Benoît Minisini gam...@users.sourceforge.net I tried to add line (tmp is picture): tmp.Fill(Color.Transparent) But result is not

Re: [Gambas-user] Beep?

2010-10-19 Thread Jussi Lahtinen
Some distributions seems to have beep command also. If so, then SHELL beep. Jussi 2010/10/19 Benoît Minisini gam...@users.sourceforge.net SHELL echo -e \\\007\ /dev/tty10 I think I got that from this forum. bbb888 wrote: Pretty simple? How can I make the computer go beep

Re: [Gambas-user] Form with parameters

2010-10-18 Thread Jussi Lahtinen
Dim MyForm as New SomeForm MyForm.MyVariable1 = Something MyForm.MyVariable2 = SomethingElse ... MyFrom.Showmodal() Jussi On Mon, Oct 18, 2010 at 17:21, Biro Zoltan office.zol...@gmail.com wrote: HI, Can I make forms with parameters passed from the main form? Normally I use the form

Re: [Gambas-user] Search window behavior in Gambas3

2010-10-16 Thread Jussi Lahtinen
I think this is good idea. Or maybe Ctrl + F should have flip-flop behaviour to hide/show search window. Jussi On Sat, Oct 16, 2010 at 13:20, Ron r...@cyberjunky.nl wrote: I find the behavior of the new search/replace window in Gambas3 a bit annoying sorry. Either it's to small and not

Re: [Gambas-user] Under construction or bug?

2010-10-15 Thread Jussi Lahtinen
test as someclass test.somevariabl... 2010/10/14 Jussi Lahtinen jussi.lahti...@gmail.com: Help line feature seems not to work correctly with recent revision. If I type: Dim test as someclass test.somevariabl... I always get No help found. Gambas 3 rev 3265 @Ubuntu 10.04 64bit

[Gambas-user] IDE crash with browse

2010-10-15 Thread Jussi Lahtinen
Hi! Way to reproduce the problem: 1. Open search window 2. type some word for search 3. click browse 4. press arrow key to right or left Reason: If gvwFind is not in focus, it has no current row, ie gvwFind.Row = -1. Crash when; hFind = $aBrowse[gvwFind.Row] @ Public Sub gvwFind_Select()

Re: [Gambas-user] IDE crash with browse

2010-10-15 Thread Jussi Lahtinen
gvwFind.Column = 2 would be more convenient as search string can be found multiple times from same line. Jussi On Fri, Oct 15, 2010 at 18:01, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Hi! Way to reproduce the problem: 1. Open search window 2. type some word for search 3. click browse

Re: [Gambas-user] Gambas and Mobiles, Symbian

2010-10-14 Thread Jussi Lahtinen
http://gambasdoc.org/help/doc/distro?enview Jussi On Thu, Oct 14, 2010 at 13:04, user demosthen...@gmail.com wrote: Hi, i wander if it is possible to run Gambas projects to mobiles with symbian S60 like nokia mobiles?

[Gambas-user] Under construction or bug?

2010-10-14 Thread Jussi Lahtinen
Help line feature seems not to work correctly with recent revision. If I type: Dim test as someclass test.somevariabl... I always get No help found. Gambas 3 rev 3265 @Ubuntu 10.04 64bit Jussi -- Beautiful is writing

Re: [Gambas-user] Error after project is compiled

2010-10-08 Thread Jussi Lahtinen
I have used these commands to clear old installation. *sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3* In fact I have this on script for compiling Gambas: *#!/bin/sh sudo rm -f

Re: [Gambas-user] Error after project is compiled

2010-10-08 Thread Jussi Lahtinen
Maybe you mix up Jussi and Jason... I posted this just as a tip. Jussi 2010/10/8 Benoît Minisini gam...@users.sourceforge.net I have used these commands to clear old installation. *sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 sudo rm -rf

Re: [Gambas-user] Gambas app run as root

2010-10-05 Thread Jussi Lahtinen
I recompiled Gambas2 and it still doesn't work. So, I run this project with gdb and I find something very worrying. I edited that project so that line; *hProcess = SHELL su -c 'ls /root' FOR INPUT OUTPUT* is now: *hProcess = SHELL sudo whoami FOR INPUT OUTPUT* ~/Desktop/su$ gbc2 -agpmt

Re: [Gambas-user] Gambas app run as root

2010-10-05 Thread Jussi Lahtinen
!!? Jussi On Tue, Oct 5, 2010 at 20:34, Jussi Lahtinen jussi.lahti...@gmail.comwrote: I recompiled Gambas2 and it still doesn't work. So, I run this project with gdb and I find something very worrying. I edited that project so that line; *hProcess = SHELL su -c 'ls /root' FOR INPUT OUTPUT

Re: [Gambas-user] Textbox - Valuebox

2010-10-04 Thread Jussi Lahtinen
NewTextBox.SetFocus() ? Jussi On Mon, Oct 4, 2010 at 15:55, Biro Zoltan office.zol...@gmail.com wrote: Thank you very much Johny! BUT! I can evaluate the key pressed with keypress event, but I cannot make the cursor to leave this textbox and to move to the next textbox. My example:

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
I looked your example just for interest. It doesn't seem to work with Ubuntu 10.04 64bit. There are two issues, maybe something with my system... This is first time I used *su* (normally I use sudo) on this computer, and it doesn't work... *su -c 'whoami'* gives; *su: Authentication failure*

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
from gambas System error. Bad file descriptor. Error is given from line: *PRINT #hProcess, TextBox1.Text* Jussi On Sun, Oct 3, 2010 at 18:18, Stefano Palmeri rospolo...@tiscali.it wrote: Il domenica 3 ottobre 2010 15:04:15 Jussi Lahtinen ha scritto: I looked your example just for interest

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
It is attached to first mail from Stefano. Jussi 2010/10/3 Benoît Minisini gam...@users.sourceforge.net Il domenica 3 ottobre 2010 18:46:38 Jussi Lahtinen ha scritto: No, with Ubuntu 10.04 it does not work. Textbox.Text is , because shell is executed before textbox is even shown

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
OK, here it is. Jussi 2010/10/3 Benoît Minisini gam...@users.sourceforge.net It is attached to first mail from Stefano. Jussi I didn't receive the first mail from Stefano, strange... -- Benoît Minisini

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
Works as excepted, no surprises here. Problem is how to make shell wait for input. Jussi Please, try the following code and tell us if it works for you: PRIVATE $hprocess AS Process PUBLIC SUB Form_Open() DIM pwd AS String pwd = InputBox(Type your root password, Root privileges needed)

[Gambas-user] Serialization

2010-10-03 Thread Jussi Lahtinen
Hi! I spotted these lines from svn log: [INTERPRETER] * NEW: The READ instruction can read arrays and collections with 'AS Object' as well as 'AS Variant'. [INTERPRETER] * NEW: WRITE and READ instructions can handle collections and arrays. Call that serialization. Can you give me example

Re: [Gambas-user] Question about date conversion in Gambas v2

2010-09-27 Thread Jussi Lahtinen
Or use shell with date +%s. Jussi 2010/9/27 Benoît Minisini gam...@users.sourceforge.net Hi Benoit, I have just a question about the possibility to convert in Gambas v2 a variable in format Date to a value of this date in number of seconds like in Unix command ? In my projet i

Re: [Gambas-user] How to open a form in modal mode?

2010-09-22 Thread Jussi Lahtinen
Never seen that problem... can you send project source to demonstrate this problem? Jussi 2010/9/22 Phạm Quang Dương soleil...@gmail.com I know that this question is basic. But when I try this from Form1 Form2.OpenDialog() or Form2.OpenModal() Some controls on Form2 doesn't work

Re: [Gambas-user] Bug with Gambas3 search window

2010-09-22 Thread Jussi Lahtinen
I didn't notice that there is new revision. Today I tested rev 3233, and it worked correctly. Thanks! Jussi 2010/9/22 Benoît Minisini gam...@users.sourceforge.net Way to reproduce bug. 1. Open any project. 2. Write line that has no other instance in that project. 3. Search that line

[Gambas-user] Gambas 3 difficulties

2010-09-21 Thread Jussi Lahtinen
Hi! I just noticed some behaviour of message.question. If you hit ESC or close it (x), it answers always last button index. Example message.question(?,a,b) would answer 2. Nothing wrong with that, I just wasn't aware of it, and now I have to change those all. But replace feature doesn't work

[Gambas-user] Bug with Gambas3 search window

2010-09-21 Thread Jussi Lahtinen
Way to reproduce bug. 1. Open any project. 2. Write line that has no other instance in that project. 3. Search that line with browse feature. 4. Delete that line. 5. Move search window. Result, IDE crashes: This application has raised as unexpected error and must abort. [21] Out of bounds

Re: [Gambas-user] Testing Gambas 2.99

2010-09-17 Thread Jussi Lahtinen
Colorbutton bug confirmed with Gambas 3 rev 3199, Ubuntu 10.04 64bit. Only GTK+ is affected. Jussi On Fri, Sep 17, 2010 at 17:27, craf p...@vtr.net wrote: -Mensaje original- De: craf p...@vtr.net Reply-to: mailing list for gambas users gambas-user@lists.sourceforge.net Para:

Re: [Gambas-user] Suggestions 4 new keywords

2010-09-17 Thread Jussi Lahtinen
Z means set of integers... Jussi On Fri, Sep 17, 2010 at 09:33, Rolf-Werner Eilert eilert-sprac...@t-online.de wrote: http://old.nabble.com/Ideas4Gambas-to28782834.html What does the Z stand for?   A = {Z; x -3; x 5} =~ {-2,-1,0,1,2,3,4} Just because I'm interested in the syntax ;-)

Re: [Gambas-user] An easy way to document a Gambas program?

2010-09-14 Thread Jussi Lahtinen
Nice, just learned this! Very useful! Is it possible to do multi lined help lines? Now they are concatenated without newlines: ''Line1 ''Line2 -- Line1 Line2 Jussi On Tue, Sep 14, 2010 at 18:03, Fabien Bodard gambas...@gmail.com wrote: hum... there is a way to document you class in code with

Re: [Gambas-user] Ubuntu 9.04 - I have error while compiling gambas 3

2010-09-09 Thread Jussi Lahtinen
Instead of ./configure try ./configure -C. Jussi On Thu, Sep 9, 2010 at 18:30, Daniel Rojas lord@gmail.com wrote: Hi all, I'm tryinh to compile gamba3, revision 3203. I do this: $ mkdir gambas3 $ cd gambas3 $ mkdir trunk $ svn checkout

Re: [Gambas-user] Ubuntu 9.04 - I have error while compiling gambas 3

2010-09-09 Thread Jussi Lahtinen
don't know. My PC is a little old, and it can't run a newer version of Ubuntu. :-( Daniel Quintero desde la Ciudad de México On Thu, Sep 9, 2010 at 1:35 PM, Jussi Lahtinen jussi.lahti...@gmail.com wrote: Instead of ./configure try ./configure -C. Jussi On Thu, Sep 9, 2010 at 18

Re: [Gambas-user] Ubuntu 9.04 - I have error while compiling gambas 3

2010-09-09 Thread Jussi Lahtinen
(./configure -C) output.txt 21 Jussi On Fri, Sep 10, 2010 at 00:22, Jussi Lahtinen jussi.lahti...@gmail.comwrote: I think you should send whole output of ./configure -C. Jussi On Thu, Sep 9, 2010 at 23:51, Daniel Rojas lord@gmail.com wrote: Hi Jussi, I try the solution that you

Re: [Gambas-user] Bugs - Gambas3

2010-09-08 Thread Jussi Lahtinen
Out.txt rejected as too big, so new try... Jussi On Wed, Sep 8, 2010 at 15:31, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Here: warning: unable to load Qt translation: en_GB.utf8 Stock.AddPath.80: gnome:/usr/share/icons/Human/2x2!1 Stock.AddPath.80: gnome:/usr/share/icons/Tangerine/2x2

Re: [Gambas-user] Bugs - Gambas3

2010-09-08 Thread Jussi Lahtinen
No change... Jussi 2010/9/8 Benoît Minisini gam...@users.sourceforge.net Out.txt rejected as too big, so new try... Jussi Thanks. Is it better with the very last revision? -- Benoît Minisini -- This

Re: [Gambas-user] How to get the focus back?

2010-09-07 Thread Jussi Lahtinen
I tested your code with Gambas 3 revision 3119 @ Ubuntu 10.04 64bit. And I couldn't reproduce the problem. FText.form doesn't lost focus after error message. However TextBox1 on it does, but that is correct behaviour (TextBox1.SetFocus is commented out). Jussi On Tue, Sep 7, 2010 at 21:59,

Re: [Gambas-user] Bugs - Gambas3

2010-09-07 Thread Jussi Lahtinen
Strange icons, see attachment. Gambas 3 revision 3196 @ Ubuntu 10.04. Jussi On Tue, Sep 7, 2010 at 20:38, Fabien Bodard gambas...@gmail.com wrote: so it need to work ... try the last revision please 2010/9/7 craf p...@vtr.net: -Mensaje original- De: Fabien Bodard

Re: [Gambas-user] To wish list...

2010-09-04 Thread Jussi Lahtinen
OK, doesn't matter, I'll do it other way. Thanks for trying! Jussi 2010/9/4 Benoît Minisini gam...@users.sourceforge.net: On 26/08/10 03:30, Jussi Lahtinen wrote: Hi! I would like to have TimeLeft property to timer object. It is only missing thing which forces me to write my own delay

Re: [Gambas-user] Create Event

2010-09-03 Thread Jussi Lahtinen
If you forget to specify the Name part, your object will never raise events! http://gambasdoc.org/help/lang/new Jussi On Fri, Sep 3, 2010 at 09:49, Reynaldi Jansen reynaldi.jan...@gmail.com wrote: Hello again. I have a form and textarea with tabstrip as parent... Then i create

Re: [Gambas-user] Your energy

2010-09-02 Thread Jussi Lahtinen
True, maybe Benoit means twins in English! Jussi On Thu, Sep 2, 2010 at 00:19, Dag Jarle Johansen dag.jarle.johan...@norarg.com wrote: Hola, Benoit. this is no mail because of things not happening - this is a mail of admiretance, I was a little silent in the last months, because I have to

[Gambas-user] To wish list...

2010-08-25 Thread Jussi Lahtinen
Hi! I would like to have TimeLeft property to timer object. It is only missing thing which forces me to write my own delay function. So, nothing very important, but if this is easy to implement... Jussi -- Sell apps to

Re: [Gambas-user] To wish list...

2010-08-25 Thread Jussi Lahtinen
This time I would use it with trayicon (mouse over) to inform user about when next event is going to occur. There was an other reason long time ago when I needed that... I just couldn't remember. I wonder if it was something more general... Jussi 2010/8/25 Benoît Minisini

Re: [Gambas-user] Clipboard problem in Gambas

2010-08-24 Thread Jussi Lahtinen
I have noticed it with Ubuntu also. I use Parcellite clipboard manager, I'm not sure if it matters. That bug is rare and I have not figured out how to reproduce it. Jussi On Tue, Aug 24, 2010 at 00:51, richard terry rte...@pacific.net.au wrote: On Tuesday 24 August 2010 01:03:43 Benoît

Re: [Gambas-user] Problem saving change in a form

2010-08-23 Thread Jussi Lahtinen
I tested it with same revision of Gambas, @ Ubuntu 10.04 64bit, and I couldn't reproduce the problem. Jussi On Mon, Aug 23, 2010 at 12:30, Gaël Le Hec'H gael.leh...@gmail.com wrote: hi, I extracted the form from my project and put in a blank project. If I do any modification and try to save,

Re: [Gambas-user] Bug in TrayIcon

2010-08-23 Thread Jussi Lahtinen
Yes, I modified startup, now there is 10s delay before starting gbr2. And everything works. Maybe I should write function to check if desktop panel is started or not. BTW. Does anyone know why sleep 10 gbr2 ... doesn't work? It works in terminal, but in System -- Preferences -- Startup

[Gambas-user] Bug in TrayIcon

2010-08-17 Thread Jussi Lahtinen
Hi! TrayIcon seems to work perfectly, until program that uses it, is started at startup of OS. Program is started with following command; gbr2 /home/MyName/ProgramsName.gambas Program has following code: PUBLIC Kuvake AS NEW TrayIcon AS TrayIkoni PUBLIC SUB Form_Open() Kuvake.Picture =

Re: [Gambas-user] Bug affecting to ShowModal

2010-08-15 Thread Jussi Lahtinen
.ShowModal() = 666 Then Form2 = New FForm2 Form2.ShowModal() Endif End At least this workaround works with revision 3117. Jussi On Sun, Aug 15, 2010 at 01:18, Jussi Lahtinen jussi.lahti...@gmail.com wrote: Unfortunately not entirely. Invalid object from next showmodal form invoke. See

Re: [Gambas-user] Bug affecting to ShowModal

2010-08-15 Thread Jussi Lahtinen
Yes, after I wrote my mail, I figured it may be the case. Problem is that my program is oriented to module. It invokes forms when needed and shows with them what happens inside of module. Project I'm working on is big, old and messy. It is ported from vb6. Now I'm trying to make code more clear,

Re: [Gambas-user] Bug affecting to ShowModal

2010-08-15 Thread Jussi Lahtinen
Because of messiness, that program could do anything weird (clarification is not ready yet). Problem occurs when program is closing. Here: ==4946== Memcheck, a memory error detector ==4946== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==4946== Using Valgrind-3.6.0.SVN-Debian

Re: [Gambas-user] Bug affecting to ShowModal

2010-08-15 Thread Jussi Lahtinen
Everything seems to work correctly now. Thanks! Jussi 2010/8/15 Benoît Minisini gam...@users.sourceforge.net: Because of messiness, that program could do anything weird (clarification is not ready yet). Problem occurs when program is closing. Here: ==4946== Memcheck, a memory error

[Gambas-user] Signal 11 from programming error

2010-08-14 Thread Jussi Lahtinen
Hi! I had error in way I calculated position in array, and it revealed error in it's handling. Way to reproduce problem: Private aa As New Integer[] Public Sub Form_Open() aa.Fill(1, -1, 1) End gdb outputs: (gdb) run Starting program: /usr/local/bin/gbx3 -p [Thread debugging using libthread_db

[Gambas-user] Bug affecting to ShowModal

2010-08-14 Thread Jussi Lahtinen
Hi! If form is invoked with ShowModal in certain situation it prevents form to close -- hang. See attached project. Gambas 3 revision 3109 @ Ubuntu 10.04 64bit Jussi FormTest-0.0.1.tar.gz Description: GNU Zip compressed data

Re: [Gambas-user] Signal 11 from programming error

2010-08-14 Thread Jussi Lahtinen
Works correctly now. Jussi 2010/8/14 Benoît Minisini gam...@users.sourceforge.net: Hi! I had error in way I calculated position in array, and it revealed error in it's handling. Way to reproduce problem: Private aa As New Integer[] Public Sub Form_Open() aa.Fill(1, -1, 1) End gdb

Re: [Gambas-user] Bug affecting to ShowModal

2010-08-14 Thread Jussi Lahtinen
Unfortunately not entirely. Invalid object from next showmodal form invoke. See attached project. Jussi 2010/8/15 Benoît Minisini gam...@users.sourceforge.net: Hi! If form is invoked with ShowModal in certain situation it prevents form to close -- hang. See attached project. Gambas 3

Re: [Gambas-user] gb.image: how to keep a rotated image centered

2010-08-06 Thread Jussi Lahtinen
There is probably more efficient ways, but quick and dirty... Here: DIM background AS Image = Image.Load(kuva1.jpg) DIM bg2 AS Image DIM f AS Float DIM ii AS Integer DIM jj AS Integer ii = background.Width / 2 jj = background.Height / 2 FOR f = 0 TO 6.2831853 STEP 0.01

Re: [Gambas-user] Gambas3 project - hidden sources directory. Why?

2010-07-25 Thread Jussi Lahtinen
What? Is there any other ways to hide file/folder in Linux? Jussi On Sun, Jul 25, 2010 at 15:53, Fabien Bodard gambas...@gmail.com wrote: it's not because the directory is hidden that you are not allowed to see and modify the sources... in fact in reallity the directory is not hidden but

Re: [Gambas-user] Process output to TextArea Fail

2010-06-30 Thread Jussi Lahtinen
Please elaborate. You have noticed bug in textarea component? What is your gambas version and operating system? Are you using GTK+ or Qt? Jussi On Tue, Jun 29, 2010 at 23:35, Pablo Ontivero pa...@lanzate.com wrote: Hello, the question is, when i try to print the output of the process on a

Re: [Gambas-user] gambas3 search/replace global - really inconvenient

2010-06-30 Thread Jussi Lahtinen
Yes, but how can I detect a binary file? I'm not sure what would be easy way to do it. Gedit gives following error message from binary files: gedit has not been able to detect the character encoding. Please check that you are not trying to open a binary file. Select a character encoding

Re: [Gambas-user] gambas3 search/replace global - really inconvenient

2010-06-30 Thread Jussi Lahtinen
Yes, quick and dirty, not good way, but it works. What was the question..? Jussi On Wed, Jun 30, 2010 at 19:26, Ron r...@cyberjunky.nl wrote: With 'file' command This e-mail is sent from my Google phone. Kind regards, Ron. On Jun 30, 2010 6:02 PM, Benoît Minisini

Re: [Gambas-user] Process output to TextArea Fail

2010-06-30 Thread Jussi Lahtinen
You wrote app fails, how? In what way? There is more than 255 instances on that list, but not on textarea? Crash? Jussi On Wed, Jun 30, 2010 at 20:41, Pablo Ontivero pa...@lanzate.com wrote: Well, my system is Ubuntu 10.04, the version of gambas is the last release version on Ubuntu repo

Re: [Gambas-user] gambas3 search/replace global - really inconvenient

2010-06-29 Thread Jussi Lahtinen
I guess what I'm suggesting is that within the same searchbox that pops up when you search a module, it has an option of 'search globally', and that then - F3 would just move to the next occurrence in the project, not just continue going and look for everything. I think that is good idea.

<    9   10   11   12   13   14   15   16   17   >