Re: [Gambas-user] static const?

2010-04-14 Thread Doriano Blengino
Fabián Flores Vadell ha scritto: 2010/4/13 Jussi Lahtinenjussi.lahti...@gmail.com: Just in case: REPEAT b = TabStrip3.Count ' In fact, this does nothing usefull INC a UNTIL a TabStrip3.Count OR TabStrip3[a].Caption = IdCaption This doesn't make same

Re: [Gambas-user] Showing the Form's Gui

2010-04-14 Thread Jorge Carrión
Ricardo: Could you post a example of your open forms method? I'm very interested on it. It sound like something I have searching for a long time. Gracias Jorge 2010/4/13 Ricardo Díaz Martín oceanosoftlapa...@gmail.com If It can help to someone, this is I always do: When I'm going to open a

Re: [Gambas-user] Showing the Form's Gui

2010-04-14 Thread Caveat
Hi Jorge, While we wait to see if Ricardo wants to share his open forms method (I'm also interested to see it), here's some code I have used before (see attachment) where the opening/closing of forms is handled by a module, which I've called RunController. The module is set as the Startup Class

Re: [Gambas-user] static const?

2010-04-14 Thread Les Hardy
The C language, in facts, does not even have CONSTs - it goes with #define. So, it would be correct to forbid STATIC when declaring CONSTs. Surely this is not correct. ANSI C uses const, and C++ also uses the const keyword. #define (a preprocessor directive) is a relic from old C, and const

Re: [Gambas-user] static const?

2010-04-14 Thread Doriano Blengino
Les Hardy ha scritto: The C language, in facts, does not even have CONSTs - it goes with #define. So, it would be correct to forbid STATIC when declaring CONSTs. Surely this is not correct. ANSI C uses const, and C++ also uses the const keyword. #define (a preprocessor directive)

Re: [Gambas-user] Showing the Form's Gui

2010-04-14 Thread Jorge Carrión
Caveat: Thank you very much for you module. I'll read it carefully. Regards 2010/4/14 Caveat gam...@caveat.demon.co.uk Hi Jorge, While we wait to see if Ricardo wants to share his open forms method (I'm also interested to see it), here's some code I have used before (see attachment) where

Re: [Gambas-user] static const?

2010-04-14 Thread Fabián Flores Vadell
2010/4/14 Doriano Blengino doriano.bleng...@fastwebnet.it: Back to the beginning: a CONST declaration is something that uses no memory, so it can not have instances, and hence it can not be STATIC. On the other hand, a CONST is always static, because the effective data it describes reside in

Re: [Gambas-user] static const?

2010-04-14 Thread Les Hardy
If you feel hurt I am sorry for that, it was not my intention to hurt you, and I have no wish to prove you wrong. I do still stand by my statement. Regards Les Hardy Doriano Blengino wrote: Les Hardy ha scritto: The C language, in facts, does not even have CONSTs - it goes

Re: [Gambas-user] Showing the Form's Gui

2010-04-14 Thread Ricardo Díaz Martín
This is a gb2 project example about we were talking. Excuse me but is in Spanish (I got no enough time to do something better than this). I was cutting/pasting for a while and deleting extra thinks to get this example. If not exactly the same I use but I hope It can help you. Caveat, I need an

Re: [Gambas-user] static const?

2010-04-14 Thread Doriano Blengino
Fabián Flores Vadell ha scritto: 2010/4/14 Doriano Blenginodoriano.bleng...@fastwebnet.it: Back to the beginning: a CONST declaration is something that uses no memory, so it can not have instances, and hence it can not be STATIC. Thanks Doriano. I understand that. My question was

Re: [Gambas-user] Showing the Form's Gui

2010-04-14 Thread Fabien Bodard
i don't know if richard want the user to be able to do anything on the showed form before the tatal loading ... the better way will be to do the loading in the timer by use the timer.trigger function the form .enabled will be set to false and the timer just set the form.enabled to true when

Re: [Gambas-user] static const?

2010-04-14 Thread Doriano Blengino
Errata corrige: Finally, your last lines of code do not work: Yes, it works. PRIVATE FUNCTION ScanTab(IdCaption AS String) AS Byte DIM a AS Byte = 0 WHILE (aTabStrip1.Count - 1) AND (TabStrip1[a].Text IdCaption) INC a WEND

Re: [Gambas-user] There are errors in the class Key , and in the events KeyPress / KeyRelease?

2010-04-14 Thread Benoît Minisini
Key.Text is not guaranteed to be set during a KeyRelease. (Do you means readed? Ok, you are look at from compiler dev perspective. Right?) Why it's in that way? Because Qt loses some information needed by the KeyRelease event when some compound keys are used. -- Benoît Minisini

Re: [Gambas-user] static const?

2010-04-14 Thread Fabián Flores Vadell
2010/4/14 Doriano Blengino doriano.bleng...@fastwebnet.it: And here we return on your idea about a good compiler - and it is mine idea too. I don't want judge if the Gambas compiler is good or not, I feel that I don't have the knowledge or experience required for do that. But, I shared with you

Re: [Gambas-user] static const?

2010-04-14 Thread Fabián Flores Vadell
2010/4/14 Doriano Blengino doriano.bleng...@fastwebnet.it: Errata corrige: May be that I am missing something, but... how can you say that it works if it omits to test the last item? Time later, driving to home and still thinking about this routine, I finally recalled what you wanted to

Re: [Gambas-user] There are errors in the class Key, and in the events KeyPress / KeyRelease?

2010-04-14 Thread Fabián Flores Vadell
2010/4/14 Benoît Minisini gam...@users.sourceforge.net: Key.Text is not guaranteed to be set during a KeyRelease. But, refering to the values provided by the key class, is guaranted their availability within the routines that are called from KeyPress? Why it's in that way? Because Qt loses