From gambas at ...1... Sun Jul 14 12:13:22 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sun, 14 Jul 2002 10:13:22 +0000 Subject: [Gambas-user] Mailing list for gambas users Message-ID: <200207141013.22051.gambas@...1...> ---------------------------------------------------------------------- ENGLISH VERSION ---------------------------------------------------------------------- Dear Gambas users, I have created a mailing list on Sourceforge.net for you (and me) ! This mailing list will be more practical to emit news on Gambas, to identify and solve problems, and to discuss the present and the future of Gambas with fiery debates. I invite you to subscribe to this mailing list here: https://lists.sourceforge.net/lists/listinfo/gambas-user The next big step for me will be writing a documentation on components, so that those who have C and C++ skills can easily create new components. If I'm jealous of my interpreter ;-), but I know that I cannot create every useful component alone. I must really open my development on that. But after is a subject of debate: a database component, a GTK+ com- -ponent, 64 bits management, new widgets, a XML component, a KDE component... What else ? Thanks to help me to get organized ! Best regards, -- Beno?t Minisini mailto:gambas at ...1... ---------------------------------------------------------------------- VERSION FRANCAISE ---------------------------------------------------------------------- Chers utilisateur de Gambas, J'ai ouvert une liste de diffusion sur Sourceforge destin?e aussi bien ? vous qu'? moi ! Cette liste de diffustion sera plus pratique pour diffuser des nouvelles sur Gambas, pour identifier et r?soudre les probl?mes, et pour discuter du pr?sent et du futur de Gambas dans des d?bats enflamm?s. Je vous invite ? souscrire ? cette liste ? l'adresse suivante : https://lists.sourceforge.net/lists/listinfo/gambas-user La prochaine grosse ?tape pour moi sera la r?daction d'une documentation sur les composants, de telle mani?re que ceux qui savent programmer en C ou en C++ puissent facilement cr?er de nouveaux composants. Je suis jaloux de mon interpr?teur ;-), mais je sais que je ne peux pas cr?er chaque composant qui s'av?re utile tout seul. Je dois r?ellement ouvrir mon d?veloppement sur ce point. Mais la suite est un sujet de d?bat: un composant base de donn?es, un composant GTK+, la gestion du 64 bits, de nouveaux widgets, un composant XML, un composant KDE... Quoi d'autre ? Merci de m'aider ? m'organiser ! Amicalement, -- Beno?t Minisini mailto:gambas at ...1... From elias1 at ...3... Sun Jul 14 23:29:53 2002 From: elias1 at ...3... (ejl) Date: Sun, 14 Jul 2002 17:29:53 -0400 Subject: [Gambas-user] VAL bug Message-ID: <20020714213636.KHWV15346.mta01-srv.alltel.net@...4...> There is still a bug in the VAL function in Gambas-0.34a. <0.20> returns a float (OK) <.20> returns NULL (this should also return a float) I have attached a simple test program. The Gambas IDE editor features copy, cup, and paste don't work when running the Windows Maker desktop or I am doing something wrong. Regards. Elias Livaditis -------------- next part -------------- A non-text attachment was scrubbed... Name: tst.tar.gz Type: application/x-gzip Size: 1233 bytes Desc: not available URL: From heinpol at ...5... Tue Jul 16 09:45:04 2002 From: heinpol at ...5... (NN) Date: Tue, 16 Jul 2002 09:45:04 +0200 Subject: [Gambas-user] just a test Message-ID: <5.1.0.14.0.20020716094427.009ea3d0@...5...> Hello Gambas From stibs at ...6... Tue Jul 16 20:30:42 2002 From: stibs at ...6... (Michael Stibane) Date: Tue, 16 Jul 2002 14:30:42 -0400 Subject: [Gambas-user] Questions about source code Message-ID: <200207161830.g6GIUg320628@...6...> Hi list! I tried to comment the console example. I'm no programmer ... better a preNewbie, please help me out with the questions and false interpretations between the lines of code for my understanding. If I see this I could imagine to have a database component for mysql - simply accessing it via commandline like the bash in this case. STIBS ------------------------------- ' Gambas class file PRIVATE ?hProcess AS Process ' defines the process identificator variable format STATIC PUBLIC SUB Main() ' Main routine declaration DIM hForm AS Form hForm = NEW FConsole hForm.Show ' shows the form END PUBLIC SUB _new() ' on opening the form happens the following EXEC "bash --noediting -i" FOR READ WRITE AS ?hProcess ' executes the bash for rw as our process txtCommand.SetFocus ' sets the focus to the text input line END PUBLIC SUB Form_Close() ' on hitting the close button x ?hProcess.Kill ' the process will be killed END PUBLIC SUB Form_Resize() ' Some screen geometry declarations when the window gets resized txtCommand.Move(0, ME.ClientH - txtCommand.H, ME.ClientW, txtCommand.H) ' the ME.X inherits from the forms geometry txtConsole.Move(0, 0, ME.ClientW, txtCommand.Y) END PUBLIC SUB Process_Write(sStr AS String) ' getting the string sent to the process also in the TextArea displayed txtConsole.Pos = txtConsole.Length ' positions the cursor at the end of the TextArea.Text txtConsole.Insert(Normalize(sStr)) ' Inserting the normalized command into the TextArea Output END PUBLIC SUB Process_Error(sStr AS String) ' getting the error message from process displayed txtConsole.Pos = txtConsole.Length ' positions the cursor at the end of the TextArea.Text txtConsole.Insert(Normalize(sStr)) ' Inserting the normalized Error String into the TextArea Output END PUBLIC SUB Process_Kill() ' No clue if this is needed because it's Form_Close() is already definded '?hProcess = NULL TRY ME.Close ' this is maybe additional when the process dies that the form also dies END PUBLIC SUB txtCommand_Activate() ' So Activate is when Enter is hit? :o) DIM sLig AS String ' defining variable type sLig = txtCommand.Text & gb.NewLine ' The Text written in the textfield plus a new line is submitted to sLig txtConsole.Insert(sLig) ' Hmmm? did I understand Process_Write in the wrong way? txtCommand.Clear ' cleaning ?hProcess.Send(sLig) ' Sending the input to the process END STATIC PRIVATE FUNCTION Normalize(sStr AS String) AS String ' that's the next point I don't understand fully ' Does the process just understand ASCII numbers? DIM sNorm AS String ' normalized String DIM iInd AS Integer ' index # of the characters position in the string DIM iCar AS Integer ' needed for the logic DIM bEsc AS Boolean ' needed for the logic FOR iInd = 1 TO Len(sStr) ' for all character in the strings (input or output) iCar = Asc(sStr, iInd) ' get the ASCII numbers IF iCar = 27 THEN bEsc = TRUE CONTINUE ENDIF IF bEsc THEN IF iCar < 32 THEN bEsc = FALSE CONTINUE ENDIF ' Some logic about the character format ' Where can I read about this? ' Somewhere has to be an ASCII table with numbers where I also find keys like <- or -> ' help me out please! IF iCar < 32 AND iCar <> 10 THEN iCar = 32 ' additional logic sNorm = sNorm & Chr$(iCar) ' the normalized text NEXT RETURN sNorm ' returns the normalized string to the program ... but where is it used? ' I don't see sNorm somewhere else ... am I blind? END Thanx alot! -- Best! STIBS freehosting at ...7... From gambas at ...1... Tue Jul 16 22:46:31 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Tue, 16 Jul 2002 20:46:31 +0000 Subject: [Gambas-user] VAL bug In-Reply-To: <20020714213636.KHWV15346.mta01-srv.alltel.net@...4...> References: <20020714213636.KHWV15346.mta01-srv.alltel.net@...4...> Message-ID: <200207162046.31598.gambas@...1...> Le Dimanche 14 Juillet 2002 21:29, ejl a ?crit : > There is still a bug in the VAL function in Gambas-0.34a. > > <0.20> returns a float (OK) > <.20> returns NULL (this should also return a float) > > I have attached a simple test program. > > The Gambas IDE editor features copy, cup, and paste don't work when running > the Windows Maker desktop or I am doing something wrong. > > Regards. > Elias Livaditis Well, it is not really a bug, since nobody writes 0,20 as ,20 in France :-) But as every language seems to convert floating point number like that, I think I must follow the move ! I will correct that in the next version if you answer me the following questions : ".20" is 0.20, that's OK "2." must be 2, so ? But "." must not be 0 ? But ".0" must be 0 ? -- Beno?t Minisini mailto:gambas at ...1... From gambas at ...1... Tue Jul 16 23:23:32 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Tue, 16 Jul 2002 21:23:32 +0000 Subject: [Gambas-user] Questions about source code In-Reply-To: <200207161830.g6GIUg320628@...6...> References: <200207161830.g6GIUg320628@...6...> Message-ID: <200207162123.32091.gambas@...1...> Le Mardi 16 Juillet 2002 18:30, Michael Stibane a ?crit : > Hi list! Hi you > > I tried to comment the console example. I'm no programmer ... better a > preNewbie, please help me out with the questions and false > interpretations between the lines of code for my understanding. It's a good idea. I'm just going to try to explain you a few things about how to comment code. > > If I see this I could imagine to have a database component for mysql - > simply accessing it via commandline like the bash in this case. Yes. Command line tools is the power of Unix !! But don't worry, a database component for Gambas will come one day ;-) > > STIBS > > ------------------------------- > ' Gambas class file > > PRIVATE ?hProcess AS Process > ' defines the process identificator variable format First, I suggest putting comments before the code they explain. I think it is the tradition. This comment is not necessary. Why ? Because the code is self-descriptive. Such a code must NEVER be commented, because you are creating duplicates. Each time you modify the code, you must modify the comment. Comment ARE part of the program, like lines of code. One of the ten commandments of the programmer must be "do not create duplicates. Never" But, and I can hear your question, why is this line of code self-descriptive ? It is because it is following coding rules in the name of the variable : - "h" tells you that the variable will receive an object handle. - "Process" tells you that it will be a process. - And the type of the variable confirms that it will be an object of Process class. But, and you are going to say that I don't know what I want, you can continue to put comment like that, because it reassures the newbies. I just wanted to display my science ;-) > > STATIC PUBLIC SUB Main() > ' Main routine declaration Self-descriptive ! > DIM hForm AS Form > > hForm = NEW FConsole > hForm.Show > ' shows the form Self-descriptive ! > END > > > PUBLIC SUB _new() > ' on opening the form happens the following The _new method is not executed when you OPEN the form (by calling Show), but when you create the Form (by calling NEW) > EXEC "bash --noediting -i" FOR READ WRITE AS ?hProcess > ' executes the bash for rw as our process > txtCommand.SetFocus > ' sets the focus to the text input line > END > > > PUBLIC SUB Form_Close() > ' on hitting the close button x > ?hProcess.Kill > ' the process will be killed Self-descriptive ! > END > > > > PUBLIC SUB Form_Resize() > ' Some screen geometry declarations when the window gets resized > txtCommand.Move(0, ME.ClientH - txtCommand.H, ME.ClientW, txtCommand.H) > ' the ME.X inherits from the forms geometry What do you want to say ? > txtConsole.Move(0, 0, ME.ClientW, txtCommand.Y) > > END > > > PUBLIC SUB Process_Write(sStr AS String) > ' getting the string sent to the process also in the TextArea displayed > txtConsole.Pos = txtConsole.Length > ' positions the cursor at the end of the TextArea.Text > txtConsole.Insert(Normalize(sStr)) > ' Inserting the normalized command into the TextArea Output > END > > > PUBLIC SUB Process_Error(sStr AS String) > ' getting the error message from process displayed > txtConsole.Pos = txtConsole.Length > ' positions the cursor at the end of the TextArea.Text > txtConsole.Insert(Normalize(sStr)) > ' Inserting the normalized Error String into the TextArea Output > END > > > PUBLIC SUB Process_Kill() > ' No clue if this is needed because it's Form_Close() is already definded > '?hProcess = NULL > TRY ME.Close > ' this is maybe additional when the process dies that the form also dies Yes. The process can die while the form is open, but it can die between the form close and the form deallocation ! > END > > > > PUBLIC SUB txtCommand_Activate() > ' So Activate is when Enter is hit? :o) Yes ! > DIM sLig AS String > ' defining variable type > sLig = txtCommand.Text & gb.NewLine > ' The Text written in the textfield plus a new line is submitted to sLig > txtConsole.Insert(sLig) > ' Hmmm? did I understand Process_Write in the wrong way? No. It is because bash does not echoing the command. > txtCommand.Clear > ' cleaning > ?hProcess.Send(sLig) > ' Sending the input to the process > END > > > STATIC PRIVATE FUNCTION Normalize(sStr AS String) AS String > ' that's the next point I don't understand fully > ' Does the process just understand ASCII numbers? This function is just a quick hack for removing all the non-ASCII characters printed by bash (there are terminal command). Making a real terminal emulator will be far more complex than such a quick example. > > DIM sNorm AS String > ' normalized String > DIM iInd AS Integer > ' index # of the characters position in the string > DIM iCar AS Integer > ' needed for the logic > DIM bEsc AS Boolean > ' needed for the logic > FOR iInd = 1 TO Len(sStr) > ' for all character in the strings (input or output) > iCar = Asc(sStr, iInd) > ' get the ASCII numbers > IF iCar = 27 THEN > bEsc = TRUE > CONTINUE > ENDIF > "bEsc" is a just a quick hack to remove terminal commands : these terminal commands begin with a ESC character (code 27) and seem to ending with a non-ascii characters. Every character between must be discarded ! It is REALLY the perfect example of what nobody should program : a quick and dirty function that does certainly not work in every case :-( > IF bEsc THEN > IF iCar < 32 THEN bEsc = FALSE > CONTINUE > ENDIF > ' Some logic about the character format > ' Where can I read about this? > ' Somewhere has to be an ASCII table with numbers where I also find keys > like <- or -> > ' help me out please! > IF iCar < 32 AND iCar <> 10 THEN iCar = 32 Replace all non-ascii characters by spaces (ASCII code 32) > ' additional logic > sNorm = sNorm & Chr$(iCar) > ' the normalized text > NEXT > > RETURN sNorm > ' returns the normalized string to the program ... but where is it used? > ' I don't see sNorm somewhere else ... am I blind? Maybe ;-) It is a local variable of the function that contains the normalized string. > END > > Thanx alot! -- Beno?t Minisini mailto:gambas at ...1... From gambas at ...1... Tue Jul 16 23:27:54 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Tue, 16 Jul 2002 21:27:54 +0000 Subject: [Gambas-user] Bonjour =?iso-8859-1?q?=E0?= tous Message-ID: <200207162127.54235.gambas@...1...> Hello everybody, There are actually 9 members in the mailing list (me included). But I hope more in the future ! Here are the main things I want to talk about : 1) What I am going to do in Gambas. 2) What I will be able to do in Gambas. 3) What you want to see in Gambas. 4) How non-programmers and non-C/C++-gods can help Gambas. 5) How C/C++ programmers will be able to help Gambas (needs topic 1) I will detail these five points in other mail. I'm too tired this evening to begin a long soliloquy in english... -- Beno?t Minisini mailto:gambas at ...1... From heinpol at ...5... Thu Jul 18 14:39:00 2002 From: heinpol at ...5... (NN) Date: Thu, 18 Jul 2002 14:39:00 +0200 Subject: [Gambas-user] test, sorry Message-ID: <5.1.0.14.0.20020718143836.009f0cf0@...5...> xxxxxxxx From gambas at ...1... Thu Jul 18 22:36:47 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Thu, 18 Jul 2002 20:36:47 +0000 Subject: [Gambas-user] test Message-ID: <200207182036.47276.gambas@...1...> Why dawn does it not work ? -- Beno?t Minisini mailto:gambas at ...1... From heinpol at ...5... Fri Jul 19 14:37:20 2002 From: heinpol at ...5... (NN) Date: Fri, 19 Jul 2002 14:37:20 +0200 Subject: [Gambas-user] bug and suggestions Message-ID: <5.1.0.14.0.20020719141836.009ee590@...5...> Hello Gambas-Users Seems there is a bug in MouseMove-Event. This event is only triggered or fired when a button is down, but this is the MouseDown-Event. It should be always triggered when mouse moves on the object. I tested with DrawingArea and EditArea version 0.34a. Also would be nice to have a "SaveProject as ..." and "Add from File" Option in the IDE. Maybe this is easy to do: If I select a widget or control on a form it would be comfortable to get the properties-window on top by selecting "properties" on the Right-Mouse- PullUp-Menu. The Grid and the Grid setting not working yet ? regards Juergen From gambas at ...1... Sat Jul 20 12:27:29 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sat, 20 Jul 2002 10:27:29 +0000 Subject: [Gambas-user] bug and suggestions In-Reply-To: <5.1.0.14.0.20020719141836.009ee590@...5...> References: <5.1.0.14.0.20020719141836.009ee590@...5...> Message-ID: <200207201027.29141.gambas@...1...> Le Vendredi 19 Juillet 2002 12:37, NN a ?crit : > Hello Gambas-Users > > Seems there is a bug in MouseMove-Event. > This event is only triggered or fired when > a button is down, but this is the MouseDown-Event. > It should be always triggered when mouse moves on > the object. I tested with DrawingArea and EditArea > version 0.34a. It is not really a bug, it is because by default QT does not track mouse unless a button is pressed. Why ? Because tracking mouse is very network expensive under X-Window ! I have two solutions : - Track the mouse only in the Drawing Area widget (the more useful). - Make a "TrackMouseMove" property. The second solution is not necessarily the better, because of the other graphic toolkit. > > Also would be nice to have a "SaveProject as ..." > and "Add from File" Option in the IDE. Yes ! :-) > > Maybe this is easy to do: > If I select a widget or control on a form it > would be comfortable to get the properties-window > on top by selecting "properties" on the Right-Mouse- > PullUp-Menu. I will do it : that is easy to do. > > The Grid and the Grid setting not working yet ? What's the problem ? It works ?! > > regards > Juergen > Regards, > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Beno?t Minisini mailto:gambas at ...1... From gambas at ...1... Sat Jul 20 18:55:17 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sat, 20 Jul 2002 16:55:17 +0000 Subject: [Gambas-user] Re: examples In-Reply-To: <5.1.0.14.0.20020718143128.009ec3d0@...5...> References: <5.1.0.14.0.20020718143128.009ec3d0@...5...> Message-ID: <200207201021.19205.gambas@...1...> Le Jeudi 18 Juillet 2002 12:38, vous avez ?crit : > Bonjour Benoit, > > i played a littled bit with 0.34a and i send you the > results attached. These are 2 little examples which > maybe helpful for total beginners. > Thanks for the examples. But if you want to put these examples in Gambas, you must define a licence for publishing it (GPL, for example), and you should make a "About..." dialog box that gives your name and a way to contact you (a e-mail address or a web link). You may tell me too if I'm allowed to change the code for presentation (indentation, maybe variable names, etc.) As for your two examples, "Timer" is a good example of what a Timer is. I will put in the next version with a dialog box under GPL. Tell me it you agree ! But I think the "Sinus" example does not show the good way to use DrawingArea widget. Resizing the DrawingArea at each Timer tick may be very slow when it is cached (a pixmap is recreated each time !). When you want to resize frequently your DrawingArea, it is better to set Cached property to False, and to redraw it during the "Draw" event. > > regards Juergen Regards, -- Beno?t Minisini mailto:gambas at ...1... From heinpol at ...5... Sat Jul 20 19:33:56 2002 From: heinpol at ...5... (fn ln) Date: Sat, 20 Jul 2002 19:33:56 +0200 Subject: [Gambas-user] Grid value is incorrect Message-ID: <200207201933.56943.heinpol@...5...> Hi Gambas Users. If i enable the Grid-Checkbox in File_Preferences i see the defaults (8,8) and applying this results in a Message-Box "Grid value is incorrect". The same occurs on different values of X and Y. Benoit, Please do with the timer what ever you think. If you need to give my email please use: juergen at ...8..., not the heinpol-adress, thx. Maybe you could put a modificated version of "Sinus" here, but I prefer you to work on the real thing, :)). regards Juergen From karl.reinl at ...9... Sat Jul 20 23:58:19 2002 From: karl.reinl at ...9... (Charlie) Date: Sat, 20 Jul 2002 21:58:19 +0000 Subject: [Gambas-user] Re: Gambas-user digest, Vol 1 #6 - 1 msg References: Message-ID: <3D39DCFB.A4484A85@...9...> gambas-user-request at lists.sourceforge.net wrote: > Send Gambas-user mailing list submissions to > gambas-user at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/gambas-user > or, via email, send a message with subject or body 'help' to > gambas-user-request at lists.sourceforge.net > > You can reach the person managing the list at > gambas-user-admin at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Gambas-user digest..." > > Today's Topics: > > 1. bug and suggestions (NN) > > --__--__-- > > Message: 1 > Date: Fri, 19 Jul 2002 14:37:20 +0200 > To: gambas-user at lists.sourceforge.net > From: NN > Subject: [Gambas-user] bug and suggestions > > Hello Gambas-Users > > Seems there is a bug in MouseMove-Event. > This event is only triggered or fired when > a button is down, but this is the MouseDown-Event. > It should be always triggered when mouse moves on > the object. I tested with DrawingArea and EditArea > version 0.34a. > > Also would be nice to have a "SaveProject as ..." > and "Add from File" Option in the IDE. > This includes a filelist in the .project (or anywhere) So we can use common source-code without filecopy. Charlie > > Maybe this is easy to do: > If I select a widget or control on a form it > would be comfortable to get the properties-window > on top by selecting "properties" on the Right-Mouse- > PullUp-Menu. > > The Grid and the Grid setting not working yet ? > > regards > Juergen > > --__--__-- > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > End of Gambas-user Digest From gambas at ...1... Sun Jul 21 13:24:03 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sun, 21 Jul 2002 11:24:03 +0000 Subject: [Gambas-user] Grid value is incorrect In-Reply-To: <200207201933.56943.heinpol@...5...> References: <200207201933.56943.heinpol@...5...> Message-ID: <200207211124.03270.gambas@...1...> Le Samedi 20 Juillet 2002 17:33, fn ln a ?crit : > Hi Gambas Users. > > If i enable the Grid-Checkbox in File_Preferences > i see the defaults (8,8) and applying this results in > a Message-Box "Grid value is incorrect". > The same occurs on different values of X and Y. > OK. It is a bug in Val() (yet one !) created in the 0.34. I will correct it in the next version. > Benoit, > Please do with the timer what ever you think. > If you need to give my email please use: > juergen at ...8..., not the heinpol-adress, thx. OK. > > Maybe you could put a modificated version of > "Sinus" here, but I prefer you to work on the > real thing, :)). OK. -- Beno?t Minisini mailto:gambas at ...1... From gambas at ...1... Sun Jul 21 13:31:25 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sun, 21 Jul 2002 11:31:25 +0000 Subject: [Gambas-user] Re: Gambas-user digest, Vol 1 #6 - 1 msg In-Reply-To: <3D39DCFB.A4484A85@...9...> References: <3D39DCFB.A4484A85@...9...> Message-ID: <200207211131.25795.gambas@...1...> Le Samedi 20 Juillet 2002 21:58, Charlie a ?crit : > > > > Also would be nice to have a "SaveProject as ..." > > and "Add from File" Option in the IDE. > > This includes a filelist in the .project (or anywhere) > So we can use common source-code without filecopy. > > Charlie > Could you be more explicit please ? Do you want that two people can work on the same project simultaneously ? -- Beno?t Minisini mailto:gambas at ...1... From heinpol at ...5... Mon Jul 22 09:14:42 2002 From: heinpol at ...5... (NN) Date: Mon, 22 Jul 2002 09:14:42 +0200 Subject: [Gambas-user] RUN hangs Message-ID: <5.1.0.14.0.20020722085834.009ed710@...5...> Hi Gambas Users gambas-0.34a I have 2 PC's with Suse 8.0 installed. On the 1st PC everything runs as usual, but on my 2nd gambas hangs up when i want to run a project. I tried with the original examples from Benoit. The "only" (?) difference between this 2 installations is the nvidia-glx and nvkernel to support a different displaycard. How can i check out whats the reason ? Maybe some smart startoptions ? regards Juergen From karl.reinl at ...9... Mon Jul 22 23:04:23 2002 From: karl.reinl at ...9... (Charlie) Date: Mon, 22 Jul 2002 21:04:23 +0000 Subject: [Gambas-user] This includes a filelist in the .project (or anywhere) from Vol 1 #8 - 3 msgs References: Message-ID: <3D3C7357.600@...9...> > > >Subject: Re: [Gambas-user] Re: Gambas-user digest, Vol 1 #6 - 1 msg >Date: Sun, 21 Jul 2002 11:31:25 +0000 > >Le Samedi 20 Juillet 2002 21:58, Charlie a =E9crit : > > >>>Also would be nice to have a "SaveProject as ..." >>>and "Add from File" Option in the IDE. >>> >>> >>This includes a filelist in the .project (or anywhere) >>So we can use common source-code without filecopy. >> >>Charlie >> >> >> > >Could you be more explicit please ? > >Do you want that two people can work on the same project simultaneously ? > > > No, soory that I ditn't mean. Actually a project kept together, because the files are in the project-Folder. ex.: My well devloped project 'Hallo Gambas', includes 3 files in /home/User/gambas/Hallo_Gambas frmHallo_Gambas.form ,frmHallo_Gambas.class and .project. If I want to take profite in an new project as for ex. About box, I have to copy the two frmHallo_Gambas.* in the new project Folder. If after weeks I found out that 'Hallo Gambas' is buggy ;-), so I have to make changes twice. First time in the 'Hallo Gambas' project and in the second project. That I meant. amicalement Charlie > > >--__--__-- > >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > >End of Gambas-user Digest > > > > From gambas at ...1... Tue Jul 23 12:08:35 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Tue, 23 Jul 2002 10:08:35 +0000 Subject: [Gambas-user] This includes a filelist in the .project (or anywhere) from Vol 1 #8 - 3 msgs In-Reply-To: <3D3C7357.600@...9...> References: <3D3C7357.600@...9...> Message-ID: <200207231008.35401.gambas@...1...> Le Lundi 22 Juillet 2002 21:04, Charlie a ?crit : > >Subject: Re: [Gambas-user] Re: Gambas-user digest, Vol 1 #6 - 1 msg > >Date: Sun, 21 Jul 2002 11:31:25 +0000 > > > >Le Samedi 20 Juillet 2002 21:58, Charlie a =E9crit : > >>>Also would be nice to have a "SaveProject as ..." > >>>and "Add from File" Option in the IDE. > >> > >>This includes a filelist in the .project (or anywhere) > >>So we can use common source-code without filecopy. > >> > >>Charlie > > > >Could you be more explicit please ? > > > >Do you want that two people can work on the same project simultaneously ? > > No, soory that I ditn't mean. > > Actually a project kept together, because the files are in the > project-Folder. > > ex.: > My well devloped project 'Hallo Gambas', includes 3 files in > /home/User/gambas/Hallo_Gambas > frmHallo_Gambas.form ,frmHallo_Gambas.class and .project. > > If I want to take profite in an new project as for ex. About box, I have to > copy the two frmHallo_Gambas.* in the new project Folder. > > If after weeks I found out that 'Hallo Gambas' is buggy ;-), so I have to > make changes twice. First time in the 'Hallo Gambas' project and in the > second project. > > That I meant. > > amicalement Charlie > > >--__--__-- > > All right, I understand... I think the easier way (for me :-)) would be a "class path", a bit like in Java. You will leave the file in the first project, and you will tell to the second project that, at execution time, it must take its compiled classes into its project AND in the first project. What do you think about that ? -- Beno?t Minisini mailto:gambas at ...1... From gambas at ...1... Tue Jul 23 16:16:57 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Tue, 23 Jul 2002 14:16:57 +0000 Subject: [Gambas-user] This includes a filelist in the .project (or anywhere) from Vol 1 #8 - 3 msgs In-Reply-To: <200207231008.35401.gambas@...1...> References: <3D3C7357.600@...9...> <200207231008.35401.gambas@...1...> Message-ID: <200207231416.57492.gambas@...1...> Le Mardi 23 Juillet 2002 10:08, Beno?t Minisini a ?crit : > All right, I understand... > > I think the easier way (for me :-)) would be a "class path", a bit like in > Java. > > You will leave the file in the first project, and you will tell to the > second project that, at execution time, it must take its compiled classes > into its project AND in the first project. > > What do you think about that ? Or you can use the "Power Of Unix" (TM)... Make symbolic links to the classes you want to share in your second project. I think it works. -- Beno?t Minisini mailto:gambas at ...1... From benoit.minisini at ...2... Wed Jul 24 11:51:31 2002 From: benoit.minisini at ...2... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Wed, 24 Jul 2002 09:51:31 +0000 Subject: [Gambas-user] New release Message-ID: <200207240951.31752.benoit.minisini@...2...> Hello everybody, I have just release the 0.35 version of Gambas, and alas, there is a annoying bug in the IDE that I didn't see when I made the package. When you click on a property in the property sheet, the little button with the suspension points does not appear anymore ! You must resize the property sheet to see it. This bug is a consequence of a bad bug fix for the coordinates problem of hidden windows (see ChangeLog). It will be corrected in the next version. As a workaround, you can move the line 420 of the file FProperty.class ("btnProperty.Visible = bButton") just before the line 417 ("MoveProperty") and recompile the IDE. It should works. Sorry for the inconvenience ! -- Beno?t Minisini mailto:benoit.minisini at ...2... From karl.reinl at ...9... Thu Jul 25 00:27:15 2002 From: karl.reinl at ...9... (Charlie) Date: Wed, 24 Jul 2002 22:27:15 +0000 Subject: [Gambas-user] use the "Power Of Unix" (TM)... Make symbolic links Message-ID: <3D3F29C3.4090107@...9...> Salut Benoit, symbolic link is a good idea, all works fine, you can attache any file to the project. to do: May it be possible to check on 'edit and save' to follow the link and save the file on his origin place ? Even to check on opening a linked file, if the link is n't broken? amicalement Charlie From heinpol at ...5... Thu Jul 25 13:17:23 2002 From: heinpol at ...5... (NN) Date: Thu, 25 Jul 2002 13:17:23 +0200 Subject: [Gambas-user] Wire Object Message-ID: <5.1.0.14.0.20020725125528.009eec70@...5...> Hello Gambas-Users I would like to programm a little example similar to the characteristic features of VISIO or KLOGIC to learn how this features are implemented and as a little brainsports. :) I assume I have to create something like a Net-, Wire- and Node-Object. The Net contains all Wires which shares at least one Node with another Wire. A Wire should be a polyline with Nodes and a Node have some properties (X,Y,Voltage, Hi-Lo etc.).as in LabView, Modelica/ Dymola. Maybe somebody has an idea how to start coding this, or even fragments or code-snippet in Gambas. Even simple hints are very welcome. Regards Juergen From Abidoo.too at ...11... Mon Jul 29 23:24:01 2002 From: Abidoo.too at ...11... (BODARD Fabien) Date: Mon, 29 Jul 2002 23:24:01 +0200 Subject: [Gambas-user] A Start for a open project form Message-ID: <3D2A791600A01F2E@...12...> (added by postmaster@...11...) Salut Benoit I've not a good english ... i'm sorry look at my first step in gambas ... Ci-joint fichier zip Amicalement Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenComp.zip Type: application/x-zip Size: 8198 bytes Desc: Fichier Compresse gambas Project URL: From mahendraz at ...103... Thu Jul 4 15:23:39 2002 From: mahendraz at ...103... (Mahendraz) Date: Thu, 4 Jul 2002 20:23:39 +0700 Subject: [Gambas-user] Problem configuring Gambas ? References: Message-ID: <002601c2235e$03c70db0$5c845e3d@...104...> Hi Everybody, I got problem in configuring gambas-0.52 in my RH-80. While trying to configure the following messages occured : creating cache ./configure.cache checking whether to enable maintener-specific portion of makefiles...no checking for a BSD compatible install .../usr/bin/install -c checking whether build environment is sane ...configure : error: newly created file is older than distributed files check your system clock It seems there is nothing wrong with my system clock ? Could someone help ? I am new to linux Thanks in advance Mahendra From girardhenri at ...67... Thu Jul 4 08:41:17 2002 From: girardhenri at ...67... (Henri Girard) Date: Thu, 4 Jul 2002 08:41:17 +0200 Subject: [Gambas-user] suse 9.1 References: <200407040024.39112.bundeshund@...467...> <200407040132.02215.gambas@...1...> Message-ID: Hi :) Up to now i heard a lot about suse... Which i didn't believe ... But when i run their cdrom live I think it deserved what has been said !!! test it :) HG (sorry that has nothing to do with gambas... but it can help if any one is looking for gambas on a clean distro) From gambas at ...1... Sun Jul 14 12:13:22 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sun, 14 Jul 2002 10:13:22 +0000 Subject: [Gambas-user] Mailing list for gambas users Message-ID: <200207141013.22051.gambas@...1...> ---------------------------------------------------------------------- ENGLISH VERSION ---------------------------------------------------------------------- Dear Gambas users, I have created a mailing list on Sourceforge.net for you (and me) ! This mailing list will be more practical to emit news on Gambas, to identify and solve problems, and to discuss the present and the future of Gambas with fiery debates. I invite you to subscribe to this mailing list here: https://lists.sourceforge.net/lists/listinfo/gambas-user The next big step for me will be writing a documentation on components, so that those who have C and C++ skills can easily create new components. If I'm jealous of my interpreter ;-), but I know that I cannot create every useful component alone. I must really open my development on that. But after is a subject of debate: a database component, a GTK+ com- -ponent, 64 bits management, new widgets, a XML component, a KDE component... What else ? Thanks to help me to get organized ! Best regards, -- Beno?t Minisini mailto:gambas at ...1... ---------------------------------------------------------------------- VERSION FRANCAISE ---------------------------------------------------------------------- Chers utilisateur de Gambas, J'ai ouvert une liste de diffusion sur Sourceforge destin?e aussi bien ? vous qu'? moi ! Cette liste de diffustion sera plus pratique pour diffuser des nouvelles sur Gambas, pour identifier et r?soudre les probl?mes, et pour discuter du pr?sent et du futur de Gambas dans des d?bats enflamm?s. Je vous invite ? souscrire ? cette liste ? l'adresse suivante : https://lists.sourceforge.net/lists/listinfo/gambas-user La prochaine grosse ?tape pour moi sera la r?daction d'une documentation sur les composants, de telle mani?re que ceux qui savent programmer en C ou en C++ puissent facilement cr?er de nouveaux composants. Je suis jaloux de mon interpr?teur ;-), mais je sais que je ne peux pas cr?er chaque composant qui s'av?re utile tout seul. Je dois r?ellement ouvrir mon d?veloppement sur ce point. Mais la suite est un sujet de d?bat: un composant base de donn?es, un composant GTK+, la gestion du 64 bits, de nouveaux widgets, un composant XML, un composant KDE... Quoi d'autre ? Merci de m'aider ? m'organiser ! Amicalement, -- Beno?t Minisini mailto:gambas at ...1... From gambas at ...1... Sun Jul 14 12:13:22 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sun, 14 Jul 2002 10:13:22 +0000 Subject: [Gambas-user] Mailing list for gambas users Message-ID: <200207141013.22051.gambas@...1...> ---------------------------------------------------------------------- ENGLISH VERSION ---------------------------------------------------------------------- Dear Gambas users, I have created a mailing list on Sourceforge.net for you (and me) ! This mailing list will be more practical to emit news on Gambas, to identify and solve problems, and to discuss the present and the future of Gambas with fiery debates. I invite you to subscribe to this mailing list here: https://lists.sourceforge.net/lists/listinfo/gambas-user The next big step for me will be writing a documentation on components, so that those who have C and C++ skills can easily create new components. If I'm jealous of my interpreter ;-), but I know that I cannot create every useful component alone. I must really open my development on that. But after is a subject of debate: a database component, a GTK+ com- -ponent, 64 bits management, new widgets, a XML component, a KDE component... What else ? Thanks to help me to get organized ! Best regards, -- Beno?t Minisini mailto:gambas at ...1... ---------------------------------------------------------------------- VERSION FRANCAISE ---------------------------------------------------------------------- Chers utilisateur de Gambas, J'ai ouvert une liste de diffusion sur Sourceforge destin?e aussi bien ? vous qu'? moi ! Cette liste de diffustion sera plus pratique pour diffuser des nouvelles sur Gambas, pour identifier et r?soudre les probl?mes, et pour discuter du pr?sent et du futur de Gambas dans des d?bats enflamm?s. Je vous invite ? souscrire ? cette liste ? l'adresse suivante : https://lists.sourceforge.net/lists/listinfo/gambas-user La prochaine grosse ?tape pour moi sera la r?daction d'une documentation sur les composants, de telle mani?re que ceux qui savent programmer en C ou en C++ puissent facilement cr?er de nouveaux composants. Je suis jaloux de mon interpr?teur ;-), mais je sais que je ne peux pas cr?er chaque composant qui s'av?re utile tout seul. Je dois r?ellement ouvrir mon d?veloppement sur ce point. Mais la suite est un sujet de d?bat: un composant base de donn?es, un composant GTK+, la gestion du 64 bits, de nouveaux widgets, un composant XML, un composant KDE... Quoi d'autre ? Merci de m'aider ? m'organiser ! Amicalement, -- Beno?t Minisini mailto:gambas at ...1... From elias1 at ...3... Sun Jul 14 23:29:53 2002 From: elias1 at ...3... (ejl) Date: Sun, 14 Jul 2002 17:29:53 -0400 Subject: [Gambas-user] VAL bug Message-ID: <20020714213636.KHWV15346.mta01-srv.alltel.net@...4...> There is still a bug in the VAL function in Gambas-0.34a. <0.20> returns a float (OK) <.20> returns NULL (this should also return a float) I have attached a simple test program. The Gambas IDE editor features copy, cup, and paste don't work when running the Windows Maker desktop or I am doing something wrong. Regards. Elias Livaditis -------------- next part -------------- A non-text attachment was scrubbed... Name: tst.tar.gz Type: application/x-gzip Size: 1233 bytes Desc: not available URL: From heinpol at ...5... Tue Jul 16 09:45:04 2002 From: heinpol at ...5... (NN) Date: Tue, 16 Jul 2002 09:45:04 +0200 Subject: [Gambas-user] just a test Message-ID: <5.1.0.14.0.20020716094427.009ea3d0@...5...> Hello Gambas From stibs at ...6... Tue Jul 16 20:30:42 2002 From: stibs at ...6... (Michael Stibane) Date: Tue, 16 Jul 2002 14:30:42 -0400 Subject: [Gambas-user] Questions about source code Message-ID: <200207161830.g6GIUg320628@...6...> Hi list! I tried to comment the console example. I'm no programmer ... better a preNewbie, please help me out with the questions and false interpretations between the lines of code for my understanding. If I see this I could imagine to have a database component for mysql - simply accessing it via commandline like the bash in this case. STIBS ------------------------------- ' Gambas class file PRIVATE ?hProcess AS Process ' defines the process identificator variable format STATIC PUBLIC SUB Main() ' Main routine declaration DIM hForm AS Form hForm = NEW FConsole hForm.Show ' shows the form END PUBLIC SUB _new() ' on opening the form happens the following EXEC "bash --noediting -i" FOR READ WRITE AS ?hProcess ' executes the bash for rw as our process txtCommand.SetFocus ' sets the focus to the text input line END PUBLIC SUB Form_Close() ' on hitting the close button x ?hProcess.Kill ' the process will be killed END PUBLIC SUB Form_Resize() ' Some screen geometry declarations when the window gets resized txtCommand.Move(0, ME.ClientH - txtCommand.H, ME.ClientW, txtCommand.H) ' the ME.X inherits from the forms geometry txtConsole.Move(0, 0, ME.ClientW, txtCommand.Y) END PUBLIC SUB Process_Write(sStr AS String) ' getting the string sent to the process also in the TextArea displayed txtConsole.Pos = txtConsole.Length ' positions the cursor at the end of the TextArea.Text txtConsole.Insert(Normalize(sStr)) ' Inserting the normalized command into the TextArea Output END PUBLIC SUB Process_Error(sStr AS String) ' getting the error message from process displayed txtConsole.Pos = txtConsole.Length ' positions the cursor at the end of the TextArea.Text txtConsole.Insert(Normalize(sStr)) ' Inserting the normalized Error String into the TextArea Output END PUBLIC SUB Process_Kill() ' No clue if this is needed because it's Form_Close() is already definded '?hProcess = NULL TRY ME.Close ' this is maybe additional when the process dies that the form also dies END PUBLIC SUB txtCommand_Activate() ' So Activate is when Enter is hit? :o) DIM sLig AS String ' defining variable type sLig = txtCommand.Text & gb.NewLine ' The Text written in the textfield plus a new line is submitted to sLig txtConsole.Insert(sLig) ' Hmmm? did I understand Process_Write in the wrong way? txtCommand.Clear ' cleaning ?hProcess.Send(sLig) ' Sending the input to the process END STATIC PRIVATE FUNCTION Normalize(sStr AS String) AS String ' that's the next point I don't understand fully ' Does the process just understand ASCII numbers? DIM sNorm AS String ' normalized String DIM iInd AS Integer ' index # of the characters position in the string DIM iCar AS Integer ' needed for the logic DIM bEsc AS Boolean ' needed for the logic FOR iInd = 1 TO Len(sStr) ' for all character in the strings (input or output) iCar = Asc(sStr, iInd) ' get the ASCII numbers IF iCar = 27 THEN bEsc = TRUE CONTINUE ENDIF IF bEsc THEN IF iCar < 32 THEN bEsc = FALSE CONTINUE ENDIF ' Some logic about the character format ' Where can I read about this? ' Somewhere has to be an ASCII table with numbers where I also find keys like <- or -> ' help me out please! IF iCar < 32 AND iCar <> 10 THEN iCar = 32 ' additional logic sNorm = sNorm & Chr$(iCar) ' the normalized text NEXT RETURN sNorm ' returns the normalized string to the program ... but where is it used? ' I don't see sNorm somewhere else ... am I blind? END Thanx alot! -- Best! STIBS freehosting at ...7... From gambas at ...1... Tue Jul 16 22:46:31 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Tue, 16 Jul 2002 20:46:31 +0000 Subject: [Gambas-user] VAL bug In-Reply-To: <20020714213636.KHWV15346.mta01-srv.alltel.net@...4...> References: <20020714213636.KHWV15346.mta01-srv.alltel.net@...4...> Message-ID: <200207162046.31598.gambas@...1...> Le Dimanche 14 Juillet 2002 21:29, ejl a ?crit : > There is still a bug in the VAL function in Gambas-0.34a. > > <0.20> returns a float (OK) > <.20> returns NULL (this should also return a float) > > I have attached a simple test program. > > The Gambas IDE editor features copy, cup, and paste don't work when running > the Windows Maker desktop or I am doing something wrong. > > Regards. > Elias Livaditis Well, it is not really a bug, since nobody writes 0,20 as ,20 in France :-) But as every language seems to convert floating point number like that, I think I must follow the move ! I will correct that in the next version if you answer me the following questions : ".20" is 0.20, that's OK "2." must be 2, so ? But "." must not be 0 ? But ".0" must be 0 ? -- Beno?t Minisini mailto:gambas at ...1... From gambas at ...1... Tue Jul 16 23:23:32 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Tue, 16 Jul 2002 21:23:32 +0000 Subject: [Gambas-user] Questions about source code In-Reply-To: <200207161830.g6GIUg320628@...6...> References: <200207161830.g6GIUg320628@...6...> Message-ID: <200207162123.32091.gambas@...1...> Le Mardi 16 Juillet 2002 18:30, Michael Stibane a ?crit : > Hi list! Hi you > > I tried to comment the console example. I'm no programmer ... better a > preNewbie, please help me out with the questions and false > interpretations between the lines of code for my understanding. It's a good idea. I'm just going to try to explain you a few things about how to comment code. > > If I see this I could imagine to have a database component for mysql - > simply accessing it via commandline like the bash in this case. Yes. Command line tools is the power of Unix !! But don't worry, a database component for Gambas will come one day ;-) > > STIBS > > ------------------------------- > ' Gambas class file > > PRIVATE ?hProcess AS Process > ' defines the process identificator variable format First, I suggest putting comments before the code they explain. I think it is the tradition. This comment is not necessary. Why ? Because the code is self-descriptive. Such a code must NEVER be commented, because you are creating duplicates. Each time you modify the code, you must modify the comment. Comment ARE part of the program, like lines of code. One of the ten commandments of the programmer must be "do not create duplicates. Never" But, and I can hear your question, why is this line of code self-descriptive ? It is because it is following coding rules in the name of the variable : - "h" tells you that the variable will receive an object handle. - "Process" tells you that it will be a process. - And the type of the variable confirms that it will be an object of Process class. But, and you are going to say that I don't know what I want, you can continue to put comment like that, because it reassures the newbies. I just wanted to display my science ;-) > > STATIC PUBLIC SUB Main() > ' Main routine declaration Self-descriptive ! > DIM hForm AS Form > > hForm = NEW FConsole > hForm.Show > ' shows the form Self-descriptive ! > END > > > PUBLIC SUB _new() > ' on opening the form happens the following The _new method is not executed when you OPEN the form (by calling Show), but when you create the Form (by calling NEW) > EXEC "bash --noediting -i" FOR READ WRITE AS ?hProcess > ' executes the bash for rw as our process > txtCommand.SetFocus > ' sets the focus to the text input line > END > > > PUBLIC SUB Form_Close() > ' on hitting the close button x > ?hProcess.Kill > ' the process will be killed Self-descriptive ! > END > > > > PUBLIC SUB Form_Resize() > ' Some screen geometry declarations when the window gets resized > txtCommand.Move(0, ME.ClientH - txtCommand.H, ME.ClientW, txtCommand.H) > ' the ME.X inherits from the forms geometry What do you want to say ? > txtConsole.Move(0, 0, ME.ClientW, txtCommand.Y) > > END > > > PUBLIC SUB Process_Write(sStr AS String) > ' getting the string sent to the process also in the TextArea displayed > txtConsole.Pos = txtConsole.Length > ' positions the cursor at the end of the TextArea.Text > txtConsole.Insert(Normalize(sStr)) > ' Inserting the normalized command into the TextArea Output > END > > > PUBLIC SUB Process_Error(sStr AS String) > ' getting the error message from process displayed > txtConsole.Pos = txtConsole.Length > ' positions the cursor at the end of the TextArea.Text > txtConsole.Insert(Normalize(sStr)) > ' Inserting the normalized Error String into the TextArea Output > END > > > PUBLIC SUB Process_Kill() > ' No clue if this is needed because it's Form_Close() is already definded > '?hProcess = NULL > TRY ME.Close > ' this is maybe additional when the process dies that the form also dies Yes. The process can die while the form is open, but it can die between the form close and the form deallocation ! > END > > > > PUBLIC SUB txtCommand_Activate() > ' So Activate is when Enter is hit? :o) Yes ! > DIM sLig AS String > ' defining variable type > sLig = txtCommand.Text & gb.NewLine > ' The Text written in the textfield plus a new line is submitted to sLig > txtConsole.Insert(sLig) > ' Hmmm? did I understand Process_Write in the wrong way? No. It is because bash does not echoing the command. > txtCommand.Clear > ' cleaning > ?hProcess.Send(sLig) > ' Sending the input to the process > END > > > STATIC PRIVATE FUNCTION Normalize(sStr AS String) AS String > ' that's the next point I don't understand fully > ' Does the process just understand ASCII numbers? This function is just a quick hack for removing all the non-ASCII characters printed by bash (there are terminal command). Making a real terminal emulator will be far more complex than such a quick example. > > DIM sNorm AS String > ' normalized String > DIM iInd AS Integer > ' index # of the characters position in the string > DIM iCar AS Integer > ' needed for the logic > DIM bEsc AS Boolean > ' needed for the logic > FOR iInd = 1 TO Len(sStr) > ' for all character in the strings (input or output) > iCar = Asc(sStr, iInd) > ' get the ASCII numbers > IF iCar = 27 THEN > bEsc = TRUE > CONTINUE > ENDIF > "bEsc" is a just a quick hack to remove terminal commands : these terminal commands begin with a ESC character (code 27) and seem to ending with a non-ascii characters. Every character between must be discarded ! It is REALLY the perfect example of what nobody should program : a quick and dirty function that does certainly not work in every case :-( > IF bEsc THEN > IF iCar < 32 THEN bEsc = FALSE > CONTINUE > ENDIF > ' Some logic about the character format > ' Where can I read about this? > ' Somewhere has to be an ASCII table with numbers where I also find keys > like <- or -> > ' help me out please! > IF iCar < 32 AND iCar <> 10 THEN iCar = 32 Replace all non-ascii characters by spaces (ASCII code 32) > ' additional logic > sNorm = sNorm & Chr$(iCar) > ' the normalized text > NEXT > > RETURN sNorm > ' returns the normalized string to the program ... but where is it used? > ' I don't see sNorm somewhere else ... am I blind? Maybe ;-) It is a local variable of the function that contains the normalized string. > END > > Thanx alot! -- Beno?t Minisini mailto:gambas at ...1... From gambas at ...1... Tue Jul 16 23:27:54 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Tue, 16 Jul 2002 21:27:54 +0000 Subject: [Gambas-user] Bonjour =?iso-8859-1?q?=E0?= tous Message-ID: <200207162127.54235.gambas@...1...> Hello everybody, There are actually 9 members in the mailing list (me included). But I hope more in the future ! Here are the main things I want to talk about : 1) What I am going to do in Gambas. 2) What I will be able to do in Gambas. 3) What you want to see in Gambas. 4) How non-programmers and non-C/C++-gods can help Gambas. 5) How C/C++ programmers will be able to help Gambas (needs topic 1) I will detail these five points in other mail. I'm too tired this evening to begin a long soliloquy in english... -- Beno?t Minisini mailto:gambas at ...1... From heinpol at ...5... Thu Jul 18 14:39:00 2002 From: heinpol at ...5... (NN) Date: Thu, 18 Jul 2002 14:39:00 +0200 Subject: [Gambas-user] test, sorry Message-ID: <5.1.0.14.0.20020718143836.009f0cf0@...5...> xxxxxxxx From gambas at ...1... Thu Jul 18 22:36:47 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Thu, 18 Jul 2002 20:36:47 +0000 Subject: [Gambas-user] test Message-ID: <200207182036.47276.gambas@...1...> Why dawn does it not work ? -- Beno?t Minisini mailto:gambas at ...1... From heinpol at ...5... Fri Jul 19 14:37:20 2002 From: heinpol at ...5... (NN) Date: Fri, 19 Jul 2002 14:37:20 +0200 Subject: [Gambas-user] bug and suggestions Message-ID: <5.1.0.14.0.20020719141836.009ee590@...5...> Hello Gambas-Users Seems there is a bug in MouseMove-Event. This event is only triggered or fired when a button is down, but this is the MouseDown-Event. It should be always triggered when mouse moves on the object. I tested with DrawingArea and EditArea version 0.34a. Also would be nice to have a "SaveProject as ..." and "Add from File" Option in the IDE. Maybe this is easy to do: If I select a widget or control on a form it would be comfortable to get the properties-window on top by selecting "properties" on the Right-Mouse- PullUp-Menu. The Grid and the Grid setting not working yet ? regards Juergen From gambas at ...1... Sat Jul 20 12:27:29 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sat, 20 Jul 2002 10:27:29 +0000 Subject: [Gambas-user] bug and suggestions In-Reply-To: <5.1.0.14.0.20020719141836.009ee590@...5...> References: <5.1.0.14.0.20020719141836.009ee590@...5...> Message-ID: <200207201027.29141.gambas@...1...> Le Vendredi 19 Juillet 2002 12:37, NN a ?crit : > Hello Gambas-Users > > Seems there is a bug in MouseMove-Event. > This event is only triggered or fired when > a button is down, but this is the MouseDown-Event. > It should be always triggered when mouse moves on > the object. I tested with DrawingArea and EditArea > version 0.34a. It is not really a bug, it is because by default QT does not track mouse unless a button is pressed. Why ? Because tracking mouse is very network expensive under X-Window ! I have two solutions : - Track the mouse only in the Drawing Area widget (the more useful). - Make a "TrackMouseMove" property. The second solution is not necessarily the better, because of the other graphic toolkit. > > Also would be nice to have a "SaveProject as ..." > and "Add from File" Option in the IDE. Yes ! :-) > > Maybe this is easy to do: > If I select a widget or control on a form it > would be comfortable to get the properties-window > on top by selecting "properties" on the Right-Mouse- > PullUp-Menu. I will do it : that is easy to do. > > The Grid and the Grid setting not working yet ? What's the problem ? It works ?! > > regards > Juergen > Regards, > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Beno?t Minisini mailto:gambas at ...1... From gambas at ...1... Sat Jul 20 18:55:17 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sat, 20 Jul 2002 16:55:17 +0000 Subject: [Gambas-user] Re: examples In-Reply-To: <5.1.0.14.0.20020718143128.009ec3d0@...5...> References: <5.1.0.14.0.20020718143128.009ec3d0@...5...> Message-ID: <200207201021.19205.gambas@...1...> Le Jeudi 18 Juillet 2002 12:38, vous avez ?crit : > Bonjour Benoit, > > i played a littled bit with 0.34a and i send you the > results attached. These are 2 little examples which > maybe helpful for total beginners. > Thanks for the examples. But if you want to put these examples in Gambas, you must define a licence for publishing it (GPL, for example), and you should make a "About..." dialog box that gives your name and a way to contact you (a e-mail address or a web link). You may tell me too if I'm allowed to change the code for presentation (indentation, maybe variable names, etc.) As for your two examples, "Timer" is a good example of what a Timer is. I will put in the next version with a dialog box under GPL. Tell me it you agree ! But I think the "Sinus" example does not show the good way to use DrawingArea widget. Resizing the DrawingArea at each Timer tick may be very slow when it is cached (a pixmap is recreated each time !). When you want to resize frequently your DrawingArea, it is better to set Cached property to False, and to redraw it during the "Draw" event. > > regards Juergen Regards, -- Beno?t Minisini mailto:gambas at ...1... From heinpol at ...5... Sat Jul 20 19:33:56 2002 From: heinpol at ...5... (fn ln) Date: Sat, 20 Jul 2002 19:33:56 +0200 Subject: [Gambas-user] Grid value is incorrect Message-ID: <200207201933.56943.heinpol@...5...> Hi Gambas Users. If i enable the Grid-Checkbox in File_Preferences i see the defaults (8,8) and applying this results in a Message-Box "Grid value is incorrect". The same occurs on different values of X and Y. Benoit, Please do with the timer what ever you think. If you need to give my email please use: juergen at ...8..., not the heinpol-adress, thx. Maybe you could put a modificated version of "Sinus" here, but I prefer you to work on the real thing, :)). regards Juergen From karl.reinl at ...9... Sat Jul 20 23:58:19 2002 From: karl.reinl at ...9... (Charlie) Date: Sat, 20 Jul 2002 21:58:19 +0000 Subject: [Gambas-user] Re: Gambas-user digest, Vol 1 #6 - 1 msg References: Message-ID: <3D39DCFB.A4484A85@...9...> gambas-user-request at lists.sourceforge.net wrote: > Send Gambas-user mailing list submissions to > gambas-user at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/gambas-user > or, via email, send a message with subject or body 'help' to > gambas-user-request at lists.sourceforge.net > > You can reach the person managing the list at > gambas-user-admin at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Gambas-user digest..." > > Today's Topics: > > 1. bug and suggestions (NN) > > --__--__-- > > Message: 1 > Date: Fri, 19 Jul 2002 14:37:20 +0200 > To: gambas-user at lists.sourceforge.net > From: NN > Subject: [Gambas-user] bug and suggestions > > Hello Gambas-Users > > Seems there is a bug in MouseMove-Event. > This event is only triggered or fired when > a button is down, but this is the MouseDown-Event. > It should be always triggered when mouse moves on > the object. I tested with DrawingArea and EditArea > version 0.34a. > > Also would be nice to have a "SaveProject as ..." > and "Add from File" Option in the IDE. > This includes a filelist in the .project (or anywhere) So we can use common source-code without filecopy. Charlie > > Maybe this is easy to do: > If I select a widget or control on a form it > would be comfortable to get the properties-window > on top by selecting "properties" on the Right-Mouse- > PullUp-Menu. > > The Grid and the Grid setting not working yet ? > > regards > Juergen > > --__--__-- > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > End of Gambas-user Digest From gambas at ...1... Sun Jul 21 13:24:03 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sun, 21 Jul 2002 11:24:03 +0000 Subject: [Gambas-user] Grid value is incorrect In-Reply-To: <200207201933.56943.heinpol@...5...> References: <200207201933.56943.heinpol@...5...> Message-ID: <200207211124.03270.gambas@...1...> Le Samedi 20 Juillet 2002 17:33, fn ln a ?crit : > Hi Gambas Users. > > If i enable the Grid-Checkbox in File_Preferences > i see the defaults (8,8) and applying this results in > a Message-Box "Grid value is incorrect". > The same occurs on different values of X and Y. > OK. It is a bug in Val() (yet one !) created in the 0.34. I will correct it in the next version. > Benoit, > Please do with the timer what ever you think. > If you need to give my email please use: > juergen at ...8..., not the heinpol-adress, thx. OK. > > Maybe you could put a modificated version of > "Sinus" here, but I prefer you to work on the > real thing, :)). OK. -- Beno?t Minisini mailto:gambas at ...1... From gambas at ...1... Sun Jul 21 13:31:25 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sun, 21 Jul 2002 11:31:25 +0000 Subject: [Gambas-user] Re: Gambas-user digest, Vol 1 #6 - 1 msg In-Reply-To: <3D39DCFB.A4484A85@...9...> References: <3D39DCFB.A4484A85@...9...> Message-ID: <200207211131.25795.gambas@...1...> Le Samedi 20 Juillet 2002 21:58, Charlie a ?crit : > > > > Also would be nice to have a "SaveProject as ..." > > and "Add from File" Option in the IDE. > > This includes a filelist in the .project (or anywhere) > So we can use common source-code without filecopy. > > Charlie > Could you be more explicit please ? Do you want that two people can work on the same project simultaneously ? -- Beno?t Minisini mailto:gambas at ...1... From heinpol at ...5... Mon Jul 22 09:14:42 2002 From: heinpol at ...5... (NN) Date: Mon, 22 Jul 2002 09:14:42 +0200 Subject: [Gambas-user] RUN hangs Message-ID: <5.1.0.14.0.20020722085834.009ed710@...5...> Hi Gambas Users gambas-0.34a I have 2 PC's with Suse 8.0 installed. On the 1st PC everything runs as usual, but on my 2nd gambas hangs up when i want to run a project. I tried with the original examples from Benoit. The "only" (?) difference between this 2 installations is the nvidia-glx and nvkernel to support a different displaycard. How can i check out whats the reason ? Maybe some smart startoptions ? regards Juergen From karl.reinl at ...9... Mon Jul 22 23:04:23 2002 From: karl.reinl at ...9... (Charlie) Date: Mon, 22 Jul 2002 21:04:23 +0000 Subject: [Gambas-user] This includes a filelist in the .project (or anywhere) from Vol 1 #8 - 3 msgs References: Message-ID: <3D3C7357.600@...9...> > > >Subject: Re: [Gambas-user] Re: Gambas-user digest, Vol 1 #6 - 1 msg >Date: Sun, 21 Jul 2002 11:31:25 +0000 > >Le Samedi 20 Juillet 2002 21:58, Charlie a =E9crit : > > >>>Also would be nice to have a "SaveProject as ..." >>>and "Add from File" Option in the IDE. >>> >>> >>This includes a filelist in the .project (or anywhere) >>So we can use common source-code without filecopy. >> >>Charlie >> >> >> > >Could you be more explicit please ? > >Do you want that two people can work on the same project simultaneously ? > > > No, soory that I ditn't mean. Actually a project kept together, because the files are in the project-Folder. ex.: My well devloped project 'Hallo Gambas', includes 3 files in /home/User/gambas/Hallo_Gambas frmHallo_Gambas.form ,frmHallo_Gambas.class and .project. If I want to take profite in an new project as for ex. About box, I have to copy the two frmHallo_Gambas.* in the new project Folder. If after weeks I found out that 'Hallo Gambas' is buggy ;-), so I have to make changes twice. First time in the 'Hallo Gambas' project and in the second project. That I meant. amicalement Charlie > > >--__--__-- > >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > >End of Gambas-user Digest > > > > From gambas at ...1... Tue Jul 23 12:08:35 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Tue, 23 Jul 2002 10:08:35 +0000 Subject: [Gambas-user] This includes a filelist in the .project (or anywhere) from Vol 1 #8 - 3 msgs In-Reply-To: <3D3C7357.600@...9...> References: <3D3C7357.600@...9...> Message-ID: <200207231008.35401.gambas@...1...> Le Lundi 22 Juillet 2002 21:04, Charlie a ?crit : > >Subject: Re: [Gambas-user] Re: Gambas-user digest, Vol 1 #6 - 1 msg > >Date: Sun, 21 Jul 2002 11:31:25 +0000 > > > >Le Samedi 20 Juillet 2002 21:58, Charlie a =E9crit : > >>>Also would be nice to have a "SaveProject as ..." > >>>and "Add from File" Option in the IDE. > >> > >>This includes a filelist in the .project (or anywhere) > >>So we can use common source-code without filecopy. > >> > >>Charlie > > > >Could you be more explicit please ? > > > >Do you want that two people can work on the same project simultaneously ? > > No, soory that I ditn't mean. > > Actually a project kept together, because the files are in the > project-Folder. > > ex.: > My well devloped project 'Hallo Gambas', includes 3 files in > /home/User/gambas/Hallo_Gambas > frmHallo_Gambas.form ,frmHallo_Gambas.class and .project. > > If I want to take profite in an new project as for ex. About box, I have to > copy the two frmHallo_Gambas.* in the new project Folder. > > If after weeks I found out that 'Hallo Gambas' is buggy ;-), so I have to > make changes twice. First time in the 'Hallo Gambas' project and in the > second project. > > That I meant. > > amicalement Charlie > > >--__--__-- > > All right, I understand... I think the easier way (for me :-)) would be a "class path", a bit like in Java. You will leave the file in the first project, and you will tell to the second project that, at execution time, it must take its compiled classes into its project AND in the first project. What do you think about that ? -- Beno?t Minisini mailto:gambas at ...1... From gambas at ...1... Tue Jul 23 16:16:57 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Tue, 23 Jul 2002 14:16:57 +0000 Subject: [Gambas-user] This includes a filelist in the .project (or anywhere) from Vol 1 #8 - 3 msgs In-Reply-To: <200207231008.35401.gambas@...1...> References: <3D3C7357.600@...9...> <200207231008.35401.gambas@...1...> Message-ID: <200207231416.57492.gambas@...1...> Le Mardi 23 Juillet 2002 10:08, Beno?t Minisini a ?crit : > All right, I understand... > > I think the easier way (for me :-)) would be a "class path", a bit like in > Java. > > You will leave the file in the first project, and you will tell to the > second project that, at execution time, it must take its compiled classes > into its project AND in the first project. > > What do you think about that ? Or you can use the "Power Of Unix" (TM)... Make symbolic links to the classes you want to share in your second project. I think it works. -- Beno?t Minisini mailto:gambas at ...1... From benoit.minisini at ...2... Wed Jul 24 11:51:31 2002 From: benoit.minisini at ...2... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Wed, 24 Jul 2002 09:51:31 +0000 Subject: [Gambas-user] New release Message-ID: <200207240951.31752.benoit.minisini@...2...> Hello everybody, I have just release the 0.35 version of Gambas, and alas, there is a annoying bug in the IDE that I didn't see when I made the package. When you click on a property in the property sheet, the little button with the suspension points does not appear anymore ! You must resize the property sheet to see it. This bug is a consequence of a bad bug fix for the coordinates problem of hidden windows (see ChangeLog). It will be corrected in the next version. As a workaround, you can move the line 420 of the file FProperty.class ("btnProperty.Visible = bButton") just before the line 417 ("MoveProperty") and recompile the IDE. It should works. Sorry for the inconvenience ! -- Beno?t Minisini mailto:benoit.minisini at ...2... From karl.reinl at ...9... Thu Jul 25 00:27:15 2002 From: karl.reinl at ...9... (Charlie) Date: Wed, 24 Jul 2002 22:27:15 +0000 Subject: [Gambas-user] use the "Power Of Unix" (TM)... Make symbolic links Message-ID: <3D3F29C3.4090107@...9...> Salut Benoit, symbolic link is a good idea, all works fine, you can attache any file to the project. to do: May it be possible to check on 'edit and save' to follow the link and save the file on his origin place ? Even to check on opening a linked file, if the link is n't broken? amicalement Charlie From heinpol at ...5... Thu Jul 25 13:17:23 2002 From: heinpol at ...5... (NN) Date: Thu, 25 Jul 2002 13:17:23 +0200 Subject: [Gambas-user] Wire Object Message-ID: <5.1.0.14.0.20020725125528.009eec70@...5...> Hello Gambas-Users I would like to programm a little example similar to the characteristic features of VISIO or KLOGIC to learn how this features are implemented and as a little brainsports. :) I assume I have to create something like a Net-, Wire- and Node-Object. The Net contains all Wires which shares at least one Node with another Wire. A Wire should be a polyline with Nodes and a Node have some properties (X,Y,Voltage, Hi-Lo etc.).as in LabView, Modelica/ Dymola. Maybe somebody has an idea how to start coding this, or even fragments or code-snippet in Gambas. Even simple hints are very welcome. Regards Juergen From Abidoo.too at ...11... Mon Jul 29 23:24:01 2002 From: Abidoo.too at ...11... (BODARD Fabien) Date: Mon, 29 Jul 2002 23:24:01 +0200 Subject: [Gambas-user] A Start for a open project form Message-ID: <3D2A791600A01F2E@...12...> (added by postmaster@...11...) Salut Benoit I've not a good english ... i'm sorry look at my first step in gambas ... Ci-joint fichier zip Amicalement Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenComp.zip Type: application/x-zip Size: 8198 bytes Desc: Fichier Compresse gambas Project URL: