From gambas at ...1... Sat Mar 1 02:35:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 1 Mar 2008 02:35:53 +0100 Subject: [Gambas-user] Question about Subst() syntax Message-ID: <200803010235.53298.gambas@...1...> Hi, I plan to limit the Subst() instruction to nine substitutions, for optimization reasons. Does anyone use Subst with more than nine substitutions? I will do that for 3.0, and this will break 2.0 programs that use more than nine substitutions. The other proble is that the '&XX' syntax is ambiguous. &1 up to &9 is not, but &10 can mean the 10th subsitution, or the first substitution followed by a zero character. This was a stupid design. Maybe the future syntax will be &1 up to &9, and then &(10),&(11),&(12) and so on... Or maybe not, as I find that not really beautiful... Beware that the substitution syntax is used by the database methods Edit(), Exec(), Delete(), Find() too. So they are concerned by the syntax change. Please tell... -- Benoit Minisini From ronstk at ...239... Sat Mar 1 07:55:31 2008 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 1 Mar 2008 07:55:31 +0100 Subject: [Gambas-user] Question about Subst() syntax In-Reply-To: <200803010235.53298.gambas@...1...> References: <200803010235.53298.gambas@...1...> Message-ID: <200803010755.32262.ronstk@...239...> On Saturday 01 March 2008 02:35, Benoit Minisini wrote: > Hi, > > I plan to limit the Subst() instruction to nine substitutions, for > optimization reasons. Does anyone use Subst with more than nine > substitutions? > > I will do that for 3.0, and this will break 2.0 programs that use more than > nine substitutions. > > The other proble is that the '&XX' syntax is ambiguous. &1 up to &9 is not, > but &10 can mean the 10th subsitution, or the first substitution followed by > a zero character. This was a stupid design. > > Maybe the future syntax will be &1 up to &9, and then &(10),&(11),&(12) and so > on... Or maybe not, as I find that not really beautiful... > > Beware that the substitution syntax is used by the database methods Edit(), > Exec(), Delete(), Find() too. So they are concerned by the syntax change. > > Please tell... > If the &1 till &9 and the are in this order used may be a kind of shift (see MS-Dos documention for bat files) can be done. Just as leadin for next proposal. The way I think ATM is to use &+ for the sequence and when used as orginal with numbers and next is valid. DB.exec("SELECT &1 FROM &3 WHERE &4 LIKE &2", sField, sIndex, sTable, sArg) and DB.exec("SELECT &1 FROM &2 WHERE &3 LIKE &4", sField, sTable, sIndex, sArg) then change the '&[1-0]' to '&+' DB.exec("SELECT &+ FROM &+ WHERE &+ LIKE &+", sField, sTable, sIndex, sArg) Here why the order is important. An other idea based on above ----------------------- DIM aArgs as STRING[] DIM Records as RESULT aArgs[0] = sField aArgs[1] = sTable aArgs[2] = sIndex aArgs[3] = sArg Records = DB.exec("SELECT &+ FROM &+ WHERE &+ LIKE &+",aArgs) ---------------------- Just my two France Franks :) Ron From steven at ...1652... Sat Mar 1 09:37:32 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 01 Mar 2008 09:37:32 +0100 Subject: [Gambas-user] Question about Subst() syntax In-Reply-To: <200803010235.53298.gambas@...1...> References: <200803010235.53298.gambas@...1...> Message-ID: <1204360652.6499.24.camel@...1816...> Hi, I did once, but got into those kind of problems, so I stopped using it. Just for very simple select statements, for the rest I construct directly in my program. I consider that anyway subst can only be used in simple situations. Steven Le samedi 01 mars 2008 ? 02:35 +0100, Benoit Minisini a ?crit : > Hi, > > I plan to limit the Subst() instruction to nine substitutions, for > optimization reasons. Does anyone use Subst with more than nine > substitutions? > > I will do that for 3.0, and this will break 2.0 programs that use more than > nine substitutions. > > The other proble is that the '&XX' syntax is ambiguous. &1 up to &9 is not, > but &10 can mean the 10th subsitution, or the first substitution followed by > a zero character. This was a stupid design. > > Maybe the future syntax will be &1 up to &9, and then &(10),&(11),&(12) and so > on... Or maybe not, as I find that not really beautiful... > > Beware that the substitution syntax is used by the database methods Edit(), > Exec(), Delete(), Find() too. So they are concerned by the syntax change. > > Please tell... > From sourceforge-raindog2 at ...94... Sat Mar 1 15:31:55 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 1 Mar 2008 09:31:55 -0500 Subject: [Gambas-user] Question about Subst() syntax In-Reply-To: <200803010235.53298.gambas@...1...> References: <200803010235.53298.gambas@...1...> Message-ID: <200803010931.55895.sourceforge-raindog2@...94...> On Friday 29 February 2008 20:35, Benoit Minisini wrote: > I plan to limit the Subst() instruction to nine substitutions, for > optimization reasons. Does anyone use Subst with more than nine > substitutions? My question is, will this also affect the Subst in the database component, or the substitution in Exec? Because I certainly have made queries with more than nine parameters (complicated searches with date ranges for example.) Limiting that to 9 parameters would handicap Gambas. For plain text substitutions, no, I've never used more than 9. Rob From maximvonk at ...626... Sat Mar 1 17:15:24 2008 From: maximvonk at ...626... (MaxVK) Date: Sat, 1 Mar 2008 08:15:24 -0800 (PST) Subject: [Gambas-user] Persistent dialog path Message-ID: <15777807.post@...1379...> Hi there. I'm using Gambas 2.0.0 on Ubuntu 7.10. I have a project with gb.form.dialog in it, and Im calling the open and save dialogs. When loading or saving I assign the dialog path to a public variable (Removing the filename in the process), and then set the dialog.path property to that variable the next time it is used. However, for some reason the dialog drops back to its default path no matter what the variable contains. I have even gone so far as setting the path variable with a hard coded CONST value, but the dialog still resorts to its defaults. Can anyone give me any ideas about how to deal with this problem? Thanks Max -- View this message in context: http://www.nabble.com/Persistent-dialog-path-tp15777807p15777807.html Sent from the gambas-user mailing list archive at Nabble.com. From darkvision at ...1866... Sat Mar 1 22:52:09 2008 From: darkvision at ...1866... (Markus Kanet) Date: Sat, 01 Mar 2008 22:52:09 +0100 Subject: [Gambas-user] Gambas... Message-ID: <47C9D009.6010900@...1866...> Hi... I just did spent lots of time to get Gambas 2.2.1 to compile/work on Slackware 11.0/12, Wolvix Cub/Hunter (a LiveCD like Slackware) and Bluewhite64 12.0 (a 64Bit-like Slackware). I saw some postings on the forum and thought i maybe could help out... so i joined the forum... and was f%&kin' pissed because i was logged in now but i wasn't even able to read (yes, to read) any postings in the forum anymore. So why the hell should some1 join? I tried to contact the website admin: Yup, third person this week .. the powers that be stipulate the "user" forum must be read-only. (it's fed from the mailing list) Complaints to the mailing list please! Really... Gambas seem to be a good project... but the service/support suckz! Mailing list? Very user friendly... a user forum that is read only? Wow! ... DV From gambas at ...1... Sun Mar 2 00:02:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Mar 2008 00:02:48 +0100 Subject: [Gambas-user] Persistent dialog path In-Reply-To: <15777807.post@...1379...> References: <15777807.post@...1379...> Message-ID: <200803020002.48885.gambas@...1...> On samedi 1 mars 2008, MaxVK wrote: > Hi there. I'm using Gambas 2.0.0 on Ubuntu 7.10. > > I have a project with gb.form.dialog in it, and Im calling the open and > save dialogs. When loading or saving I assign the dialog path to a public > variable (Removing the filename in the process), and then set the > dialog.path property to that variable the next time it is used. > > However, for some reason the dialog drops back to its default path no > matter what the variable contains. > > I have even gone so far as setting the path variable with a hard coded > CONST value, but the dialog still resorts to its defaults. > > Can anyone give me any ideas about how to deal with this problem? > > Thanks > > Max I cannot reproduce the problem: can you provide some code? -- Benoit Minisini From audiossis at ...867... Sun Mar 2 01:44:38 2008 From: audiossis at ...867... (Audiossis) Date: Sun, 02 Mar 2008 11:44:38 +1100 Subject: [Gambas-user] Problem with gb.db (SQLite) Message-ID: <1204418678.25449.22.camel@...37...> Hi Guys, Don't worry Benoit I'm not reporting another BUG!!.....;-) I have a problem with a program I am writing. I am trying to display the entire contents of multiple SQLite3 database files in a single TableView. I have (through experimentation) established that the problem is the "Result" type data array. I am reading each SQLite DB file in sequence. My problem stems from the fact that each time I open a DB file, read it, display it and then close it, the contents of the "Result" array is destroyed and re-written. This obviously means that the "Result" array, and therefore the TableView, only ever contains\displays data from the LAST DB file opened/read. My question, is there a way to APPEND data to the result array without destroying the data that it already contains? Failing that, is there a way in GAMBAS to open/manipulate/display multiple SQLite DB files simutaneously? I know SQLite supports this but I cannot find any GAMBAS documentation describing how to do this. I should also explain that I have chosen to use SQLite over MYSQL and PostgreSQL because this program could conceivably be distributed. I do not want force users to set up an SQL server If I can avoid it. Regards Ben From steven at ...1545... Sun Mar 2 02:24:28 2008 From: steven at ...1545... (Steven Drinnan) Date: Sun, 02 Mar 2008 09:24:28 +0800 Subject: [Gambas-user] GTK problem In-Reply-To: <200802141205.41660.gambas@...1...> References: <1202560153.21200.4.camel@...1857...> <200802131404.01802.gambas@...1...> <1202909241.3080.10.camel@...1857...> <200802141205.41660.gambas@...1...> Message-ID: <1204421068.3224.6.camel@...1857...> Further to this, Updated using svn Still the same problem. Gambas 1.19 works fine can even use SCIM in QT applications But the same problem persists in 2.2.2 (1020 i think) BTW I have QT3 and QT4 installed as I have some applications that need QT4. Bascilly SCIM is very buggy in Gambas 2 apps Any ideas, much appreciated. Any other packages that may help (devel)? In the mean time i will uninstall and try the rpm version for fedora. Steven On Thu, 2008-02-14 at 12:05 +0100, Benoit Minisini wrote: > On mercredi 13 f?vrier 2008, Steven Drinnan wrote: > > No prob, > > > > Gambas version 2.0.0 compiled from source code > > > > Fedora 8, GNOME 2.20.2, SCIM 1.4.6 > > > > > > > > 1. Open gambas > > 2. Create a new project (graphical) > > 3. Goto Tools-Database manager > > 4. Connect to Server > > > > When you type there two characters are displayed when you press one > > key. > > > > Click on the SCIM icon select a language, any language, the problem > > disappears. > > > > As this has only happened in gambas I have not filed a bug report else > > where. > > > > Waiting your advice. > > > > P.S Your support is awesome. > > > > Can you try to compile from the /branches/2.0 subversion directory? (The > future 2.1). There is a fix in keyboard management in it. But I'm not sure it > will fix your problem I cannot reproduce. > > Regards, > From audiossis at ...867... Sun Mar 2 04:17:22 2008 From: audiossis at ...867... (Audiossis) Date: Sun, 02 Mar 2008 14:17:22 +1100 Subject: [Gambas-user] [Fwd: Problem with gb.db (SQLite)] Message-ID: <1204427843.25449.29.camel@...37...> Hi, Never mind. Stupid me, didn't think about copying the data from the "Result" array to a new array and then telling the TableView to display the contents of the new array!! This will make updates to the database files a little tricky but not impossible.......... Thanks anyway! Regards Ben -------- Forwarded Message -------- From: Audiossis To: gambas-user at lists.sourceforge.net Subject: Problem with gb.db (SQLite) Date: Sun, 02 Mar 2008 11:44:39 +1100 Hi Guys, Don't worry Benoit I'm not reporting another BUG!!.....;-) I have a problem with a program I am writing. I am trying to display the entire contents of multiple SQLite3 database files in a single TableView. I have (through experimentation) established that the problem is the "Result" type data array. I am reading each SQLite DB file in sequence. My problem stems from the fact that each time I open a DB file, read it, display it and then close it, the contents of the "Result" array is destroyed and re-written. This obviously means that the "Result" array, and therefore the TableView, only ever contains\displays data from the LAST DB file opened/read. My question, is there a way to APPEND data to the result array without destroying the data that it already contains? Failing that, is there a way in GAMBAS to open/manipulate/display multiple SQLite DB files simutaneously? I know SQLite supports this but I cannot find any GAMBAS documentation describing how to do this. I should also explain that I have chosen to use SQLite over MYSQL and PostgreSQL because this program could conceivably be distributed. I do not want force users to set up an SQL server If I can avoid it. Regards Ben From gambas at ...1... Sun Mar 2 09:52:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Mar 2008 09:52:07 +0100 Subject: [Gambas-user] GTK problem In-Reply-To: <1204421068.3224.6.camel@...1857...> References: <1202560153.21200.4.camel@...1857...> <200802141205.41660.gambas@...1...> <1204421068.3224.6.camel@...1857...> Message-ID: <200803020952.07672.gambas@...1...> On dimanche 2 mars 2008, Steven Drinnan wrote: > Further to this, > > Updated using svn > > Still the same problem. > > Gambas 1.19 works fine can even use SCIM in QT applications > > > But the same problem persists in 2.2.2 (1020 i think) > > BTW I have QT3 and QT4 installed as I have some applications that need > QT4. > > Bascilly SCIM is very buggy in Gambas 2 apps > > Any ideas, much appreciated. Any other packages that may help (devel)? > > In the mean time i will uninstall and try the rpm version for fedora. > > Steven > I get the bug when using gb.gtk and the SCIM bridge input method. I don't get the bug if I use the SCIM input method (without "bridge"). It seems that there is a bad interaction between a GTK+ input method API and its implementation in the SCIM bridge input method module. I mean, a function that should be called twice without any problem actually makes this specific input method behave badly. I don't know the difference between SCIM and "SCIM bridge", but maybe you could try to use SCIM instead of "SCIM bridge"? I'm currently looking at the SCIM source code to understand what is done in the background. Which version of SCIM is installed on your system? -- Benoit Minisini From gambas at ...1... Sun Mar 2 13:39:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Mar 2008 13:39:02 +0100 Subject: [Gambas-user] for each. How get the key and the value? In-Reply-To: References: Message-ID: <200803021339.02993.gambas@...1...> On mercredi 27 f?vrier 2008, smiefert at ...784... wrote: > Hello, > > how can i get key and value in a for each ? > > > foreach myCollection > print key ?! > next > for each Value in TheCollection print "Key = "; TheCollection.Key;" Value = "; Value next -- Benoit Minisini From maximvonk at ...626... Sun Mar 2 16:08:11 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 2 Mar 2008 07:08:11 -0800 (PST) Subject: [Gambas-user] Persistent dialog path In-Reply-To: <200803020002.48885.gambas@...1...> References: <15777807.post@...1379...> <200803020002.48885.gambas@...1...> Message-ID: <15788898.post@...1379...> Benoit Minisini wrote: > >> I cannot reproduce the problem: can you provide some code? > Hi Benoit, thanks for responding. The problem seems to have sorted itself out since I rebooted and restarted Gambas. Perhaps something that I was doing caused the problem? If I find out what the problem was (And if its relevant to anyone else) Ill post back here. Regards Max -- View this message in context: http://www.nabble.com/Persistent-dialog-path-tp15777807p15788898.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Sun Mar 2 12:27:44 2008 From: rterry at ...1822... (richard terry) Date: Sun, 2 Mar 2008 22:27:44 +1100 Subject: [Gambas-user] How to reference control on another form Message-ID: <200803022227.45143.rterry@...1822...> I would have thought this was easy, however for the life of me I cannot get it to work. This simple concept has bought my main project to a grinding halt! I attach a picture and code, of something absolutely basic which I tried to get this concept to work - embed a form in a workspace, then when the button is clicked, change the text in the textbox. 1) form created (form1) with a textbox (textbox1) only 2) main form created with a workspace (workspace1) the form1 is added to the workspace on Fmain, and a button put underneath =========================== Code for Fmain: PUBLIC newform AS form1 PUBLIC SUB Form_Open() newform = NEW Form1 newform.title = "Tab 1" Workspace1.Add(newform) END PUBLIC SUB Button1_Click() 'this dosn't work newform.textbox1.text = "hullo" END ============================ Any help appreciated. Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: referencing_form.png Type: image/png Size: 55220 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: referencing_a_form.tar.gz Type: application/x-tgz Size: 7921 bytes Desc: not available URL: From rterry at ...1822... Sun Mar 2 22:37:52 2008 From: rterry at ...1822... (richard terry) Date: Mon, 3 Mar 2008 08:37:52 +1100 Subject: [Gambas-user] How to reference control on another form (solved) Message-ID: <200803030837.52859.rterry@...1822...> Just to post the solution for other dummmies following my trail Thanks to Mario - go to Menu Project, Properties, Options and in Compilation heading to Form Controls are Public. Thanks Mario ========================================= Previous posting was: I would have thought this was easy, however for the life of me I cannot get it to work. This simple concept has bought my main project to a grinding halt! I attach a picture and code, of something absolutely basic which I tried to get this concept to work - embed a form in a workspace, then when the button is clicked, change the text in the textbox. 1) form created (form1) with a textbox (textbox1) only 2) main form created with a workspace (workspace1) ????????the form1 is added to the workspace on Fmain, and a button put underneath =========================== Code for Fmain: PUBLIC newform AS form1 PUBLIC SUB Form_Open() ?newform = NEW Form1 ?newform.title = "Tab 1" ? ?Workspace1.Add(newform) ? END PUBLIC SUB Button1_Click() 'this dosn't work ? newform.textbox1.text = "hullo" END ============================ Any help appreciated. Richard From sourceforge-raindog2 at ...94... Sun Mar 2 23:36:43 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 2 Mar 2008 17:36:43 -0500 Subject: [Gambas-user] Gambas class to read a joystick Message-ID: <200803021736.43761.sourceforge-raindog2@...94...> Someone on linuxbasic.net asked for a way to read a joystick in Gambas. I couldn't find anything in the SDL component for that purpose, so I wrote a minimal class that reads from the raw device, parses the data into something useful, and throws events. I wrote a program to demonstrate it as well. To make it work, I had to EXEC ["cat", device] instead of just OPEN device FOR READ WATCH. Gambas told me "System error: Invalid argument" every time the File_Read event fired and I tried to read from the file handle, even though the example makes it look like it works with device nodes. I'm sure there's a better way to do this, but ultimately gb.sdl should probably have joystick support anyway (and if I were more familiar with SDL, I would have done that instead of this.) Nonetheless, this works. In case the archived version of the list doesn't store attachments, it's also available at http://www.kudla.org/jstest-0.0.2.tar.gz for future reference. Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: jstest-0.0.2.tar.gz Type: application/x-tgz Size: 6731 bytes Desc: not available URL: From lordheavym at ...626... Sun Mar 2 23:58:03 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Sun, 2 Mar 2008 23:58:03 +0100 Subject: [Gambas-user] Gambas class to read a joystick In-Reply-To: <200803021736.43761.sourceforge-raindog2@...94...> References: <200803021736.43761.sourceforge-raindog2@...94...> Message-ID: <200803022358.03202.lordheavym@...626...> Le Sunday 02 March 2008 23:36:43 Rob, vous avez ?crit?: > Someone on linuxbasic.net asked for a way to read a joystick in > Gambas. I couldn't find anything in the SDL component for that > purpose, so I wrote a minimal class that reads from the raw device, > parses the data into something useful, and throws events. I wrote a > program to demonstrate it as well. > > To make it work, I had to EXEC ["cat", device] instead of just OPEN > device FOR READ WATCH. Gambas told me "System error: Invalid > argument" every time the File_Read event fired and I tried to read > from the file handle, even though the example makes it look like it > works with device nodes. I'm sure there's a better way to do this, > but ultimately gb.sdl should probably have joystick support anyway > (and if I were more familiar with SDL, I would have done that instead > of this.) Nonetheless, this works. > > In case the archived version of the list doesn't store attachments, > it's also available at http://www.kudla.org/jstest-0.0.2.tar.gz for > future reference. > > Rob An external component (outside of sdl) should be a good idea and not be too hard to develop. Some hints (quick search through gg): http://www.koders.com/c/fid19CB9E605749A439549F8CC9B8433DCAC6AC5A55.aspx http://www.mjmwired.net/kernel/Documentation/input/joystick.txt ++ From gambas at ...1... Mon Mar 3 00:00:49 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 3 Mar 2008 00:00:49 +0100 Subject: [Gambas-user] Gambas class to read a joystick In-Reply-To: <200803021736.43761.sourceforge-raindog2@...94...> References: <200803021736.43761.sourceforge-raindog2@...94...> Message-ID: <200803030000.49514.gambas@...1...> On dimanche 2 mars 2008, Rob wrote: > Someone on linuxbasic.net asked for a way to read a joystick in > Gambas. I couldn't find anything in the SDL component for that > purpose, so I wrote a minimal class that reads from the raw device, > parses the data into something useful, and throws events. I wrote a > program to demonstrate it as well. > > To make it work, I had to EXEC ["cat", device] instead of just OPEN > device FOR READ WATCH. Gambas told me "System error: Invalid > argument" every time the File_Read event fired and I tried to read > from the file handle, even though the example makes it look like it > works with device nodes. Having no joystick, I opened "/dev/input/mouse0" with FOR READ WATCH, the Read event is fired when I move the mouse, and I don't get such an error. So this is strange... Where do you get the error exactly? -- Benoit Minisini From sourceforge-raindog2 at ...94... Mon Mar 3 04:06:52 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 2 Mar 2008 22:06:52 -0500 Subject: [Gambas-user] Gambas class to read a joystick In-Reply-To: <200803030000.49514.gambas@...1...> References: <200803021736.43761.sourceforge-raindog2@...94...> <200803030000.49514.gambas@...1...> Message-ID: <200803022206.52871.sourceforge-raindog2@...94...> On Sunday 02 March 2008 18:00, Benoit Minisini wrote: > Having no joystick, I opened "/dev/input/mouse0" with FOR READ > WATCH, the Read event is fired when I move the mouse, and I don't > get such an error. So this is strange... Where do you get the error > exactly? On the first "READ #jsdev" line. I've attached a small project to recreate the error (on my system, with a USB gamepad plugged in) along with a screenshot so you can see the error. Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: jserror-0.0.1.tar.gz Type: application/x-tgz Size: 3996 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: jserror.png Type: image/png Size: 81593 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Mon Mar 3 04:15:58 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 2 Mar 2008 22:15:58 -0500 Subject: [Gambas-user] Gambas class to read a joystick In-Reply-To: <200803022358.03202.lordheavym@...626...> References: <200803021736.43761.sourceforge-raindog2@...94...> <200803022358.03202.lordheavym@...626...> Message-ID: <200803022215.58385.sourceforge-raindog2@...94...> On Sunday 02 March 2008 17:58, Laurent Carlier wrote: > An external component (outside of sdl) should be a good idea and > not be too hard to develop. > > Some hints (quick search through gg): > http://www.koders.com/c/fid19CB9E605749A439549F8CC9B8433DCAC6AC5A55 >.aspx > http://www.mjmwired.net/kernel/Documentation/input/joystick.txt My class only supports HID-standard joysticks, which seems to be all they sell nowadays. (The one I used is USB, but I think Bluetooth gamepads are HID too.) The links above are for the old style "gameport" joysticks, and I don't have any way to test those since I don't own any hardware with a gameport anymore. I think those disappeared before parallel ports did. Anyway, my class seems to support most of the features joysticks have (up to 256 buttons and axes, but no rumble because I don't have a rumbling controller.) If I do write a proper component I think it'll be a C version of that class, though hopefully I will no longer have to spawn /bin/cat. Rob From david_villalobos_c at ...43... Mon Mar 3 13:25:50 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 3 Mar 2008 04:25:50 -0800 (PST) Subject: [Gambas-user] Compile Gambas on 64bits Message-ID: <689238.4404.qm@...1671...> Hi, Can anybody compiles Gambas on Mandriva 2008.0 64 bits? I couldn't, any hint? I will like to know the list of packages. Best regards David ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From kari.laine at ...1400... Mon Mar 3 13:28:25 2008 From: kari.laine at ...1400... (Kari Laine) Date: Mon, 03 Mar 2008 14:28:25 +0200 Subject: [Gambas-user] TabStrip access Message-ID: <47CBEEE9.7020409@...1400...> Hi, I have a form with TabStrip. In the TabStrip one tab has TexBoxes. How I access these from the module - thanks. Best Regards Kari Laine From steven at ...1652... Mon Mar 3 14:14:11 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Mon, 03 Mar 2008 14:14:11 +0100 Subject: [Gambas-user] TabStrip access In-Reply-To: <47CBEEE9.7020409@...1400...> References: <47CBEEE9.7020409@...1400...> Message-ID: <1204550051.7230.63.camel@...1816...> Just Name them like in texteboxname.Text Steven Le lundi 03 mars 2008 ? 14:28 +0200, Kari Laine a ?crit : > Hi, > > I have a form with TabStrip. In the TabStrip one tab has TexBoxes. How I > access these from the module - thanks. > > Best Regards > Kari Laine > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Mar 3 14:29:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 3 Mar 2008 14:29:57 +0100 Subject: [Gambas-user] Gambas class to read a joystick In-Reply-To: <200803022206.52871.sourceforge-raindog2@...94...> References: <200803021736.43761.sourceforge-raindog2@...94...> <200803030000.49514.gambas@...1...> <200803022206.52871.sourceforge-raindog2@...94...> Message-ID: <200803031429.57647.gambas@...1...> On lundi 3 mars 2008, Rob wrote: > On Sunday 02 March 2008 18:00, Benoit Minisini wrote: > > Having no joystick, I opened "/dev/input/mouse0" with FOR READ > > WATCH, the Read event is fired when I move the mouse, and I don't > > get such an error. So this is strange... Where do you get the error > > exactly? > > On the first "READ #jsdev" line. I've attached a small project to > recreate the error (on my system, with a USB gamepad plugged in) > along with a screenshot so you can see the error. > > Rob After having looked in Linux sources, I understood: The joystick input device driver can only be read by chunks whose size is the size of a structure documented in the Documentation/input/joystick-api.txt file in the Linux sources. Alas the driver hacker didn't implement the FIONREAD ioctl that allows the user space to dynamically know how many bytes it can read when the joystick file descriptor is ready to be read. You must encode it in your program. Berk... Now, the question is why 'cat' works? Because it does not read the file byte by byte, but by big blocks, so the device driver returns as many joystick events as possible until the requested number of bytes is reached. So, in File_Read, you must read the file descriptor by blocks: --8<-------------------------------------- DIM sBuffer AS String READ #jsdev, sBuffer, -256 PRINT Len(sBuffer) ' Now interprets the buffer contents --8<-------------------------------------- Regards, -- Benoit Minisini From m0e.lnx at ...626... Mon Mar 3 14:30:04 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 3 Mar 2008 07:30:04 -0600 Subject: [Gambas-user] Multi-purpose SHELL process in gambas2-2.0.0 In-Reply-To: <1f1e8c1b0802291239i9532c6byae74ef9adde353de@...627...> References: <1f1e8c1b0802291239i9532c6byae74ef9adde353de@...627...> Message-ID: <1f1e8c1b0803030530u2dcf4a9cx6f4749daaac43d66@...627...> Anybody?? Please? On Fri, Feb 29, 2008 at 2:39 PM, M0E Lnx wrote: > Hello again fellow gambasian coders... > > I'm kinda stuck and require your expertise on a problem I'm having... > I've been trying this for a couple of days, with the same results, > trying to see if anyone's got a good suggestiongthat might help me > > Here is the idea. > This application is supposed to build software from source. From that > we gather that there are several steps to be taken from extracting the > source, to installing the resulting binaries. > In the previous versions of this application, I used one(1) process > for each step of the build process (up to 4). This is sort of messy > and hard to track, but I made it work. > In an effort to consolidate the code, and offer better error checking > and more accurary, I'm trying to have ONLY ONE(1) process and have > functions to tell the process what to do. > > It almost works, But i'm having problems where it's not triggering the > right sequence, and it seems to not be executing all of the code in > the process_kill() event. > > Please look at this piece of code... > > 'Gambas class file > PUBLIC hBuildProc AS Process > PUBLIC iBuildState AS Integer ' Enumerated build state (0 - 5) > PUBLIC sBuildType AS String PRIVATE sShellCmd AS String > > PUBLIC SUB process_read() > DIM iReturnvalue AS Integer > DIM sLine AS String > READ #LAST, sLine, -256 > ' Insert the buffer read into the text area for the user to see > FrmBuildView.taTerm.pos = Len(FrmBuildView.taTerm.text) > FrmBuildView.taTerm.Insert(sLine) > END > > PUBLIC SUB process_error(errormessage AS String) > FrmBuildView.taTerm.pos = Len(FrmBuildView.taTerm.text) > FrmBuildView.taTerm.Insert(errormessage) > END > > > PUBLIC SUB Process_kill() > DIM iRetval AS Integer > DIM iNextStepNum AS Integer > > iRetval = ME.QUICK_ERROR_CHECK(FrmBuildView.taTerm.text, "FAILED") > > SELECT CASE iRetval > CASE 1 ' Error was found > MdlMain.WRITE_TO_BUILD_LOG("Error detected in the build process... aborting") > > FrmBuildView.tmProgress.Enabled = FALSE > ME.TOGGLE_CANCEL_BUTTON(FALSE) > STOP EVENT > CASE 0 ' All clear... go to the next step > > SELECT CASE ME.iBuildState > CASE 0 ' extraction is done > ME.GUESS_SRC_TYPE(ClsGlobal.sTMP_DIR &/ ClsBuildVars.sName & > "-" & ClsBuildVars.sVersion) > CASE ELSE > 'iNextStepNum = ME.iBuildState + 1 > SELECT CASE ME.sBuildType > CASE "GNU" > 'WHILE iBuildState < 4 > IF ibuildstate < 4 > ME.BUILD_C(ClsBuildVars.sName, ClsBuildVars.sVersion, > ClsBuildVars.sSlackDesc, ME.iBuildState + 1) > 'WEND > END IF > END SELECT > > END SELECT > > END SELECT > > END > > > PUBLIC FUNCTION BUILD_C(sName AS String, sVer AS String, sPkgDescPath > AS String, iBuildStep AS Integer) > > 'Assumes GNU style build will be used (determined by the type of source found) > > DIM sArch AS String = ClsBuildVars.sArch > DIM sRel AS String = ClsBuildVars.sRel > DIM sTag AS String = ClsBuildVars.sTag > DIM sConfig AS String = ClsBuildVars.sConfig > DIM sCFLAGS AS String = ClsBuildVars.sCFLAGS > DIM sPkgType AS String = ClsBuildVars.sType > DIM sFullPackageName AS String = sName & "-" & sVer & "-" & sArch & > "-" & sRel & sTag & "." & sPkgType > DIM sTmpSpace AS String = ClsGlobal.sTMP_DIR > DIM sBuildDir AS String = sTmpSpace &/ sName & "-" & sVer &/ "build" > 'DIM sShellCmd AS String > DIM sPKG AS String = sBuildDir &/ "PKG" > DIM sLackDescDest AS String = sPKG &/ "install" > > 'message.Info(iBuildStep) > > SELECT CASE iBuildStep > > 'CASE 0 ' Guess > > CASE 1 ' Configure the source > IF IsDir(sBuildDir) = FALSE THEN > PRINT "Creating build directory" > TRY MKDIR sBuildDir > END IF > MdlMain.WRITE_TO_BUILD_LOG("Begin configure process...") > sShellCmd = "cd " & sBuildDir & " && ../configure " & sConfig & " > CFLAGS=\'" & sCFLAGS & "\' || echo \'FAILED\'" > FrmBuildView.PbBuildProg.value = 0.25 > 'RETURN > CASE 2 ' Run make > MdlMain.WRITE_TO_BUILD_LOG("Run make") > sShellCmd = "cd " & sBuildDir & " && make || echo \'FAILED\'" > FrmBuildView.PbBuildProg.value = 0.50 > 'RETURN > CASE 3 ' make install > MdlMain.WRITE_TO_BUILD_LOG("Run make install") > IF IsDir(sPkg) = FALSE THEN > MKDIR sPKG > END IF > > ' insert the slack-desc into the package > IF IsDir(sLackDescDest) = FALSE THEN > MKDIR sLackDescDest > END IF > ME.INSERT_DESC(ClsBuildVars.sSlackDesc, sLackDescDest) > sShellCmd = "cd " & sBuildDir & " && make DESTDIR=" & sPKG & " > install || echo \'FAILED\'" > > FrmBuildView.PbBuildProg.value = 0.75 > 'RETURN > CASE 4 > MdlMain.WRITE_TO_BUILD_LOG("Package built source") > ME.PACKAGE(sBuildDir &/ "PKG") > CASE 101 ' on error > sShellCmd = "" > STOP EVENT > RETURN > > > > END SELECT > > EXECUTE_PROCESS(iBuildStep) > > > END > > > > PUBLIC FUNCTION QUICK_ERROR_CHECK(sRawText AS String, sMatch AS > String) AS Integer > IF InStr(sRawText, sMatch) > 0 THEN > FrmBuildView.tmProgress.Enabled = FALSE ' Found an error, stop the timer > RETURN 1 > ELSE > RETURN 0 > END IF > END > > ______________________ END OF MODULE _______________________________ > > Whew!.. that was a lot of code. > > Basically, in a nutshell, what this is supposed to do is this > I have a function that assigns a different value to a variable > (sShellCmd) every time it is ran (the value is based on the results of > the previous step) > After this variable is assigned the new value, the same function > triggers the process. > When the process ends (using the process_kill() event for this), I run > an error check (using the QUICK_ERROR_CHECK function avobe) This > function decides wether the process will continue or not. > > > PLEASE HELP > You are more than welcome to checkout the full source code and take a > look at how everything works (or at least is supposed to work) > together. > svn co http://vpackager.googlecode.com/svn/branches/1.0.11/trunk > or browse it online... Here is a link to the FULL MODULE > http://code.google.com/p/vpackager/source/browse/branches/1.0.11/trunk/MdlBuild.module > > Again, Using gambas-2.2.0.0 > Thanks > From kari.laine at ...1400... Mon Mar 3 14:37:17 2008 From: kari.laine at ...1400... (Kari Laine) Date: Mon, 03 Mar 2008 15:37:17 +0200 Subject: [Gambas-user] TabStrip access In-Reply-To: <1204550051.7230.63.camel@...1816...> References: <47CBEEE9.7020409@...1400...> <1204550051.7230.63.camel@...1816...> Message-ID: <47CBFF0D.50206@...1400...> Thanks for the advice! actually I have tried it before and I tried it again now... All I get is "Unknown identifier TextBox1 at line ... in modprint.module." Sorry to be pain ask stupid questions but I just started with the gambas. Best Regards Kari Steven Lobbezoo kirjoitti: > Just Name them like in texteboxname.Text > > Steven > > Le lundi 03 mars 2008 ? 14:28 +0200, Kari Laine a ?crit : >> Hi, >> >> I have a form with TabStrip. In the TabStrip one tab has TexBoxes. How I >> access these from the module - thanks. >> >> Best Regards >> Kari Laine >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From m0e.lnx at ...626... Mon Mar 3 14:52:20 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 3 Mar 2008 07:52:20 -0600 Subject: [Gambas-user] TabStrip access In-Reply-To: <47CBFF0D.50206@...1400...> References: <47CBEEE9.7020409@...1400...> <1204550051.7230.63.camel@...1816...> <47CBFF0D.50206@...1400...> Message-ID: <1f1e8c1b0803030552j7540d7e1nf5ae5ff8695020d3@...627...> Are your form controls set to be access publically? (they're not set up this way by default). Unless you've set this property to true, then you wont be able to access them from anywhere, except their container form. On Mon, Mar 3, 2008 at 7:37 AM, Kari Laine wrote: > Thanks for the advice! > actually I have tried it before and I tried it again now... > All I get is "Unknown identifier TextBox1 at line ... in modprint.module." > > Sorry to be pain ask stupid questions but I just started with the gambas. > > Best Regards > Kari > > > Steven Lobbezoo kirjoitti: > > > Just Name them like in texteboxname.Text > > > > Steven > > > > Le lundi 03 mars 2008 ? 14:28 +0200, Kari Laine a ?crit : > >> Hi, > >> > >> I have a form with TabStrip. In the TabStrip one tab has TexBoxes. How I > >> access these from the module - thanks. > >> > >> Best Regards > >> Kari Laine > >> > >> ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From david_villalobos_c at ...43... Mon Mar 3 15:33:30 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 3 Mar 2008 06:33:30 -0800 (PST) Subject: [Gambas-user] Error on TextEdit Message-ID: <302632.14955.qm@...1658...> Hi, I got a problem the TextEdit, I load an HTML file onto it, and the Caption Tag and the Center property are not shown. Can someone validate? Attached is an example. Run the program and see the HTML file. Regards. David ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping -------------- next part -------------- A non-text attachment was scrubbed... Name: Err_txe-0.0.1.tar.gz Type: application/x-tgz Size: 7783 bytes Desc: not available URL: From kari.laine at ...1400... Mon Mar 3 16:00:53 2008 From: kari.laine at ...1400... (Kari Laine) Date: Mon, 03 Mar 2008 17:00:53 +0200 Subject: [Gambas-user] TabStrip access In-Reply-To: <1f1e8c1b0803030552j7540d7e1nf5ae5ff8695020d3@...627...> References: <47CBEEE9.7020409@...1400...> <1204550051.7230.63.camel@...1816...> <47CBFF0D.50206@...1400...> <1f1e8c1b0803030552j7540d7e1nf5ae5ff8695020d3@...627...> Message-ID: <47CC12A5.1000200@...1400...> Hi MOE Lnx, thanks for comment. I think this is the problem. I have not done anything for the access status. How it is defined? I did not find anything in the properties of form or textbox. Could you please let me know how to set it - thanks. Kari M0E Lnx kirjoitti: > Are your form controls set to be access publically? (they're not set > up this way by default). Unless you've set this property to true, then > you wont be able to access them from anywhere, except their container > form. > > > > > > On Mon, Mar 3, 2008 at 7:37 AM, Kari Laine wrote: >> Thanks for the advice! >> actually I have tried it before and I tried it again now... >> All I get is "Unknown identifier TextBox1 at line ... in modprint.module." >> >> Sorry to be pain ask stupid questions but I just started with the gambas. >> >> Best Regards >> Kari >> >> >> Steven Lobbezoo kirjoitti: >> >>> Just Name them like in texteboxname.Text >>> >>> Steven >>> >>> Le lundi 03 mars 2008 ? 14:28 +0200, Kari Laine a ?crit : >>>> Hi, >>>> >>>> I have a form with TabStrip. In the TabStrip one tab has TexBoxes. How I >>>> access these from the module - thanks. >>>> >>>> Best Regards >>>> Kari Laine >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Mon Mar 3 15:56:26 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 3 Mar 2008 09:56:26 -0500 Subject: [Gambas-user] Gambas class to read a joystick In-Reply-To: <200803031429.57647.gambas@...1...> References: <200803021736.43761.sourceforge-raindog2@...94...> <200803022206.52871.sourceforge-raindog2@...94...> <200803031429.57647.gambas@...1...> Message-ID: <200803030956.26368.sourceforge-raindog2@...94...> On Monday 03 March 2008 08:29, Benoit Minisini wrote: > So, in File_Read, you must read the file descriptor by blocks: Thanks, I might as well write the joystick component in Gambas then. How do you think it should be named? Rob From robertsonhamish at ...626... Mon Mar 3 16:25:07 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Mon, 3 Mar 2008 22:25:07 +0700 Subject: [Gambas-user] dumb newbie question Message-ID: Hey guys, I'm a complete newbie to gambas and programming. I would like to know how to close one form and open up a new one. I'm making a wizard. When the user clicks the next button I want the form Step2.form to open. Can someone here throw me a bone? :) H. From m0e.lnx at ...626... Mon Mar 3 16:27:44 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 3 Mar 2008 09:27:44 -0600 Subject: [Gambas-user] dumb newbie question In-Reply-To: References: Message-ID: <1f1e8c1b0803030727l3837d6c9n815b8efcfca30769@...627...> On you next button's click event, that's where you code in your actions public sub btNext_click() Step1.hide ' you can't close it because if this is your startup form, the application will exit Step2.show END On Mon, Mar 3, 2008 at 9:25 AM, Hamish Robertson wrote: > Hey guys, > > I'm a complete newbie to gambas and programming. I would like to know how to > close one form and open up a new one. I'm making a wizard. When the user > clicks the next button I want the form Step2.form to open. > > Can someone here throw me a bone? :) > > H. > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From robertsonhamish at ...626... Mon Mar 3 16:31:20 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Mon, 3 Mar 2008 22:31:20 +0700 Subject: [Gambas-user] dumb newbie question In-Reply-To: <1f1e8c1b0803030727l3837d6c9n815b8efcfca30769@...627...> References: <1f1e8c1b0803030727l3837d6c9n815b8efcfca30769@...627...> Message-ID: THANK YOU M0E Lnx!!! :) On 03/03/2008, M0E Lnx wrote: > > On you next button's click event, that's where you code in your actions > > public sub btNext_click() > Step1.hide ' you can't close it because if this is your startup form, > the application will exit > Step2.show > END > > > On Mon, Mar 3, 2008 at 9:25 AM, Hamish Robertson > wrote: > > Hey guys, > > > > I'm a complete newbie to gambas and programming. I would like to know > how to > > close one form and open up a new one. I'm making a wizard. When the user > > clicks the next button I want the form Step2.form to open. > > > > Can someone here throw me a bone? :) > > > > H. > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jaap_cramer at ...67... Mon Mar 3 16:33:41 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Mon, 3 Mar 2008 16:33:41 +0100 Subject: [Gambas-user] dumb newbie question In-Reply-To: <1f1e8c1b0803030727l3837d6c9n815b8efcfca30769@...627...> References: <1f1e8c1b0803030727l3837d6c9n815b8efcfca30769@...627...> Message-ID: You could use the 'wizard' component. It is a container (like a tab; add pages by increasing the wizard.count) You first have to activate the component by PROJECT -> PROPERTIES -> Components -> GB.FORM Then you can add the wizard to a form. This component gives you all the buttons you need. Jaap ---------------------------------------- > Date: Mon, 3 Mar 2008 09:27:44 -0600 > From: m0e.lnx at ...626... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] dumb newbie question > > On you next button's click event, that's where you code in your actions > > public sub btNext_click() > Step1.hide ' you can't close it because if this is your startup form, > the application will exit > Step2.show > END > > On Mon, Mar 3, 2008 at 9:25 AM, Hamish Robertson > wrote: >> Hey guys, >> >> I'm a complete newbie to gambas and programming. I would like to know how to >> close one form and open up a new one. I'm making a wizard. When the user >> clicks the next button I want the form Step2.form to open. >> >> Can someone here throw me a bone? :) >> >> H. >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ De mooiste afbeeldingen van Angelina Jolie vind je met Live Search http://search.live.com/images/results.aspx?q=angelina%20jolie&FORM=MIINTM From gambas at ...1... Mon Mar 3 16:53:59 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 3 Mar 2008 16:53:59 +0100 Subject: [Gambas-user] Gambas class to read a joystick In-Reply-To: <200803030956.26368.sourceforge-raindog2@...94...> References: <200803021736.43761.sourceforge-raindog2@...94...> <200803031429.57647.gambas@...1...> <200803030956.26368.sourceforge-raindog2@...94...> Message-ID: <200803031653.59126.gambas@...1...> On lundi 3 mars 2008, Rob wrote: > On Monday 03 March 2008 08:29, Benoit Minisini wrote: > > So, in File_Read, you must read the file descriptor by blocks: > > Thanks, I might as well write the joystick component in Gambas then. > How do you think it should be named? > > Rob > Mmm, good question... Maybe you should first read the documentation on /dev/input in the Documentation directory of the linux kernel sources. Not to implement all its features, but to see what the specific joystick part has in common with other /dev/input devices, so that your component could easily be extended to support other devices. Then this component is linux specific. At the moment, the interpreter does not tell anything about the underlying OS. Maybe it should? With an implementation of #ifdef / #endif in the gambas compiler? For the 3.0 version then... So I suggest something like "gb.linux.joystick", to tell that is really linux specific. Regards, -- Benoit Minisini From gambas at ...1... Mon Mar 3 16:55:52 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 3 Mar 2008 16:55:52 +0100 Subject: [Gambas-user] Error on TextEdit In-Reply-To: <302632.14955.qm@...1658...> References: <302632.14955.qm@...1658...> Message-ID: <200803031655.52101.gambas@...1...> On lundi 3 mars 2008, David Villalobos Cambronero wrote: > Hi, > > I got a problem the TextEdit, I load an HTML file onto it, and the > Caption Tag and the Center property are not shown. > > Can someone validate? > > Attached is an example. Run the program and see the HTML file. > > Regards. > > David > TextEdit does not display HTML, but only a small subset of it. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Mon Mar 3 17:04:58 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 3 Mar 2008 08:04:58 -0800 (PST) Subject: [Gambas-user] Error on TextEdit Message-ID: <917217.56862.qm@...1671...> Ahhhhhh, OK, I got it ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Monday, March 3, 2008 9:55:52 AM Subject: Re: [Gambas-user] Error on TextEdit On lundi 3 mars 2008, David Villalobos Cambronero wrote: > Hi, > > I got a problem the TextEdit, I load an HTML file onto it, and the > Caption Tag and the Center property are not shown. > > Can someone validate? > > Attached is an example. Run the program and see the HTML file. > > Regards. > > David > TextEdit does not display HTML, but only a small subset of it. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From rolf.frogs at ...221... Mon Mar 3 18:03:20 2008 From: rolf.frogs at ...221... (rolf) Date: Mon, 3 Mar 2008 18:03:20 +0100 Subject: [Gambas-user] Horizontal alignment in text labels Message-ID: <200803031803.23839.rolf.frogs@...221...> Hi Benoit, attached are two screenshots to show the behavior of the horizontal alignment in textlabels. So if I choose top-... the text is aligned at the bottom of the field and vice versa. Do I misinterpret something? System is Debian Lenny, Gambas 2.0.0 self compiled. Fine regards Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: bottom.gif Type: image/gif Size: 12630 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: top.gif Type: image/gif Size: 14037 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From kari.laine at ...1400... Mon Mar 3 18:12:24 2008 From: kari.laine at ...1400... (Kari Laine) Date: Mon, 03 Mar 2008 19:12:24 +0200 Subject: [Gambas-user] BUG ? Message-ID: <47CC3178.5070905@...1400...> Hi, I noticed a problem which makes development difficult. When I run a project and error results then the toolbox vanishes. Those little arrows are nowhere to be found. Also menu selection does nothing. Sure way for me to get in that situation is to run DataReportExample (which I am trying to fix) - it gives an error and toolbox arrows are gone. I have tested this with two computers and it also happens with the Gambas3 (cvs) version. One computer is SUSE 10.2 and other one is debian testing. Both X86. Best Regards Kari Laine From nando_f at ...951... Mon Mar 3 19:35:18 2008 From: nando_f at ...951... (nando) Date: Mon, 3 Mar 2008 13:35:18 -0500 Subject: [Gambas-user] dumb newbie question In-Reply-To: <1f1e8c1b0803030727l3837d6c9n815b8efcfca30769@...627...> References: <1f1e8c1b0803030727l3837d6c9n815b8efcfca30769@...627...> Message-ID: <20080303183355.M46561@...951...> I believe you can close the startup form IF you have something else existing and it still exists after the close ---------- Original Message ----------- From: "M0E Lnx" To: "mailing list for gambas users" Sent: Mon, 3 Mar 2008 09:27:44 -0600 Subject: Re: [Gambas-user] dumb newbie question > On you next button's click event, that's where you code in your actions > > public sub btNext_click() > Step1.hide ' you can't close it because if this is your startup form, > the application will exit > Step2.show > END > > On Mon, Mar 3, 2008 at 9:25 AM, Hamish Robertson > wrote: > > Hey guys, > > > > I'm a complete newbie to gambas and programming. I would like to know how to > > close one form and open up a new one. I'm making a wizard. When the user > > clicks the next button I want the form Step2.form to open. > > > > Can someone here throw me a bone? :) > > > > H. > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From maximvonk at ...626... Mon Mar 3 19:45:24 2008 From: maximvonk at ...626... (MaxVK) Date: Mon, 3 Mar 2008 10:45:24 -0800 (PST) Subject: [Gambas-user] Highlight editor - Highlight help Message-ID: <15810811.post@...1379...> Hi there, Iv been struggling with this for a while now. I am using the HTML highlighting code that comes in the documentation and the example and I want to include some more code that will highlight CSS as well as HTML. Can anyone point me in the right direction with some code to look through or some direct explanation about how the highlighting actually works? Please don't suggest reading the example code because Iv been doing that for two days now and I'm still none the wiser about how to get this working. I'm also looking to try and check spelling as I type. I can get the last word typed so I can spell check it, but I need to be able to highlight the word in some way (Presumably as an error), and I'm assuming that this will need to be done in the highlight event, although again, Iv failed miserably when Iv tried to get it working. Can anyone help please? Cheers Max -- View this message in context: http://www.nabble.com/Highlight-editor---Highlight-help-tp15810811p15810811.html Sent from the gambas-user mailing list archive at Nabble.com. From richard.j.walker at ...247... Mon Mar 3 20:06:00 2008 From: richard.j.walker at ...247... (Richard) Date: Mon, 3 Mar 2008 19:06:00 +0000 Subject: [Gambas-user] How to reference control on another form In-Reply-To: <200803022227.45143.rterry@...1822...> References: <200803022227.45143.rterry@...1822...> Message-ID: <200803031906.00393.richard.j.walker@...247...> On Sunday 02 March 2008 11:27:44 richard terry wrote: > I would have thought this was easy, however for the life of me I cannot get > it to work. This simple concept has bought my main project to a grinding > halt! > > I attach a picture and code, of something absolutely basic which I tried to > get this concept to work - embed a form in a workspace, then when the > button is clicked, change the text in the textbox. > > 1) form created (form1) with a textbox (textbox1) only > 2) main form created with a workspace (workspace1) > the form1 is added to the workspace on Fmain, and a button put underneath > =========================== > Code for Fmain: > > PUBLIC newform AS form1 > > PUBLIC SUB Form_Open() > newform = NEW Form1 > newform.title = "Tab 1" > > Workspace1.Add(newform) > > END > > PUBLIC SUB Button1_Click() > 'this dosn't work > newform.textbox1.text = "hullo" > > END > ============================ > > Any help appreciated. > > Richard Hi Rich, don't know if there is a "nicer" way, but try setting form controls as publicly visible in your project. It worked for me. See pics -------------- next part -------------- A non-text attachment was scrubbed... Name: Project10-properties.jpg Type: image/jpeg Size: 37419 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Project10-success.jpg Type: image/jpeg Size: 8089 bytes Desc: not available URL: From smccuan at ...626... Mon Mar 3 22:04:29 2008 From: smccuan at ...626... (Shawn McCuan) Date: Mon, 3 Mar 2008 16:04:29 -0500 Subject: [Gambas-user] Installing Gambas2 on PCLinuxOS 2007 Message-ID: Does anyone know if there are binary packages (i.e.: RPM's) for installing Gambas2 on PCLOS? If not, does anyone know of a tutorial that shows how to install it from the sources? Thanks! -- Shawn McCuan smccuan at ...626... Support a national vote in the US! http://en.wikipedia.org/wiki/National_Popular_Vote_Interstate_Compact http://www.nationalpopularvote.com From rterry at ...1822... Mon Mar 3 22:56:30 2008 From: rterry at ...1822... (richard terry) Date: Tue, 4 Mar 2008 08:56:30 +1100 Subject: [Gambas-user] Missing component error Message-ID: <200803040856.30875.rterry@...1822...> I cut an pasted a form from existing project into new one, obviously didn't set the components first in the properties. Wonder it its possible for the error message to indicate which component is missing. Enclose the png. richard -------------- next part -------------- A non-text attachment was scrubbed... Name: missing_component_message.png Type: image/png Size: 13134 bytes Desc: not available URL: From leonardo at ...1237... Mon Mar 3 23:21:26 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 03 Mar 2008 23:21:26 +0100 Subject: [Gambas-user] Installing Gambas2 on PCLinuxOS 2007 In-Reply-To: References: Message-ID: <47CC79E6.7090304@...1237...> Shawn McCuan ha scritto: > Does anyone know if there are binary packages (i.e.: RPM's) for installing > Gambas2 on PCLOS? > > If not, does anyone know of a tutorial that shows how to install it from the > sources? > > Thanks! > Due to the fact that PCLinuxOS derives from Mandriva, I think you can follow the guidelines reported in the wiki of the official site of Gambas (gambas.sourceforge.net) for this distro. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From sourceforge-raindog2 at ...94... Tue Mar 4 00:42:44 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 3 Mar 2008 18:42:44 -0500 Subject: [Gambas-user] Installing Gambas2 on PCLinuxOS 2007 In-Reply-To: References: Message-ID: <200803031842.44129.sourceforge-raindog2@...94...> On Monday 03 March 2008 16:04, Shawn McCuan wrote: > Does anyone know if there are binary packages (i.e.: RPM's) for > installing Gambas2 on PCLOS? I haven't seen any, but here's my Mandriva 2007.1 source RPM (PCLOS is originally based on Mandriva.) http://www.kudla.org/rpm/gambas2-2.0.0-1rkmdv2007.1.src.rpm If PCLinuxOS has kept the same package naming scheme, you should be able to install "rpm-build" and then "rpm --rebuild gambas2-2.0.0-1rkmdv2007.1.src.rpm" to generate your own binary packages after 20 or 30 minutes. (It will tell you to install a whole bunch of development packages when you run rpm --rebuild the first time, but it should be fine after that.) Wish I could be more specific, but I haven't used PCLOS myself. Rob From smccuan at ...626... Tue Mar 4 01:20:20 2008 From: smccuan at ...626... (Shawn McCuan) Date: Mon, 3 Mar 2008 19:20:20 -0500 Subject: [Gambas-user] Installing Gambas2 on PCLinuxOS 2007 In-Reply-To: <200803031842.44129.sourceforge-raindog2@...94...> References: <200803031842.44129.sourceforge-raindog2@...94...> Message-ID: I downloaded the file from Kudla, ran rpm-build the first time, which as you stated wanted me to install a bunch of devel packages. I installed them all, then ran rpm-build again... All seemed to be going well for about five minutes, and then i got the following error message: *RPM build errors: user schmoe does not exist - using root group schmoe does not exist - using root user schmoe does not exist - using root group schmoe does not exist - using root File not found: /var/tmp/gambas2-buildroot/usr/share/gambas2/icons File not found by glob: /var/tmp/gambas2-buildroot/usr/lib/gambas2/gb.desktop.* File not found by glob: /var/tmp/gambas2-buildroot/usr/share/gambas2/info/gb.desktop.** Any suggestions? If it would be helpful, I could run rpm-build again and have it write the output to a text file so you can see the whole process... Thanks! On Mon, Mar 3, 2008 at 6:42 PM, Rob wrote: > On Monday 03 March 2008 16:04, Shawn McCuan wrote: > > Does anyone know if there are binary packages (i.e.: RPM's) for > > installing Gambas2 on PCLOS? > > I haven't seen any, but here's my Mandriva 2007.1 source RPM (PCLOS is > originally based on Mandriva.) > > http://www.kudla.org/rpm/gambas2-2.0.0-1rkmdv2007.1.src.rpm > > If PCLinuxOS has kept the same package naming scheme, you should be > able to install "rpm-build" and then "rpm --rebuild > gambas2-2.0.0-1rkmdv2007.1.src.rpm" to generate your own binary > packages after 20 or 30 minutes. (It will tell you to install a > whole bunch of development packages when you run rpm --rebuild the > first time, but it should be fine after that.) > > Wish I could be more specific, but I haven't used PCLOS myself. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Shawn McCuan smccuan at ...626... Support a national vote in the US! http://en.wikipedia.org/wiki/National_Popular_Vote_Interstate_Compact http://www.nationalpopularvote.com From rterry at ...1822... Tue Mar 4 02:01:03 2008 From: rterry at ...1822... (richard terry) Date: Tue, 4 Mar 2008 12:01:03 +1100 Subject: [Gambas-user] Any chance of a clue on how to fix the form-copy Message-ID: <200803041201.04019.rterry@...1822...> The button to allow a form copy is still inactived. I've downloaded and installed the latest CVS. Any clues to decipher this as it is holding up my learning as I can't copy and re-use old forms easily. Thanks Richard From sourceforge-raindog2 at ...94... Tue Mar 4 02:06:38 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 3 Mar 2008 20:06:38 -0500 Subject: [Gambas-user] Installing Gambas2 on PCLinuxOS 2007 In-Reply-To: References: <200803031842.44129.sourceforge-raindog2@...94...> Message-ID: <200803032006.39090.sourceforge-raindog2@...94...> On Monday 03 March 2008 19:20, Shawn McCuan wrote: > *RPM build errors: > user schmoe does not exist - using root These "user schmoe" errors are fine; I build my packages under an account called "schmoe" on my laptop. > File not found: > /var/tmp/gambas2-buildroot/usr/share/gambas2/icons File not found This error will require a change to the spec file, so "rpm --rebuild" won't work automatically. Install the source RPM like this: rpm -ivh gambas2-2.0.0-1rkmdv2007.1.src.rpm Then edit /usr/src/rpm/SPECS/gambas2.spec and look for the line that is just "/usr/share/gambas2/icons", and remove it. This should be line 226. Save the file, and try to rebuild the RPM with rpm -ba /usr/src/rpm/SPECS/gambas2.spec > by glob: > /var/tmp/gambas2-buildroot/usr/lib/gambas2/gb.desktop.* > File not found by glob: > /var/tmp/gambas2-buildroot/usr/share/gambas2/info/gb.desktop.** Unfortunately, this means the gb.desktop component didn't build, and I think the IDE requires it at this point. I don't know why it wouldn't have given you errors during the compile, though. My guess would be that gb.desktop requires something I forgot to put in the build requirements, and therefore the configure script disabled it. I can't find where it checks for that requirement, though, and the configure script should have still printed a warning. Maybe install libice-devel and libxtst-devel? (or possibly libice6-devel and libxtst6-devel) They seem to be required by gb.desktop but since they were already present on my system I missed them in my build requirements. You'll still have to remove that line about the icons, though. > Any suggestions? > If it would be helpful, I could run rpm-build again and have it > write the output to a text file so you can see the whole process... Please do that, but send it to me directly, not to the list. You'll probably need to add 2>&1 to your rpm -ba line so that it includes all the error messages generated during the compile. Rob From andrew.james.barr at ...626... Tue Mar 4 02:23:49 2008 From: andrew.james.barr at ...626... (Andrew Barr) Date: Mon, 3 Mar 2008 20:23:49 -0500 Subject: [Gambas-user] gb.xml documentation? Message-ID: <200803032023.49541.andrew.james.barr@...626...> Is there any documentation at all on the gb.xml component? The source code is entirely uncommented and the links in the documentation point to nonexistant files. I am having great difficulty using this component because I am having to rely on guesswork and reading third-party examples. Are we supposed to refer to the libxml2 documentation instead? I have found one third party example and it is only a document tree viewer, which is of limited usefulness because I have specific data I want to extract from an XML file. I am using Gambas 2.2.1 from the Debian unstable archives, if it makes a difference. -- Andrew Barr Now Playing: Green Day - Jesus of Suburbia From mcdodavid at ...626... Tue Mar 4 02:44:07 2008 From: mcdodavid at ...626... (Dave) Date: Mon, 3 Mar 2008 19:44:07 -0600 Subject: [Gambas-user] unsubscribe In-Reply-To: References: Message-ID: <93FACAD7BE414EF2980AFDB239C2B6CF@...1867...> ----- Original Message ----- From: To: Sent: Monday, March 03, 2008 6:20 PM Subject: Gambas-user Digest, Vol 22, Issue 9 > 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-owner 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. Installing Gambas2 on PCLinuxOS 2007 (Shawn McCuan) > 2. Missing component error (richard terry) > 3. Re: Installing Gambas2 on PCLinuxOS 2007 (Leonardo Miliani) > 4. Re: Installing Gambas2 on PCLinuxOS 2007 (Rob) > 5. Re: Installing Gambas2 on PCLinuxOS 2007 (Shawn McCuan) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 3 Mar 2008 16:04:29 -0500 > From: "Shawn McCuan" > Subject: [Gambas-user] Installing Gambas2 on PCLinuxOS 2007 > To: Gambas-user at lists.sourceforge.net > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Does anyone know if there are binary packages (i.e.: RPM's) for installing > Gambas2 on PCLOS? > > If not, does anyone know of a tutorial that shows how to install it from > the > sources? > > Thanks! > > -- > Shawn McCuan > smccuan at ...626... > > Support a national vote in the US! > http://en.wikipedia.org/wiki/National_Popular_Vote_Interstate_Compact > http://www.nationalpopularvote.com > > > ------------------------------ > > Message: 2 > Date: Tue, 4 Mar 2008 08:56:30 +1100 > From: richard terry > Subject: [Gambas-user] Missing component error > To: gambas-user at lists.sourceforge.net > Message-ID: <200803040856.30875.rterry at ...1822...> > Content-Type: text/plain; charset="us-ascii" > > I cut an pasted a form from existing project into new one, obviously > didn't > set the components first in the properties. > > Wonder it its possible for the error message to indicate which component > is > missing. > > Enclose the png. > > richard > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: missing_component_message.png > Type: image/png > Size: 13134 bytes > Desc: not available > > ------------------------------ > > Message: 3 > Date: Mon, 03 Mar 2008 23:21:26 +0100 > From: Leonardo Miliani > Subject: Re: [Gambas-user] Installing Gambas2 on PCLinuxOS 2007 > To: mailing list for gambas users > Message-ID: <47CC79E6.7090304 at ...1237...> > Content-Type: text/plain; charset=ISO-8859-1 > > Shawn McCuan ha scritto: >> Does anyone know if there are binary packages (i.e.: RPM's) for >> installing >> Gambas2 on PCLOS? >> >> If not, does anyone know of a tutorial that shows how to install it from >> the >> sources? >> >> Thanks! >> > > Due to the fact that PCLinuxOS derives from Mandriva, I think you can > follow the guidelines reported in the wiki of the official site of > Gambas (gambas.sourceforge.net) for this distro. > > -- > Ciao. > Leo. > > Web: www.leonardomiliani.com > E-mail: leonardo at ...1237... > > Co-fondatore di Gambas-it.org: www.gambas-it.org > (il sito italiano dedicato alla comunit? di Gambas) > > Scegli software opensource - Choose opensource software > > > > ------------------------------ > > Message: 4 > Date: Mon, 3 Mar 2008 18:42:44 -0500 > From: Rob > Subject: Re: [Gambas-user] Installing Gambas2 on PCLinuxOS 2007 > To: gambas-user at lists.sourceforge.net > Message-ID: <200803031842.44129.sourceforge-raindog2 at ...94...> > Content-Type: text/plain; charset="iso-8859-1" > > On Monday 03 March 2008 16:04, Shawn McCuan wrote: >> Does anyone know if there are binary packages (i.e.: RPM's) for >> installing Gambas2 on PCLOS? > > I haven't seen any, but here's my Mandriva 2007.1 source RPM (PCLOS is > originally based on Mandriva.) > > http://www.kudla.org/rpm/gambas2-2.0.0-1rkmdv2007.1.src.rpm > > If PCLinuxOS has kept the same package naming scheme, you should be > able to install "rpm-build" and then "rpm --rebuild > gambas2-2.0.0-1rkmdv2007.1.src.rpm" to generate your own binary > packages after 20 or 30 minutes. (It will tell you to install a > whole bunch of development packages when you run rpm --rebuild the > first time, but it should be fine after that.) > > Wish I could be more specific, but I haven't used PCLOS myself. > > Rob > > > > ------------------------------ > > Message: 5 > Date: Mon, 3 Mar 2008 19:20:20 -0500 > From: "Shawn McCuan" > Subject: Re: [Gambas-user] Installing Gambas2 on PCLinuxOS 2007 > To: "mailing list for gambas users" > > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > I downloaded the file from Kudla, ran rpm-build the first time, which as > you > stated wanted me to install a bunch of devel packages. I installed them > all, > then ran rpm-build again... > > All seemed to be going well for about five minutes, and then i got the > following error message: > > *RPM build errors: > user schmoe does not exist - using root > group schmoe does not exist - using root > user schmoe does not exist - using root > group schmoe does not exist - using root > File not found: /var/tmp/gambas2-buildroot/usr/share/gambas2/icons > File not found by glob: > /var/tmp/gambas2-buildroot/usr/lib/gambas2/gb.desktop.* > File not found by glob: > /var/tmp/gambas2-buildroot/usr/share/gambas2/info/gb.desktop.** > > > Any suggestions? > If it would be helpful, I could run rpm-build again and have it write the > output to a text file so you can see the whole process... > > Thanks! > > On Mon, Mar 3, 2008 at 6:42 PM, Rob > wrote: > >> On Monday 03 March 2008 16:04, Shawn McCuan wrote: >> > Does anyone know if there are binary packages (i.e.: RPM's) for >> > installing Gambas2 on PCLOS? >> >> I haven't seen any, but here's my Mandriva 2007.1 source RPM (PCLOS is >> originally based on Mandriva.) >> >> http://www.kudla.org/rpm/gambas2-2.0.0-1rkmdv2007.1.src.rpm >> >> If PCLinuxOS has kept the same package naming scheme, you should be >> able to install "rpm-build" and then "rpm --rebuild >> gambas2-2.0.0-1rkmdv2007.1.src.rpm" to generate your own binary >> packages after 20 or 30 minutes. (It will tell you to install a >> whole bunch of development packages when you run rpm --rebuild the >> first time, but it should be fine after that.) >> >> Wish I could be more specific, but I haven't used PCLOS myself. >> >> Rob >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Shawn McCuan > smccuan at ...626... > > Support a national vote in the US! > http://en.wikipedia.org/wiki/National_Popular_Vote_Interstate_Compact > http://www.nationalpopularvote.com > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > ------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > End of Gambas-user Digest, Vol 22, Issue 9 > ****************************************** From robertsonhamish at ...626... Tue Mar 4 02:56:00 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 4 Mar 2008 08:56:00 +0700 Subject: [Gambas-user] dumb newbie question In-Reply-To: <20080303183355.M46561@...951...> References: <1f1e8c1b0803030727l3837d6c9n815b8efcfca30769@...627...> <20080303183355.M46561@...951...> Message-ID: Wow. Thanks guys for all the support. so much appreciated! How long have you guys been using gambas? Was gambas your first language or did you come to gambas from VB? On 04/03/2008, nando wrote: > > I believe you can close the startup form IF > you have something else existing and it still exists > after the close > > > > ---------- Original Message ----------- > From: "M0E Lnx" > To: "mailing list for gambas users" > Sent: Mon, 3 Mar 2008 09:27:44 -0600 > Subject: Re: [Gambas-user] dumb newbie question > > > > On you next button's click event, that's where you code in your actions > > > > public sub btNext_click() > > Step1.hide ' you can't close it because if this is your startup form, > > the application will exit > > Step2.show > > END > > > > On Mon, Mar 3, 2008 at 9:25 AM, Hamish Robertson > > wrote: > > > Hey guys, > > > > > > I'm a complete newbie to gambas and programming. I would like to know > how to > > > close one form and open up a new one. I'm making a wizard. When the > user > > > clicks the next button I want the form Step2.form to open. > > > > > > Can someone here throw me a bone? :) > > > > > > H. > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------- End of Original Message ------- > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1822... Tue Mar 4 03:27:18 2008 From: rterry at ...1822... (richard terry) Date: Tue, 4 Mar 2008 13:27:18 +1100 Subject: [Gambas-user] Well meant advice or those struggling to build gambas In-Reply-To: <200803032006.39090.sourceforge-raindog2@...94...> References: <200803032006.39090.sourceforge-raindog2@...94...> Message-ID: <200803041327.18246.rterry@...1822...> Don't know how to produce a smiley to accompany this, so don't take offence at this post, and may not apply specifically to you, but I can't help myself but post this comment. Having watched a number of list members seeming to struggle so often with building gambas, why not do your self a favour and install the best linux distro in the world (ARCH linux - www.archlinux.org) and simply use a PKGBUILD file, which of course I'll generously pass on to you That way could can build to your hearts contents with none of the problems you seem to be continually encountering. I re-build mine every day or two from 2.0 and never encounter any problems. Regards Richard On Tue, 4 Mar 2008 12:06:38 pm Rob wrote: > On Monday 03 March 2008 19:20, Shawn McCuan wrote: > > *RPM build errors: > > user schmoe does not exist - using root > > These "user schmoe" errors are fine; I build my packages under an > account called "schmoe" on my laptop. > > > File not found: > > /var/tmp/gambas2-buildroot/usr/share/gambas2/icons File not found > > This error will require a change to the spec file, so "rpm --rebuild" > won't work automatically. Install the source RPM like this: > > rpm -ivh gambas2-2.0.0-1rkmdv2007.1.src.rpm > > Then edit /usr/src/rpm/SPECS/gambas2.spec and look for the line that > is just "/usr/share/gambas2/icons", and remove it. This should be > line 226. Save the file, and try to rebuild the RPM with > > rpm -ba /usr/src/rpm/SPECS/gambas2.spec > > > by glob: > > /var/tmp/gambas2-buildroot/usr/lib/gambas2/gb.desktop.* > > File not found by glob: > > /var/tmp/gambas2-buildroot/usr/share/gambas2/info/gb.desktop.** > > Unfortunately, this means the gb.desktop component didn't build, and I > think the IDE requires it at this point. I don't know why it > wouldn't have given you errors during the compile, though. My guess > would be that gb.desktop requires something I forgot to put in the > build requirements, and therefore the configure script disabled it. > I can't find where it checks for that requirement, though, and the > configure script should have still printed a warning. > > Maybe install libice-devel and libxtst-devel? (or possibly > libice6-devel and libxtst6-devel) They seem to be required by > gb.desktop but since they were already present on my system I missed > them in my build requirements. You'll still have to remove that line > about the icons, though. > > > Any suggestions? > > If it would be helpful, I could run rpm-build again and have it > > write the output to a text file so you can see the whole process... > > Please do that, but send it to me directly, not to the list. You'll > probably need to add 2>&1 to your rpm -ba line so that it includes > all the error messages generated during the compile. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From robertsonhamish at ...626... Tue Mar 4 03:40:07 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 4 Mar 2008 09:40:07 +0700 Subject: [Gambas-user] Well meant advice or those struggling to build gambas In-Reply-To: <200803041327.18246.rterry@...1822...> References: <200803032006.39090.sourceforge-raindog2@...94...> <200803041327.18246.rterry@...1822...> Message-ID: How hard would it be to package gambas into an autopackage? http://autopackage.org/ That way it would only need to be packaged once and would be a lot easier to install for total newbies (Which is one of the usergroups that gambas targets in the firstplace) Any thoughts? On 04/03/2008, richard terry wrote: > > Don't know how to produce a smiley to accompany this, so don't take > offence at > this post, and may not apply specifically to you, but I can't help myself > but > post this comment. > > Having watched a number of list members seeming to struggle so often > with > building gambas, why not do your self a favour and install the best linux > distro in the world (ARCH linux - www.archlinux.org) and simply use a > PKGBUILD file, which of course I'll generously pass on to you > > That way could can build to your hearts contents with none of the problems > you > seem to be continually encountering. I re-build mine every day or two from > 2.0 and never encounter any problems. > > Regards > > Richard > > > On Tue, 4 Mar 2008 12:06:38 pm Rob wrote: > > On Monday 03 March 2008 19:20, Shawn McCuan wrote: > > > *RPM build errors: > > > user schmoe does not exist - using root > > > > These "user schmoe" errors are fine; I build my packages under an > > account called "schmoe" on my laptop. > > > > > File not found: > > > /var/tmp/gambas2-buildroot/usr/share/gambas2/icons File not found > > > > This error will require a change to the spec file, so "rpm --rebuild" > > won't work automatically. Install the source RPM like this: > > > > rpm -ivh gambas2-2.0.0-1rkmdv2007.1.src.rpm > > > > Then edit /usr/src/rpm/SPECS/gambas2.spec and look for the line that > > is just "/usr/share/gambas2/icons", and remove it. This should be > > line 226. Save the file, and try to rebuild the RPM with > > > > rpm -ba /usr/src/rpm/SPECS/gambas2.spec > > > > > by glob: > > > /var/tmp/gambas2-buildroot/usr/lib/gambas2/gb.desktop.* > > > File not found by glob: > > > /var/tmp/gambas2-buildroot/usr/share/gambas2/info/gb.desktop.** > > > > Unfortunately, this means the gb.desktop component didn't build, and I > > think the IDE requires it at this point. I don't know why it > > wouldn't have given you errors during the compile, though. My guess > > would be that gb.desktop requires something I forgot to put in the > > build requirements, and therefore the configure script disabled it. > > I can't find where it checks for that requirement, though, and the > > configure script should have still printed a warning. > > > > Maybe install libice-devel and libxtst-devel? (or possibly > > libice6-devel and libxtst6-devel) They seem to be required by > > gb.desktop but since they were already present on my system I missed > > them in my build requirements. You'll still have to remove that line > > about the icons, though. > > > > > Any suggestions? > > > If it would be helpful, I could run rpm-build again and have it > > > write the output to a text file so you can see the whole process... > > > > Please do that, but send it to me directly, not to the list. You'll > > probably need to add 2>&1 to your rpm -ba line so that it includes > > all the error messages generated during the compile. > > > > Rob > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From smccuan at ...626... Tue Mar 4 03:53:44 2008 From: smccuan at ...626... (Shawn McCuan) Date: Mon, 3 Mar 2008 21:53:44 -0500 Subject: [Gambas-user] Well meant advice or those struggling to build gambas In-Reply-To: <200803041327.18246.rterry@...1822...> References: <200803032006.39090.sourceforge-raindog2@...94...> <200803041327.18246.rterry@...1822...> Message-ID: Actually, with Rob's help, everything is running perfectly on PCLOS for me :) On Mon, Mar 3, 2008 at 9:27 PM, richard terry wrote: > Don't know how to produce a smiley to accompany this, so don't take > offence at > this post, and may not apply specifically to you, but I can't help myself > but > post this comment. > > Having watched a number of list members seeming to struggle so often > with > building gambas, why not do your self a favour and install the best linux > distro in the world (ARCH linux - www.archlinux.org) and simply use a > PKGBUILD file, which of course I'll generously pass on to you > > That way could can build to your hearts contents with none of the problems > you > seem to be continually encountering. I re-build mine every day or two from > 2.0 and never encounter any problems. > > Regards > > Richard > > > On Tue, 4 Mar 2008 12:06:38 pm Rob wrote: > > On Monday 03 March 2008 19:20, Shawn McCuan wrote: > > > *RPM build errors: > > > user schmoe does not exist - using root > > > > These "user schmoe" errors are fine; I build my packages under an > > account called "schmoe" on my laptop. > > > > > File not found: > > > /var/tmp/gambas2-buildroot/usr/share/gambas2/icons File not found > > > > This error will require a change to the spec file, so "rpm --rebuild" > > won't work automatically. Install the source RPM like this: > > > > rpm -ivh gambas2-2.0.0-1rkmdv2007.1.src.rpm > > > > Then edit /usr/src/rpm/SPECS/gambas2.spec and look for the line that > > is just "/usr/share/gambas2/icons", and remove it. This should be > > line 226. Save the file, and try to rebuild the RPM with > > > > rpm -ba /usr/src/rpm/SPECS/gambas2.spec > > > > > by glob: > > > /var/tmp/gambas2-buildroot/usr/lib/gambas2/gb.desktop.* > > > File not found by glob: > > > /var/tmp/gambas2-buildroot/usr/share/gambas2/info/gb.desktop.** > > > > Unfortunately, this means the gb.desktop component didn't build, and I > > think the IDE requires it at this point. I don't know why it > > wouldn't have given you errors during the compile, though. My guess > > would be that gb.desktop requires something I forgot to put in the > > build requirements, and therefore the configure script disabled it. > > I can't find where it checks for that requirement, though, and the > > configure script should have still printed a warning. > > > > Maybe install libice-devel and libxtst-devel? (or possibly > > libice6-devel and libxtst6-devel) They seem to be required by > > gb.desktop but since they were already present on my system I missed > > them in my build requirements. You'll still have to remove that line > > about the icons, though. > > > > > Any suggestions? > > > If it would be helpful, I could run rpm-build again and have it > > > write the output to a text file so you can see the whole process... > > > > Please do that, but send it to me directly, not to the list. You'll > > probably need to add 2>&1 to your rpm -ba line so that it includes > > all the error messages generated during the compile. > > > > Rob > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Shawn McCuan smccuan at ...626... Support a national vote in the US! http://en.wikipedia.org/wiki/National_Popular_Vote_Interstate_Compact http://www.nationalpopularvote.com From m0e.lnx at ...626... Tue Mar 4 04:41:29 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 3 Mar 2008 21:41:29 -0600 Subject: [Gambas-user] TabStrip access In-Reply-To: <47CC12A5.1000200@...1400...> References: <47CBEEE9.7020409@...1400...> <1204550051.7230.63.camel@...1816...> <47CBFF0D.50206@...1400...> <1f1e8c1b0803030552j7540d7e1nf5ae5ff8695020d3@...627...> <47CC12A5.1000200@...1400...> Message-ID: <1f1e8c1b0803031941yae2006au8d189333552d1b21@...627...> With your project open in the IDE, from the menu click away in this sequence Project -> Properties -> Options Find the label that reads "Form controls are public" and set the value to it's right to true from the drop down HTH On Mon, Mar 3, 2008 at 9:00 AM, Kari Laine wrote: > Hi MOE Lnx, > thanks for comment. I think this is the problem. I have not done > anything for the access status. How it is defined? I did not find > anything in the properties of form or textbox. Could you please let me > know how to set it - thanks. > > Kari > > > > M0E Lnx kirjoitti: > > > > Are your form controls set to be access publically? (they're not set > > up this way by default). Unless you've set this property to true, then > > you wont be able to access them from anywhere, except their container > > form. > > > > > > > > > > > > On Mon, Mar 3, 2008 at 7:37 AM, Kari Laine wrote: > >> Thanks for the advice! > >> actually I have tried it before and I tried it again now... > >> All I get is "Unknown identifier TextBox1 at line ... in modprint.module." > >> > >> Sorry to be pain ask stupid questions but I just started with the gambas. > >> > >> Best Regards > >> Kari > >> > >> > >> Steven Lobbezoo kirjoitti: > >> > >>> Just Name them like in texteboxname.Text > >>> > >>> Steven > >>> > >>> Le lundi 03 mars 2008 ? 14:28 +0200, Kari Laine a ?crit : > >>>> Hi, > >>>> > >>>> I have a form with TabStrip. In the TabStrip one tab has TexBoxes. How I > >>>> access these from the module - thanks. > >>>> > >>>> Best Regards > >>>> Kari Laine > >>>> > >>>> ------------------------------------------------------------------------- > >>>> This SF.net email is sponsored by: Microsoft > >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> > >>> > >>> ------------------------------------------------------------------------- > >>> This SF.net email is sponsored by: Microsoft > >>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Tue Mar 4 05:46:47 2008 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 03 Mar 2008 23:46:47 -0500 Subject: [Gambas-user] loading an SVG... Message-ID: <47CCD437.80603@...981...> I've been looking for documentation and examples for the gb.gtk.svg and have found nothing at all. Anyone got some sample code for using this component? From nxgtrturbo at ...626... Tue Mar 4 08:13:45 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Mon, 3 Mar 2008 23:13:45 -0800 Subject: [Gambas-user] Gambas with JWM Desktop? Message-ID: <688afe140803032313u2362e02aoc17f9f3642c3776d@...627...> Gambas with JWM Desktop? Hi, I am working in a ERP & CRM system in gambas, some people (~300) have downloaded my app, but a lot of them have stopped, when they see is Linux Only, force the people to use Linux is not the way to go, so I decide to release my Gambas app in a "windows version" under a pre-configured VM for VMPlayer, because: 1. I would set up everything needed 2. The app would run in a native environment 3. The user would be happy working with Linux under Windows At first I want to write a "How to install Linux under Windows" guide (Actually I did it), but I found most people don't care, they want "everything easy", so I change my strategy to share a pre-configured VM with everything ready. A good option is a Damn Small Machine, but the problem is the JWM Desktop, I guess my app wont run, will it? If not, what can I do?, I want to share my app, but simply a download of 700mb for a K/U buntu VM is not the way to go... Any Ideas for the easiest (from user side) way to run a Gambas app in Windows? P.S.: I know the NX Client sound good, but not for a ERP & CRM application. Anyway I don't have a server for 300xN users. -- http://www.cardomain.com/ride/645756 http://nxgtrturbo.googlepages.com/ http://www.fotolog.com/nxgtrturbo/ http://tallerhuertas.googlepages.com/ From kari.laine at ...1400... Tue Mar 4 08:19:30 2008 From: kari.laine at ...1400... (Kari Laine) Date: Tue, 04 Mar 2008 09:19:30 +0200 Subject: [Gambas-user] TabStrip access In-Reply-To: <1f1e8c1b0803031941yae2006au8d189333552d1b21@...627...> References: <47CBEEE9.7020409@...1400...> <1204550051.7230.63.camel@...1816...> <47CBFF0D.50206@...1400...> <1f1e8c1b0803030552j7540d7e1nf5ae5ff8695020d3@...627...> <47CC12A5.1000200@...1400...> <1f1e8c1b0803031941yae2006au8d189333552d1b21@...627...> Message-ID: <47CCF802.9070904@...1400...> M0E Lnx kirjoitti: > With your project open in the IDE, from the menu click away in this sequence > > Project -> Properties -> Options > Find the label that reads "Form controls are public" and set the value > to it's right to true from the drop down > THANK You - that did it. I feel so stupid ... Kari From audiossis at ...867... Tue Mar 4 10:19:58 2008 From: audiossis at ...867... (Audiossis) Date: Tue, 04 Mar 2008 20:19:58 +1100 Subject: [Gambas-user] Gambas-user Digest, Vol 22, Issue 6 In-Reply-To: References: Message-ID: <1204622398.15970.24.camel@...37...> > ------------------------------ > > Message: 3 > Date: Mon, 3 Mar 2008 09:56:26 -0500 > From: Rob > Subject: Re: [Gambas-user] Gambas class to read a joystick > To: gambas-user at lists.sourceforge.net > Message-ID: <200803030956.26368.sourceforge-raindog2 at ...94...> > Content-Type: text/plain; charset="iso-8859-1" > > On Monday 03 March 2008 08:29, Benoit Minisini wrote: > > So, in File_Read, you must read the file descriptor by blocks: > > Thanks, I might as well write the joystick component in Gambas then. > How do you think it should be named? > > Rob > > Rob, Sorry, it took me a little time to post to your request. I am another Gambas user (not a developer), but I have written a Gambas class file to make use of a C library called libusb. It would seem to me that you may benefit from this class file with your joystick issue if your joystick is not detected in a way that Gambas can otherwise use. This library will let you write a user mode driver or program that will access almost any type of usb device, although it does have its limits (isochronous tranfers are not supported yet). However, that being said, if you know enough C to program a Gambas module, then you may be able to add isochronous support to this library for your own uses......? You could then build on my class file and get the joystick support you are looking for. Using libusb would allow you to bypass the HID driver altogether. Perhaps you could even base a Gambas module on the libusb library....? Just a suggestion. Ben From audiossis at ...867... Tue Mar 4 10:25:42 2008 From: audiossis at ...867... (Audiossis) Date: Tue, 04 Mar 2008 20:25:42 +1100 Subject: [Gambas-user] Gambas class to read a joystick Message-ID: <1204622742.15970.27.camel@...37...> > ------------------------------ > > Message: 3 > Date: Mon, 3 Mar 2008 09:56:26 -0500 > From: Rob > Subject: Re: [Gambas-user] Gambas class to read a joystick > To: gambas-user at lists.sourceforge.net > Message-ID: <200803030956.26368.sourceforge-raindog2 at ...94...> > Content-Type: text/plain; charset="iso-8859-1" > > On Monday 03 March 2008 08:29, Benoit Minisini wrote: > > So, in File_Read, you must read the file descriptor by blocks: > > Thanks, I might as well write the joystick component in Gambas then. > How do you think it should be named? > > Rob > > Rob, Sorry, it took me a little time to post to your request. I am another Gambas user (not a developer), but I have written a Gambas class file to make use of a C library called libusb. It would seem to me that you may benefit from this class file with your joystick issue if your joystick is not detected in a way that Gambas can otherwise use. This library will let you write a user mode driver or program that will access almost any type of usb device, although it does have its limits (isochronous tranfers are not supported yet). However, that being said, if you know enough C to program a Gambas module, then you may be able to add isochronous support to this library for your own uses......? You could then build on my class file and get the joystick support you are looking for. Using libusb would allow you to bypass the HID driver altogether. Perhaps you could even base a Gambas module on the libusb library....? Just a suggestion. Ben (PS. Sorry for the double post Benoit, I keep forgetting to change the subject line......) From steven at ...1545... Tue Mar 4 10:40:04 2008 From: steven at ...1545... (Steven Drinnan) Date: Tue, 04 Mar 2008 17:40:04 +0800 Subject: [Gambas-user] How to reference control on another form In-Reply-To: <200803031906.00393.richard.j.walker@...247...> References: <200803022227.45143.rterry@...1822...> <200803031906.00393.richard.j.walker@...247...> Message-ID: <1204623604.10010.7.camel@...1857...> If i need to do that I create a public sub to set the text box or use properties to set the field value EG. Public sub setTextBox1(nText as string) TextBox1.text = ntext end On Mon, 2008-03-03 at 19:06 +0000, Richard wrote: > On Sunday 02 March 2008 11:27:44 richard terry wrote: > > I would have thought this was easy, however for the life of me I cannot get > > it to work. This simple concept has bought my main project to a grinding > > halt! > > > > I attach a picture and code, of something absolutely basic which I tried to > > get this concept to work - embed a form in a workspace, then when the > > button is clicked, change the text in the textbox. > > > > 1) form created (form1) with a textbox (textbox1) only > > 2) main form created with a workspace (workspace1) > > the form1 is added to the workspace on Fmain, and a button put underneath > > =========================== > > Code for Fmain: > > > > PUBLIC newform AS form1 > > > > PUBLIC SUB Form_Open() > > newform = NEW Form1 > > newform.title = "Tab 1" > > > > Workspace1.Add(newform) > > > > END > > > > PUBLIC SUB Button1_Click() > > 'this dosn't work > > newform.textbox1.text = "hullo" > > > > END > > ============================ > > > > Any help appreciated. > > > > Richard > > Hi Rich, don't know if there is a "nicer" way, but try setting form controls > as publicly visible in your project. It worked for me. See pics > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From kari.laine at ...1400... Tue Mar 4 10:44:39 2008 From: kari.laine at ...1400... (Kari Laine) Date: Tue, 04 Mar 2008 11:44:39 +0200 Subject: [Gambas-user] control groups Message-ID: <47CD1A07.4050602@...1400...> Hi, I am beginner so I ask stupid questions. I have 40 textboxes on a form. They are part of a group. How I make program to process those boxes in order from 1 to 40? I mean in a style like ----------------------- for each textboxvariable in group process box next ----------------------- Best Regards Kari From rospolosco at ...152... Tue Mar 4 12:24:44 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 4 Mar 2008 12:24:44 +0100 Subject: [Gambas-user] control groups In-Reply-To: <47CD1A07.4050602@...1400...> References: <47CD1A07.4050602@...1400...> Message-ID: <200803041224.44273.rospolosco@...152...> Alle 10:44, marted? 4 marzo 2008, Kari Laine ha scritto: > Hi, > > I am beginner so I ask stupid questions. > > I have 40 textboxes on a form. They are part of a group. How I make > program to process those boxes in order from 1 to 40? > > I mean in a style like > ----------------------- > for each textboxvariable in group > process box > next > ----------------------- > > Best Regards > Kari > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user DIM hControl AS Control FOR EACH hcontrol IN ME.Children IF object.Type(hControl) = "TextBox" THEN PRINT hcontrol.name ENDIF NEXT Stefano From kari.laine at ...1400... Tue Mar 4 12:57:59 2008 From: kari.laine at ...1400... (Kari Laine) Date: Tue, 04 Mar 2008 13:57:59 +0200 Subject: [Gambas-user] control groups In-Reply-To: <200803041224.44273.rospolosco@...152...> References: <47CD1A07.4050602@...1400...> <200803041224.44273.rospolosco@...152...> Message-ID: <47CD3947.9090509@...1400...> Stefano Palmeri kirjoitti: > > DIM hControl AS Control > > FOR EACH hcontrol IN ME.Children > > IF object.Type(hControl) = "TextBox" THEN > PRINT hcontrol.name > ENDIF > > NEXT > > Stefano Thank You Stefano . Kari From kari.laine at ...1400... Tue Mar 4 13:08:27 2008 From: kari.laine at ...1400... (Kari Laine) Date: Tue, 04 Mar 2008 14:08:27 +0200 Subject: [Gambas-user] control groups In-Reply-To: <200803041224.44273.rospolosco@...152...> References: <47CD1A07.4050602@...1400...> <200803041224.44273.rospolosco@...152...> Message-ID: <47CD3BBB.8050106@...1400...> Stefano Palmeri kirjoitti: > Alle 10:44, marted? 4 marzo 2008, Kari Laine ha scritto: > > DIM hControl AS Control > > FOR EACH hcontrol IN ME.Children > > IF object.Type(hControl) = "TextBox" THEN > PRINT hcontrol.name > ENDIF > > NEXT > > Stefano Hi Stefano, the code you sended me does not test for the Controls Group. So is it possible to use for each syntax for all the controls in the group? Best Regards Kari From rospolosco at ...152... Tue Mar 4 16:16:27 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 4 Mar 2008 16:16:27 +0100 Subject: [Gambas-user] control groups In-Reply-To: <47CD3BBB.8050106@...1400...> References: <47CD1A07.4050602@...1400...> <200803041224.44273.rospolosco@...152...> <47CD3BBB.8050106@...1400...> Message-ID: <200803041616.27196.rospolosco@...152...> Alle 13:08, marted? 4 marzo 2008, Kari Laine ha scritto: > Stefano Palmeri kirjoitti: > > Alle 10:44, marted? 4 marzo 2008, Kari Laine ha scritto: > > > > DIM hControl AS Control > > > > FOR EACH hcontrol IN ME.Children > > > > IF object.Type(hControl) = "TextBox" THEN > > PRINT hcontrol.name > > ENDIF > > > > NEXT > > > > Stefano > > Hi Stefano, > > the code you sended me does not test for the Controls Group. So is it > possible to use for each syntax for all the controls in the group? > > Best Regards > Kari > Sorry, I really don't know if it's possible to enumerate all controls of a group with "FOR EACH". Probably, you have to create an array of objects of that group. But I'm not sure. Object.GetProperty(hcontrol, "Group") doesn't work, so I don't know... Wait for a more more experienced user than me :-) Ciao, Stefano > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From sbungay at ...981... Tue Mar 4 16:30:33 2008 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 04 Mar 2008 10:30:33 -0500 Subject: [Gambas-user] control groups In-Reply-To: <200803041616.27196.rospolosco@...152...> References: <47CD1A07.4050602@...1400...> <200803041224.44273.rospolosco@...152...> <47CD3BBB.8050106@...1400...> <200803041616.27196.rospolosco@...152...> Message-ID: <47CD6B19.2090409@...981...> Stefano Palmeri wrote: > Alle 13:08, marted? 4 marzo 2008, Kari Laine ha scritto: > >> Stefano Palmeri kirjoitti: >> >>> Alle 10:44, marted? 4 marzo 2008, Kari Laine ha scritto: >>> >>> DIM hControl AS Control >>> >>> FOR EACH hcontrol IN ME.Children >>> >>> IF object.Type(hControl) = "TextBox" THEN >>> PRINT hcontrol.name >>> ENDIF >>> >>> NEXT >>> >>> Stefano >>> >> Hi Stefano, >> >> the code you sended me does not test for the Controls Group. So is it >> possible to use for each syntax for all the controls in the group? >> >> Best Regards >> Kari >> >> > > Sorry, I really don't know if it's possible to enumerate all controls of a > group with "FOR EACH". Probably, you have to create an array > of objects of that group. But I'm not sure. > Object.GetProperty(hcontrol, "Group") doesn't work, so I don't know... > Wait for a more more experienced user than me :-) > > Ciao, > > Stefano > I think you are correct on this Stefano. I was reading this thread and recalled that there are no control groups in gambas... went to the old "VB has it GAMBAS does not" page and found this... "There's no direct Gambas equivalent to the Index property of VB form controls. You can easily create arrays of controls, but you have to do it in code. There's currently no way to do it graphically. Thus, when you copy a control and paste it back on the form it came from, rather than prompting you to create a control array it automatically renames the copied control to an appropriate name." Steve. > > > > >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Tue Mar 4 16:57:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Mar 2008 16:57:18 +0100 Subject: [Gambas-user] Gambas class to read a joystick In-Reply-To: <1204622742.15970.27.camel@...37...> References: <1204622742.15970.27.camel@...37...> Message-ID: <200803041657.18174.gambas@...1...> On mardi 4 mars 2008, Audiossis wrote: > > ------------------------------ > > > > Message: 3 > > Date: Mon, 3 Mar 2008 09:56:26 -0500 > > From: Rob > > Subject: Re: [Gambas-user] Gambas class to read a joystick > > To: gambas-user at lists.sourceforge.net > > Message-ID: <200803030956.26368.sourceforge-raindog2 at ...94...> > > Content-Type: text/plain; charset="iso-8859-1" > > > > On Monday 03 March 2008 08:29, Benoit Minisini wrote: > > > So, in File_Read, you must read the file descriptor by blocks: > > > > Thanks, I might as well write the joystick component in Gambas then. > > How do you think it should be named? > > > > Rob > > Rob, > Sorry, it took me a little time to post to your request. I am > another Gambas user (not a developer), but I have written a Gambas class > file to make use of a C library called libusb. It would seem to me that > you may benefit from this class file with your joystick issue if your > joystick is not detected in a way that Gambas can otherwise use. > > This library will let you write a user mode driver or program that > will access almost any type of usb device, although it does have its > limits (isochronous tranfers are not supported yet). However, that being > said, if you know enough C to program a Gambas module, then you may be > able to add isochronous support to this library for your own uses......? > You could then build on my class file and get the joystick support you > are looking for. Using libusb would allow you to bypass the HID driver > altogether. > > Perhaps you could even base a Gambas module on the libusb library....? > > Just a suggestion. > > Ben > > (PS. Sorry for the double post Benoit, I keep forgetting to change the > subject line......) I think you shouldn't read usb directly, because the Linux kernel has implemented an abstraction layer with devices located in /dev/input. Apparently you have /dev/input/event? devices that send input events, and specific devices for mice, joystick, and other things I don't know. If the joystick/keyboard/mouse is USB or serial is managed by these drivers. My 2 cents... -- Benoit Minisini From gambas at ...1... Tue Mar 4 16:58:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Mar 2008 16:58:31 +0100 Subject: [Gambas-user] Horizontal alignment in text labels In-Reply-To: <200803031803.23839.rolf.frogs@...221...> References: <200803031803.23839.rolf.frogs@...221...> Message-ID: <200803041658.31523.gambas@...1...> On lundi 3 mars 2008, rolf wrote: > Hi Benoit, > > attached are two screenshots to show the behavior of the horizontal > alignment in textlabels. So if I choose top-... the text is aligned at the > bottom of the field and vice versa. > Do I misinterpret something? > > System is Debian Lenny, Gambas 2.0.0 self compiled. > > Fine regards > Rolf Can you try to make your label bigger? I think there is a default paddign in the associated QT widget that makes it look weird in small sizes. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Tue Mar 4 17:14:11 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 4 Mar 2008 11:14:11 -0500 Subject: [Gambas-user] Gambas class to read a joystick In-Reply-To: <200803041657.18174.gambas@...1...> References: <1204622742.15970.27.camel@...37...> <200803041657.18174.gambas@...1...> Message-ID: <200803041114.11815.sourceforge-raindog2@...94...> On Tuesday 04 March 2008 10:57, Benoit Minisini wrote: > I think you shouldn't read usb directly, because the Linux kernel > has implemented an abstraction layer with devices located in > /dev/input. Apparently you have /dev/input/event? devices that send Yeah, I agree. It may be useful to have a generalized Gambas USB library available, but where there are abstraction layers I think we should use them. That's why I might end up making an SDL input component rather than a raw joystick component, assuming SDL input is usable by applications that don't use an SDL event loop, like Qt and Gtk ones. If it works, all Gambas apps on SDL-supported platforms would get joystick support, not just Linux. I wish I could just throw something together to try it, but my time for coding is pretty much just the weekends right now. Rob From lordheavym at ...626... Tue Mar 4 17:32:29 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 4 Mar 2008 17:32:29 +0100 Subject: [Gambas-user] Gambas class to read a joystick In-Reply-To: <200803041114.11815.sourceforge-raindog2@...94...> References: <1204622742.15970.27.camel@...37...> <200803041657.18174.gambas@...1...> <200803041114.11815.sourceforge-raindog2@...94...> Message-ID: <200803041732.29771.lordheavym@...626...> Le Tuesday 04 March 2008 17:14:11 Rob, vous avez ?crit?: > On Tuesday 04 March 2008 10:57, Benoit Minisini wrote: > > I think you shouldn't read usb directly, because the Linux kernel > > has implemented an abstraction layer with devices located in > > /dev/input. Apparently you have /dev/input/event? devices that send > > Yeah, I agree. It may be useful to have a generalized Gambas USB > library available, but where there are abstraction layers I think we > should use them. That's why I might end up making an SDL input > component rather than a raw joystick component, assuming SDL input is > usable by applications that don't use an SDL event loop, like Qt and > Gtk ones. If it works, all Gambas apps on SDL-supported platforms > would get joystick support, not just Linux. > > I wish I could just throw something together to try it, but my time > for coding is pretty much just the weekends right now. > > Rob > I've just add a quick and small piece of code for a joystick devices component. Currently only "autodetect" is done. svn co https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0-lordhExpComp/gb.joydev ++ From horechuk at ...981... Tue Mar 4 17:33:54 2008 From: horechuk at ...981... (Paul Horechuk) Date: Tue, 4 Mar 2008 11:33:54 -0500 Subject: [Gambas-user] Tips of the Day In-Reply-To: <200802231619.09290.horechuk@...981...> References: <200802231619.09290.horechuk@...981...> Message-ID: <200803041133.54971.horechuk@...981...> On February 23, 2008, Paul Horechuk wrote: > I notice that the "Tips of the Day" are showing as raw html, as opposed > to formatted. What should I change? > > Kubuntu 7.04 64bit > svn trunk 1077 Still no answer? To repeat, the Tip of the Day shows as (for example):

Tip of the Day

Some more text, etc. The

and other html tags would show instead of formatting. What compoment is missing or misconfigured? -- Paul Horechuk Think Free Use Open Source Software ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ From kari.laine at ...1400... Tue Mar 4 17:42:05 2008 From: kari.laine at ...1400... (Kari Laine) Date: Tue, 04 Mar 2008 18:42:05 +0200 Subject: [Gambas-user] BUG ? In-Reply-To: <47CC3178.5070905@...1400...> References: <47CC3178.5070905@...1400...> Message-ID: <47CD7BDD.4000907@...1400...> Hi, I am sorry to bug you but is it only me having this problem. I have self compiled the Gambas so problem can very well be with the particular compilation. Could you please confirm that you don't have this problem. Also any ideas how to fix it would be very highly appreciated. It is very annoying - so I gather it is a problem which I have caused - cause if it were generall problem it would have been fixed already :-) Best Regards Kari Kari Laine kirjoitti: > Hi, > > I noticed a problem which makes development difficult. When I run a > project and error results then the toolbox vanishes. Those little arrows > are nowhere to be found. Also menu selection does nothing. > > Sure way for me to get in that situation is to run DataReportExample > (which I am trying to fix) - it gives an error and toolbox arrows are > gone. I have tested this with two computers and it also happens with the > Gambas3 (cvs) version. > > One computer is SUSE 10.2 and other one is debian testing. Both X86. > > Best Regards > Kari Laine > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From asa.mjb at ...626... Tue Mar 4 17:48:24 2008 From: asa.mjb at ...626... (Mark Bjorkman) Date: Tue, 4 Mar 2008 09:48:24 -0700 Subject: [Gambas-user] Translation In-Reply-To: References: Message-ID: Trying to translate a program to English. Do not get menu but error message: "Cannot read translation file for language 'English (U.S.A)' File already exists sh. msgmerge: command not found" Running Gambas 2.2 on i686 SuSE 10.3 Linux 2.6.22.13-0.3-bigsmp#1 with gettext 0.16-47 Thanks On 3/3/08, Mark Bjorkman wrote: > Trying to translate a program to English. > > Do not get menu but error message: > "Cannot read translation file for language 'English (U.S.A)' > File already exists > sh. msgmerge: command not found" > > Running Gambas 2.2 on i686 SuSE 10.3 Linux 2.6.22.13-0.3-bigsmp#1 with > gettext 0.16-47 > > Thanks > From audiossis at ...867... Tue Mar 4 23:35:15 2008 From: audiossis at ...867... (audiossis at ...867...) Date: Wed, 5 Mar 2008 09:35:15 +1100 Subject: [Gambas-user] Gambas class to read a joystick In-Reply-To: References: Message-ID: <1204670115.47cdcea3bef96@...868...> > ------------------------------ > > Message: 9 > Date: Tue, 4 Mar 2008 16:57:18 +0100 > From: Benoit Minisini > Subject: Re: [Gambas-user] Gambas class to read a joystick > To: mailing list for gambas users > Message-ID: <200803041657.18174.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-1" > > On mardi 4 mars 2008, Audiossis wrote: > > > ------------------------------ > > > > > > Message: 3 > > > Date: Mon, 3 Mar 2008 09:56:26 -0500 > > > From: Rob > > > Subject: Re: [Gambas-user] Gambas class to read a joystick > > > To: gambas-user at lists.sourceforge.net > > > Message-ID: <200803030956.26368.sourceforge-raindog2 at ...94...> > > > Content-Type: text/plain; charset="iso-8859-1" > > > > > > On Monday 03 March 2008 08:29, Benoit Minisini wrote: > > > > So, in File_Read, you must read the file descriptor by blocks: > > > > > > Thanks, I might as well write the joystick component in Gambas then. > > > How do you think it should be named? > > > > > > Rob > > > > Rob, > > Sorry, it took me a little time to post to your request. I am > > another Gambas user (not a developer), but I have written a Gambas class > > file to make use of a C library called libusb. It would seem to me that > > you may benefit from this class file with your joystick issue if your > > joystick is not detected in a way that Gambas can otherwise use. > > > > This library will let you write a user mode driver or program that > > will access almost any type of usb device, although it does have its > > limits (isochronous tranfers are not supported yet). However, that being > > said, if you know enough C to program a Gambas module, then you may be > > able to add isochronous support to this library for your own uses......? > > You could then build on my class file and get the joystick support you > > are looking for. Using libusb would allow you to bypass the HID driver > > altogether. > > > > Perhaps you could even base a Gambas module on the libusb library....? > > > > Just a suggestion. > > > > Ben > > > > (PS. Sorry for the double post Benoit, I keep forgetting to change the > > subject line......) > > I think you shouldn't read usb directly, because the Linux kernel has > implemented an abstraction layer with devices located in /dev/input. > Apparently you have /dev/input/event? devices that send input events, and > specific devices for mice, joystick, and other things I don't know. If the > joystick/keyboard/mouse is USB or serial is managed by these drivers. > > My 2 cents... > > -- > Benoit Minisini > Hi Benoit, I understand the point you are trying to make and I agree in part. If the kernel has a working driver for that device (eg. evdev) then that driver should be used. However that being said, there are circumstances when the kernel mode driver is not suitable. The kernel mode driver may be broken or the USB device has been incorrectly detected or a kernel mode driver for that device may not exist. In my case the USB device I have written my program for (a CD/DVD storage carousel), was actually detected by the kernel as a HID device, which it is not. No kernel mode driver exists for my devices (for linux at any rate). Another point I would like to make as well is that libusb interfaces with the kernel abstraction layer that you speak of and performs all of it tasks through the usbfs subsystem. It also has the ability to detach a kernel driver for the selected usb device in order to take exlusive control of the device and drive it. In fact even the SANE scanner driver/program is based on libusb. Accessing the USB device through libusb in Gambas works fine for me. It very rarely has any problems. Bear in mind though, I am not trying to use isochronous transfers (as I beleive that a joystick would require), only interrupt and bulk transfers. You could continuously poll the joystick with interrupt transfers, but that would probably consume too much CPU time and it would probably make the joystick perform very poorly Anyway I didn't want to start an argument, so I'll stop rambling now, I just wanted to make a suggestion. Ben ------------------------------------------------------------ This email was sent from Netspace Webmail: http://www.netspace.net.au From gambas at ...1... Tue Mar 4 23:39:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Mar 2008 23:39:55 +0100 Subject: [Gambas-user] Tips of the Day In-Reply-To: <200803041133.54971.horechuk@...981...> References: <200802231619.09290.horechuk@...981...> <200803041133.54971.horechuk@...981...> Message-ID: <200803042339.55389.gambas@...1...> On mardi 4 mars 2008, Paul Horechuk wrote: > On February 23, 2008, Paul Horechuk wrote: > > I notice that the "Tips of the Day" are showing as raw html, as opposed > > to formatted. What should I change? > > > > Kubuntu 7.04 64bit > > svn trunk 1077 > > Still no answer? > > To repeat, the Tip of the Day shows as (for example): >

Tip of the Day >

Some more text, etc. > > The

and other html tags would show instead of formatting. What > compoment is missing or misconfigured? I think I fixed that recently. I Don't remember which revision exactly... -- Benoit Minisini From l.alebarde2 at ...402... Tue Mar 4 23:58:01 2008 From: l.alebarde2 at ...402... (l.alebarde2 at ...402...) Date: Tue, 04 Mar 2008 23:58:01 +0100 Subject: [Gambas-user] building Gambas : configure: error: C compiler cannot create executables Message-ID: <1204671481.47cdd3f9cd63e@...1824...> Hello, I am trying to install Gambas 2.2.1. I have checked I have all the required libs (cf ANNEXE). I have then lunch configure, and here is what I get : # ./scriptBuildGambas checking whether to enable maintainer-specific portions of Makefiles... no checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu configure: creating ./config.status config.status: creating Makefile config.status: creating config.h === configuring in main (/opt/gambas/main) configure: running /bin/sh /root/gambas/gambas2-2.2.1/main/configure '--prefix=/usr/local' 'CFLAGS=-march=pentium4 -O2 -pipe -C' --cache-file=/dev/null --srcdir=/root/gambas/gambas2-2.2.1/main checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking for style of include used by make... GNU checking whether to enable maintainer-specific portions of Makefiles... no checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. configure: error: /root/gambas/gambas2-2.2.1/main/configure failed for main scriptBuildGambas is nothing more than that : /root/gambas/gambas2-2.2.1/configure CFLAGS="-march=pentium4 -O2 -pipe -C" Starting again from scratch and doing before ./reconf leads to the same. Besides, my gcc compiler works well. Some idea ? ANNEXE : check for libs #for fic in `cat lib4GambasList`; do echo "-----${fic}-----" >> lib4GambasAssessment; locate $fic | egrep "[/]usr.*[/]lib[/]" >> lib4GambasAssessment ; done; -----libbz2.so----- /usr/lib/libbz2.so -----libz.so----- /usr/lib/libz.so -----libACE.so----- /usr/lib/libACE.so /usr/lib/libACE.so.5.5.0 /usr/lib/libACE.so.5 -----libcrypt.so----- /usr/lib/libcrypt.so -----libibpp.so----- /usr/lib/libibpp.so -----libmysqlclient.so----- /usr/lib/mysql/libmysqlclient.so.15.0.0 /usr/lib/mysql/libmysqlclient.so /usr/lib/mysql/libmysqlclient.so.15 /usr/lib/libmysqlclient.so /usr/lib/libmysqlclient.so.15.0 /usr/lib/libmysqlclient.so.15 /usr/lib/libmysqlclient.so.15.0.0 -----libodbc.so----- /usr/lib/libodbc.so.1 /usr/lib/libodbc.so.1.0.0 /usr/lib/libodbc.so -----libpq.so----- /usr/lib/libpq.so.4.0 /usr/lib/libpq.so /usr/lib/libpq.so.4 -----libsqlite.so----- /usr/lib/libsqlite.so.0.8.6 /usr/lib/libsqlite.so /usr/lib/libsqlite.so.0 -----libsqlite3.so----- /usr/lib/libsqlite3.so /usr/lib/libsqlite3.so.0 /usr/lib/libsqlite3.so.0.8.6 -----libldap.so----- /usr/lib/libldap.so -----libcurl.so----- /usr/lib/libcurl.so /usr/lib/libcurl.so.4 /usr/lib/libcurl.so.4.0.1 -----libGL.so----- /usr/lib/opengl/xorg-x11/lib/libGL.so.1.2 /usr/lib/opengl/xorg-x11/lib/libGL.so /usr/lib/opengl/xorg-x11/lib/libGL.so.1 /usr/lib/opengl/ati/lib/libGL.so.1.2 /usr/lib/opengl/ati/lib/libGL.so.1 /usr/lib/opengl/ati/lib/libGL.so /usr/lib/libGL.so -----libpcre.so----- /usr/lib/libpcre.so.0.0.1 /usr/lib/libpcre.so /usr/lib/libpcre.so.0 -----libqt-mt.so.3----- /usr/qt/3/lib/libqt-mt.so.3.3.8 /usr/qt/3/lib/libqt-mt.so.3.3 /usr/qt/3/lib/libqt-mt.so.3 -----libSDL.so----- /usr/lib/libSDL.so -----libjpeg.so----- /usr/lib/libjpeg.so.62.0.0 /usr/lib/libjpeg.so.62 /usr/lib/libjpeg.so -----libxml-2.0----- /usr/lib/pkgconfig/libxml-2.0.pc -----libxslt----- /usr/lib/python2.4/site-packages/libxslt.py /usr/lib/python2.4/site-packages/libxsltmod.so /usr/lib/python2.4/site-packages/libxsltmod.la /usr/lib/python2.4/site-packages/libxsltmod.a /usr/lib/python2.4/site-packages/libxslt.pyc /usr/lib/python2.4/site-packages/libxslt.pyo /usr/lib/pkgconfig/libxslt.pc /usr/lib/libxslt.so.1 /usr/lib/libxslt.so /usr/lib/libxslt.la /usr/lib/libxslt.a /usr/lib/openoffice/program/libxsltdlg680li.so /usr/lib/openoffice/program/libxsltfilter680li.so /usr/lib/libxslt.so.1.1.22 From steven at ...1545... Wed Mar 5 00:18:17 2008 From: steven at ...1545... (Steven Drinnan) Date: Wed, 05 Mar 2008 07:18:17 +0800 Subject: [Gambas-user] How to reference control on another form In-Reply-To: <1204623604.10010.7.camel@...1857...> References: <200803022227.45143.rterry@...1822...> <200803031906.00393.richard.j.walker@...247...> <1204623604.10010.7.camel@...1857...> Message-ID: <1204672697.10010.11.camel@...1857...> Sorry this will work but as in other threads set the global project properties in regards to forms to public. On Tue, 2008-03-04 at 17:40 +0800, Steven Drinnan wrote: > If i need to do that I create a public sub to set the text box or use > properties to set the field value > > EG. > > Public sub setTextBox1(nText as string) > > TextBox1.text = ntext > > end > > > On Mon, 2008-03-03 at 19:06 +0000, Richard wrote: > > On Sunday 02 March 2008 11:27:44 richard terry wrote: > > > I would have thought this was easy, however for the life of me I cannot get > > > it to work. This simple concept has bought my main project to a grinding > > > halt! > > > > > > I attach a picture and code, of something absolutely basic which I tried to > > > get this concept to work - embed a form in a workspace, then when the > > > button is clicked, change the text in the textbox. > > > > > > 1) form created (form1) with a textbox (textbox1) only > > > 2) main form created with a workspace (workspace1) > > > the form1 is added to the workspace on Fmain, and a button put underneath > > > =========================== > > > Code for Fmain: > > > > > > PUBLIC newform AS form1 > > > > > > PUBLIC SUB Form_Open() > > > newform = NEW Form1 > > > newform.title = "Tab 1" > > > > > > Workspace1.Add(newform) > > > > > > END > > > > > > PUBLIC SUB Button1_Click() > > > 'this dosn't work > > > newform.textbox1.text = "hullo" > > > > > > END > > > ============================ > > > > > > Any help appreciated. > > > > > > Richard > > > > Hi Rich, don't know if there is a "nicer" way, but try setting form controls > > as publicly visible in your project. It worked for me. See pics > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1822... Wed Mar 5 00:34:00 2008 From: rterry at ...1822... (richard terry) Date: Wed, 5 Mar 2008 10:34:00 +1100 Subject: [Gambas-user] How to reference control on another form In-Reply-To: <1204672697.10010.11.camel@...1857...> References: <200803022227.45143.rterry@...1822...> <1204623604.10010.7.camel@...1857...> <1204672697.10010.11.camel@...1857...> Message-ID: <200803051034.00459.rterry@...1822...> Just out of interest sake, what does the setting make module symbols public by default, sorry to ask a dumb question but what represents a symbol? On Wed, 5 Mar 2008 10:18:17 am Steven Drinnan wrote: > Sorry this will work but as in other threads set the global project > properties in regards to forms to public. > > On Tue, 2008-03-04 at 17:40 +0800, Steven Drinnan wrote: > > If i need to do that I create a public sub to set the text box or use > > properties to set the field value > > > > EG. > > > > Public sub setTextBox1(nText as string) > > > > TextBox1.text = ntext > > > > end > > > > On Mon, 2008-03-03 at 19:06 +0000, Richard wrote: > > > On Sunday 02 March 2008 11:27:44 richard terry wrote: > > > > I would have thought this was easy, however for the life of me I > > > > cannot get it to work. This simple concept has bought my main project > > > > to a grinding halt! > > > > > > > > I attach a picture and code, of something absolutely basic which I > > > > tried to get this concept to work - embed a form in a workspace, then > > > > when the button is clicked, change the text in the textbox. > > > > > > > > 1) form created (form1) with a textbox (textbox1) only > > > > 2) main form created with a workspace (workspace1) > > > > the form1 is added to the workspace on Fmain, and a button put > > > > underneath =========================== > > > > Code for Fmain: > > > > > > > > PUBLIC newform AS form1 > > > > > > > > PUBLIC SUB Form_Open() > > > > newform = NEW Form1 > > > > newform.title = "Tab 1" > > > > > > > > Workspace1.Add(newform) > > > > > > > > END > > > > > > > > PUBLIC SUB Button1_Click() > > > > 'this dosn't work > > > > newform.textbox1.text = "hullo" > > > > > > > > END > > > > ============================ > > > > > > > > Any help appreciated. > > > > > > > > Richard > > > > > > Hi Rich, don't know if there is a "nicer" way, but try setting form > > > controls as publicly visible in your project. It worked for me. See > > > pics > > > > > > > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ Gambas-user mailing > > > list Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Mar 5 00:42:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Mar 2008 00:42:06 +0100 Subject: [Gambas-user] How to reference control on another form In-Reply-To: <200803051034.00459.rterry@...1822...> References: <200803022227.45143.rterry@...1822...> <1204672697.10010.11.camel@...1857...> <200803051034.00459.rterry@...1822...> Message-ID: <200803050042.06037.gambas@...1...> On mercredi 5 mars 2008, richard terry wrote: > Just out of interest sake, what does the setting make module symbols public > by default, sorry to ask a dumb question but what represents a symbol? > In this context, "symbols" means the name of all functions, events, global variables and constants declared in the module. It is not actually just the name, but all the declaration associated with them (datatypes, and arguments for functions). When a symbol is public, the name and the declaration is accessible from the outside. Otherwise it is local to the module, and is not visible at all from the outside. -- Benoit Minisini From nix.or.die at ...1601... Wed Mar 5 00:49:37 2008 From: nix.or.die at ...1601... (Gabriel C) Date: Wed, 05 Mar 2008 00:49:37 +0100 Subject: [Gambas-user] building Gambas : configure: error: C compiler cannot create executables In-Reply-To: <1204671481.47cdd3f9cd63e@...1824...> References: <1204671481.47cdd3f9cd63e@...1824...> Message-ID: <47CDE011.4090108@...1601...> l.alebarde2 at ...402... wrote: > Hello, Hi , > I am trying to install Gambas 2.2.1. > I have checked I have all the required libs (cf ANNEXE). > I have then lunch configure, and here is what I get : > > # ./scriptBuildGambas [ snip ] > configure: error: C compiler cannot create executables > See `config.log' for more details. > configure: error: /root/gambas/gambas2-2.2.1/main/configure failed for main > > scriptBuildGambas is nothing more than that : > /root/gambas/gambas2-2.2.1/configure CFLAGS="-march=pentium4 -O2 -pipe -C" These CFLAGS are broken .. config.log will spam with something like this : GCC does not support -C or -CC without -E > Starting again from scratch and doing before ./reconf leads to the same. > Besides, my gcc compiler works well. > > Some idea ? remove -C from CFLAGS ;) Regards, Gabriel From robertsonhamish at ...626... Wed Mar 5 00:59:10 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Wed, 5 Mar 2008 06:59:10 +0700 Subject: [Gambas-user] Any APT gurus out there? Jose? Message-ID: Hey guys, I'm building a program that allow for the installation of linux programs without the use of the internet. I know exactly what I need to do..just getting there is proving a bit difficult. It's all good...I wanted to learn programming so I guess this is the best way to do it! :D Anyway...I'm stuck. Not with Gambas, but with the debian tools. I need a script that makes a metapackage dependant on all the .deb files in var/cache/apt/archives. I've well and truly reached the limits of my linux knowledge here. Can anyone out there help or send me in the right direction? Any help at all hefre would be much appreciated. Thanls. H. From rterry at ...1822... Wed Mar 5 01:36:22 2008 From: rterry at ...1822... (richard terry) Date: Wed, 5 Mar 2008 11:36:22 +1100 Subject: [Gambas-user] IDE again - the ?Split Editor concept Message-ID: <200803051136.22787.rterry@...1822...> Wondered if there was any intention of going ahead with the split editor concept. As my program is growing in size I'm increasingly finding I need to refer back to a section of code when writing new code or debugging, and having either a vertical or horizontal split would be a boon. Also, a feature which exists in WingIDE which is fantastic is a function key to maximize the editor area, automatically removing (hiding I guess) unwanted bits, in this case, simply linking a function key to code to set the horizontal split layout to ("0,fulllwidth") would work and only a couple of lines of code (I guess). Regards Richard From gambas at ...1... Wed Mar 5 02:07:26 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Mar 2008 02:07:26 +0100 Subject: [Gambas-user] IDE again - the ?Split Editor concept In-Reply-To: <200803051136.22787.rterry@...1822...> References: <200803051136.22787.rterry@...1822...> Message-ID: <200803050207.26223.gambas@...1...> On mercredi 5 mars 2008, richard terry wrote: > Wondered if there was any intention of going ahead with the split editor > concept. > > As my program is growing in size I'm increasingly finding I need to refer > back to a section of code when writing new code or debugging, and having > either a vertical or horizontal split would be a boon. > > Also, a feature which exists in WingIDE which is fantastic is a function > key to maximize the editor area, automatically removing (hiding I guess) > unwanted bits, in this case, simply linking a function key to code to set > the horizontal split layout to ("0,fulllwidth") would work and only a > couple of lines of code (I guess). > > Regards > > Richard > For the last point, you can try F10 + ESC. -- Benoit Minisini From sylvain.marleau at ...647... Wed Mar 5 05:11:36 2008 From: sylvain.marleau at ...647... (2020) Date: Tue, 4 Mar 2008 20:11:36 -0800 (PST) Subject: [Gambas-user] Invert the appearance of a vertical slider Message-ID: <15842894.post@...1379...> Hello folk, How to invert the appearance of a vertical slider ? Bottom value = 0, Top value 100. Any ideas, thanks in advance. Sylvain. -- View this message in context: http://www.nabble.com/Invert-the-appearance-of-a-vertical-slider-tp15842894p15842894.html Sent from the gambas-user mailing list archive at Nabble.com. From girardhenri at ...67... Wed Mar 5 06:57:10 2008 From: girardhenri at ...67... (Girard Henri) Date: Wed, 5 Mar 2008 06:57:10 +0100 Subject: [Gambas-user] Hi is there somewhere a kubuntu gutsy 64 bits deb ? References: <47CD1A07.4050602@...1400...><200803041224.44273.rospolosco@...152...> <47CD3BBB.8050106@...1400...> Message-ID: I can't compile it : configure is good but after i got a make error thanks Henri From audiossis at ...867... Wed Mar 5 07:10:17 2008 From: audiossis at ...867... (Audiossis) Date: Wed, 05 Mar 2008 17:10:17 +1100 Subject: [Gambas-user] Gambas-user Digest, Vol 22, Issue 14 In-Reply-To: References: Message-ID: <1204697417.15970.35.camel@...37...> > ------------------------------ > > Message: 7 > Date: Wed, 5 Mar 2008 02:07:26 +0100 > From: Benoit Minisini > Subject: Re: [Gambas-user] IDE again - the ?Split Editor concept > To: rterry at ...1823..., mailing list for gambas users > > Message-ID: <200803050207.26223.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-1" > > On mercredi 5 mars 2008, richard terry wrote: > > Wondered if there was any intention of going ahead with the split editor > > concept. > > > > As my program is growing in size I'm increasingly finding I need to refer > > back to a section of code when writing new code or debugging, and having > > either a vertical or horizontal split would be a boon. > > > > Also, a feature which exists in WingIDE which is fantastic is a function > > key to maximize the editor area, automatically removing (hiding I guess) > > unwanted bits, in this case, simply linking a function key to code to set > > the horizontal split layout to ("0,fulllwidth") would work and only a > > couple of lines of code (I guess). > > > > Regards > > > > Richard > > > > For the last point, you can try F10 + ESC. > > -- > Benoit Minisini > HERE HERE! I'll second that suggestion! Having a split editor would make life a lot easier! I currently run on a dual-seat linux setup. I often find that I have to use the second seat to open a class file or module file in kwrite. Sometimes I have to open several files in Kate! The vertical/horizontal split is a good idea, but I'd also like to see tabbed views as well. Like the way Konquerer works....... Regards Ben From rospolosco at ...152... Wed Mar 5 11:47:30 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 5 Mar 2008 11:47:30 +0100 Subject: [Gambas-user] Invert the appearance of a vertical slider In-Reply-To: <15842894.post@...1379...> References: <15842894.post@...1379...> Message-ID: <200803051147.30522.rospolosco@...152...> Alle 05:11, mercoled? 5 marzo 2008, 2020 ha scritto: > Hello folk, > > How to invert the appearance of a vertical slider ? > > Bottom value = 0, Top value 100. > > Any ideas, thanks in advance. > > Sylvain. A simple idea in the attached example. Ciao, Stefano -------------- next part -------------- A non-text attachment was scrubbed... Name: vertical-slider-0.0.1.tar.gz Type: application/x-tgz Size: 7855 bytes Desc: not available URL: From jscops at ...11... Wed Mar 5 12:31:33 2008 From: jscops at ...11... (Jacky) Date: Wed, 5 Mar 2008 12:31:33 +0100 Subject: [Gambas-user] Dcop and Kcalc Message-ID: <200803051231.33492.jscops@...11...> Hello all, I want to intercept the result of an operation performed with Kcalc. For it i try with dcop. Without succes. Is somebody have found the dcop "object" to use for this ? Thank you. Jacky From jaap_cramer at ...67... Wed Mar 5 15:41:11 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Wed, 5 Mar 2008 15:41:11 +0100 Subject: [Gambas-user] bugs Message-ID: Hi I have trouble getting through in the mailing list; I am afraid my post (as in the past month) will not be posted. However I try to post a bug. It is about the rich text. Like in TextEdit An HTML entry like is translated to qrichtext as Or something similar. When I try to use the tag I sometimes get a different result. When I use a text with it works fine; but when I use I dont get fontsize 18 but 8. And 20pt becomes 10pt. I tested is by using a TextEdit and a TextAera, because Edit is in Richtext and Aera isn't. Is this a bug in the HTML coder? Jaap Cramer _________________________________________________________________ Probeer Live Search: de zoekmachine van de makers van MSN! http://www.live.com/?searchOnly=true From gambas at ...1... Wed Mar 5 16:05:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Mar 2008 16:05:48 +0100 Subject: [Gambas-user] bugs In-Reply-To: References: Message-ID: <200803051605.48499.gambas@...1...> On mercredi 5 mars 2008, Jaap Cramer wrote: > Hi > > I have trouble getting through in the mailing list; I am afraid my post (as > in the past month) will not be posted. However I try to post a bug. It is > about the rich text. Like in TextEdit > > An HTML entry like is translated to qrichtext as Or something similar. > When I try to use the tag I sometimes get a different result. When I use a > text with it works fine; but when I use I dont get fontsize 18 but 8. And > 20pt becomes 10pt. I tested is by using a TextEdit and a TextAera, because > Edit is in Richtext and Aera isn't. Is this a bug in the HTML coder? > > Jaap Cramer Apparently words are missing in your post, so it is not really understable. May I suggest not using hotmail? :-) -- Benoit Minisini From jaap_cramer at ...67... Wed Mar 5 16:15:06 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Wed, 5 Mar 2008 16:15:06 +0100 Subject: [Gambas-user] bugs In-Reply-To: <200803051605.48499.gambas@...1...> References: <200803051605.48499.gambas@...1...> Message-ID: I'm sorry. I dont like hotmail either, but don't like multiple mailboxes even less. So I stick by one inbox and it happens to be hotmail... I used tags, and they fell away. So thats why my previous post didnt make sense.. I'll try again, using other brackets for the tags [] An HTML entry like [font size="+2"] is translated to qrichtext as [span style='font-size: 18pt'] Or something similar. When I try to use the [span]-tag I sometimes get a different result. When I use a text with [span style='font-size: 8pt'] it works fine; but when I use [span style='font-size: 18pt'] I dont get fontsize 18 but 8. And 20pt becomes 10pt. I tested it by using a TextEdit and a TextAera, because TextEdit is in Richtext and TextAera isn't. Is this a bug in the HTML coder? I hope it makes sense now Jaap ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Wed, 5 Mar 2008 16:05:48 +0100 > Subject: Re: [Gambas-user] bugs > > On mercredi 5 mars 2008, Jaap Cramer wrote: >> Hi >> >> I have trouble getting through in the mailing list; I am afraid my post (as >> in the past month) will not be posted. However I try to post a bug. It is >> about the rich text. Like in TextEdit >> >> An HTML entry like is translated to qrichtext as Or something similar. >> When I try to use the tag I sometimes get a different result. When I use a >> text with it works fine; but when I use I dont get fontsize 18 but 8. And >> 20pt becomes 10pt. I tested is by using a TextEdit and a TextAera, because >> Edit is in Richtext and Aera isn't. Is this a bug in the HTML coder? >> >> Jaap Cramer > > Apparently words are missing in your post, so it is not really understable. > May I suggest not using hotmail? :-) > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Nieuw: Windows Live Messenger 2008! Gratis downloaden http://get.live.com/messenger From gambas at ...1... Wed Mar 5 16:20:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Mar 2008 16:20:46 +0100 Subject: [Gambas-user] bugs In-Reply-To: References: <200803051605.48499.gambas@...1...> Message-ID: <200803051620.46986.gambas@...1...> On mercredi 5 mars 2008, Jaap Cramer wrote: > I'm sorry. I dont like hotmail either, but don't like multiple mailboxes > even less. So I stick by one inbox and it happens to be hotmail... I used > tags, and they fell away. So thats why my previous post didnt make sense.. > I'll try again, using other brackets for the tags [] > > An HTML entry like [font size="+2"] is translated to qrichtext as [span > style='font-size: 18pt'] Or something similar. When I try to use the > [span]-tag I sometimes get a different result. When I use a text with [span > style='font-size: 8pt'] it works fine; but when I use [span > style='font-size: 18pt'] I dont get fontsize 18 but 8. And 20pt becomes > 10pt. I tested it by using a TextEdit and a TextAera, because TextEdit is > in Richtext and TextAera isn't. Is this a bug in the HTML coder? > > I hope it makes sense now > Jaap > Maybe a bug... I suggest not using at all, but only the following tags:


...
These controls are really for displaying rich text, but not HTML. Regards, -- Benoit Minisini From jaap_cramer at ...67... Wed Mar 5 16:34:02 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Wed, 5 Mar 2008 16:34:02 +0100 Subject: [Gambas-user] bugs In-Reply-To: <200803051620.46986.gambas@...1...> References: <200803051605.48499.gambas@...1...> <200803051620.46986.gambas@...1...> Message-ID: Ok. my workaround is indeed to use [font size]. However, I thought [span] was allowed in a previous version of Gambas, and since the TextEdit control converts all HTML tags to [span]-tags I thought it could work... I use a xml-document with markup-data stored in nodes. Now I have to start a change of fontsize with [font] but close that area with [/span] due to the xml-format i use... It's ugly programming but it works... My previous posts this week didn't arive, is it because of hotmail? Jaap ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Wed, 5 Mar 2008 16:20:46 +0100 > Subject: Re: [Gambas-user] bugs > > On mercredi 5 mars 2008, Jaap Cramer wrote: >> I'm sorry. I dont like hotmail either, but don't like multiple mailboxes >> even less. So I stick by one inbox and it happens to be hotmail... I used >> tags, and they fell away. So thats why my previous post didnt make sense.. >> I'll try again, using other brackets for the tags [] >> >> An HTML entry like [font size="+2"] is translated to qrichtext as [span >> style='font-size: 18pt'] Or something similar. When I try to use the >> [span]-tag I sometimes get a different result. When I use a text with [span >> style='font-size: 8pt'] it works fine; but when I use [span >> style='font-size: 18pt'] I dont get fontsize 18 but 8. And 20pt becomes >> 10pt. I tested it by using a TextEdit and a TextAera, because TextEdit is >> in Richtext and TextAera isn't. Is this a bug in the HTML coder? >> >> I hope it makes sense now >> Jaap >> > > Maybe a bug... > > I suggest not using at all, but only the following tags: > ... > > These controls are really for displaying rich text, but not HTML. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Jouw nieuws en entertainment, vind je op MSN.nl! http://nl.msn.com/ From gambas at ...1... Wed Mar 5 19:10:26 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Mar 2008 19:10:26 +0100 Subject: [Gambas-user] Missing component error In-Reply-To: <200803040856.30875.rterry@...1822...> References: <200803040856.30875.rterry@...1822...> Message-ID: <200803051910.26461.gambas@...1...> On lundi 3 mars 2008, richard terry wrote: > I cut an pasted a form from existing project into new one, obviously didn't > set the components first in the properties. > > Wonder it its possible for the error message to indicate which component is > missing. > > Enclose the png. > > richard Yes, this is a problem. It is not easy at all, as at the moment the information is stored one way: component -> controls. Maybe a revert index should be generated: controls -> component. I note that in the TODO file. :-) Regards, -- Benoit Minisini From maillists.gurulounge at ...626... Wed Mar 5 19:40:57 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Wed, 05 Mar 2008 10:40:57 -0800 Subject: [Gambas-user] FileView Item: auto-selecting Message-ID: <1204742457.27892.3.camel@...1853...> I'm using a fileview control in my application (gambas 2). I'd like to be able to refresh the fileview and re-select the current item (so the user doesn't have to locate the file again). I cannot find any documentation on this topic. Jeff From rterry at ...1822... Wed Mar 5 08:59:28 2008 From: rterry at ...1822... (richard terry) Date: Wed, 5 Mar 2008 18:59:28 +1100 Subject: [Gambas-user] Improving the utility of IDE work flow. Message-ID: <200803051859.28764.rterry@...1822...> As part of my on-going experience with using the editor extensively this is another observation for a small improvement in usability. As a prelude I'll make this comment so you know I'm not just talking through my hat. I worked for a number of years (admittedly a number of years ago) writing vb medical records projects - eg pathology ordering, prescriptions, diabetes stuff, plus a contacts database for our local GP organisation and an entire vb medical record project of my own, and made many observations re utility of programs over the years. I've been paid quite a bit over a number of years to analyse the usability of medical records programs, and in the last couple of years was involved with a comparison of four major commercial offerings (where I was paid both as part of a large group, and separately as an independant consultant , to evaluate utility of programs to used in after hours, and aged care residential facilities in Newcastle) As part of my independant review, I ran these 4 programs, and my own (which is optimised for maximal workflow with minimal keypresses) simultaneoulsy side by side in a virtual machine, and kept track of their work flow, and just how many mouse events, key presses etc, it took to do a similar task in each one. For prescriptions eg one program (Yes - it was mine) could take as little as 2-3 key presses to generate an entire script - consisting of drug/generic/quantities/repeats/dosages/indications/instructions, versus the usual number of events (up to about 17 or more) generated by the commercial programs. Over a day, in my environment, this adds up to many many thousands of extra mouse or keyboard events. So with reference to Gambas IDE, setting it up so as to allow the user flexibilty with the minimal number of keypresses and easiest navigation is of great interest to me. Given that when one is programming intensively, and has say finished for the moment, or closes gambas to re-open again for some reason, it would be nice to have gambas open the project to its last used state, which in my hands here, it dosnt seem to do (1138 version) My project now has around 70 modules and forms, and the data directory has some 15 subdirectories. As once one's gui is fairly stable one dosn't really want to be continually re-presented with the gui form at bootup, but with the last code window one was working on, I think it would be nice have an option in Tools>Preferences>Editor like 'Reload last used class' at bootup. This would save continually being presented with the gray empty startup panel, then having to scroll down through dozens of forms, select the one you want, right mouse click on it, go down the menu to edit class and have the code window pop up. Anyway, just a suggestion, I've many others but will list them one by one at a later date. Regards Richard From rterry at ...1822... Wed Mar 5 12:08:43 2008 From: rterry at ...1822... (richard terry) Date: Wed, 5 Mar 2008 22:08:43 +1100 Subject: [Gambas-user] Help with True/False logic statement Message-ID: <200803052208.43112.rterry@...1822...> Never can get my brain around easy ways to do true/false. Could someone give me a one liner logic for this?, or is it at its simplest? IF btnTogglePastHistory.tag = TRUE THEN btnTogglePastHistory.tag = FALSE ELSE btnTogglePastHistory.tag = TRUE END IF Regards Richard From rterry at ...1822... Wed Mar 5 21:48:26 2008 From: rterry at ...1822... (richard terry) Date: Thu, 6 Mar 2008 07:48:26 +1100 Subject: [Gambas-user] IDE subroutine names not updating when changed. Message-ID: <200803060748.26767.rterry@...1822...> I've noticed this for a long time, but it can be inconsistant. If you re-name a subroutine, then later are trying to re-select it from the drop down menu,then the subroutine name is not there, until you close gambas and re-load it. Regards Richard. From smccuan at ...626... Wed Mar 5 22:00:07 2008 From: smccuan at ...626... (Shawn McCuan) Date: Wed, 5 Mar 2008 16:00:07 -0500 Subject: [Gambas-user] Help with True/False logic statement In-Reply-To: <200803052208.43112.rterry@...1822...> References: <200803052208.43112.rterry@...1822...> Message-ID: I think that is as simple as it can get. On Wed, Mar 5, 2008 at 6:08 AM, richard terry wrote: > Never can get my brain around easy ways to do true/false. > > Could someone give me a one liner logic for this?, or is it at its > simplest? > > IF btnTogglePastHistory.tag = TRUE THEN > btnTogglePastHistory.tag = FALSE > ELSE > btnTogglePastHistory.tag = TRUE > END IF > > Regards > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Shawn McCuan smccuan at ...626... Support a national vote in the US! http://en.wikipedia.org/wiki/National_Popular_Vote_Interstate_Compact http://www.nationalpopularvote.com From lordheavym at ...626... Wed Mar 5 22:01:41 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 5 Mar 2008 22:01:41 +0100 Subject: [Gambas-user] Help with True/False logic statement In-Reply-To: <200803052208.43112.rterry@...1822...> References: <200803052208.43112.rterry@...1822...> Message-ID: <200803052201.42044.lordheavym@...626...> Le Wednesday 05 March 2008 12:08:43 richard terry, vous avez ?crit?: > Never can get my brain around easy ways to do true/false. > > Could someone give me a one liner logic for this?, or is it at its > simplest? > > IF btnTogglePastHistory.tag = TRUE THEN > btnTogglePastHistory.tag = FALSE > ELSE > btnTogglePastHistory.tag = TRUE > END IF > > Regards > > Richard > btnTogglePastHistory.tag = NOT btnTogglePastHistory.tag ++ From smccuan at ...626... Wed Mar 5 22:02:44 2008 From: smccuan at ...626... (Shawn McCuan) Date: Wed, 5 Mar 2008 16:02:44 -0500 Subject: [Gambas-user] Help with True/False logic statement In-Reply-To: <200803052201.42044.lordheavym@...626...> References: <200803052208.43112.rterry@...1822...> <200803052201.42044.lordheavym@...626...> Message-ID: I was wrong :) On Wed, Mar 5, 2008 at 4:01 PM, Laurent Carlier wrote: > Le Wednesday 05 March 2008 12:08:43 richard terry, vous avez ?crit : > > Never can get my brain around easy ways to do true/false. > > > > Could someone give me a one liner logic for this?, or is it at its > > simplest? > > > > IF btnTogglePastHistory.tag = TRUE THEN > > btnTogglePastHistory.tag = FALSE > > ELSE > > btnTogglePastHistory.tag = TRUE > > END IF > > > > Regards > > > > Richard > > > > btnTogglePastHistory.tag = NOT btnTogglePastHistory.tag > > ++ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Shawn McCuan smccuan at ...626... Support a national vote in the US! http://en.wikipedia.org/wiki/National_Popular_Vote_Interstate_Compact http://www.nationalpopularvote.com From richard.j.walker at ...247... Wed Mar 5 22:17:27 2008 From: richard.j.walker at ...247... (Richard) Date: Wed, 5 Mar 2008 21:17:27 +0000 Subject: [Gambas-user] Help with True/False logic statement In-Reply-To: References: <200803052208.43112.rterry@...1822...> <200803052201.42044.lordheavym@...626...> Message-ID: <200803052117.27159.richard.j.walker@...247...> But has anyone tried this? It ought to work fine with a real boolean, but the tag element looks like it is just an arbitrary text expression. If we are changing a text value from "true" to "false" then this might be better: btnTogglePastHistory.tag = IIf(btnTogglePastHistory.tag = "true", "false", "true") 'And to check that it worked... btnTogglePastHistory.ToolTip = btnTogglePastHistory.Tag On Wednesday 05 March 2008 21:02:44 Shawn McCuan wrote: > I was wrong :) > > On Wed, Mar 5, 2008 at 4:01 PM, Laurent Carlier > > wrote: > > Le Wednesday 05 March 2008 12:08:43 richard terry, vous avez ?crit : > > > Never can get my brain around easy ways to do true/false. > > > > > > Could someone give me a one liner logic for this?, or is it at its > > > simplest? > > > > > > IF btnTogglePastHistory.tag = TRUE THEN > > > btnTogglePastHistory.tag = FALSE > > > ELSE > > > btnTogglePastHistory.tag = TRUE > > > END IF > > > > > > Regards > > > > > > Richard > > > > btnTogglePastHistory.tag = NOT btnTogglePastHistory.tag > > > > ++ > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From steven at ...1652... Wed Mar 5 22:26:10 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Wed, 05 Mar 2008 22:26:10 +0100 Subject: [Gambas-user] Question on compiling (making project.gambas) In-Reply-To: References: <200803052208.43112.rterry@...1822...> <200803052201.42044.lordheavym@...626...> Message-ID: <1204752370.9859.28.camel@...1816...> Hi, I wondered, is there a way to EXclude some subdirectories in the project directory from being included into the executable ? If I put all the files a project need into one directory (which is logical) they get all included, and I end up with a .gambas file of 7.5 Mega (for the moment ;-) It's complecated to have separate directories for gambas projects and the files belonging to it. So, some meganism to exclude dirs would be valuable. Regards, Steven From Karl.Reinl at ...9... Wed Mar 5 22:07:05 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 05 Mar 2008 22:07:05 +0100 Subject: [Gambas-user] Help with True/False logic statement In-Reply-To: <200803052208.43112.rterry@...1822...> References: <200803052208.43112.rterry@...1822...> Message-ID: <1204751225.14646.1.camel@...40...> Am Mittwoch, den 05.03.2008, 22:08 +1100 schrieb richard terry: > Never can get my brain around easy ways to do true/false. > > Could someone give me a one liner logic for this?, or is it at its simplest? > > IF btnTogglePastHistory.tag = TRUE THEN > btnTogglePastHistory.tag = FALSE > ELSE > btnTogglePastHistory.tag = TRUE > END IF > > Regards > > Richard > Salut Richard, just make : btnTogglePastHistory.tag = NOT btnTogglePastHistory.tag -- Amicalment Charlie From lordheavym at ...626... Wed Mar 5 23:21:25 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 5 Mar 2008 23:21:25 +0100 Subject: [Gambas-user] Help with True/False logic statement In-Reply-To: <200803052117.27159.richard.j.walker@...247...> References: <200803052208.43112.rterry@...1822...> <200803052117.27159.richard.j.walker@...247...> Message-ID: <200803052321.26020.lordheavym@...626...> Le Wednesday 05 March 2008 22:17:27 Richard, vous avez ?crit?: > But has anyone tried this? It ought to work fine with a real boolean, but > the tag element looks like it is just an arbitrary text expression. If we > are changing a text value from "true" to "false" then this might be better: > > btnTogglePastHistory.tag = IIf(btnTogglePastHistory.tag > = "true", "false", "true") > > 'And to check that it worked... > btnTogglePastHistory.ToolTip = btnTogglePastHistory.Tag > > On Wednesday 05 March 2008 21:02:44 Shawn McCuan wrote: > > I was wrong :) > > > > On Wed, Mar 5, 2008 at 4:01 PM, Laurent Carlier > > > > wrote: > > > Le Wednesday 05 March 2008 12:08:43 richard terry, vous avez ?crit : > > > > Never can get my brain around easy ways to do true/false. > > > > > > > > Could someone give me a one liner logic for this?, or is it at its > > > > simplest? > > > > > > > > IF btnTogglePastHistory.tag = TRUE THEN > > > > btnTogglePastHistory.tag = FALSE > > > > ELSE > > > > btnTogglePastHistory.tag = TRUE > > > > END IF > > > > > > > > Regards > > > > > > > > Richard > > > > > > btnTogglePastHistory.tag = NOT btnTogglePastHistory.tag > > > > > > ++ > > > And with "true" and "false" as strings: btnTogglePastHistory.tag = str(NOT val(btnTogglePastHistory.tag)) Will revert the string "True" to "False" / "False" to "True" ++ From gambas at ...1... Wed Mar 5 23:48:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Mar 2008 23:48:18 +0100 Subject: [Gambas-user] Improving the utility of IDE work flow. In-Reply-To: <200803051859.28764.rterry@...1822...> References: <200803051859.28764.rterry@...1822...> Message-ID: <200803052348.19051.gambas@...1...> On mercredi 5 mars 2008, richard terry wrote: > As part of my on-going experience with using the editor extensively this is > another observation for a small improvement in usability. > > As a prelude I'll make this comment so you know I'm not just talking > through my hat. > > I worked for a number of years (admittedly a number of years ago) writing > vb medical records projects - eg pathology ordering, prescriptions, > diabetes stuff, plus a contacts database for our local GP organisation and > an entire vb medical record project of my own, and made many observations > re utility of programs over the years. > > I've been paid quite a bit over a number of years to analyse the usability > of medical records programs, and in the last couple of years was involved > with a comparison of four major commercial offerings (where I was paid both > as part of a large group, and separately as an independant consultant , to > evaluate utility of programs to used in after hours, and aged care > residential facilities in Newcastle) > > As part of my independant review, I ran these 4 programs, and my own > (which is optimised for maximal workflow with minimal keypresses) > simultaneoulsy side by side in a virtual machine, and kept track of their > work flow, and just how many mouse events, key presses etc, it took to do a > similar task in each one. > > For prescriptions eg one program (Yes - it was mine) could take as little > as 2-3 key presses to generate an entire script - consisting of > drug/generic/quantities/repeats/dosages/indications/instructions, versus > the usual number of events (up to about 17 or more) generated by the > commercial programs. Over a day, in my environment, this adds up to many > many thousands of extra mouse or keyboard events. > > So with reference to Gambas IDE, setting it up so as to allow the user > flexibilty with the minimal number of keypresses and easiest navigation is > of great interest to me. > > Given that when one is programming intensively, and has say finished for > the moment, or closes gambas to re-open again for some reason, it would be > nice to have gambas open the project to its last used state, which in my > hands here, it dosnt seem to do (1138 version) > > My project now has around 70 modules and forms, and the data directory has > some 15 subdirectories. > > As once one's gui is fairly stable one dosn't really want to be continually > re-presented with the gui form at bootup, but with the last code window one > was working on, I think it would be nice have an option in > Tools>Preferences>Editor > > like 'Reload last used class' at bootup. This is a good idea. I note it in the TODO file. Regards, -- Benoit Minisini From gambas at ...1... Wed Mar 5 23:49:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Mar 2008 23:49:55 +0100 Subject: [Gambas-user] Question on compiling (making project.gambas) In-Reply-To: <1204752370.9859.28.camel@...1816...> References: <200803052208.43112.rterry@...1822...> <1204752370.9859.28.camel@...1816...> Message-ID: <200803052349.55826.gambas@...1...> On mercredi 5 mars 2008, Steven Lobbezoo wrote: > Hi, > > I wondered, is there a way to EXclude some subdirectories in the project > directory from being included into the executable ? > > If I put all the files a project need into one directory (which is > logical) they get all included, and I end up with a .gambas file of 7.5 > Mega (for the moment ;-) > > It's complecated to have separate directories for gambas projects and > the files belonging to it. So, some meganism to exclude dirs would be > valuable. > > Regards, > Steven > At the moment, no, but this is clearly something that could be useful. I add it in the TODO file. Regards, -- Benoit Minisini From gambas at ...1... Wed Mar 5 23:51:25 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Mar 2008 23:51:25 +0100 Subject: [Gambas-user] Question on compiling (making project.gambas) In-Reply-To: <200803052349.55826.gambas@...1...> References: <200803052208.43112.rterry@...1822...> <1204752370.9859.28.camel@...1816...> <200803052349.55826.gambas@...1...> Message-ID: <200803052351.25104.gambas@...1...> On mercredi 5 mars 2008, Benoit Minisini wrote: > On mercredi 5 mars 2008, Steven Lobbezoo wrote: > > Hi, > > > > I wondered, is there a way to EXclude some subdirectories in the project > > directory from being included into the executable ? > > > > If I put all the files a project need into one directory (which is > > logical) they get all included, and I end up with a .gambas file of 7.5 > > Mega (for the moment ;-) > > > > It's complecated to have separate directories for gambas projects and > > the files belonging to it. So, some meganism to exclude dirs would be > > valuable. > > > > Regards, > > Steven > > At the moment, no, but this is clearly something that could be useful. I > add it in the TODO file. > > Regards, Wow. This is already in the TODO file. -- Benoit Minisini From lordheavym at ...626... Wed Mar 5 23:54:36 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 5 Mar 2008 23:54:36 +0100 Subject: [Gambas-user] Joystick support with Gambas Message-ID: <200803052354.37019.lordheavym@...626...> Here is a small component to deal with joysticks. It's pretty basic but it work pretty fine. See the joytest joined project. The component is here: ftp://download.tuxfamily.org/gameonlinux/gambas2-gb-joystick-2.2.1.tar.gz Feedback are welcome ;-p ++ -------------- next part -------------- A non-text attachment was scrubbed... Name: joytest-0.0.3.tar.gz Type: application/x-tgz Size: 8559 bytes Desc: not available URL: From gambas at ...1... Wed Mar 5 23:53:52 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Mar 2008 23:53:52 +0100 Subject: [Gambas-user] FileView Item: auto-selecting In-Reply-To: <1204742457.27892.3.camel@...1853...> References: <1204742457.27892.3.camel@...1853...> Message-ID: <200803052353.52375.gambas@...1...> On mercredi 5 mars 2008, Jeffrey Cobb wrote: > I'm using a fileview control in my application (gambas 2). I'd like to > be able to refresh the fileview and re-select the current item (so the > user doesn't have to locate the file again). > > I cannot find any documentation on this topic. > > Jeff > Settings the Current property should do what you want. Regards, -- Benoit Minisini From sylvain.marleau at ...647... Thu Mar 6 00:48:00 2008 From: sylvain.marleau at ...647... (2020) Date: Wed, 5 Mar 2008 15:48:00 -0800 (PST) Subject: [Gambas-user] Translation In-Reply-To: References: Message-ID: <15863294.post@...1379...> I have the same error ... Do not get menu but error message: "Cannot read translation file for language 'English (Canada)' File already exists sh. msgmerge: command not found" Running Gambas 2.99 on xubuntu 7.10 32bits. Sylvain. -- View this message in context: http://www.nabble.com/Re%3A-Translation-tp15831532p15863294.html Sent from the gambas-user mailing list archive at Nabble.com. From l.alebarde2 at ...402... Thu Mar 6 01:13:44 2008 From: l.alebarde2 at ...402... (l.alebarde2 at ...402...) Date: Thu, 06 Mar 2008 01:13:44 +0100 Subject: [Gambas-user] building Gambas : configure: error: C compiler cannot create executables Message-ID: <1204762424.47cf3738dbd5f@...1824...> Thank you very much Gabriel. Two remarks : 1) I was obliged to build Gambas2 from the source directory, otherwise, it failed. 2) There is a dependancy not mentionned in the README : libffi It is installed now and it runs. I have to try it now. Best regards, laurent From gambas at ...1... Thu Mar 6 01:25:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 6 Mar 2008 01:25:43 +0100 Subject: [Gambas-user] Translation In-Reply-To: <15863294.post@...1379...> References: <15863294.post@...1379...> Message-ID: <200803060125.43895.gambas@...1...> On jeudi 6 mars 2008, 2020 wrote: > I have the same error ... > > Do not get menu but error message: > "Cannot read translation file for language 'English (Canada)' > File already exists > sh. msgmerge: command not found" > > Running Gambas 2.99 on xubuntu 7.10 32bits. > > Sylvain. You must install the gnu translation tools to be able to translate. Regards, -- Benoit Minisini From gambas at ...1... Thu Mar 6 01:26:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 6 Mar 2008 01:26:53 +0100 Subject: [Gambas-user] =?iso-8859-1?q?building_Gambas_=3A_configure=3A_err?= =?iso-8859-1?q?or=3A_C_compiler_cannot=09create_executables?= In-Reply-To: <1204762424.47cf3738dbd5f@...1824...> References: <1204762424.47cf3738dbd5f@...1824...> Message-ID: <200803060126.53985.gambas@...1...> On jeudi 6 mars 2008, l.alebarde2 at ...402... wrote: > Thank you very much Gabriel. > Two remarks : > 1) I was obliged to build Gambas2 from the source directory, otherwise, it > failed. > 2) There is a dependancy not mentionned in the README : libffi > It is installed now and it runs. I have to try it now. > Best regards, > laurent > The README is not up to date. You must always refer to the web site for the last one. Regards, -- Benoit Minisini From maillists.gurulounge at ...626... Thu Mar 6 01:36:03 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Wed, 05 Mar 2008 16:36:03 -0800 Subject: [Gambas-user] FileView Item: auto-selecting In-Reply-To: <200803052353.52375.gambas@...1...> References: <1204742457.27892.3.camel@...1853...> <200803052353.52375.gambas@...1...> Message-ID: <1204763763.8392.2.camel@...1853...> On Wed, 2008-03-05 at 23:53 +0100, Benoit Minisini wrote: > On mercredi 5 mars 2008, Jeffrey Cobb wrote: > > I'm using a fileview control in my application (gambas 2). I'd like to > > be able to refresh the fileview and re-select the current item (so the > > user doesn't have to locate the file again). > > > > I cannot find any documentation on this topic. > > > > Jeff > > > > Settings the Current property should do what you want. > > Regards, > That seems to do the trick... Thanx! Jeff From gambas at ...1... Thu Mar 6 02:05:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 6 Mar 2008 02:05:44 +0100 Subject: [Gambas-user] Improving the utility of IDE work flow. In-Reply-To: <200803052348.19051.gambas@...1...> References: <200803051859.28764.rterry@...1822...> <200803052348.19051.gambas@...1...> Message-ID: <200803060205.44818.gambas@...1...> On mercredi 5 mars 2008, Benoit Minisini wrote: > On mercredi 5 mars 2008, richard terry wrote: > > As part of my on-going experience with using the editor extensively this > > is another observation for a small improvement in usability. > > > > As a prelude I'll make this comment so you know I'm not just talking > > through my hat. > > > > I worked for a number of years (admittedly a number of years ago) writing > > vb medical records projects - eg pathology ordering, prescriptions, > > diabetes stuff, plus a contacts database for our local GP organisation > > and an entire vb medical record project of my own, and made many > > observations re utility of programs over the years. > > > > I've been paid quite a bit over a number of years to analyse the > > usability of medical records programs, and in the last couple of years > > was involved with a comparison of four major commercial offerings (where > > I was paid both as part of a large group, and separately as an > > independant consultant , to evaluate utility of programs to used in after > > hours, and aged care residential facilities in Newcastle) > > > > As part of my independant review, I ran these 4 programs, and my own > > (which is optimised for maximal workflow with minimal keypresses) > > simultaneoulsy side by side in a virtual machine, and kept track of their > > work flow, and just how many mouse events, key presses etc, it took to do > > a similar task in each one. > > > > For prescriptions eg one program (Yes - it was mine) could take as little > > as 2-3 key presses to generate an entire script - consisting of > > drug/generic/quantities/repeats/dosages/indications/instructions, versus > > the usual number of events (up to about 17 or more) generated by the > > commercial programs. Over a day, in my environment, this adds up to many > > many thousands of extra mouse or keyboard events. > > > > So with reference to Gambas IDE, setting it up so as to allow the user > > flexibilty with the minimal number of keypresses and easiest navigation > > is of great interest to me. > > > > Given that when one is programming intensively, and has say finished for > > the moment, or closes gambas to re-open again for some reason, it would > > be nice to have gambas open the project to its last used state, which in > > my hands here, it dosnt seem to do (1138 version) > > > > My project now has around 70 modules and forms, and the data directory > > has some 15 subdirectories. > > > > As once one's gui is fairly stable one dosn't really want to be > > continually re-presented with the gui form at bootup, but with the last > > code window one was working on, I think it would be nice have an option > > in > > Tools>Preferences>Editor > > > > like 'Reload last used class' at bootup. > > This is a good idea. I note it in the TODO file. > > Regards, I done it in the last subversion commit. But there is no configuration option for disabling it at the moment. I will do it if people claim they don't like that behaviour. Regards, -- Benoit Minisini From rterry at ...1822... Thu Mar 6 03:57:09 2008 From: rterry at ...1822... (richard terry) Date: Thu, 6 Mar 2008 13:57:09 +1100 Subject: [Gambas-user] Improving the utility of IDE work flow. In-Reply-To: <200803060205.44818.gambas@...1...> References: <200803051859.28764.rterry@...1822...> <200803052348.19051.gambas@...1...> <200803060205.44818.gambas@...1...> Message-ID: <200803061357.09957.rterry@...1822...> Thanks, works well, even deposits you back to the line number you were last working on. Great Work. Richard On Thu, 6 Mar 2008 12:05:44 pm Benoit Minisini wrote: > On mercredi 5 mars 2008, Benoit Minisini wrote: > > On mercredi 5 mars 2008, richard terry wrote: > > > As part of my on-going experience with using the editor extensively > > > this is another observation for a small improvement in usability. > > > > > > As a prelude I'll make this comment so you know I'm not just talking > > > through my hat. > > > > > > I worked for a number of years (admittedly a number of years ago) > > > writing vb medical records projects - eg pathology ordering, > > > prescriptions, diabetes stuff, plus a contacts database for our local > > > GP organisation and an entire vb medical record project of my own, and > > > made many observations re utility of programs over the years. > > > > > > I've been paid quite a bit over a number of years to analyse the > > > usability of medical records programs, and in the last couple of years > > > was involved with a comparison of four major commercial offerings > > > (where I was paid both as part of a large group, and separately as an > > > independant consultant , to evaluate utility of programs to used in > > > after hours, and aged care residential facilities in Newcastle) > > > > > > As part of my independant review, I ran these 4 programs, and my own > > > (which is optimised for maximal workflow with minimal keypresses) > > > simultaneoulsy side by side in a virtual machine, and kept track of > > > their work flow, and just how many mouse events, key presses etc, it > > > took to do a similar task in each one. > > > > > > For prescriptions eg one program (Yes - it was mine) could take as > > > little as 2-3 key presses to generate an entire script - consisting of > > > drug/generic/quantities/repeats/dosages/indications/instructions, > > > versus the usual number of events (up to about 17 or more) generated by > > > the commercial programs. Over a day, in my environment, this adds up to > > > many many thousands of extra mouse or keyboard events. > > > > > > So with reference to Gambas IDE, setting it up so as to allow the user > > > flexibilty with the minimal number of keypresses and easiest navigation > > > is of great interest to me. > > > > > > Given that when one is programming intensively, and has say finished > > > for the moment, or closes gambas to re-open again for some reason, it > > > would be nice to have gambas open the project to its last used state, > > > which in my hands here, it dosnt seem to do (1138 version) > > > > > > My project now has around 70 modules and forms, and the data directory > > > has some 15 subdirectories. > > > > > > As once one's gui is fairly stable one dosn't really want to be > > > continually re-presented with the gui form at bootup, but with the last > > > code window one was working on, I think it would be nice have an option > > > in > > > Tools>Preferences>Editor > > > > > > like 'Reload last used class' at bootup. > > > > This is a good idea. I note it in the TODO file. > > > > Regards, > > I done it in the last subversion commit. But there is no configuration > option for disabling it at the moment. I will do it if people claim they > don't like that behaviour. > > Regards, From robertsonhamish at ...626... Thu Mar 6 04:23:50 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Thu, 6 Mar 2008 10:23:50 +0700 Subject: [Gambas-user] Gambas support rocks Message-ID: The Gambas support is just unbelievable! Someone needs a feature and Benoit or someone comes up with an update...that evening. I know this is the way open source is supposed to work but it is quite awesome to watch. Talking about support....who's in charge of Gambas marketing? Want a hand? Hamish. From wdahn at ...1000... Thu Mar 6 05:01:43 2008 From: wdahn at ...1000... (Werner) Date: Thu, 06 Mar 2008 12:01:43 +0800 Subject: [Gambas-user] Help with True/False logic statement In-Reply-To: <200803052208.43112.rterry@...1822...> References: <200803052208.43112.rterry@...1822...> Message-ID: <47CF6CA7.2070300@...1000...> richard terry wrote: > Never can get my brain around easy ways to do true/false. > > Could someone give me a one liner logic for this?, or is it at its simplest? > > IF btnTogglePastHistory.tag = TRUE THEN > btnTogglePastHistory.tag = FALSE > ELSE > btnTogglePastHistory.tag = TRUE > END IF > > Regards > > Richard > > btnTogglePastHistory.tag = NOT btnTogglePastHistory.tag From kari.laine at ...1400... Thu Mar 6 11:15:50 2008 From: kari.laine at ...1400... (Kari Laine) Date: Thu, 06 Mar 2008 12:15:50 +0200 Subject: [Gambas-user] Populating combobox from recordset Message-ID: <47CFC456.7010209@...1400...> Hi, I give up. Could someone please tell me howto populate ComboBox from resultset. Actually I need to copine two fiels from resultset as an item - like this id & name . Best Regards Kari From Mike at ...680... Thu Mar 6 11:54:34 2008 From: Mike at ...680... (Mike Keehan) Date: Thu, 06 Mar 2008 10:54:34 +0000 Subject: [Gambas-user] Populating combobox from recordset In-Reply-To: <47CFC456.7010209@...1400...> References: <47CFC456.7010209@...1400...> Message-ID: <47CFCD6A.4060108@...680...> Kari Laine wrote: > Hi, > > I give up. Could someone please tell me howto populate ComboBox from > resultset. Actually I need to copine two fiels from resultset as an item > - like this id& name . > > Best Regards > Kari > > Hi Kari. I load up Combos from a text file like this:- Dim lContents as String lContents = File.Load("ComboList.txt") MyCombo.List = Split(lContents, gb.NewLine) The Combo.List takes an array of strings. I'm not sure what a resultset is composed of, but you could build an array of strings from it I think. Mike From leonardo at ...1237... Thu Mar 6 17:18:47 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 06 Mar 2008 17:18:47 +0100 Subject: [Gambas-user] Question on compiling (making project.gambas) In-Reply-To: <200803052351.25104.gambas@...1...> References: <200803052208.43112.rterry@...1822...> <1204752370.9859.28.camel@...1816...> <200803052349.55826.gambas@...1...> <200803052351.25104.gambas@...1...> Message-ID: <47D01967.4030405@...1237...> Benoit Minisini ha scritto: > > Wow. This is already in the TODO file. > Maybe someone already asked for it (me, for example ;-)). -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From gambas at ...1... Thu Mar 6 19:47:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 6 Mar 2008 19:47:31 +0100 Subject: [Gambas-user] IDE subroutine names not updating when changed. In-Reply-To: <200803060748.26767.rterry@...1822...> References: <200803060748.26767.rterry@...1822...> Message-ID: <200803061947.31851.gambas@...1...> On mercredi 5 mars 2008, richard terry wrote: > I've noticed this for a long time, but it can be inconsistant. > > If you re-name a subroutine, then later are trying to re-select it from the > drop down menu,then the subroutine name is not there, until you close > gambas and re-load it. > > Regards > > Richard. > This bug should be fixed in the revision 1150. Regards, -- Benoit Minisini From gambas at ...1... Thu Mar 6 19:48:04 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 6 Mar 2008 19:48:04 +0100 Subject: [Gambas-user] Translation In-Reply-To: <200803060125.43895.gambas@...1...> References: <15863294.post@...1379...> <200803060125.43895.gambas@...1...> Message-ID: <200803061948.04358.gambas@...1...> On jeudi 6 mars 2008, Benoit Minisini wrote: > On jeudi 6 mars 2008, 2020 wrote: > > I have the same error ... > > > > Do not get menu but error message: > > "Cannot read translation file for language 'English (Canada)' > > File already exists > > sh. msgmerge: command not found" > > > > Running Gambas 2.99 on xubuntu 7.10 32bits. > > > > Sylvain. > > You must install the gnu translation tools to be able to translate. > > Regards, I added a warning message in the IDE when the translation tools are not installed. Regards, -- Benoit Minisini From gambas at ...1... Thu Mar 6 19:48:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 6 Mar 2008 19:48:53 +0100 Subject: [Gambas-user] BUG ? In-Reply-To: <47CD7BDD.4000907@...1400...> References: <47CC3178.5070905@...1400...> <47CD7BDD.4000907@...1400...> Message-ID: <200803061948.53336.gambas@...1...> On mardi 4 mars 2008, Kari Laine wrote: > Hi, > > I am sorry to bug you but is it only me having this problem. > I have self compiled the Gambas so problem can very well be with the > particular compilation. Could you please confirm that you don't have > this problem. Also any ideas how to fix it would be very highly > appreciated. It is very annoying - so I gather it is a problem which I > have caused - cause if it were generall problem it would have been fixed > already :-) > > Best Regards > Kari > > Kari Laine kirjoitti: > > Hi, > > > > I noticed a problem which makes development difficult. When I run a > > project and error results then the toolbox vanishes. Those little arrows > > are nowhere to be found. Also menu selection does nothing. > > > > Sure way for me to get in that situation is to run DataReportExample > > (which I am trying to fix) - it gives an error and toolbox arrows are > > gone. I have tested this with two computers and it also happens with the > > Gambas3 (cvs) version. > > > > One computer is SUSE 10.2 and other one is debian testing. Both X86. > > > > Best Regards > > Kari Laine > > > > Can you send some screenshots? -- Benoit Minisini From gambas at ...1... Thu Mar 6 20:01:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 6 Mar 2008 20:01:36 +0100 Subject: [Gambas-user] Highlight editor - Highlight help In-Reply-To: <15810811.post@...1379...> References: <15810811.post@...1379...> Message-ID: <200803062001.36782.gambas@...1...> On lundi 3 mars 2008, MaxVK wrote: > Hi there, Iv been struggling with this for a while now. I am using the HTML > highlighting code that comes in the documentation and the example and I > want to include some more code that will highlight CSS as well as HTML. > > Can anyone point me in the right direction with some code to look through > or some direct explanation about how the highlighting actually works? > Please don't suggest reading the example code because Iv been doing that > for two days now and I'm still none the wiser about how to get this > working. > > I'm also looking to try and check spelling as I type. I can get the last > word typed so I can spell check it, but I need to be able to highlight the > word in some way (Presumably as an error), and I'm assuming that this will > need to be done in the highlight event, although again, Iv failed miserably > when Iv tried to get it working. > > Can anyone help please? > > Cheers > > Max Each time a line must be highlighted, the Editor raises the Highlight event. Then, in the Highlight event handler, you must tell the Editor the highlight state of each UTF-8 character of the line that must be highlighted. All that is done by using the static methods, properties and constants of the Highlight class. The text of the line is stored in Higlight.Text. The state of one character is represented by one of the Highlight constants: Comment, DataType, Function, Keyword, and so on. Look in the Highlight.Add documentation for the list of all possible states. The state of each character is defined by successive calls to the Highlight.Add() method. The first call defines the state of the first character, the second call the state of the second character, and so on... The state of the analyze at the beginning of the line is stored in the Highlight.State and, optionally, the Highlight.Tag properties. These two properties are two integers. After the last call to Highlight.Add(), i.e. when you have finished analyzing the current line, you must set Highlight.State and, optionally, Highlight.Tag to the state of the analyze at the end of the line. There is another property, Highlight.ShowLimit. Use it to tell the Editor that the current line is the first line of a method, and that it should draw a separator (if the corresponding Editor option is set of course). Is it clearer now? -- Benoit Minisini From maximvonk at ...626... Thu Mar 6 21:56:08 2008 From: maximvonk at ...626... (MaxVK) Date: Thu, 6 Mar 2008 12:56:08 -0800 (PST) Subject: [Gambas-user] Highlight editor - Highlight help In-Reply-To: <200803062001.36782.gambas@...1...> References: <15810811.post@...1379...> <200803062001.36782.gambas@...1...> Message-ID: <15883756.post@...1379...> Ah now! Just those few paragraphs make all the difference! I can now see whats going on in the example, and it makes more sense why my own attempts have not worked thus far. Thanks Benoit, and if I might make the suggestion, this explanation should go into the documentation because its a lot clearer than the current information. Thanks Max Benoit Minisini wrote: > > Is it clearer now? > -- View this message in context: http://www.nabble.com/Highlight-editor---Highlight-help-tp15810811p15883756.html Sent from the gambas-user mailing list archive at Nabble.com. From l.alebarde2 at ...402... Thu Mar 6 23:25:27 2008 From: l.alebarde2 at ...402... (l.alebarde2 at ...402...) Date: Thu, 06 Mar 2008 23:25:27 +0100 Subject: [Gambas-user] building Gambas : configure: error: C compiler cannot create executables Message-ID: <1204842327.47d06f57c1777@...1824...> Thank you very much Gabriel. Two remarks : 1) I was obliged to build Gambas2 from the source directory, otherwise, it failed. 2) There is a dependancy not mentionned in the README : libffi It is installed now and it runs. I have to try it now. Best regards, laurent From robert.c.rowe at ...626... Fri Mar 7 02:25:25 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Thu, 06 Mar 2008 20:25:25 -0500 Subject: [Gambas-user] Hello and questions Message-ID: <47D09985.4090209@...626...> I just discovered Gambas yesterday and I'm quite impressed. I'd like to thank Beno?t for writing Gamabs. I'm a professional VB developer and have missed VB since I switched to Linux (Kubuntu) about a year ago. I'm stuck with Windows at work since our customers use Windows. I used to make little apps at home when needed but I hate to bring up a VMWare session for such small tasks. It looks like Gambas will solve this for me. I have a couple of questions though. 1. I couldn't find a place on the website to submit suggestions. Is this mailing list the appropriate place for suggestions? 2. I found the bug tracker but couldn't seem to access the page(s) that showed the description of the listed bugs. Am I missing something? I'd hate to submit a duplicate bug report. 3. I'd have to agree with Richard Terry that an efficient workflow is critical. I use a large number of addons with VB at work. I didn't see a way to add extensions to Gambas. Does it have this ability? If not then do you except source code changes to the IDE? I'd be willing to write several tools that could be added to the IDE. I'd prefer a plugin type system so that each user could choose whether to have the tool or not. 4. Another thing that I do a lot at work with VB is to write controls as the built in controls are rather lackluster. Do components have to be written in C or can they be written in Gambas? If they can be written in Gambas, is there a how-to somewhere? 5. The first thing that I did after installing Gambas was to try to run the samples. None of them would compile. I eventually figured out that it was because I was running Gambas as a normal user. When I ran as root the samples ran well and were impressive. My suspicion is that Gambas needs to write the compiled file(s) somewhere and my normal user couldn't write to that location. It seems this location must be the project folder which is /usr/share/gambas2/examples/ for me. Is there a way to tell Gambas to write the compiled files to another location (like the temp folder) when running a read only project. 6. I know that I'm a Gambas newbie but I'm a BASIC veteran (over 25 years) and I'm sure that I will pick it up quickly. What would be the best way for me to contribute? I stink at C and I'm an okay document writer. 7. I've been reading through "Getting Started with Gambas Version 2: A Tutorial" by timothy.marshal?nichols at ...1868... He says that his screenshots were taken from Gambas2. I have Gambas2 installed. In has screenshot of the New Project Wizard there are several options that I don't have including an option to import a VB project. I'm very interested in importing VB projects. Am I somehow missing this option or do I need to install something else? I installed everything from the repository at danicafe. I can provide a package list if this would help. 8. I'm a hotkey junkie and was very pleased to see that most of the hotkeys in Gamabs were the same as the ones in VB. Not all are though. Is there a way to configure the hotkeys? 9. I prefer a green background with a white foreground for comment lines. I find that this makes them stand out. I located the option to change the syntax highlighting colors but I couldn't set the background color. Is this possible? Maybe I could edit some config file directly if the option isn't available from the options screen. 10. This next one is more of a suggestion. I love the intellisense menus. In many ways they are superior to VB. One thing that I ran into though was that you seem to have to press enter to choose the item from the list. If this could be triggered on the keypress of any non-alpha character then it would allow me to press the . or = to choose the item and continue with the statement. I know it only saves a few keystrokes be this adds up after a while. Robert Rowe From rterry at ...1822... Fri Mar 7 03:03:48 2008 From: rterry at ...1822... (richard terry) Date: Fri, 7 Mar 2008 13:03:48 +1100 Subject: [Gambas-user] Hello and questions In-Reply-To: <47D09985.4090209@...626...> References: <47D09985.4090209@...626...> Message-ID: <200803071303.48338.rterry@...1822...> Rob, a few comments from a novice below, hope you stay with us. On Fri, 7 Mar 2008 12:25:25 pm Robert Rowe wrote: > I just discovered Gambas yesterday and I'm quite impressed. I'd like to > thank Beno?t for writing Gamabs. I'm a professional VB developer and > have missed VB since I switched to Linux (Kubuntu) about a year ago. I'm > stuck with Windows at work since our customers use Windows. I used to > make little apps at home when needed but I hate to bring up a VMWare > session for such small tasks. It looks like Gambas will solve this for me. > > I have a couple of questions though. > 1. I couldn't find a place on the website to submit suggestions. Is this > mailing list the appropriate place for suggestions? Absolutely, usually good place, benoit is amazingly quick to respond/add features if he feels them worthwhile. > > 2. I found the bug tracker but couldn't seem to access the page(s) that > showed the description of the listed bugs. Am I missing something? I'd > hate to submit a duplicate bug report. People seem to send directly to the list. > > 3. I'd have to agree with Richard Terry that an efficient workflow is > critical. I use a large number of addons with VB at work. I didn't see a > way to add extensions to Gambas. Does it have this ability? If not then > do you except source code changes to the IDE? I'd be willing to write > several tools that could be added to the IDE. I'd prefer a plugin type > system so that each user could choose whether to have the tool or not. > The gambas source tree has the source code for the gambas editor. You can experiment with editor changes and run them as a project. Benoit seems willing to change things that are good ideas. One can write components directly in Gambas (sorry I can't as I don't understand how to , but would love to learn). With your talents I'm sure you can do this. There are examples in the tree, and the grideditor is a good example of a component you can download from http://gambasrad.org I think. > 4. Another thing that I do a lot at work with VB is to write controls as > the built in controls are rather lackluster. Do components have to be > written in C or can they be written in Gambas? If they can be written in > Gambas, is there a how-to somewhere? > No how to (sob sob), please write one when you figure it out, as above can be written in gambas. I want to replicate my vb popup phrasewheel (see www.gnumed.net/rterry/Index.htm for a summary of some of my really old vb medical program concepts if you are interested), which Karsten/Ian Haywood implemented for the gnuMed project expanding my examples. > 5. The first thing that I did after installing Gambas was to try to run > the samples. None of them would compile. I eventually figured out that > it was because I was running Gambas as a normal user. When I ran as root > the samples ran well and were impressive. My suspicion is that Gambas > needs to write the compiled file(s) somewhere and my normal user > couldn't write to that location. It seems this location must be the > project folder which is /usr/share/gambas2/examples/ for me. Is there a > way to tell Gambas to write the compiled files to another location (like > the temp folder) when running a read only project. Personally don't know, I can't compile mine either - get huge executables (2gig) havn't deciphered why. > > 6. I know that I'm a Gambas newbie but I'm a BASIC veteran (over 25 > years) and I'm sure that I will pick it up quickly. What would be the > best way for me to contribute? I stink at C and I'm an okay document > writer. > Perhaps we could collaborate. I'm interested in writing help files and have written many, I'd prefer the .chm format (kchmviewer runs on linux) as it is easy/searchable. I use HELPBLOCKS to make these files. > 7. I've been reading through > "Getting Started with Gambas Version 2: A Tutorial" by > timothy.marshal?nichols at ...1868... He says that his screenshots were > taken from Gambas2. I have Gambas2 installed. In has screenshot of the > New Project Wizard there are several options that I don't have including > an option to import a VB project. I'm very interested in importing VB > projects. Am I somehow missing this option or do I need to install > something else? I installed everything from the repository at danicafe. > I can provide a package list if this would help. As an aside download form the web "a beginners guide to gambas" by John rittinghouse - pdf - free (though I bought the book to give him some money), though only gambas 1.0 its an interesting overview. > 8. I'm a hotkey junkie and was very pleased to see that most of the > hotkeys in Gamabs were the same as the ones in VB. Not all are though. > Is there a way to configure the hotkeys? > > 9. I prefer a green background with a white foreground for comment > lines. I find that this makes them stand out. I located the option to > change the syntax highlighting colors but I couldn't set the background > color. Is this possible? Maybe I could edit some config file directly if > the option isn't available from the options screen. > > 10. This next one is more of a suggestion. I love the intellisense > menus. In many ways they are superior to VB. One thing that I ran into > though was that you seem to have to press enter to choose the item from > the list. If this could be triggered on the keypress of any non-alpha > character then it would allow me to press the . or = to choose the item > and continue with the statement. I know it only saves a few keystrokes > be this adds up after a while. > > Robert Rowe Regards Richard From asa.mjb at ...626... Fri Mar 7 03:49:15 2008 From: asa.mjb at ...626... (Mark Bjorkman) Date: Thu, 6 Mar 2008 19:49:15 -0700 Subject: [Gambas-user] Translation In-Reply-To: <200803061948.04358.gambas@...1...> References: <15863294.post@...1379...> <200803060125.43895.gambas@...1...> <200803061948.04358.gambas@...1...> Message-ID: Thank you, I had gettext installed but it didn't work until I installed gettext-devel. It might be good to know what is in 'gnu translation tools' because I couldn't find any package called this. On Thu, Mar 6, 2008 at 11:48 AM, Benoit Minisini < gambas at ...1...> wrote: > On jeudi 6 mars 2008, Benoit Minisini wrote: > > On jeudi 6 mars 2008, 2020 wrote: > > > I have the same error ... > > > > > > Do not get menu but error message: > > > "Cannot read translation file for language 'English (Canada)' > > > File already exists > > > sh. msgmerge: command not found" > > > > > > Running Gambas 2.99 on xubuntu 7.10 32bits. > > > > > > Sylvain. > > > > You must install the gnu translation tools to be able to translate. > > > > Regards, > > I added a warning message in the IDE when the translation tools are not > installed. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1822... Fri Mar 7 04:46:48 2008 From: rterry at ...1822... (richard terry) Date: Fri, 7 Mar 2008 14:46:48 +1100 Subject: [Gambas-user] Webbrowser question Message-ID: <200803071446.48798.rterry@...1822...> Does anyone know if it is possible to set a html string directly to the webbrower, or does one have to write it to a file first, then load that file? Thanks in anticipation. Richard From timothy.marshal-nichols at ...247... Fri Mar 7 08:35:09 2008 From: timothy.marshal-nichols at ...247... (timothy) Date: Fri, 7 Mar 2008 07:35:09 -0000 Subject: [Gambas-user] Hello and questions In-Reply-To: <47D09985.4090209@...626...> Message-ID: <000001c88025$c9accef0$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf > Of Robert Rowe > Sent: Friday, 07 March 2008 01:25 AM > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Hello and questions > > > > 5. The first thing that I did after installing Gambas was to > try to run > the samples. None of them would compile. I eventually figured > out that > it was because I was running Gambas as a normal user. When I > ran as root > the samples ran well and were impressive. My suspicion is that Gambas > needs to write the compiled file(s) somewhere and my normal user > couldn't write to that location. It seems this location must be the > project folder which is /usr/share/gambas2/examples/ for me. > Is there a > way to tell Gambas to write the compiled files to another > location (like > the temp folder) when running a read only project. > This does not appear to be a Gambas problem. If you compile Gambas then the examples are compiled at install time. So they work. However I have seen this problem on Linux distro's like Fedora and Ubuntu. This happens when you install Gambas through their package manager. These package managers to not set the correct permissions for the examples. If you are the only person using the machine it would be better to set the owner and group of the examples to yourself. Its better to use root as little as possible. Or copy the examples to somewhere in your home directory. (You also get the advantage they are not read only, so you can play with the code.) Thanks 8-{)} Timothy Marshal-Nichols From vk2tfg at ...1352... Fri Mar 7 12:42:02 2008 From: vk2tfg at ...1352... (Geoff) Date: Fri, 7 Mar 2008 22:42:02 +1100 Subject: [Gambas-user] gambas on debian hppa Message-ID: <200803072242.02465.vk2tfg@...1352...> Hi guys, I am trying to get gambas running on my debian 4.0 hppa box. I get the following error regardless of version when i try to start gambas. "Cannot load class 'Project': Unable to load class file" I have tried 1.0.15-1.2 and 2.0.0 and 2.2.1. gambas 1 came as binaries with debian and the gambas 2 versions were compiled from source. any ideas would be appreciated. Cheers, Geoff. From rolf.frogs at ...221... Fri Mar 7 12:54:16 2008 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Fri, 7 Mar 2008 12:54:16 +0100 Subject: [Gambas-user] Hello and questions In-Reply-To: <000001c88025$c9accef0$6401a8c0@...1587...> References: <000001c88025$c9accef0$6401a8c0@...1587...> Message-ID: <200803071254.20009.rolf.frogs@...221...> Hi > > 5. The first thing that I did after installing Gambas was to > > try to run > > the samples. None of them would compile. I eventually figured > > out that > > it was because I was running Gambas as a normal user. When I > > ran as root > > the samples ran well and were impressive. My suspicion is that Gambas > > needs to write the compiled file(s) somewhere and my normal user > > couldn't write to that location. It seems this location must be the > > project folder which is /usr/share/gambas2/examples/ for me. > > Is there a > > way to tell Gambas to write the compiled files to another > > location (like > > the temp folder) when running a read only project. > > This does not appear to be a Gambas problem. If you compile Gambas then > the examples are compiled at install time. So they work. > > However I have seen this problem on Linux distro's like Fedora and > Ubuntu. This happens when you install Gambas through their package > manager. These package managers to not set the correct permissions for > the examples. > > If you are the only person using the machine it would be better to set > the owner and group of the examples to yourself. Its better to use root > as little as possible. Or copy the examples to somewhere in your home > directory. (You also get the advantage they are not read only, so you > can play with the code.) > To make the examples working, just copy them to your home directory and open them in gambas. So the examples keep unchanged for other users as well or another try. Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From steven at ...1652... Fri Mar 7 13:41:01 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 07 Mar 2008 13:41:01 +0100 Subject: [Gambas-user] Stange problem with CInt In-Reply-To: <200803061947.31851.gambas@...1...> References: <200803060748.26767.rterry@...1822...> <200803061947.31851.gambas@...1...> Message-ID: <1204893662.23187.7.camel@...1816...> Hi, I have a strange problem with CInt I do : i = CInteger("123.00") where i is an integer and "123.00" a string of course I tried Cint and CInteger I get a message : Type Mismatch : Wanted Integer, Got string instead In the doc it says that the variable between the brackets is type Variant. I donnot get it, a variant can be a string no ? I use 2.1.0 on Suse 10.3 Steven From gambas at ...1... Fri Mar 7 14:17:42 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 7 Mar 2008 14:17:42 +0100 Subject: [Gambas-user] Stange problem with CInt In-Reply-To: <1204893662.23187.7.camel@...1816...> References: <200803060748.26767.rterry@...1822...> <200803061947.31851.gambas@...1...> <1204893662.23187.7.camel@...1816...> Message-ID: <200803071417.42728.gambas@...1...> On vendredi 7 mars 2008, Steven Lobbezoo wrote: > Hi, > > I have a strange problem with CInt > > I do : > i = CInteger("123.00") > > where i is an integer and "123.00" a string of course > I tried Cint and CInteger > > I get a message : > Type Mismatch : Wanted Integer, Got string instead > "123.00" is not an integer because of the point. "123" is. The error message is not really accurate in that case. Regards, -- Benoit Minisini From jaap_cramer at ...67... Fri Mar 7 15:01:29 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Fri, 7 Mar 2008 15:01:29 +0100 Subject: [Gambas-user] Strange: TextEdit freezes Message-ID: Hi I have a problem. Some hebrew text freezes in a TextEditBox in combination with font-tags. No freeze without tags, but it freezes only sometimes. It is possible to display some text with tags without a problem. I added an example-project to recreate the bug, with further explaination. Somebody an idea how to solve? Jaap _________________________________________________________________ Bekijk Yes-R's real life soap op MSN Video! http://video.msn.com/video.aspx?mkt=nl-nl&tab=m1192527562294&vid=8aff5b76-b78d-4b55-8b64-ef7e1d73aab2&playlist=videoByUuids:uuids:50b732c2-c105-41e9-adf0-36bd627d4eaa,0813da8c-031b-423f-a79d-35d925aee805,5cce447e-948d-43af-9862-45bb6bb9d6d8,6a39138c-f562-4254-be70-9d93343650f8,f9b8d78f-05a4-4c74-8e4b-28d20a4037ab&from=NLNL_Yes-R -------------- next part -------------- A non-text attachment was scrubbed... Name: freeze-0.0.1.tar.gz Type: application/x-gzip Size: 8829 bytes Desc: not available URL: From steven at ...1652... Fri Mar 7 16:19:38 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 07 Mar 2008 16:19:38 +0100 Subject: [Gambas-user] Stange problem with CInt In-Reply-To: <200803071417.42728.gambas@...1...> References: <200803060748.26767.rterry@...1822...> <200803061947.31851.gambas@...1...> <1204893662.23187.7.camel@...1816...> <200803071417.42728.gambas@...1...> Message-ID: <1204903178.13161.19.camel@...1816...> In that case : from the samples in the doc : Example PRINT CInt(3.6) ________________________________________________________________________ 3 Is wrong, someone should change it. However, I think the sample is right, and the actual effect when there is a point is wrong. Steven Le vendredi 07 mars 2008 ? 14:17 +0100, Benoit Minisini a ?crit : > On vendredi 7 mars 2008, Steven Lobbezoo wrote: > > Hi, > > > > I have a strange problem with CInt > > > > I do : > > i = CInteger("123.00") > > > > where i is an integer and "123.00" a string of course > > I tried Cint and CInteger > > > > I get a message : > > Type Mismatch : Wanted Integer, Got string instead > > > > "123.00" is not an integer because of the point. "123" is. The error message > is not really accurate in that case. > > Regards, > From gambas at ...1... Fri Mar 7 16:16:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 7 Mar 2008 16:16:45 +0100 Subject: [Gambas-user] Stange problem with CInt In-Reply-To: <1204903178.13161.19.camel@...1816...> References: <200803060748.26767.rterry@...1822...> <200803071417.42728.gambas@...1...> <1204903178.13161.19.camel@...1816...> Message-ID: <200803071616.45955.gambas@...1...> On vendredi 7 mars 2008, Steven Lobbezoo wrote: > In that case : > > from the samples in the doc : > > Example > PRINT CInt(3.6) > > ________________________________________________________________________ > 3 > > Is wrong, someone should change it. > However, I think the sample is right, and the actual effect when there > is a point is wrong. > > Steven > No, the example is right: it is a conversion from a Float to an Integer. What you tried is a conversion from a String to an Integer, and it does not work the same way. -- Benoit Minisini From ronstk at ...239... Fri Mar 7 16:47:52 2008 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 7 Mar 2008 16:47:52 +0100 Subject: [Gambas-user] Stange problem with CInt In-Reply-To: <1204893662.23187.7.camel@...1816...> References: <200803060748.26767.rterry@...1822...> <200803061947.31851.gambas@...1...> <1204893662.23187.7.camel@...1816...> Message-ID: <200803071647.52991.ronstk@...239...> On Friday 07 March 2008 13:41, Steven Lobbezoo wrote: > Hi, > > I have a strange problem with CInt > > I do : > i = CInteger("123.00") > use i = Cint(Val("123.00)) maybe this helps > where i is an integer and "123.00" a string of course > I tried Cint and CInteger > > I get a message : > Type Mismatch : Wanted Integer, Got string instead > > In the doc it says that the variable between the brackets is type > Variant. > > I donnot get it, a variant can be a string no ? > > I use 2.1.0 on Suse 10.3 > > Steven Ron From steven at ...1652... Fri Mar 7 17:15:36 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 07 Mar 2008 17:15:36 +0100 Subject: [Gambas-user] Stange problem with CInt In-Reply-To: <200803071616.45955.gambas@...1...> References: <200803060748.26767.rterry@...1822...> <200803071417.42728.gambas@...1...> <1204903178.13161.19.camel@...1816...> <200803071616.45955.gambas@...1...> Message-ID: <1204906536.13161.32.camel@...1816...> Why are You ALLWAYS right ;-) Steven Le vendredi 07 mars 2008 ? 16:16 +0100, Benoit Minisini a ?crit : > On vendredi 7 mars 2008, Steven Lobbezoo wrote: > > In that case : > > > > from the samples in the doc : > > > > Example > > PRINT CInt(3.6) > > > > ________________________________________________________________________ > > 3 > > > > Is wrong, someone should change it. > > However, I think the sample is right, and the actual effect when there > > is a point is wrong. > > > > Steven > > > > No, the example is right: it is a conversion from a Float to an Integer. What > you tried is a conversion from a String to an Integer, and it does not work > the same way. > From steven at ...1652... Fri Mar 7 17:15:56 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 07 Mar 2008 17:15:56 +0100 Subject: [Gambas-user] Stange problem with CInt In-Reply-To: <200803071647.52991.ronstk@...239...> References: <200803060748.26767.rterry@...1822...> <200803061947.31851.gambas@...1...> <1204893662.23187.7.camel@...1816...> <200803071647.52991.ronstk@...239...> Message-ID: <1204906556.13161.34.camel@...1816...> Thanks, I'll try that. Steven Le vendredi 07 mars 2008 ? 16:47 +0100, Ron Onstenk a ?crit : > On Friday 07 March 2008 13:41, Steven Lobbezoo wrote: > > Hi, > > > > I have a strange problem with CInt > > > > I do : > > i = CInteger("123.00") > > > > use i = Cint(Val("123.00)) > maybe this helps > > > where i is an integer and "123.00" a string of course > > I tried Cint and CInteger > > > > I get a message : > > Type Mismatch : Wanted Integer, Got string instead > > > > In the doc it says that the variable between the brackets is type > > Variant. > > > > I donnot get it, a variant can be a string no ? > > > > I use 2.1.0 on Suse 10.3 > > > > Steven > > Ron > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...1652... Fri Mar 7 18:20:38 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 07 Mar 2008 18:20:38 +0100 Subject: [Gambas-user] Stange problem with CInt In-Reply-To: <200803071647.52991.ronstk@...239...> References: <200803060748.26767.rterry@...1822...> <200803061947.31851.gambas@...1...> <1204893662.23187.7.camel@...1816...> <200803071647.52991.ronstk@...239...> Message-ID: <1204910438.13161.53.camel@...1816...> No, that does not work either. Val("123.00") returns NULL But if I add Replace$("123.00", ".", ",") it seems to work allright Steven Le vendredi 07 mars 2008 ? 16:47 +0100, Ron Onstenk a ?crit : > On Friday 07 March 2008 13:41, Steven Lobbezoo wrote: > > Hi, > > > > I have a strange problem with CInt > > > > I do : > > i = CInteger("123.00") > > > > use i = Cint(Val("123.00)) > maybe this helps > > > where i is an integer and "123.00" a string of course > > I tried Cint and CInteger > > > > I get a message : > > Type Mismatch : Wanted Integer, Got string instead > > > > In the doc it says that the variable between the brackets is type > > Variant. > > > > I donnot get it, a variant can be a string no ? > > > > I use 2.1.0 on Suse 10.3 > > > > Steven > > Ron > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kari.laine at ...1400... Fri Mar 7 20:50:28 2008 From: kari.laine at ...1400... (Kari Laine) Date: Fri, 07 Mar 2008 21:50:28 +0200 Subject: [Gambas-user] In search of two features Message-ID: <47D19C84.8030701@...1400...> Hi, first I would like to see join command in Gambas. Command would join array elements or collection elements to a string. second, some kind of indexing for text boxes. I am making a billing program and I have form with the following layout. Product Amount Tomatoes____________________________ ___7.30 Apples______________________________ ___5.30 There are 40 rows with textboxes. Let's call them product1 - product40 and amount1 - amount40. How now store these products to a database where each row is one record. I would like to use somekind of loop, like db.open rs = db.create("rows") for counter = 1 to 40 if not empty mform.product[counter] then rs!product = mform.product[counter] endif if not empty mform.amount[counter] then rs!amount = mform.amount[counter] endif rs.update next Naturally same problem is to get information from the database back to form. Hopefully my explanation is understood. Best Regards Kari From sourceforge-raindog2 at ...94... Fri Mar 7 21:17:59 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 7 Mar 2008 15:17:59 -0500 Subject: [Gambas-user] In search of two features In-Reply-To: <47D19C84.8030701@...1400...> References: <47D19C84.8030701@...1400...> Message-ID: <200803071517.59537.sourceforge-raindog2@...94...> On Friday 07 March 2008 14:50, Kari Laine wrote: > first I would like to see join command in Gambas. Command would > join array elements or collection elements to a string. It does, but it's a method of the array, not a stand-alone command. mystring = myarray.Join(",") ' would result in comma-separated values > second, some kind of indexing for text boxes. I am making a billing > program and I have form with the following layout. This is a very frequently-requested feature, but I doubt we'll ever see it because populating an array at design time isn't really a great programming practice. The way my clients and I have done it is like so (pseudo-code from memory, may not actually compile): dim i as integer dim o as object dim products as new object[] for i = 0 to 39 o = new Textbox(ME) as "products" o.x = 10 o.y = 10 + (20 * i) o.width = 100 o.height = 16 o.tag = i ' we store the array index in the tag products.add(o) next Then you can receive events for your textboxes and handle them appropriately: sub products_LostFocus() dim i as integer dim o as object o = last i = o.tag if o.text <> "" then updatedatabase(i, o.text) endif end where "sub updatedatabase(productname as string, id as integer)" is a subroutine that would include something like mydb.exec("update mytable set productname = &1 where id = &2", productname, id). Rob From richard.j.walker at ...247... Sat Mar 8 00:31:34 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 7 Mar 2008 23:31:34 +0000 Subject: [Gambas-user] Strange problem with Date Time and ValueBox Message-ID: <200803072331.35124.richard.j.walker@...247...> I have a little program which I wrote for the last winter Ashes tour. It provides a way to do timer controlled recordings from radio programmes streamed by the BBC and played by Helixplayer. I have tinkered with it from time to time to bloat its feature set and keep it up to date with various key changes to the Gambas2 environment. The current working version is in use recording each day's play in the 3 test series under way in New Zealand. It runs on Gambas2 v2.0 with a backported bug-fix for the date chooser control which Benoit kindly provided. I have always found plenty to confuse me when handling dates and times in Gambas but having converted from my own customised versions of the DateBox and TimeBox controls to the new ValueBox control I had reviewed the date and time handling code to make sure I am not doing any redundant conversions. Something I changed recently introduced a bug to the store-recall-timer-settings process. A date and time entered as {02/03/2008 15:45:11} is changed, when it is recalled from a storage array, to {02/03/2008 00:41:26}. A lot of time spent tracing through my over-complex logic eventually located the probable "cause" in part of the code which restores a previously stored collection of settings. The relevant code snippet is: 'Timer tab controls LineRecord.StartDateChooser.Value = Date(records[ix].Start_Time) LineRecord.StartDateBox.Value = Date(records[ix].Start_Time) 'Do not trigger selected Change events LineRecord.INC_autoset LineRecord.HourTimeSet.Value = Hour(records[ix].Start_Time) LineRecord.MinuteTimeset.Value = Minute(records[ix].Start_Time) LineRecord.SecondTimeSet.Value = Second(records[ix].Start_Time) 'Re-enable selected Change events LineRecord.DEC_autoset 'LineRecord.StartTimeBox.Value = Time(records[ix].Start_Time) LineRecord.StartTimeBox.Value = (records[ix].Start_Time) In the last two lines the version commented out is the line which introduces the incorrect time. The line below works just fine. The records array is an array of objects of Class Recording. The Recording.Start_Time property is a Date value with both date and time parts. Until this week the first two lines, and the penultimate, simply assigned the whole date/time value to the DateChooser, StartDateBox and the StartTimeBox. I decided to make it more "correct" after reading about the Date and Time conversion functions. Only the Time(date_variable) line is "wrong". Reverting to the old sloppy way fixes the problem. Here's the question: Has anyone come across a similar problem in date/time handling? I have tried replicating the problem in independent code with no success. Richard From robert.c.rowe at ...626... Sat Mar 8 02:56:13 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Fri, 07 Mar 2008 20:56:13 -0500 Subject: [Gambas-user] Hello and Questions In-Reply-To: <25682dd30803071729h375f9db2wc6ee08470f770a1d@...627...> References: <25682dd30803071729h375f9db2wc6ee08470f770a1d@...627...> Message-ID: <47D1F23D.7000700@...626...> Thanks for the great replies. I'll definitely look at GridEditor. I use Infragistic grids in VB. They're sweat but a bit overkill sometimes. I got the IDE with subversion. It's really neat to run an IDE within the IDE. I'll see what I can do about writing a HowTo for component creation once I learn a bit more. Good idea about copying the examples Rolf. Much better than running Gambas as root. I'll try to hunt done the creator of the package and see if I can get him to move the install location. Maybe a .gambas2 folder in the users' home directory would work better. Robert From sbungay at ...981... Sat Mar 8 05:11:17 2008 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 07 Mar 2008 23:11:17 -0500 Subject: [Gambas-user] In search of two features In-Reply-To: <47D19C84.8030701@...1400...> References: <47D19C84.8030701@...1400...> Message-ID: <47D211E5.5080705@...981...> Why not use a grid instead? I did a Point Of Sale (POS) for someone a year ago. The application used a grid to track all items purchased. The grid was populated from a table lookup after scanning in the UPC code, or, if the bar code would not scan the number could be entered in by hand. Pushing the contents of a grid to a table is also a simple process since the grid mimics a result-set fairly closely, and you have the added benefit of being able to store row keys in a hidden column. Perhaps all of the above would not suit your application and I mis-understood what you're doing, in which case just ignore my ramblings. Steve. Kari Laine wrote: > second, some kind of indexing for text boxes. I am making a billing > program and I have form with the following layout. > > Product Amount > > Tomatoes____________________________ ___7.30 > Apples______________________________ ___5.30 > > > There are 40 rows with textboxes. Let's call them product1 - product40 > and amount1 - amount40. > > How now store these products to a database where each row is one record. > I would like to use somekind of loop, like > > db.open > rs = db.create("rows") > for counter = 1 to 40 > > if not empty mform.product[counter] then > rs!product = mform.product[counter] > endif > if not empty mform.amount[counter] then > rs!amount = mform.amount[counter] > endif > > rs.update > > next > > Naturally same problem is to get information from the database back to form. > > Hopefully my explanation is understood. > > Best Regards > Kari > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kari.laine at ...1400... Sat Mar 8 12:11:48 2008 From: kari.laine at ...1400... (Kari Laine) Date: Sat, 08 Mar 2008 13:11:48 +0200 Subject: [Gambas-user] In search of two features In-Reply-To: <200803071517.59537.sourceforge-raindog2@...94...> References: <47D19C84.8030701@...1400...> <200803071517.59537.sourceforge-raindog2@...94...> Message-ID: <47D27474.5020901@...1400...> Hi Rob, thanks. I hope I had asked this before I wrote that stupid code of mine. Anyway this works when I made the LostFocus SUB public. Best Regards Kari Rob kirjoitti: > On Friday 07 March 2008 14:50, Kari Laine wrote: >> first I would like to see join command in Gambas. Command would >> join array elements or collection elements to a string. > > It does, but it's a method of the array, not a stand-alone command. > > mystring = myarray.Join(",") ' would result in comma-separated values > >> second, some kind of indexing for text boxes. I am making a billing >> program and I have form with the following layout. > > This is a very frequently-requested feature, but I doubt we'll ever > see it because populating an array at design time isn't really a > great programming practice. > > The way my clients and I have done it is like so (pseudo-code from > memory, may not actually compile): > > dim i as integer > dim o as object > dim products as new object[] > > for i = 0 to 39 > o = new Textbox(ME) as "products" > o.x = 10 > o.y = 10 + (20 * i) > o.width = 100 > o.height = 16 > o.tag = i ' we store the array index in the tag > products.add(o) > next > > Then you can receive events for your textboxes and handle them > appropriately: > > sub products_LostFocus() > dim i as integer > dim o as object > o = last > i = o.tag > if o.text <> "" then > updatedatabase(i, o.text) > endif > end > > where "sub updatedatabase(productname as string, id as integer)" is a > subroutine that would include something like mydb.exec("update > mytable set productname = &1 where id = &2", productname, id). > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kari.laine at ...1400... Sat Mar 8 13:56:02 2008 From: kari.laine at ...1400... (Kari Laine) Date: Sat, 08 Mar 2008 14:56:02 +0200 Subject: [Gambas-user] LOCALEs and , or . Message-ID: <47D28CE2.1000704@...1400...> Hi, could someone explain to me how this locale thing is supposed to work with Gambas. command CFloat(amount1.Text) gives an error when it contains "10,10". Naturally it works with context 10.10, but in Finland decimal separator is , not . I tried to start gambas with LC_NUMERIC = fi_FI.UTF-8 gambas2, but same error persists. I don't understand the locale issues well. I would also be able to print amounts in 1000,00 form. Thanks beforehand. And thank you for all who answered my previous question. I am inspecting the grid option. Best Regards Kari From admin at ...1080... Sat Mar 8 14:56:25 2008 From: admin at ...1080... (admin at ...1080...) Date: Sat, 08 Mar 2008 14:56:25 +0100 Subject: [Gambas-user] Gambas 2.2, No selection possible in Dialog window after ToggleView used In-Reply-To: References: Message-ID: <47D29B09.2070107@...1080...> Hi all, If I am in the Dialog window and have clicked the ToggleView, I can not select a files any more. Regards, Werner From steven at ...1652... Sat Mar 8 15:54:56 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 08 Mar 2008 15:54:56 +0100 Subject: [Gambas-user] Classes and objects In-Reply-To: <47D29B09.2070107@...1080...> References: <47D29B09.2070107@...1080...> Message-ID: <1204988096.8012.23.camel@...1816...> Hi, I have a class that does Object.SetProperty(ctrl, "Rows.Count", 0) Which does not work. If I do Object.SetProperty(ctrl.Rows, "Count", 0) this does not work either ctrl is a gridview in the form that uses my class. How can I set it's property's ? Thanks Steven From kaoticus60 at ...151... Sat Mar 8 19:31:56 2008 From: kaoticus60 at ...151... (andy2) Date: Sat, 08 Mar 2008 19:31:56 +0100 Subject: [Gambas-user] Gb.chart beta In-Reply-To: References: Message-ID: <47D2DB9C.8050607@...151...> Can i receive help about use of this component? Thank you for your attention. From nxgtrturbo at ...626... Sat Mar 8 19:48:36 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Sat, 8 Mar 2008 10:48:36 -0800 Subject: [Gambas-user] gb.gui fail dependency Message-ID: <688afe140803081048j4a783958x4903d31871a4dd7b@...627...> Hi, I am trying to share my app in a DEB package, at fist the people trying to install got a gb.debug fail dependency, I fix that later in my project configuration. But now, people get a gb.gui fail dependency Did they need to install that manually? Is my app only going to work under KDE desktops? I am working with Gambas 2.0.0 under Freespire 2.0, the target distro was Ubuntu 7.10 Thanks in advance -- Nx GT-R From wspinto at ...1405... Sat Mar 8 19:40:06 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Sat, 08 Mar 2008 15:40:06 -0300 Subject: [Gambas-user] editor class question???? In-Reply-To: References: Message-ID: <1205001606.47d2dd8672273@...1589...> Hi! How I make to know the color of a text selected or not in a editor class??? Reguards, ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From robert.c.rowe at ...626... Sun Mar 9 02:46:25 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Sat, 08 Mar 2008 20:46:25 -0500 Subject: [Gambas-user] Change to the Gambas IDE to improve the workflow Message-ID: <47D34171.4040009@...626...> I've made a small change to my copy of the IDE that I feel is a great improvement. I love the completion menu but I don't like that you have to press the enter key to trigger it. The three keys that I most often press after entering a keyword or object name are the space key, the period or the left parenthesis. My change adds these three keys to the list that triggers the completion. Beno?t, if you agree that these changes are positive could you add them to the official copy of the IDE source? You will need to get the latest gambas2 source from subversion. The specific line(s) on which to make the changes will probably be different in different versions. I haven't checked gambas3 but I'm sure that the code is in the same procedure (ManageKey). Here are the changes: In the FCompletion class, line 515, comment the line that says: ME.Hide and insert a line that says: InsertItem(TRUE) This enables the spacebar to trigger completion. Add the following 2 case blocks to enable the period and left parenthesis keys: CASE 40 'Left Parenthesis InsertItem(TRUE) RETURN FALSE CASE 46 'Period InsertItem(TRUE) RETURN FALSE Robert Rowe From sylvain.marleau at ...647... Sun Mar 9 03:51:46 2008 From: sylvain.marleau at ...647... (2020) Date: Sat, 8 Mar 2008 18:51:46 -0800 (PST) Subject: [Gambas-user] Help ! VB6 code migrate to Gambas Message-ID: <15923320.post@...1379...> How to set control index (fader) like VB6 ? Snippet code from my VB6 project; Dim fader As Long ' get the slider values For fader = 0 To 59 dmxdata(fader + 1) = 255 - VScroll1(fader).Value Next fader Any ideas, thanks in advance. Sylvain. -- View this message in context: http://www.nabble.com/Help-%21-VB6-code-migrate-to-Gambas-tp15923320p15923320.html Sent from the gambas-user mailing list archive at Nabble.com. From maximvonk at ...626... Sun Mar 9 10:30:30 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 9 Mar 2008 01:30:30 -0800 (PST) Subject: [Gambas-user] Examples at gambasforge.net In-Reply-To: <9CA592A4EFB94C35B7ABC1C1B52D0EC8@...1864...> References: <9CA592A4EFB94C35B7ABC1C1B52D0EC8@...1864...> Message-ID: <15925356.post@...1379...> Is there any resolution to this issue so far? Iv a feeling that a lot of people could find answers to their questions if these files were working properly (Iv just tried again and they still return an error once they are downloaded), not to mention that many of us would be more likely to post our own code there if the files were accessible. -- View this message in context: http://www.nabble.com/Examples-at-gambasforge.net-tp15599092p15925356.html Sent from the gambas-user mailing list archive at Nabble.com. From jsowden at ...1051... Sun Mar 9 10:49:00 2008 From: jsowden at ...1051... (John R. Sowden) Date: Sun, 09 Mar 2008 01:49:00 -0800 Subject: [Gambas-user] installing the binary packing under suse 10.3 Message-ID: <47D3B28C.40305@...1051...> after reviewing the gambas home page, and searching google for instructions with no success, Where do I find the instructions for installing the current stable gambas binary package on a Suse 10.3 computer. The web site sends me to a directory of about 30 files, with no instructions. Is there a bash script that installs what needs to be installed, in the correct directories, sets up the proper env variables, instructs what changes, if any to make to which setup files, checks for dependencies, with a meaningful response, with meaningful error messages? I am harkening back to the early DOS days, before windows protected us from such tedious details. John From sylvain.marleau at ...647... Sun Mar 9 18:44:05 2008 From: sylvain.marleau at ...647... (2020) Date: Sun, 9 Mar 2008 10:44:05 -0700 (PDT) Subject: [Gambas-user] Examples at gambasforge.net In-Reply-To: <15925356.post@...1379...> References: <9CA592A4EFB94C35B7ABC1C1B52D0EC8@...1864...> <15925356.post@...1379...> Message-ID: <15944008.post@...1379...> Extract with Ark archive manager, should work. Sylvain. -- View this message in context: http://www.nabble.com/Examples-at-gambasforge.net-tp15599092p15944008.html Sent from the gambas-user mailing list archive at Nabble.com. From robert.c.rowe at ...626... Sun Mar 9 19:30:15 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Sun, 09 Mar 2008 14:30:15 -0400 Subject: [Gambas-user] Examples at gambasforge.net In-Reply-To: <15944008.post@...1379...> References: <9CA592A4EFB94C35B7ABC1C1B52D0EC8@...1864...> <15925356.post@...1379...> <15944008.post@...1379...> Message-ID: <47D42CB7.70401@...626...> I'm sure that the site maintainer will correct this shortly but until then you can get a copy from here: http://www.coalsoftware.com/gambas/gambasexamples.zip I compressed them using the Archive Zip format. I verified them on Kubuntu 7.10 using Ark and Windows using WinZip. You could also just download the source from the Gambas website. That's where I got them from. Robert Rowe 2020 wrote: > Extract with Ark archive manager, should work. > > Sylvain. > From maximvonk at ...626... Sun Mar 9 20:42:59 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 9 Mar 2008 12:42:59 -0700 (PDT) Subject: [Gambas-user] Examples at gambasforge.net In-Reply-To: <47D42CB7.70401@...626...> References: <9CA592A4EFB94C35B7ABC1C1B52D0EC8@...1864...> <15925356.post@...1379...> <15944008.post@...1379...> <47D42CB7.70401@...626...> Message-ID: <15945495.post@...1379...> Thanks for that Robert, but you got the wrong set of examples The examples at gambasforge are not the same as the examples that are installed with gambas, they are user submitted examples. Take a look: http://www.gambasforge.net/cgi-bin/index.gambas There are some interesting items there, but unfortunately they do not extract. Regards Max Robert Rowe wrote: > > I'm sure that the site maintainer will correct this shortly but until > then you can get a copy from here: > > http://www.coalsoftware.com/gambas/gambasexamples.zip > > I compressed them using the Archive Zip format. I verified them on > Kubuntu 7.10 using Ark and Windows using WinZip. > > You could also just download the source from the Gambas website. That's > where I got them from. > > Robert Rowe > > 2020 wrote: >> Extract with Ark archive manager, should work. >> >> Sylvain. >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Examples-at-gambasforge.net-tp15599092p15945495.html Sent from the gambas-user mailing list archive at Nabble.com. From maximvonk at ...626... Sun Mar 9 20:48:52 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 9 Mar 2008 12:48:52 -0700 (PDT) Subject: [Gambas-user] Examples at gambasforge.net In-Reply-To: <15944008.post@...1379...> References: <9CA592A4EFB94C35B7ABC1C1B52D0EC8@...1864...> <15925356.post@...1379...> <15944008.post@...1379...> Message-ID: <15945561.post@...1379...> Ark is a KDE program yes? Is there a Gnome alternative? The standard archive manager does not even open the files. Cheers Max 2020 wrote: > > Extract with Ark archive manager, should work. > > Sylvain. > -- View this message in context: http://www.nabble.com/Examples-at-gambasforge.net-tp15599092p15945561.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Sun Mar 9 22:43:29 2008 From: rterry at ...1822... (richard terry) Date: Mon, 10 Mar 2008 08:43:29 +1100 Subject: [Gambas-user] More Webrowser questions re hyperlinks Message-ID: <200803100843.29500.rterry@...1822...> I've played with this control a little over the weekend, as you can see from the screen dump, i've moved on from my contacts program which is now functioning ok, to my experimentation with writing a medical records program. I load patient, add problems, and save clinical notes written in the texteditor, saved as html on a per problem basis, then the whole lot are amalgamated into a single html pile to display back on the screen when the patient next visits. Now, I want to add a hyperlink to each condition (see the picture included), and was wondering if it was possible to have the hyperlink, but when the user clicks on the link, have a popup menu with options such as "Show all episodes", "Decision support for" etc, rather than what happens at the moment which is the hyperlink just runs off to try and find a file etc. I've tried intercepting the click, but by the time the webbrowser_click is picked up, the webrowser has already run off and done its thing attempting to find the link. Any thoughts/help appreciated. Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: webbrowserquestions1.png Type: image/png Size: 46126 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Mon Mar 10 01:19:28 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 9 Mar 2008 19:19:28 -0500 Subject: [Gambas-user] Examples at gambasforge.net In-Reply-To: <15945561.post@...1379...> References: <9CA592A4EFB94C35B7ABC1C1B52D0EC8@...1864...> <15944008.post@...1379...> <15945561.post@...1379...> Message-ID: <200803092019.28513.sourceforge-raindog2@...94...> On Sunday 09 March 2008 15:48, MaxVK wrote: > Ark is a KDE program yes? > Is there a Gnome alternative? The standard archive manager does not > even open the files. I think the GNOME unzipping program is called "file-roller". Konqueror and Nautilus should both be able to navigate into ZIP files as well. Rob From gambas at ...1... Mon Mar 10 10:52:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Mar 2008 10:52:34 +0100 Subject: [Gambas-user] More Webrowser questions re hyperlinks In-Reply-To: <200803100843.29500.rterry@...1822...> References: <200803100843.29500.rterry@...1822...> Message-ID: <200803101052.34795.gambas@...1...> On dimanche 9 mars 2008, richard terry wrote: > I've played with this control a little over the weekend, as you can see > from the screen dump, i've moved on from my contacts program which is now > functioning ok, to my experimentation with writing a medical records > program. > > I load patient, add problems, and save clinical notes written in the > texteditor, saved as html on a per problem basis, then the whole lot are > amalgamated into a single html pile to display back on the screen when the > patient next visits. > > Now, I want to add a hyperlink to each condition (see the picture > included), and was wondering if it was possible to have the hyperlink, but > when the user clicks on the link, have a popup menu with options such as > "Show all episodes", "Decision support for" etc, rather than what happens > at the moment which is the hyperlink just runs off to try and find a file > etc. > > I've tried intercepting the click, but by the time the webbrowser_click is > picked up, the webrowser has already run off and done its thing attempting > to find the link. Normally, if you call STOP EVENT during the Click event, the browser won't follow the link. Regards, -- Benoit Minisini From maximvonk at ...626... Mon Mar 10 11:49:18 2008 From: maximvonk at ...626... (MaxVK) Date: Mon, 10 Mar 2008 03:49:18 -0700 (PDT) Subject: [Gambas-user] Examples at gambasforge.net In-Reply-To: <200803092019.28513.sourceforge-raindog2@...94...> References: <9CA592A4EFB94C35B7ABC1C1B52D0EC8@...1864...> <15925356.post@...1379...> <15944008.post@...1379...> <15945561.post@...1379...> <200803092019.28513.sourceforge-raindog2@...94...> Message-ID: <15950675.post@...1379...> So far everything Iv tried has come up with the same kind of error: "Unexpected EOF" or something similar. I cant see that all of the examples there can have the same archiving problem since they were uploaded by different people (I assume the files have not been re-packed), but here's a thought: I'm browsing this mailing list via the web using Firefox right now and if I download an attachment it will give me an error when I try to open it, however, if I use my mail client, and save the attachments from there they open fine. Could this be a similar problem? Are the files harvested from a mailing list? Regards Max Rob Kudla wrote: > > On Sunday 09 March 2008 15:48, MaxVK wrote: >> Ark is a KDE program yes? >> Is there a Gnome alternative? The standard archive manager does not >> even open the files. > > I think the GNOME unzipping program is called "file-roller". > Konqueror and Nautilus should both be able to navigate into ZIP files > as well. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Examples-at-gambasforge.net-tp15599092p15950675.html Sent from the gambas-user mailing list archive at Nabble.com. From sourceforge-raindog2 at ...94... Mon Mar 10 12:19:29 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 10 Mar 2008 07:19:29 -0400 Subject: [Gambas-user] Examples at gambasforge.net In-Reply-To: <15950675.post@...1379...> References: <9CA592A4EFB94C35B7ABC1C1B52D0EC8@...1864...> <200803092019.28513.sourceforge-raindog2@...94...> <15950675.post@...1379...> Message-ID: <200803100719.29628.sourceforge-raindog2@...94...> On Monday 10 March 2008 06:49, MaxVK wrote: > So far everything Iv tried has come up with the same kind of error: > "Unexpected EOF" or something similar. I looked back in the archives, and a couple months ago I was having the same problem; see below. I think Gambasforge has been broken for a while and Fabien has been looking for a new host. If he can hold out till I update the server that gambasdoc.org runs on, I should be able to host it for him. On Wednesday 23 January 2008 16:03, Steven Lobbezoo wrote: > If I try bzip2recover, it reports that it cannot find a recovrable > block. > Whats going on ? I tried downloading a couple, and while they came down as .gz files instead of .bz2 files, they came down with zero bytes. ?So it looks like the download script on gambasforge is broken. Rob From gambas at ...1... Mon Mar 10 13:22:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Mar 2008 13:22:41 +0100 Subject: [Gambas-user] LOCALEs and , or . In-Reply-To: <47D28CE2.1000704@...1400...> References: <47D28CE2.1000704@...1400...> Message-ID: <200803101322.41275.gambas@...1...> On samedi 8 mars 2008, Kari Laine wrote: > Hi, > > could someone explain to me how this locale thing is supposed to work > with Gambas. > > command CFloat(amount1.Text) gives an error when it contains "10,10". > Naturally it works with context 10.10, but in Finland decimal separator > is , not . > > I tried to start gambas with > > LC_NUMERIC = fi_FI.UTF-8 gambas2, but same error persists. > > I don't understand the locale issues well. > > I would also be able to print amounts in 1000,00 form. > > > Thanks beforehand. And thank you for all who answered my previous > question. I am inspecting the grid option. > > Best Regards > Kari > As many people seems to have problem for understanding the way Gambas deals with localization, I wrote a little article on the wiki about that: http://gambasdoc.org/help/doc/locale Please tell me if this article makes things clearer. Do not hesitate to comment it, add information or more detailed explanations or examples, and so on. I hope things will be clearer for everybody! Regards, -- Benoit Minisini From gambas at ...1... Mon Mar 10 13:24:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Mar 2008 13:24:01 +0100 Subject: [Gambas-user] Classes and objects In-Reply-To: <1204988096.8012.23.camel@...1816...> References: <47D29B09.2070107@...1080...> <1204988096.8012.23.camel@...1816...> Message-ID: <200803101324.01738.gambas@...1...> On samedi 8 mars 2008, Steven Lobbezoo wrote: > Hi, > > I have a class that does > > Object.SetProperty(ctrl, "Rows.Count", 0) > Which does not work. > > If I do Object.SetProperty(ctrl.Rows, "Count", 0) > this does not work either > > ctrl is a gridview in the form that uses my class. > How can I set it's property's ? > > Thanks > Steven > Use the Object the anonymous datatype, or a fully specified datatype if you know it at compile time: DIM hCtrl AS Object or DIM hCtrl AS GridView and: hCtrl.Rows.Count = 0 Regards, -- Benoit Minisini From steven at ...1652... Mon Mar 10 14:36:21 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Mon, 10 Mar 2008 14:36:21 +0100 Subject: [Gambas-user] Compiling on suse 10.2 In-Reply-To: <200803101324.01738.gambas@...1...> References: <47D29B09.2070107@...1080...> <1204988096.8012.23.camel@...1816...> <200803101324.01738.gambas@...1...> Message-ID: <1205156181.14082.99.camel@...1816...> Hi all, I have a problem trying to compile gambas on a suse 10.2 machine. I installed all imaginable software from the distribution. I tried 2.0.0 and 2.2.1. Both give me different errors as followes: make[5]: entrant dans le r?pertoire ? /home/karine/gambas2-2.0.0/gb.qt/src/ext ? if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/lib/qt3/include/ -D_REENTRANT -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT moc_CDial.lo -MD -MP -MF ".deps/moc_CDial.Tpo" -c -o moc_CDial.lo moc_CDial.cpp; \ then mv -f ".deps/moc_CDial.Tpo" ".deps/moc_CDial.Plo"; else rm -f ".deps/moc_CDial.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/lib/qt3/include/ -D_REENTRANT -I../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT moc_CDial.lo -MD -MP -MF .deps/moc_CDial.Tpo -c moc_CDial.cpp -fPIC -DPIC -o .libs/moc_CDial.o moc_CDial.cpp:12:2: error: #error "The header file 'CDial.h' doesn't include ." moc_CDial.cpp:39: error: 'const QMetaObject CDial::staticMetaObject' is not a static member of 'class CDial' moc_CDial.cpp:39: error: variable 'const QMetaObject CDial::staticMetaObject' has initializer but incomplete type moc_CDial.cpp:44: error: prototype for 'const QMetaObject* CDial::metaObject() const' does not match any in class 'CDial' CDial.h:51: error: candidate is: virtual QMetaObject* CDial::metaObject() const moc_CDial.cpp:44: error: 'const QMetaObject* CDial::metaObject() const' cannot be overloaded CDial.h:51: error: with 'virtual QMetaObject* CDial::metaObject() const' moc_CDial.cpp: In member function 'const QMetaObject* CDial::metaObject() const': moc_CDial.cpp:46: error: cannot convert 'QMetaObject* (*)()' to 'const QMetaObject*' in return moc_CDial.cpp: At global scope: moc_CDial.cpp:49: error: no 'void* CDial::qt_metacast(const char*)' member function declared in class 'CDial' moc_CDial.cpp: In member function 'void* CDial::qt_metacast(const char*)': moc_CDial.cpp:54: error: 'qt_metacast' is not a member of 'QObject' moc_CDial.cpp: At global scope: moc_CDial.cpp:57: error: 'int CDial::qt_metacall' is not a static member of 'class CDial' moc_CDial.cpp:57: error: incomplete type 'QMetaObject' used in nested name specifier moc_CDial.cpp:57: error: expected primary-expression before 'int' moc_CDial.cpp:57: error: expected primary-expression before 'void' moc_CDial.cpp:57: error: initializer expression list treated as compound expression moc_CDial.cpp:58: error: expected ',' or ';' before '{' token make[5]: *** [moc_CDial.lo] Erreur 1 make[5]: quittant le r?pertoire ? /home/karine/gambas2-2.0.0/gb.qt/src/ext ? make[4]: *** [all-recursive] Erreur 1 make[4]: quittant le r?pertoire ? /home/karine/gambas2-2.0.0/gb.qt/src ? make[3]: *** [all-recursive] Erreur 1 make[3]: quittant le r?pertoire ? /home/karine/gambas2-2.0.0/gb.qt ? make[2]: *** [all] Erreur 2 make[2]: quittant le r?pertoire ? /home/karine/gambas2-2.0.0/gb.qt ? make[1]: *** [all-recursive] Erreur 1 make[1]: quittant le r?pertoire ? /home/karine/gambas2-2.0.0 ? make: *** [all] Erreur 2 karine at ...1869...:~/gambas2-2.0.0> AND for 2.2.1 : make[4]: entrant dans le r?pertoire ? /home/karine/gambas2-2.2.1/gb.net.smtp/src ? /bin/sh ../libtool --tag=CC --mode=link gcc -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -o gb.net.smtp.la -rpath /usr/local/lib/gambas2 -module -no-undefined main.lo libsmtp_comm.lo libsmtp_connection.lo libsmtp_data.lo libsmtp_error.lo base64.lo comm.lo parts.lo quoted.lo CSmtpClient.lo -lglib-2.0 gcc -shared .libs/main.o .libs/libsmtp_comm.o .libs/libsmtp_connection.o .libs/libsmtp_data.o .libs/libsmtp_error.o .libs/base64.o .libs/comm.o .libs/parts.o .libs/quoted.o .libs/CSmtpClient.o -lglib-2.0 -Wl,-soname -Wl,gb.net.smtp.so.0 -o .libs/gb.net.smtp.so.0.0.0 /usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lglib-2.0 collect2: ld returned 1 exit status make[4]: *** [gb.net.smtp.la] Erreur 1 make[4]: quittant le r?pertoire ? /home/karine/gambas2-2.2.1/gb.net.smtp/src ? make[3]: *** [all-recursive] Erreur 1 make[3]: quittant le r?pertoire ? /home/karine/gambas2-2.2.1/gb.net.smtp ? make[2]: *** [all] Erreur 2 make[2]: quittant le r?pertoire ? /home/karine/gambas2-2.2.1/gb.net.smtp ? make[1]: *** [all-recursive] Erreur 1 make[1]: quittant le r?pertoire ? /home/karine/gambas2-2.2.1 ? make: *** [all] Erreur 2 karine:/home/karine/gambas2-2.2.1 # I cannot find lglib-2.0 in Suse 10.2 ?? Help would be appriciated. Steven ps: Thanks benoit, for your help with classes. I still seem not to be able to understand this ;-) as well as I should. From m0e.lnx at ...626... Mon Mar 10 14:51:24 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 10 Mar 2008 07:51:24 -0600 Subject: [Gambas-user] Propper way to kill a runnin process Message-ID: <1f1e8c1b0803100651h7e404e3cj519de3a541812f00@...627...> I have on my vpackager application one shell process that run on several stages. I have a function that constantly checks the output of this process for "keywords" that if found, need to immediately kill the process. Here is how I'm killing the process PUBLIC SUB ABORT_PROCESS() IF instr(sBuffer, "FAILED") > 0 THEN IF hMyProc.State = Process.Running THEN From m0e.lnx at ...626... Mon Mar 10 14:54:25 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 10 Mar 2008 07:54:25 -0600 Subject: [Gambas-user] Propper way to kill a runnin process In-Reply-To: <1f1e8c1b0803100651h7e404e3cj519de3a541812f00@...627...> References: <1f1e8c1b0803100651h7e404e3cj519de3a541812f00@...627...> Message-ID: <1f1e8c1b0803100654x17f0013br7fa25421d0d3294d@...627...> Sorry, hit the send button by accident... here it is I have on my vpackager application one shell process that run on several stages. I have a function that constantly checks the output of this process for "keywords" that if found, need to immediately kill the process. Here is how I'm killing the process PUBLIC SUB ABORT_PROCESS() IF instr(sBuffer, "FAILED") > 0 THEN IF hMyProc.State = Process.Running THEN hMyProc.kill END IF END IF END The problem is that altough on the screen it appears the sub run without error, I can still feel the CPU is running... I can hear it too. My system monitor shows high CPU useage even after the code has ran. Is there another way to do this more accurately? Using gambas2-2.0.0 Thanks On 3/10/08, M0E Lnx wrote: > I have on my vpackager application one shell process that run on > several stages. I have a function that constantly checks the output of > this process for "keywords" that if found, need to immediately kill > the process. Here is how I'm killing the process > > PUBLIC SUB ABORT_PROCESS() > IF instr(sBuffer, "FAILED") > 0 THEN > IF hMyProc.State = Process.Running THEN > From david_villalobos_c at ...43... Mon Mar 10 16:32:49 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 10 Mar 2008 08:32:49 -0700 (PDT) Subject: [Gambas-user] Error on gb.settigs Message-ID: <728152.52402.qm@...1668...> Hi all, I think I found an error on gb.settings. Attached is an example, just run the program, press the button and see the text inside the TextArea control, then, go to your $HOME/.config/gambas directory and compare the text inside the NewLine.conf file with the file called "Archivo" in the project directoty. What I get is an extra Slash "\" for every GB.NewLine. Can someone validate please? I use Gambas 2.2.1 on Mandriva 2008, 32 bits. Best regards. David ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping -------------- next part -------------- A non-text attachment was scrubbed... Name: NewLine-0.0.1.tar.gz Type: application/x-gzip Size: 7951 bytes Desc: not available URL: From rospolosco at ...152... Mon Mar 10 17:25:28 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 10 Mar 2008 17:25:28 +0100 Subject: [Gambas-user] Propper way to kill a runnin process In-Reply-To: <1f1e8c1b0803100654x17f0013br7fa25421d0d3294d@...627...> References: <1f1e8c1b0803100651h7e404e3cj519de3a541812f00@...627...> <1f1e8c1b0803100654x17f0013br7fa25421d0d3294d@...627...> Message-ID: <200803101725.28595.rospolosco@...152...> Alle 14:54, luned? 10 marzo 2008, M0E Lnx ha scritto: > Sorry, hit the send button by accident... here it is > > I have on my vpackager application one shell process that run on > several stages. I have a function that constantly checks the output of > this process for "keywords" that if found, need to immediately kill > the process. Here is how I'm killing the process > > PUBLIC SUB ABORT_PROCESS() > IF instr(sBuffer, "FAILED") > 0 THEN > IF hMyProc.State = Process.Running THEN > hMyProc.kill > END IF > END IF > END > Uhm... that shoud work. Anyway, try this to kill the 'rebel' process: SHELL "kill -9 " & hMyProc.Id WAIT and see what happens. Stefano > The problem is that altough on the screen it appears the sub run > without error, I can still feel the CPU is running... I can hear it > too. My system monitor shows high CPU useage even after the code has > ran. > Is there another way to do this more accurately? > > Using gambas2-2.0.0 > Thanks > > On 3/10/08, M0E Lnx wrote: > > I have on my vpackager application one shell process that run on > > several stages. I have a function that constantly checks the output of > > this process for "keywords" that if found, need to immediately kill > > the process. Here is how I'm killing the process > > > > PUBLIC SUB ABORT_PROCESS() > > IF instr(sBuffer, "FAILED") > 0 THEN > > IF hMyProc.State = Process.Running THEN > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From m0e.lnx at ...626... Mon Mar 10 18:34:40 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 10 Mar 2008 11:34:40 -0600 Subject: [Gambas-user] Propper way to kill a runnin process In-Reply-To: <200803101725.28595.rospolosco@...152...> References: <1f1e8c1b0803100651h7e404e3cj519de3a541812f00@...627...> <1f1e8c1b0803100654x17f0013br7fa25421d0d3294d@...627...> <200803101725.28595.rospolosco@...152...> Message-ID: <1f1e8c1b0803101034ic80d9bfqc29553a314446757@...627...> Thank you ... I will try this. One more question. I have some code in the process_kill() event. Apparently this code is running twice. Is there a way to keep it from running again? On 3/10/08, Stefano Palmeri wrote: > Alle 14:54, luned? 10 marzo 2008, M0E Lnx ha scritto: > > > Sorry, hit the send button by accident... here it is > > > > I have on my vpackager application one shell process that run on > > several stages. I have a function that constantly checks the output of > > this process for "keywords" that if found, need to immediately kill > > the process. Here is how I'm killing the process > > > > PUBLIC SUB ABORT_PROCESS() > > IF instr(sBuffer, "FAILED") > 0 THEN > > IF hMyProc.State = Process.Running THEN > > hMyProc.kill > > END IF > > END IF > > END > > > > > Uhm... that shoud work. > Anyway, try this to kill the 'rebel' process: > > SHELL "kill -9 " & hMyProc.Id WAIT > > > and see what happens. > > Stefano > > > > The problem is that altough on the screen it appears the sub run > > without error, I can still feel the CPU is running... I can hear it > > too. My system monitor shows high CPU useage even after the code has > > ran. > > Is there another way to do this more accurately? > > > > Using gambas2-2.0.0 > > Thanks > > > > On 3/10/08, M0E Lnx wrote: > > > I have on my vpackager application one shell process that run on > > > several stages. I have a function that constantly checks the output of > > > this process for "keywords" that if found, need to immediately kill > > > the process. Here is how I'm killing the process > > > > > > PUBLIC SUB ABORT_PROCESS() > > > IF instr(sBuffer, "FAILED") > 0 THEN > > > IF hMyProc.State = Process.Running THEN > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Mar 10 19:31:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Mar 2008 19:31:24 +0100 Subject: [Gambas-user] Propper way to kill a runnin process In-Reply-To: <1f1e8c1b0803101034ic80d9bfqc29553a314446757@...627...> References: <1f1e8c1b0803100651h7e404e3cj519de3a541812f00@...627...> <200803101725.28595.rospolosco@...152...> <1f1e8c1b0803101034ic80d9bfqc29553a314446757@...627...> Message-ID: <200803101931.25111.gambas@...1...> On lundi 10 mars 2008, M0E Lnx wrote: > Thank you ... I will try this. > One more question. > I have some code in the process_kill() event. > Apparently this code is running twice. Is there a way to keep it from > running again? > Process_Kill won't be raised twice for the same process. Please check that the second time this is not the same process as the first time. Otherwise, this is a bug, and you should send me your project if you want me to fix it! Regards, -- Benoit Minisini From gambas at ...1... Mon Mar 10 20:15:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Mar 2008 20:15:46 +0100 Subject: [Gambas-user] Propper way to kill a runnin process In-Reply-To: <200803101931.25111.gambas@...1...> References: <1f1e8c1b0803100651h7e404e3cj519de3a541812f00@...627...> <1f1e8c1b0803101034ic80d9bfqc29553a314446757@...627...> <200803101931.25111.gambas@...1...> Message-ID: <200803102015.46239.gambas@...1...> On lundi 10 mars 2008, Benoit Minisini wrote: > On lundi 10 mars 2008, M0E Lnx wrote: > > Thank you ... I will try this. > > One more question. > > I have some code in the process_kill() event. > > Apparently this code is running twice. Is there a way to keep it from > > running again? > > Process_Kill won't be raised twice for the same process. Please check that > the second time this is not the same process as the first time. Otherwise, > this is a bug, and you should send me your project if you want me to fix > it! > > Regards, When I say "send *me* the project", it means sending it to my private address (the one you see in the post, gambas at ...1...), not to the mailing-list, where the attached project is often too big! Regards, -- Benoit Minisini From gambas at ...1... Mon Mar 10 20:16:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Mar 2008 20:16:28 +0100 Subject: [Gambas-user] Stange problem with CInt In-Reply-To: <1204910438.13161.53.camel@...1816...> References: <200803060748.26767.rterry@...1822...> <200803071647.52991.ronstk@...239...> <1204910438.13161.53.camel@...1816...> Message-ID: <200803102016.28867.gambas@...1...> On vendredi 7 mars 2008, Steven Lobbezoo wrote: > No, that does not work either. > > Val("123.00") > returns NULL > > But if I add Replace$("123.00", ".", ",") > it seems to work allright > > Steven > Look at the article I wrote on the wiki about localization. Regards, -- Benoit Minisini From gambas at ...1... Mon Mar 10 20:20:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Mar 2008 20:20:10 +0100 Subject: [Gambas-user] Gambas support rocks In-Reply-To: References: Message-ID: <200803102020.10839.gambas@...1...> On jeudi 6 mars 2008, Hamish Robertson wrote: > The Gambas support is just unbelievable! Someone needs a feature and Benoit > or someone comes up with an update...that evening. I know this is the way > open source is supposed to work but it is quite awesome to watch. A wanted features is often something I didn't think and that is quick to do, so you get it quickly. But, on the other hand, I often spend a lot of time in fixing and making things that nobody notices! > > Talking about support....who's in charge of Gambas marketing? Want a hand? Nobody is really in charge of "marketing". I am very bad at marketing. I have just wrote a general article on Gambas in the wiki, that's all. I don't like marketing. But I am open to anyone who wants to do anything about promoting Gambas. :-) Regards, -- Benoit Minisini From m0e.lnx at ...626... Mon Mar 10 20:25:48 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 10 Mar 2008 13:25:48 -0600 Subject: [Gambas-user] Propper way to kill a runnin process In-Reply-To: <200803102015.46239.gambas@...1...> References: <1f1e8c1b0803100651h7e404e3cj519de3a541812f00@...627...> <1f1e8c1b0803101034ic80d9bfqc29553a314446757@...627...> <200803101931.25111.gambas@...1...> <200803102015.46239.gambas@...1...> Message-ID: <1f1e8c1b0803101225u504b1bb5tffc1f2d2d6709395@...627...> My bad... Never really sent anything like this over a mailing lists Here goes it then On 3/10/08, Benoit Minisini wrote: > On lundi 10 mars 2008, Benoit Minisini wrote: > > On lundi 10 mars 2008, M0E Lnx wrote: > > > Thank you ... I will try this. > > > One more question. > > > I have some code in the process_kill() event. > > > Apparently this code is running twice. Is there a way to keep it from > > > running again? > > > > Process_Kill won't be raised twice for the same process. Please check that > > the second time this is not the same process as the first time. Otherwise, > > this is a bug, and you should send me your project if you want me to fix > > it! > > > > Regards, > > > When I say "send *me* the project", it means sending it to my private address > (the one you see in the post, gambas at ...1...), not to the > mailing-list, where the attached project is often too big! > > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Mar 10 21:24:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Mar 2008 21:24:03 +0100 Subject: [Gambas-user] Change to the Gambas IDE to improve the workflow In-Reply-To: <47D34171.4040009@...626...> References: <47D34171.4040009@...626...> Message-ID: <200803102124.03152.gambas@...1...> On dimanche 9 mars 2008, Robert Rowe wrote: > I've made a small change to my copy of the IDE that I feel is a great > improvement. I love the completion menu but I don't like that you have > to press the enter key to trigger it. The three keys that I most often > press after entering a keyword or object name are the space key, the > period or the left parenthesis. My change adds these three keys to the > list that triggers the completion. Beno?t, if you agree that these > changes are positive could you add them to the official copy of the IDE > source? > > You will need to get the latest gambas2 source from subversion. The > specific line(s) on which to make the changes will probably be different > in different versions. I haven't checked gambas3 but I'm sure that the > code is in the same procedure (ManageKey). > > Here are the changes: > > In the FCompletion class, line 515, comment the line that says: > > ME.Hide > > and insert a line that says: > > InsertItem(TRUE) > > This enables the spacebar to trigger completion. Actually what you want for space was the code for CTRL+Space. I bet that it worked as you want before, but somebody wanted the VB shortcut instead! I think some configuration options would be the right way, but I can do that only for Gambas 3, not Gambas 2. And I think that if I change the behaviour as you want, other people will cry. I need more people's opinion! > > Add the following 2 case blocks to enable the period and left > parenthesis keys: > > CASE 40 'Left Parenthesis > InsertItem(TRUE) > RETURN FALSE > > CASE 46 'Period > InsertItem(TRUE) > RETURN FALSE > Strange, as it already works like that: if I press a left parenthesis or a period on my Gambas 2, the completion is done. Look at line 548 in FCompletion.class. Can you check that? Regards, -- Benoit Minisini From gambas at ...1... Mon Mar 10 21:30:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Mar 2008 21:30:50 +0100 Subject: [Gambas-user] Gambas 2.2, No selection possible in Dialog window after ToggleView used In-Reply-To: <47D29B09.2070107@...1080...> References: <47D29B09.2070107@...1080...> Message-ID: <200803102130.50239.gambas@...1...> On samedi 8 mars 2008, admin at ...1080... wrote: > Hi all, > > If I am in the Dialog window and have clicked the ToggleView, I can not > select a files any more. > > > Regards, Werner > I don't know what you are talking about exactly, but I have done some fixes recently in the FileView control used in the file dialog, so maybe you could try the last revision of /branches/2.0, or wait for the 2.3. Regards, -- Benoit Minisini From steven at ...1652... Mon Mar 10 23:53:16 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Mon, 10 Mar 2008 23:53:16 +0100 Subject: [Gambas-user] And again on classes..... In-Reply-To: <200803102130.50239.gambas@...1...> References: <47D29B09.2070107@...1080...> <200803102130.50239.gambas@...1...> Message-ID: <1205189596.8192.46.camel@...1816...> Hi, I have greated a class (GridCtrl), that contains some vars and does a lot of things. The class is called (instantiated ?) from a form with : hGrid AS GridCtrl PUBLIC SUB Form_Open() ' first we create the handler of the grid hGrid = NEW GridCtrl END Afterwards it's called in different situation for different tasks in the form. Now, in the GridCtrl class I launch a different form, which need to refer (and change) some vars in the GridCtrl class. How do I do that ? Can I just reference a var with GridCtrl.VarName ? I suppose that the problem is that the class can exists actually several times. (several cookies from the sample) Thanks a lot for help, Steven From gambas at ...1... Tue Mar 11 01:11:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Mar 2008 01:11:16 +0100 Subject: [Gambas-user] Error on gb.settigs In-Reply-To: <728152.52402.qm@...1668...> References: <728152.52402.qm@...1668...> Message-ID: <200803110111.16743.gambas@...1...> On lundi 10 mars 2008, David Villalobos Cambronero wrote: > Hi all, > > I think I found an error on gb.settings. Attached is an example, just > run the program, press the button and see the text inside the TextArea > control, then, go to your $HOME/.config/gambas directory and compare the > text inside the NewLine.conf file with the file called "Archivo" in the > project directoty. > > What I get is an extra Slash "\" for every GB.NewLine. > > Can someone validate please? > > I use Gambas 2.2.1 on Mandriva 2008, 32 bits. > > Best regards. > > David > This is normal, strings are quoted inside settings files. -- Benoit Minisini From gambas at ...1... Tue Mar 11 01:13:08 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Mar 2008 01:13:08 +0100 Subject: [Gambas-user] Error on gb.settigs In-Reply-To: <200803110111.16743.gambas@...1...> References: <728152.52402.qm@...1668...> <200803110111.16743.gambas@...1...> Message-ID: <200803110113.08447.gambas@...1...> On mardi 11 mars 2008, Benoit Minisini wrote: > On lundi 10 mars 2008, David Villalobos Cambronero wrote: > > Hi all, > > > > I think I found an error on gb.settings. Attached is an example, just > > run the program, press the button and see the text inside the TextArea > > control, then, go to your $HOME/.config/gambas directory and compare the > > text inside the NewLine.conf file with the file called "Archivo" in the > > project directoty. > > > > What I get is an extra Slash "\" for every GB.NewLine. > > > > Can someone validate please? > > > > I use Gambas 2.2.1 on Mandriva 2008, 32 bits. > > > > Best regards. > > > > David > > This is normal, strings are quoted inside settings files. But you are right, there are too many slashes, because the Settings class uses a strange quoting function. This will be fixed in the 3.0 version: the standard Gambas Quote class methods will be used. Regards, -- Benoit Minisini From robert.c.rowe at ...626... Tue Mar 11 01:52:56 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Mon, 10 Mar 2008 20:52:56 -0400 Subject: [Gambas-user] Change to the Gambas IDE to improve the workflow In-Reply-To: <200803102124.03152.gambas@...1...> References: <47D34171.4040009@...626...> <200803102124.03152.gambas@...1...> Message-ID: <47D5D7E8.3070204@...626...> Yes, you are correct that CTRL+Space will trigger completion in Gambas2. This is a key combo the VB uses but VB will also complete on the space, periond and left parnethesis too. I looked at the section that you mentioned. ELSE IF InStr("([.!", Key.Text) > 0 AND InStr(". ", $sMode) > 0 THEN It appears that it is looking for a period in the $sMode variable too. The $sMode variable gets assigned the value in sMode which is a parameter on the Open sub. I commented out my code and added a message.info($sMode) at the beginning of the outermost case else (where the above mentioned line lives). It has an A in it. In my test I was in STATIC PUBLIC SUB Main() of FNotepad.class in the Notepad example. I did not press the tab. I typed hFo which made the complete window appear. I then type a . and the complete window hid. I backspaced and tried again with ( and it hid again. I found some code in PUBLIC SUB edtEditor_KeyPress() of the FEditor class that is also trying to handle these keys. This code makes the spacebar complete if you are indented. I think that it works under certain conditions but it is inconsistent. I didn't mean to raise a fuss. I was really just messing around to learn a bit about Gambas. The IDE is like an example on steroids. I thought that others might like these hotkeys to work this way. I'm not really asking for this to be changed in the official version. Unless a lot of other users request it also. It would be nice if this was configurable though. Robert Rowe Benoit Minisini wrote: > On dimanche 9 mars 2008, Robert Rowe wrote: > >> I've made a small change to my copy of the IDE that I feel is a great >> improvement. I love the completion menu but I don't like that you have >> to press the enter key to trigger it. The three keys that I most often >> press after entering a keyword or object name are the space key, the >> period or the left parenthesis. My change adds these three keys to the >> list that triggers the completion. Beno?t, if you agree that these >> changes are positive could you add them to the official copy of the IDE >> source? >> >> You will need to get the latest gambas2 source from subversion. The >> specific line(s) on which to make the changes will probably be different >> in different versions. I haven't checked gambas3 but I'm sure that the >> code is in the same procedure (ManageKey). >> >> Here are the changes: >> >> In the FCompletion class, line 515, comment the line that says: >> >> ME.Hide >> >> and insert a line that says: >> >> InsertItem(TRUE) >> >> This enables the spacebar to trigger completion. >> > > Actually what you want for space was the code for CTRL+Space. I bet that it > worked as you want before, but somebody wanted the VB shortcut instead! I > think some configuration options would be the right way, but I can do that > only for Gambas 3, not Gambas 2. And I think that if I change the behaviour > as you want, other people will cry. I need more people's opinion! > > >> Add the following 2 case blocks to enable the period and left >> parenthesis keys: >> >> CASE 40 'Left Parenthesis >> InsertItem(TRUE) >> RETURN FALSE >> >> CASE 46 'Period >> InsertItem(TRUE) >> RETURN FALSE >> >> > > Strange, as it already works like that: if I press a left parenthesis or a > period on my Gambas 2, the completion is done. Look at line 548 in > FCompletion.class. > > Can you check that? > > Regards, > > From robertsonhamish at ...626... Tue Mar 11 03:14:55 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 11 Mar 2008 09:14:55 +0700 Subject: [Gambas-user] Gambas support rocks In-Reply-To: <200803102020.10839.gambas@...1...> References: <200803102020.10839.gambas@...1...> Message-ID: Cool, well I can certainly help with the marketing! You're going to need a new website first. New Website (Based off a CMS like Joomla or Drupal?). The website is effectively your shop and it needs to look the business, it also needs to be easy to update. It currently looks like a very active open source project but not something new users are going to flock to. Is it OK if I put a request out to the mailing list and start getting ideas together for a new website? H. On 11/03/2008, Benoit Minisini wrote: > > On jeudi 6 mars 2008, Hamish Robertson wrote: > > The Gambas support is just unbelievable! Someone needs a feature and > Benoit > > or someone comes up with an update...that evening. I know this is the > way > > open source is supposed to work but it is quite awesome to watch. > > > A wanted features is often something I didn't think and that is quick to > do, > so you get it quickly. But, on the other hand, I often spend a lot of time > in > fixing and making things that nobody notices! > > > > > > Talking about support....who's in charge of Gambas marketing? Want a > hand? > > > Nobody is really in charge of "marketing". I am very bad at marketing. I > have > just wrote a general article on Gambas in the wiki, that's all. I don't > like > marketing. > > But I am open to anyone who wants to do anything about promoting Gambas. > :-) > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From robertsonhamish at ...626... Tue Mar 11 03:31:37 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 11 Mar 2008 09:31:37 +0700 Subject: [Gambas-user] GAMBAS RUNTIME Message-ID: It's my understanding, when we;'ve finally finished our masterpiece and packaged it into a rpm of deb using the packaging Wizard that that package is dependant on the gambas runtime to work. Is this correct? If it is, would it be possible to change the packaging so that the runtime is included in deb or rpm file? This would make it a lot easier for end users to download and use programs made in GAMBAS. They also wouldn't have to care about which version of the runtime they have on their computer. Just a thought. H. From robertsonhamish at ...626... Tue Mar 11 03:41:16 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 11 Mar 2008 09:41:16 +0700 Subject: [Gambas-user] Gambas runtime MOBILE Message-ID: While I'm on the ideas machine, I may as well keep going. How hard would it be to put the gambas runtime on android? or LIMO? This is going to be a huge market. It is in everyone's interest for development and programming to be really easy on these platforms... This is just an idea.... Any thoughts guys? From sourceforge-raindog2 at ...94... Tue Mar 11 03:54:41 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 10 Mar 2008 22:54:41 -0400 Subject: [Gambas-user] Gambas support rocks In-Reply-To: References: <200803102020.10839.gambas@...1...> Message-ID: <200803102254.41710.sourceforge-raindog2@...94...> On Monday 10 March 2008 22:14, Hamish Robertson wrote: > New Website (Based off a CMS like Joomla or Drupal?). The website > is effectively your shop and it needs to look the business, it also > needs to be easy to update. Such a site already exists at gambasrad.org, which at one time was meant to become the official Gambas home page.... but with unlabeled ads on every page, unfortunately, even going so far as to display the Gambas documentation, which is hosted elsewhere without ads, in an iframe with ads at the bottom. Rob From robertsonhamish at ...626... Tue Mar 11 04:11:06 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 11 Mar 2008 10:11:06 +0700 Subject: [Gambas-user] Gambas support rocks In-Reply-To: <200803102254.41710.sourceforge-raindog2@...94...> References: <200803102020.10839.gambas@...1...> <200803102254.41710.sourceforge-raindog2@...94...> Message-ID: Cool! I checked out that site. It's old and hasn't been updated in a long time. It looks good though. Are you the webmaster for gambasrad.org? We need a way for it be continually updated. Mind if I have a go at writing some content? :) Anyone checked out www.realbasic.com? This is what we're up against. On 11/03/2008, Rob wrote: > > On Monday 10 March 2008 22:14, Hamish Robertson wrote: > > New Website (Based off a CMS like Joomla or Drupal?). The website > > is effectively your shop and it needs to look the business, it also > > needs to be easy to update. > > > Such a site already exists at gambasrad.org, which at one time was > meant to become the official Gambas home page.... but with unlabeled > ads on every page, unfortunately, even going so far as to display the > Gambas documentation, which is hosted elsewhere without ads, in an > iframe with ads at the bottom. > > > Rob > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Tue Mar 11 04:07:55 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 10 Mar 2008 23:07:55 -0400 Subject: [Gambas-user] Gambas runtime MOBILE In-Reply-To: References: Message-ID: <200803102307.55431.sourceforge-raindog2@...94...> On Monday 10 March 2008 22:41, Hamish Robertson wrote: > While I'm on the ideas machine, I may as well keep going. > > How hard would it be to put the gambas runtime on android? or LIMO? Gambas has already been ported to PowerPC, so it's not just x86 anymore and porting to ARM shouldn't be that tough. I've been wanting to try to crosscompile Gambas for Nintendo DS Linux, but the need to use a RAM expansion to do anything cool with Linux on the DS seems like it might not be that practical for general game and application development. But the LiMo SDK isn't out yet, so I have no idea how hard it would be to port the graphical parts of Gambas to it. I've heard it'll run Qtopia, and if so, there is a gb.qte component that may make it possible to port some gb.qt apps to LiMo. Android is a non-starter for now, because you can only develop in Java for it. Rob From robertsonhamish at ...626... Tue Mar 11 04:21:15 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 11 Mar 2008 10:21:15 +0700 Subject: [Gambas-user] Gambas runtime MOBILE In-Reply-To: <200803102307.55431.sourceforge-raindog2@...94...> References: <200803102307.55431.sourceforge-raindog2@...94...> Message-ID: That's great. Has anyone contacted LIMO about getting gambas to work properly? Or are we just going to wait for the SDK to come out? It would be nice to have the gambas runtime part of the official LIMO release... :) On 11/03/2008, Rob wrote: > > On Monday 10 March 2008 22:41, Hamish Robertson wrote: > > While I'm on the ideas machine, I may as well keep going. > > > > How hard would it be to put the gambas runtime on android? or LIMO? > > > Gambas has already been ported to PowerPC, so it's not just x86 > anymore and porting to ARM shouldn't be that tough. I've been > wanting to try to crosscompile Gambas for Nintendo DS Linux, but the > need to use a RAM expansion to do anything cool with Linux on the DS > seems like it might not be that practical for general game and > application development. > > But the LiMo SDK isn't out yet, so I have no idea how hard it would be > to port the graphical parts of Gambas to it. I've heard it'll run > Qtopia, and if so, there is a gb.qte component that may make it > possible to port some gb.qt apps to LiMo. > > Android is a non-starter for now, because you can only develop in Java > for it. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wdahn at ...1000... Tue Mar 11 04:24:02 2008 From: wdahn at ...1000... (Werner) Date: Tue, 11 Mar 2008 11:24:02 +0800 Subject: [Gambas-user] Gambas support rocks In-Reply-To: References: <200803102020.10839.gambas@...1...> Message-ID: <47D5FB52.2080003@...1000...> Hamish Robertson wrote: > Cool, well I can certainly help with the marketing! > > You're going to need a new website first. > > New Website (Based off a CMS like Joomla or Drupal?). The website is > effectively your shop and it needs to look the business, it also needs to be > easy to update. It currently looks like a very active open source project > but not something new users are going to flock to. > > Is it OK if I put a request out to the mailing list and start getting ideas > together for a new website? > > H. > > > Gambas is the easiest way to write a Linux program. This sensational fact is hardly ever mentioned anywhere. Werner From robertsonhamish at ...626... Tue Mar 11 04:35:05 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 11 Mar 2008 10:35:05 +0700 Subject: [Gambas-user] Gambas support rocks In-Reply-To: <47D5FB52.2080003@...1000...> References: <200803102020.10839.gambas@...1...> <47D5FB52.2080003@...1000...> Message-ID: Totally. This is an easy situation to remedy. :) Who wants to help with the gambas marketing project? On 11/03/2008, Werner wrote: > > Hamish Robertson wrote: > > Cool, well I can certainly help with the marketing! > > > > You're going to need a new website first. > > > > New Website (Based off a CMS like Joomla or Drupal?). The website is > > effectively your shop and it needs to look the business, it also needs > to be > > easy to update. It currently looks like a very active open source > project > > but not something new users are going to flock to. > > > > Is it OK if I put a request out to the mailing list and start getting > ideas > > together for a new website? > > > > H. > > > > > > > > Gambas is the easiest way to write a Linux program. > This sensational fact is hardly ever mentioned anywhere. > > > Werner > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Tue Mar 11 04:35:33 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 10 Mar 2008 23:35:33 -0400 Subject: [Gambas-user] Gambas support rocks In-Reply-To: References: <200803102254.41710.sourceforge-raindog2@...94...> Message-ID: <200803102335.33323.sourceforge-raindog2@...94...> On Monday 10 March 2008 23:11, Hamish Robertson wrote: > Are you the webmaster for gambasrad.org? No, but I do provide hosting for gambasdoc.org. > Anyone checked out www.realbasic.com? > This is what we're up against. I actually don't see Gambas and RealBasic as really being competition. One is free software and the other is crossplatform; they serve two different needs. I wouldn't recommend Gambas to someone wanting to deploy on two or more platforms (Linux, Windows, OSX), but I wouldn't recommend RealBasic to someone unless they were trying to do exactly that. Rob From sourceforge-raindog2 at ...94... Tue Mar 11 04:38:20 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 10 Mar 2008 23:38:20 -0400 Subject: [Gambas-user] Gambas runtime MOBILE In-Reply-To: References: <200803102307.55431.sourceforge-raindog2@...94...> Message-ID: <200803102338.21061.sourceforge-raindog2@...94...> On Monday 10 March 2008 23:21, Hamish Robertson wrote: > That's great. Has anyone contacted LIMO about getting gambas to > work properly? Or are we just going to wait for the SDK to come > out? It would be nice to have the gambas runtime part of the > official LIMO release... I personally am not interested in LiMo until it already has a lot of users (hence my interest in the DS), but feel free. Rob From sourceforge-raindog2 at ...94... Tue Mar 11 04:40:35 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 10 Mar 2008 23:40:35 -0400 Subject: [Gambas-user] Gambas support rocks In-Reply-To: <47D5FB52.2080003@...1000...> References: <47D5FB52.2080003@...1000...> Message-ID: <200803102340.35923.sourceforge-raindog2@...94...> On Monday 10 March 2008 23:24, Werner wrote: > Gambas is the easiest way to write a Linux program. > This sensational fact is hardly ever mentioned anywhere. I think this is because 1. many Linux users (and therefore Linux sites) have a bias against BASIC, especially BASIC with a GUI, and 2. Benoit is far too modest to ever admit to what you just said. Rob From robertsonhamish at ...626... Tue Mar 11 04:51:47 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 11 Mar 2008 10:51:47 +0700 Subject: [Gambas-user] Gambas support rocks In-Reply-To: <200803102340.35923.sourceforge-raindog2@...94...> References: <47D5FB52.2080003@...1000...> <200803102340.35923.sourceforge-raindog2@...94...> Message-ID: I agree completely with both counts. Both are fixable. :) The Basic bias is On 11/03/2008, Rob wrote: > > On Monday 10 March 2008 23:24, Werner wrote: > > Gambas is the easiest way to write a Linux program. > > This sensational fact is hardly ever mentioned anywhere. > > > I think this is because > > 1. many Linux users (and therefore Linux sites) have a bias > against BASIC, especially BASIC with a GUI, and > > 2. Benoit is far too modest to ever admit to what you just said. > > > Rob > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jsowden at ...1051... Tue Mar 11 01:44:15 2008 From: jsowden at ...1051... (John R. Sowden) Date: Mon, 10 Mar 2008 17:44:15 -0700 Subject: [Gambas-user] Gambas support rocks In-Reply-To: <200803102254.41710.sourceforge-raindog2@...94...> References: <200803102020.10839.gambas@...1...> <200803102254.41710.sourceforge-raindog2@...94...> Message-ID: <47D5D5DF.9080803@...1051...> Rob wrote: > On Monday 10 March 2008 22:14, Hamish Robertson wrote: > >> New Website (Based off a CMS like Joomla or Drupal?). The website >> is effectively your shop and it needs to look the business, it also >> needs to be easy to update. >> > > Such a site already exists at gambasrad.org, which at one time was > meant to become the official Gambas home page.... but with unlabeled > ads on every page, unfortunately, even going so far as to display the > Gambas documentation, which is hosted elsewhere without ads, in an > iframe with ads at the bottom. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > thanks for explaining that site-that is where I went when I saw it mentioned. I'm still working on installing a pre-compiled rpm package. John From robertsonhamish at ...626... Tue Mar 11 06:00:44 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 11 Mar 2008 12:00:44 +0700 Subject: [Gambas-user] Autopackage Message-ID: What about making a gambas autopackage? It would make it much easier for newbies to get involved, and be much less work for the package maintainers. Any thoughts? www.autopackage.org. From kaoticus60 at ...151... Tue Mar 11 06:41:02 2008 From: kaoticus60 at ...151... (andy2) Date: Tue, 11 Mar 2008 06:41:02 +0100 Subject: [Gambas-user] gb.chart In-Reply-To: References: Message-ID: <47D61B6E.7060004@...151...> i need help to use this component. Thank you. From eilert-sprachen at ...221... Tue Mar 11 11:34:02 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 11 Mar 2008 11:34:02 +0100 Subject: [Gambas-user] Gambas support rocks In-Reply-To: References: <200803102020.10839.gambas@...1...> <200803102254.41710.sourceforge-raindog2@...94...> Message-ID: <47D6601A.20806@...221...> > Anyone checked out www.realbasic.com? > This is what we're up against. > Just did it. My impression: terribly mainstream "professional" put-in-everything-and-say-nothing biz site :-( Take a look at these sites, this is what we're "up against" (if anything): www.scribus.net www.joomla.org and www.joomla.de www.gimp.org www.kde.org Although I do not like this 800 px limited table look... Rolf From robertsonhamish at ...626... Tue Mar 11 13:33:57 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 11 Mar 2008 19:33:57 +0700 Subject: [Gambas-user] Gambas support rocks In-Reply-To: <47D6601A.20806@...221...> References: <200803102020.10839.gambas@...1...> <200803102254.41710.sourceforge-raindog2@...94...> <47D6601A.20806@...221...> Message-ID: hmm...hey they're some fine sites! :) I guess it depends on what we're going after...our target market as it were...great feedback though! Keep em coming! What do you think the Gambas site should look like? Why? On 11/03/2008, Rolf-Werner Eilert wrote: > > > Anyone checked out www.realbasic.com? > > This is what we're up against. > > > > > > Just did it. My impression: terribly mainstream "professional" > put-in-everything-and-say-nothing biz site :-( > > Take a look at these sites, this is what we're "up against" (if anything): > > www.scribus.net > www.joomla.org and www.joomla.de > www.gimp.org > www.kde.org > > Although I do not like this 800 px limited table look... > > > Rolf > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Mar 11 13:39:52 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Mar 2008 13:39:52 +0100 Subject: [Gambas-user] Gambas support rocks In-Reply-To: References: <200803102020.10839.gambas@...1...> Message-ID: <200803111339.52055.gambas@...1...> On mardi 11 mars 2008, Hamish Robertson wrote: > Cool, well I can certainly help with the marketing! > > You're going to need a new website first. > > New Website (Based off a CMS like Joomla or Drupal?). The website is > effectively your shop and it needs to look the business, it also needs to > be easy to update. It currently looks like a very active open source > project but not something new users are going to flock to. > > Is it OK if I put a request out to the mailing list and start getting ideas > together for a new website? > > H. > Maybe a cool "marketing" thing would be having a web site entirely based on a Gambas CGI script. My job is based on a big Gambas CGI script (500K) run by the thttpd server: it is *fast*! I'm not really fond of CMS, because even if they are powerful, I find them complex and slow. Regards, -- Benoit Minisini From gambas at ...1... Tue Mar 11 13:42:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Mar 2008 13:42:44 +0100 Subject: [Gambas-user] Strange problem with Date Time and ValueBox In-Reply-To: <200803072331.35124.richard.j.walker@...247...> References: <200803072331.35124.richard.j.walker@...247...> Message-ID: <200803111342.44738.gambas@...1...> On samedi 8 mars 2008, Richard wrote: > I have a little program which I wrote for the last winter Ashes tour. It > provides a way to do timer controlled recordings from radio programmes > streamed by the BBC and played by Helixplayer. > > I have tinkered with it from time to time to bloat its feature set and keep > it up to date with various key changes to the Gambas2 environment. The > current working version is in use recording each day's play in the 3 test > series under way in New Zealand. It runs on Gambas2 v2.0 with a backported > bug-fix for the date chooser control which Benoit kindly provided. > > I have always found plenty to confuse me when handling dates and times in > Gambas but having converted from my own customised versions of the DateBox > and TimeBox controls to the new ValueBox control I had reviewed the date > and time handling code to make sure I am not doing any redundant > conversions. > > Something I changed recently introduced a bug to the > store-recall-timer-settings process. A date and time entered as {02/03/2008 > 15:45:11} is changed, when it is recalled from a storage array, to > {02/03/2008 00:41:26}. > > A lot of time spent tracing through my over-complex logic eventually > located the probable "cause" in part of the code which restores a > previously stored collection of settings. The relevant code snippet is: > > 'Timer tab controls > LineRecord.StartDateChooser.Value = Date(records[ix].Start_Time) > LineRecord.StartDateBox.Value = Date(records[ix].Start_Time) > 'Do not trigger selected Change events > LineRecord.INC_autoset > LineRecord.HourTimeSet.Value = Hour(records[ix].Start_Time) > LineRecord.MinuteTimeset.Value = Minute(records[ix].Start_Time) > LineRecord.SecondTimeSet.Value = Second(records[ix].Start_Time) > 'Re-enable selected Change events > LineRecord.DEC_autoset > 'LineRecord.StartTimeBox.Value = Time(records[ix].Start_Time) > LineRecord.StartTimeBox.Value = (records[ix].Start_Time) > > In the last two lines the version commented out is the line which > introduces the incorrect time. The line below works just fine. The records > array is an array of objects of Class Recording. The Recording.Start_Time > property is a Date value with both date and time parts. > > Until this week the first two lines, and the penultimate, simply assigned > the whole date/time value to the DateChooser, StartDateBox and the > StartTimeBox. I decided to make it more "correct" after reading about the > Date and Time conversion functions. Only the Time(date_variable) line is > "wrong". Reverting to the old sloppy way fixes the problem. > > Here's the question: Has anyone come across a similar problem in date/time > handling? I have tried replicating the problem in independent code with no > success. > > > Richard > Can you provide the full source code? And can you use DEBUG or PRINT instruction to the prints the value of records[ix].Start_Time before assigning it? Regards, -- Benoit Minisini From david_villalobos_c at ...43... Tue Mar 11 16:05:30 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 11 Mar 2008 08:05:30 -0700 (PDT) Subject: [Gambas-user] Icon property Message-ID: <983761.80487.qm@...1656...> Hi all, I got a problem when I want to change the Icon property of a Form at execution time. I use one of the icons from the Gambas Stock, for example: icon:/16/tools, but what can I do to change the Icon property to icon:/16/print at execution time?? Any ideas? Best regards. David ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping From david_villalobos_c at ...43... Tue Mar 11 16:08:15 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 11 Mar 2008 08:08:15 -0700 (PDT) Subject: [Gambas-user] Error on gb.settigs Message-ID: <523904.17265.qm@...1658...> Ohhh... great to know that.... thanks Best regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Monday, March 10, 2008 6:11:16 PM Subject: Re: [Gambas-user] Error on gb.settigs On lundi 10 mars 2008, David Villalobos Cambronero wrote: > Hi all, > > I think I found an error on gb.settings. Attached is an example, just > run the program, press the button and see the text inside the TextArea > control, then, go to your $HOME/.config/gambas directory and compare the > text inside the NewLine.conf file with the file called "Archivo" in the > project directoty. > > What I get is an extra Slash "\" for every GB.NewLine. > > Can someone validate please? > > I use Gambas 2.2.1 on Mandriva 2008, 32 bits. > > Best regards. > > David > This is normal, strings are quoted inside settings files. -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From gambas at ...1... Tue Mar 11 16:51:47 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Mar 2008 16:51:47 +0100 Subject: [Gambas-user] Icon property In-Reply-To: <983761.80487.qm@...1656...> References: <983761.80487.qm@...1656...> Message-ID: <200803111651.47673.gambas@...1...> On mardi 11 mars 2008, David Villalobos Cambronero wrote: > Hi all, > I got a problem when I want to change the Icon property of a Form at > execution time. I use one of the icons from the Gambas Stock, for example: > icon:/16/tools, but what can I do to change the Icon property to > icon:/16/print at execution time?? Any ideas? > > Best regards. > > David > MyForm.Icon = Picture["icon:/16/print"] To know what is done in the background, you can open the *.form file in a text editor. Everything that is after an equal sign is valid Gambas code. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Tue Mar 11 17:20:57 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 11 Mar 2008 09:20:57 -0700 (PDT) Subject: [Gambas-user] Icon property Message-ID: <84107.12942.qm@...1655...> mmmmm Well, I?ll try and tell you... since I remenber I tried this way... But anyway, thanks... David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Tuesday, March 11, 2008 9:51:47 AM Subject: Re: [Gambas-user] Icon property On mardi 11 mars 2008, David Villalobos Cambronero wrote: > Hi all, > I got a problem when I want to change the Icon property of a Form at > execution time. I use one of the icons from the Gambas Stock, for example: > icon:/16/tools, but what can I do to change the Icon property to > icon:/16/print at execution time?? Any ideas? > > Best regards. > > David > MyForm.Icon = Picture["icon:/16/print"] To know what is done in the background, you can open the *.form file in a text editor. Everything that is after an equal sign is valid Gambas code. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping From gambas at ...1... Tue Mar 11 21:18:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Mar 2008 21:18:50 +0100 Subject: [Gambas-user] Change to the Gambas IDE to improve the workflow In-Reply-To: <47D5D7E8.3070204@...626...> References: <47D34171.4040009@...626...> <200803102124.03152.gambas@...1...> <47D5D7E8.3070204@...626...> Message-ID: <200803112118.50297.gambas@...1...> On mardi 11 mars 2008, Robert Rowe wrote: > Yes, you are correct that CTRL+Space will trigger completion in Gambas2. > This is a key combo the VB uses but VB will also complete on the space, > periond and left parnethesis too. I looked at the section that you > mentioned. > > ELSE IF InStr("([.!", Key.Text) > 0 AND InStr(". ", $sMode) > 0 THEN > > It appears that it is looking for a period in the $sMode variable too. > The $sMode variable gets assigned the value in sMode which is a > parameter on the Open sub. You are right. The $sMode variable just tells the context of the autocompletion. "." means a point has been pressed. " " means that the space key has been pressed. "_" means that an underscore has been entered. "<" means that the Backspace key has been press. "A" means that the three first letters of a symbol have been entered. I added "<" and "A" to the mode list above, but I can't accept the space key to automatically insert a completion item, as you may want to enter a variable named "eNDI" followed by a space, without ENDIF being automatically inserted instead. Try the revison 1155, and tell me if it is better for you. Regards, -- Benoit Minisini From rterry at ...1822... Tue Mar 11 21:54:11 2008 From: rterry at ...1822... (richard terry) Date: Wed, 12 Mar 2008 07:54:11 +1100 Subject: [Gambas-user] More Webrowser questions re hyperlinks In-Reply-To: References: <200803100843.29500.rterry@...1822...> Message-ID: <200803120754.12006.rterry@...1822...> On Mon, 10 Mar 2008 08:25:36 pm Jaap Cramer wrote: > The webbrowser Link Event contains a variable Path. When I tried something > similar (for a dictionary) I added an prefix so the Event could look what > kind of action was needed > > An link looks like [a href='MED://data']Prostatism[/a] Couldn't get this to work, I'm using khtml and the html seems to need the < bracket. (Admittedly it was very late at night and with not alot of time.) like prostatism > > SUB WebBrowser_Link(Path as String) Also it errors out on the Path as string saying 'bad event handler, too many arguments). Having said that I"ve kinda got something on the way - I really want to embed a key from one of the fields in my progress notes table (pk_problem) which I'll then use to link to all episodes for that particular problem, so I've done a string replace of part of the path with str$(pk_problem), which I can then extract when the webbrowsernotes_link() is activated. I'll keep fiddling, and report back, but any other comments welcome. Richard > dim prefix as string > > prefix = left(Path, Instr(Path, ":")-1) > Path = mid(Path, Instr(Path, ":")+1) > > Select Case prefix > case "MED" > message("Show All Episodes") > > case else > ... regular linkhandling > end select > end sub > > > ---------------------------------------- > > > From: rterry at ...1822... > > To: gambas-user at lists.sourceforge.net > > Date: Mon, 10 Mar 2008 08:43:29 +1100 > > Subject: [Gambas-user] More Webrowser questions re hyperlinks > > > > I've played with this control a little over the weekend, as you can see > > from the screen dump, i've moved on from my contacts program which is now > > functioning ok, to my experimentation with writing a medical records > > program. > > > > I load patient, add problems, and save clinical notes written in the > > texteditor, saved as html on a per problem basis, then the whole lot are > > amalgamated into a single html pile to display back on the screen when > > the patient next visits. > > > > Now, I want to add a hyperlink to each condition (see the picture > > included), and was wondering if it was possible to have the hyperlink, > > but when the user clicks on the link, have a popup menu with options such > > as "Show all episodes", "Decision support for" etc, rather than what > > happens at the moment which is the hyperlink just runs off to try and > > find a file etc. > > > > I've tried intercepting the click, but by the time the webbrowser_click > > is picked up, the webrowser has already run off and done its thing > > attempting to find the link. > > > > Any thoughts/help appreciated. > > > > Richard > > _________________________________________________________________ > Probeer Live Search: de zoekmachine van de makers van MSN! > http://www.live.com/?searchOnly=true From richard.j.walker at ...247... Tue Mar 11 22:55:51 2008 From: richard.j.walker at ...247... (Richard) Date: Tue, 11 Mar 2008 21:55:51 +0000 Subject: [Gambas-user] Strange problem with Date Time and ValueBox In-Reply-To: <200803111342.44738.gambas@...1...> References: <200803072331.35124.richard.j.walker@...247...> <200803111342.44738.gambas@...1...> Message-ID: <200803112155.52311.richard.j.walker@...247...> On Tuesday 11 March 2008 12:42:44 Benoit Minisini wrote: > On samedi 8 mars 2008, Richard wrote: > > I have a little program which I wrote for the last winter Ashes tour. It > > provides a way to do timer controlled recordings from radio programmes > > streamed by the BBC and played by Helixplayer. > > > > I have tinkered with it from time to time to bloat its feature set and > > keep it up to date with various key changes to the Gambas2 environment. > > The current working version is in use recording each day's play in the 3 > > test series under way in New Zealand. It runs on Gambas2 v2.0 with a > > backported bug-fix for the date chooser control which Benoit kindly > > provided. > > > > I have always found plenty to confuse me when handling dates and times in > > Gambas but having converted from my own customised versions of the > > DateBox and TimeBox controls to the new ValueBox control I had reviewed > > the date and time handling code to make sure I am not doing any redundant > > conversions. > > > > Something I changed recently introduced a bug to the > > store-recall-timer-settings process. A date and time entered as > > {02/03/2008 15:45:11} is changed, when it is recalled from a storage > > array, to {02/03/2008 00:41:26}. > > > > A lot of time spent tracing through my over-complex logic eventually > > located the probable "cause" in part of the code which restores a > > previously stored collection of settings. The relevant code snippet is: > > > > 'Timer tab controls > > LineRecord.StartDateChooser.Value = Date(records[ix].Start_Time) > > LineRecord.StartDateBox.Value = Date(records[ix].Start_Time) > > 'Do not trigger selected Change events > > LineRecord.INC_autoset > > LineRecord.HourTimeSet.Value = Hour(records[ix].Start_Time) > > LineRecord.MinuteTimeset.Value = Minute(records[ix].Start_Time) > > LineRecord.SecondTimeSet.Value = Second(records[ix].Start_Time) > > 'Re-enable selected Change events > > LineRecord.DEC_autoset > > 'LineRecord.StartTimeBox.Value = Time(records[ix].Start_Time) > > LineRecord.StartTimeBox.Value = (records[ix].Start_Time) > > > > In the last two lines the version commented out is the line which > > introduces the incorrect time. The line below works just fine. The > > records array is an array of objects of Class Recording. The > > Recording.Start_Time property is a Date value with both date and time > > parts. > > > > Until this week the first two lines, and the penultimate, simply assigned > > the whole date/time value to the DateChooser, StartDateBox and the > > StartTimeBox. I decided to make it more "correct" after reading about the > > Date and Time conversion functions. Only the Time(date_variable) line is > > "wrong". Reverting to the old sloppy way fixes the problem. > > > > Here's the question: Has anyone come across a similar problem in > > date/time handling? I have tried replicating the problem in independent > > code with no success. > > > > > > Richard > > Can you provide the full source code? Yes, can do, but it isn't pretty. The source archive is currently 640k, but that includes a lot of clutter in the project img folder. > And can you use DEBUG or PRINT > instruction to the prints the value of records[ix].Start_Time before > assigning it? I found the rogue value while stepping through the code using the debugger and the Watch pane. > > Regards, I have also tried to replicate the problem in stand-alone code (a test project) which simply does the same logical things with date and time values, but that worked perfectly; just the way you would expect. My guess at this stage is that I have managed to create an inconsistency somewhere. The observation that nobody else has come across the same snag would seem to confirm that the bug is mine all mine! I'll do some more searching now that the latest modifications to the application are working and I'll get back to you if I need more help. Richard From rterry at ...1822... Tue Mar 11 23:27:58 2008 From: rterry at ...1822... (richard terry) Date: Wed, 12 Mar 2008 09:27:58 +1100 Subject: [Gambas-user] How to remove tabs from workspace in code Message-ID: <200803120927.58524.rterry@...1822...> Is this possible. I can add tabs to the workspace , and obviously user can click on the the tab and click on the cross and close the tab, but I want to be able to reset my progress notes editor by removing all the tabs in code. Any help appreciated. Richard From rterry at ...1822... Tue Mar 11 23:31:55 2008 From: rterry at ...1822... (richard terry) Date: Wed, 12 Mar 2008 09:31:55 +1100 Subject: [Gambas-user] Modifying the popup menu on workspace tab Message-ID: <200803120931.55956.rterry@...1822...> Currently when I add a new panel or form to the workspace, a tab appears where I can set the title. If I right mouse click on the tab there is a menu there which I didn't create, just with the name on the tab and a checkbox (checked) and a close current tab. I'd like to be able to have my own menu in place of this, is it possible? Regards Richard From robert.c.rowe at ...626... Tue Mar 11 23:52:32 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 11 Mar 2008 18:52:32 -0400 Subject: [Gambas-user] Change to the Gambas IDE to improve the workflow In-Reply-To: <200803112118.50297.gambas@...1...> References: <47D34171.4040009@...626...> <200803102124.03152.gambas@...1...> <47D5D7E8.3070204@...626...> <200803112118.50297.gambas@...1...> Message-ID: <47D70D30.8070702@...626...> I get your point on the variable named eNDI. I hadn't though of that. Thanks. Robert Rowe Benoit Minisini wrote: > On mardi 11 mars 2008, Robert Rowe wrote: > >> Yes, you are correct that CTRL+Space will trigger completion in Gambas2. >> This is a key combo the VB uses but VB will also complete on the space, >> periond and left parnethesis too. I looked at the section that you >> mentioned. >> >> ELSE IF InStr("([.!", Key.Text) > 0 AND InStr(". ", $sMode) > 0 THEN >> >> It appears that it is looking for a period in the $sMode variable too. >> The $sMode variable gets assigned the value in sMode which is a >> parameter on the Open sub. >> > > You are right. The $sMode variable just tells the context of the > autocompletion. > > "." means a point has been pressed. > " " means that the space key has been pressed. > "_" means that an underscore has been entered. > "<" means that the Backspace key has been press. > "A" means that the three first letters of a symbol have been entered. > > I added "<" and "A" to the mode list above, but I can't accept the space key > to automatically insert a completion item, as you may want to enter a > variable named "eNDI" followed by a space, without ENDIF being automatically > inserted instead. > > Try the revison 1155, and tell me if it is better for you. > > Regards, > > From PxPert at ...626... Tue Mar 11 23:59:09 2008 From: PxPert at ...626... (PxPert) Date: Tue, 11 Mar 2008 23:59:09 +0100 Subject: [Gambas-user] Event Inheritance Message-ID: <200803112359.10073.PxPert@...626...> Hi to all! I'm developing a component that inherits to sdl's Window, but I need to "Wrap" the draw event and i don't know how I've tried to add public sub me_draw(), and super_draw(), and window_draw() but they don't see to be called when the component raises the draw component. What is wrong? The properties-functions are normally ovverriden! Thanks ;) From gambas at ...1... Wed Mar 12 00:17:04 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 12 Mar 2008 00:17:04 +0100 Subject: [Gambas-user] How to remove tabs from workspace in code In-Reply-To: <200803120927.58524.rterry@...1822...> References: <200803120927.58524.rterry@...1822...> Message-ID: <200803120017.04584.gambas@...1...> On mardi 11 mars 2008, richard terry wrote: > Is this possible. > > I can add tabs to the workspace , and obviously user can click on the the > tab and click on the cross and close the tab, but I want to be able to > reset my progress notes editor by removing all the tabs in code. > > Any help appreciated. > > Richard > You don't remove the tabs. You just close your MDI child windows: DIM hWindow AS Window TheWorkspace.Lock FOR EACH hWindow IN TheWorkspace.Children hWindow.Close NEXT TheWorkspace.Unlock The Lock & Unlock methods are useful to prevent the Workspace to flicker. Regards, -- Benoit Minisini From gambas at ...1... Wed Mar 12 00:22:51 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 12 Mar 2008 00:22:51 +0100 Subject: [Gambas-user] Modifying the popup menu on workspace tab In-Reply-To: <200803120931.55956.rterry@...1822...> References: <200803120931.55956.rterry@...1822...> Message-ID: <200803120022.51367.gambas@...1...> On mardi 11 mars 2008, richard terry wrote: > Currently when I add a new panel or form to the workspace, a tab appears > where I can set the title. > > If I right mouse click on the tab there is a menu there which I didn't > create, just with the name on the tab and a checkbox (checked) and a close > current tab. > > I'd like to be able to have my own menu in place of this, is it possible? > > Regards > > Richard > This is not directly possible at the moment. But you can hack it by finding the Workspace TabStrip: it is the parent of every MDI child window. Then you create an Observer on the TabStrip, and implements the Menu event. Then you call STOP EVENT in your Menu event handler before returning, so that the default Workspace Menu event handler is not called. Regards, -- Benoit Minisini From robert.c.rowe at ...626... Wed Mar 12 00:46:01 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 11 Mar 2008 19:46:01 -0400 Subject: [Gambas-user] Change to the Gambas IDE to improve the workflow In-Reply-To: <200803112118.50297.gambas@...1...> References: <47D34171.4040009@...626...> <200803102124.03152.gambas@...1...> <47D5D7E8.3070204@...626...> <200803112118.50297.gambas@...1...> Message-ID: <47D719B9.9050207@...626...> The changes work wonderfully in revision 1155. Thanks. Robert Rowe Benoit Minisini wrote: > On mardi 11 mars 2008, Robert Rowe wrote: > >> Yes, you are correct that CTRL+Space will trigger completion in Gambas2. >> This is a key combo the VB uses but VB will also complete on the space, >> periond and left parnethesis too. I looked at the section that you >> mentioned. >> >> ELSE IF InStr("([.!", Key.Text) > 0 AND InStr(". ", $sMode) > 0 THEN >> >> It appears that it is looking for a period in the $sMode variable too. >> The $sMode variable gets assigned the value in sMode which is a >> parameter on the Open sub. >> > > You are right. The $sMode variable just tells the context of the > autocompletion. > > "." means a point has been pressed. > " " means that the space key has been pressed. > "_" means that an underscore has been entered. > "<" means that the Backspace key has been press. > "A" means that the three first letters of a symbol have been entered. > > I added "<" and "A" to the mode list above, but I can't accept the space key > to automatically insert a completion item, as you may want to enter a > variable named "eNDI" followed by a space, without ENDIF being automatically > inserted instead. > > Try the revison 1155, and tell me if it is better for you. > > Regards, > > From richard.j.walker at ...247... Wed Mar 12 01:31:05 2008 From: richard.j.walker at ...247... (Richard) Date: Wed, 12 Mar 2008 00:31:05 +0000 Subject: [Gambas-user] Strange problem with Date Time and ValueBox In-Reply-To: <200803112155.52311.richard.j.walker@...247...> References: <200803072331.35124.richard.j.walker@...247...> <200803111342.44738.gambas@...1...> <200803112155.52311.richard.j.walker@...247...> Message-ID: <200803120031.06112.richard.j.walker@...247...> On Tuesday 11 March 2008 21:55:51 Richard wrote: > On Tuesday 11 March 2008 12:42:44 Benoit Minisini wrote: > > On samedi 8 mars 2008, Richard wrote: > > > I have a little program which I wrote for the last winter Ashes tour. > > > It provides a way to do timer controlled recordings from radio > > > programmes streamed by the BBC and played by Helixplayer. > > > > > > I have tinkered with it from time to time to bloat its feature set and > > > keep it up to date with various key changes to the Gambas2 environment. > > > The current working version is in use recording each day's play in the > > > 3 test series under way in New Zealand. It runs on Gambas2 v2.0 with a > > > backported bug-fix for the date chooser control which Benoit kindly > > > provided. > > > > > > I have always found plenty to confuse me when handling dates and times > > > in Gambas but having converted from my own customised versions of the > > > DateBox and TimeBox controls to the new ValueBox control I had reviewed > > > the date and time handling code to make sure I am not doing any > > > redundant conversions. > > > > > > Something I changed recently introduced a bug to the > > > store-recall-timer-settings process. A date and time entered as > > > {02/03/2008 15:45:11} is changed, when it is recalled from a storage > > > array, to {02/03/2008 00:41:26}. > > > > > > A lot of time spent tracing through my over-complex logic eventually > > > located the probable "cause" in part of the code which restores a > > > previously stored collection of settings. The relevant code snippet > > > is: > > > > > > 'Timer tab controls > > > LineRecord.StartDateChooser.Value = > > > Date(records[ix].Start_Time) LineRecord.StartDateBox.Value = > > > Date(records[ix].Start_Time) 'Do not trigger selected Change events > > > LineRecord.INC_autoset > > > LineRecord.HourTimeSet.Value = Hour(records[ix].Start_Time) > > > LineRecord.MinuteTimeset.Value = Minute(records[ix].Start_Time) > > > LineRecord.SecondTimeSet.Value = Second(records[ix].Start_Time) > > > 'Re-enable selected Change events > > > LineRecord.DEC_autoset > > > 'LineRecord.StartTimeBox.Value = Time(records[ix].Start_Time) > > > LineRecord.StartTimeBox.Value = (records[ix].Start_Time) > > > > > > In the last two lines the version commented out is the line which > > > introduces the incorrect time. The line below works just fine. The > > > records array is an array of objects of Class Recording. The > > > Recording.Start_Time property is a Date value with both date and time > > > parts. > > > > > > Until this week the first two lines, and the penultimate, simply > > > assigned the whole date/time value to the DateChooser, StartDateBox > > > and the StartTimeBox. I decided to make it more "correct" after reading > > > about the Date and Time conversion functions. Only the > > > Time(date_variable) line is "wrong". Reverting to the old sloppy way > > > fixes the problem. > > > > > > Here's the question: Has anyone come across a similar problem in > > > date/time handling? I have tried replicating the problem in independent > > > code with no success. > > > > > > > > > Richard > > > > Can you provide the full source code? > > Yes, can do, but it isn't pretty. The source archive is currently 640k, but > that includes a lot of clutter in the project img folder. > > > And can you use DEBUG or PRINT > > instruction to the prints the value of records[ix].Start_Time before > > assigning it? > > I found the rogue value while stepping through the code using the debugger > and the Watch pane. > > > Regards, > > I have also tried to replicate the problem in stand-alone code (a test > project) which simply does the same logical things with date and time > values, but that worked perfectly; just the way you would expect. My guess > at this stage is that I have managed to create an inconsistency somewhere. > The observation that nobody else has come across the same snag would seem > to confirm that the bug is mine all mine! > > I'll do some more searching now that the latest modifications to the > application are working and I'll get back to you if I need more help. > > Richard > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user OK, I have found another code sequence which works. I had scattered a few DEBUG statements around sections of code which read and write the start date/time value and noticed that where the problem value appears, my procedure reads the Recording.Start_Time property lots of times. Apart from any other consideration, this seemed a bit wasteful of processor power so I changed the procedure to read the property value once into a local variable and then use the local value for extracting Date, Hour, Minute, Second and Time values. This has had the interesting side effect of avoiding the bug. See the code snippet below (compared to the same sequence copied in my first message): 'Timer tab controls 'DEBUG ix; ">=";; records[ix].Start_Time;; Date(records[ix].Start_Time);; Time(records[ix].Start_Time) 'DEBUG CFloat(records[ix].Start_Time);; CFloat(Date(records[ix].Start_Time));; CFloat(Time(records[ix].Start_Time)) StartTime = records[ix].Start_Time LineRecord.StartDateChooser.Value = Date(StartTime) LineRecord.StartDateBox.Value = Date(StartTime) 'Do not trigger selected Change events LineRecord.INC_autoset LineRecord.HourTimeSet.Value = Hour(StartTime) LineRecord.MinuteTimeset.Value = Minute(StartTime) LineRecord.SecondTimeSet.value = Second(StartTime) 'Re-enable selected Change events LineRecord.DEC_autoset LineRecord.StartTimeBox.Value = Time(StartTime) 'LineRecord.StartTimeBox.Value = (records[ix].Start_Time) This just gets more and more interesting, but it is late now. I'll explore further tomorrow. Richard From leonardo at ...1237... Wed Mar 12 10:27:44 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 12 Mar 2008 10:27:44 +0100 Subject: [Gambas-user] Bug in Gambas 2.2: Filechooser doesn't work Message-ID: <20080312102744.wyt8qn1f8kww8go8@...1848...> I noticed that in Gambas 2.2 the FileChooser doesn't work. If I click on a file, the component doesnt select nothing: in fact, no filename appears on the box at the bottom of the component, no filename is returned from method SelectedPath of the component. Leonardo Miliani. From gambas at ...1... Wed Mar 12 11:11:37 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 12 Mar 2008 11:11:37 +0100 Subject: [Gambas-user] Bug in Gambas 2.2: Filechooser doesn't work In-Reply-To: <20080312102744.wyt8qn1f8kww8go8@...1848...> References: <20080312102744.wyt8qn1f8kww8go8@...1848...> Message-ID: <200803121111.37130.gambas@...1...> On mercredi 12 mars 2008, Leonardo Miliani wrote: > I noticed that in Gambas 2.2 the FileChooser doesn't work. > If I click on a file, the component doesnt select nothing: in fact, no > filename appears on the box at the bottom of the component, no > filename is returned from method SelectedPath of the component. > > Leonardo Miliani. > Yes, it should be fixed for the next 2.3. If you want, you can try the 2.0 branch of the subversion repository. Regards, -- Benoit Minisini From steven at ...1652... Wed Mar 12 15:11:46 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Wed, 12 Mar 2008 15:11:46 +0100 Subject: [Gambas-user] Eval revisited In-Reply-To: <200803121111.37130.gambas@...1...> References: <20080312102744.wyt8qn1f8kww8go8@...1848...> <200803121111.37130.gambas@...1...> Message-ID: <1205331106.24424.53.camel@...1816...> Hi, I do : Eval(GParms & ".hGrid.Search_Update('" & Titre.Text & "')") Where GParms contains the name of a form hGrid is an instantiated class in that form Search_Update as Sub in that class, which takes a string as parm and Titre.Text is a text in a control on ME which contains some text I get back : Unexpected end of expression What am i doing wrong ? Thanks Steven From gambas at ...1... Wed Mar 12 15:16:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 12 Mar 2008 15:16:57 +0100 Subject: [Gambas-user] Eval revisited In-Reply-To: <1205331106.24424.53.camel@...1816...> References: <20080312102744.wyt8qn1f8kww8go8@...1848...> <200803121111.37130.gambas@...1...> <1205331106.24424.53.camel@...1816...> Message-ID: <200803121516.57632.gambas@...1...> On mercredi 12 mars 2008, Steven Lobbezoo wrote: > Hi, > > I do : > Eval(GParms & ".hGrid.Search_Update('" & Titre.Text & "')") > > Where GParms contains the name of a form > hGrid is an instantiated class in that form > Search_Update as Sub in that class, which takes a string as parm > and Titre.Text is a text in a control on ME which contains some text > > I get back : > Unexpected end of expression > > What am i doing wrong ? > > Thanks > Steven > And can you create a new thread instead of always reply to another non-related thread please? Thanks in advance. Regards, -- Benoit Minisini From gambas at ...1... Wed Mar 12 15:15:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 12 Mar 2008 15:15:41 +0100 Subject: [Gambas-user] Eval revisited In-Reply-To: <1205331106.24424.53.camel@...1816...> References: <20080312102744.wyt8qn1f8kww8go8@...1848...> <200803121111.37130.gambas@...1...> <1205331106.24424.53.camel@...1816...> Message-ID: <200803121515.42039.gambas@...1...> On mercredi 12 mars 2008, Steven Lobbezoo wrote: > Hi, > > I do : > Eval(GParms & ".hGrid.Search_Update('" & Titre.Text & "')") > > Where GParms contains the name of a form > hGrid is an instantiated class in that form > Search_Update as Sub in that class, which takes a string as parm > and Titre.Text is a text in a control on ME which contains some text > > I get back : > Unexpected end of expression > > What am i doing wrong ? > > Thanks > Steven > You use < ' > instead of < " > as string delimiters. < ' > is for comments. -- Benoit Minisini From leonardo at ...1237... Wed Mar 12 18:25:14 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 12 Mar 2008 18:25:14 +0100 Subject: [Gambas-user] Bug in Gambas 2.2: Filechooser doesn't work In-Reply-To: <200803121111.37130.gambas@...1...> References: <20080312102744.wyt8qn1f8kww8go8@...1848...> <200803121111.37130.gambas@...1...> Message-ID: <47D811FA.2000005@...1237...> Benoit Minisini ha scritto: > Yes, it should be fixed for the next 2.3. If you want, you can try the 2.0 > branch of the subversion repository. > > Regards, > When do you think to publish the 2.3? ;-) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From gambas at ...1... Wed Mar 12 19:20:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 12 Mar 2008 19:20:31 +0100 Subject: [Gambas-user] Bug in Gambas 2.2: Filechooser doesn't work In-Reply-To: <47D811FA.2000005@...1237...> References: <20080312102744.wyt8qn1f8kww8go8@...1848...> <200803121111.37130.gambas@...1...> <47D811FA.2000005@...1237...> Message-ID: <200803121920.31233.gambas@...1...> On mercredi 12 mars 2008, Leonardo Miliani wrote: > Benoit Minisini ha scritto: > > Yes, it should be fixed for the next 2.3. If you want, you can try the > > 2.0 branch of the subversion repository. > > > > Regards, > > When do you think to publish the 2.3? ;-) I'm just waiting for a stack backtrace for a bug in the Table.Type property of the gb.db component. -- Benoit Minisini From rterry at ...1822... Wed Mar 12 21:43:13 2008 From: rterry at ...1822... (richard terry) Date: Thu, 13 Mar 2008 07:43:13 +1100 Subject: [Gambas-user] Modifying the popup menu on workspace tab In-Reply-To: <200803120022.51367.gambas@...1...> References: <200803120931.55956.rterry@...1822...> <200803120022.51367.gambas@...1...> Message-ID: <200803130743.13429.rterry@...1822...> On Wed, 12 Mar 2008 10:22:51 am Benoit Minisini wrote: > On mardi 11 mars 2008, richard terry wrote: > > Currently when I add a new panel or form to the workspace, a tab appears > > where I can set the title. > > > > If I right mouse click on the tab there is a menu there which I didn't > > create, just with the name on the tab and a checkbox (checked) and a > > close current tab. > > > > I'd like to be able to have my own menu in place of this, is it possible? > > > > Regards > > > > Richard > > This is not directly possible at the moment. > > But you can hack it by finding the Workspace TabStrip: it is the parent of > every MDI child window. Then you create an Observer on the TabStrip, and > implements the Menu event. Then you call STOP EVENT in your Menu event > handler before returning, so that the default Workspace Menu event handler is not called. Not much success I wonder if you could tell me what's wrong: I have a text editor + buttons on a form called frmText editor On my Main form I create a new frm and add it to the workspace: At the top of the form I did public hObs as Observor In the routine I add each page I put: Newpage = NEW frmTextEditor WorkspaceEditor.Add(NewPage) I tried various comination and permutation of this to create an observer: hObs = NEW Observer(NewPage.parent) AS "tabstrip" and then created a subroutine: PUBLIC SUB tabstrip_menu() PRINT "I'm being clicked" STOP EVENT END SUB But it dosn't seem to pick up the event. Thanks in anticipation Richard > Regards, From gambas at ...1... Wed Mar 12 21:54:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 12 Mar 2008 21:54:55 +0100 Subject: [Gambas-user] Modifying the popup menu on workspace tab In-Reply-To: <200803130743.13429.rterry@...1822...> References: <200803120931.55956.rterry@...1822...> <200803120022.51367.gambas@...1...> <200803130743.13429.rterry@...1822...> Message-ID: <200803122154.55644.gambas@...1...> On mercredi 12 mars 2008, richard terry wrote: > On Wed, 12 Mar 2008 10:22:51 am Benoit Minisini wrote: > > On mardi 11 mars 2008, richard terry wrote: > > > Currently when I add a new panel or form to the workspace, a tab > > > appears where I can set the title. > > > > > > If I right mouse click on the tab there is a menu there which I didn't > > > create, just with the name on the tab and a checkbox (checked) and a > > > close current tab. > > > > > > I'd like to be able to have my own menu in place of this, is it > > > possible? > > > > > > Regards > > > > > > Richard > > > > This is not directly possible at the moment. > > > > But you can hack it by finding the Workspace TabStrip: it is the parent > > of every MDI child window. Then you create an Observer on the TabStrip, > > and implements the Menu event. Then you call STOP EVENT in your Menu > > event handler before returning, so that the default Workspace Menu event > > handler > > is not called. > > Not much success I wonder if you could tell me what's wrong: > I have a text editor + buttons on a form called frmText editor > On my Main form I create a new frm and add it to the workspace: > At the top of the form I did > > public hObs as Observor > > In the routine I add each page I put: > > Newpage = NEW frmTextEditor > WorkspaceEditor.Add(NewPage) > > I tried various comination and permutation of this to create an observer: > > hObs = NEW Observer(NewPage.parent) AS "tabstrip" I was wrong, The TabStrip is not the parent of the MDI child windows at all. You must find it "by hand": DIM hTabStrip AS TabStrip DIM hCtrl AS Control FOR EACH hCtrl in aMDIChildWindow.Parent.Parent.Children IF hCtrl IS TabStrip THEN hTabStrip = hCtrl BREAK ENDIF NEXT It should work. :-) Regards, -- Benoit Minisini From rterry at ...1822... Wed Mar 12 22:04:07 2008 From: rterry at ...1822... (richard terry) Date: Thu, 13 Mar 2008 08:04:07 +1100 Subject: [Gambas-user] Modifying the popup menu on workspace tab In-Reply-To: <200803122154.55644.gambas@...1...> References: <200803120931.55956.rterry@...1822...> <200803130743.13429.rterry@...1822...> <200803122154.55644.gambas@...1...> Message-ID: <200803130804.07833.rterry@...1822...> On Thu, 13 Mar 2008 07:54:55 am you wrote: > DIM hTabStrip AS TabStrip > DIM hCtrl AS Control > > FOR EACH hCtrl in aMDIChildWindow.Parent.Parent.Children > ? IF hCtrl IS TabStrip THEN > ? ? ?hTabStrip = hCtrl > ? ? ?BREAK > ? ENDIF > NEXT Yes that seems to have worked: Newpage = NEW frmTextEditor WorkspaceEditor.Add(NewPage) FOR EACH hCtrl IN NewPage.Parent.Parent.Children IF hCtrl IS TabStrip THEN hTabStrip = hCtrl BREAK ENDIF NEXT hObs = NEW Observer(hTabStrip) AS "tabstrip" Then my sub below does work, so I should be able to popup the menu. PUBLIC SUB tabstrip_menu() PRINT "being clicked" STOP EVENT END SUB Will try and implement the menu and report back. Richard From richard.j.walker at ...247... Thu Mar 13 01:27:35 2008 From: richard.j.walker at ...247... (Richard) Date: Thu, 13 Mar 2008 00:27:35 +0000 Subject: [Gambas-user] Strange problem with Date Time and ValueBox In-Reply-To: <200803120031.06112.richard.j.walker@...247...> References: <200803072331.35124.richard.j.walker@...247...> <200803112155.52311.richard.j.walker@...247...> <200803120031.06112.richard.j.walker@...247...> Message-ID: <200803130027.35987.richard.j.walker@...247...> On Wednesday 12 March 2008 00:31:05 Richard wrote: > On Tuesday 11 March 2008 21:55:51 Richard wrote: > > On Tuesday 11 March 2008 12:42:44 Benoit Minisini wrote: > > > On samedi 8 mars 2008, Richard wrote: > > > > I have a little program which I wrote for the last winter Ashes tour. > > > > It provides a way to do timer controlled recordings from radio > > > > programmes streamed by the BBC and played by Helixplayer. > > > > > > > > I have tinkered with it from time to time to bloat its feature set > > > > and keep it up to date with various key changes to the Gambas2 > > > > environment. The current working version is in use recording each > > > > day's play in the 3 test series under way in New Zealand. It runs on > > > > Gambas2 v2.0 with a backported bug-fix for the date chooser control > > > > which Benoit kindly provided. > > > > > > > > I have always found plenty to confuse me when handling dates and > > > > times in Gambas but having converted from my own customised versions > > > > of the DateBox and TimeBox controls to the new ValueBox control I had > > > > reviewed the date and time handling code to make sure I am not doing > > > > any redundant conversions. > > > > > > > > Something I changed recently introduced a bug to the > > > > store-recall-timer-settings process. A date and time entered as > > > > {02/03/2008 15:45:11} is changed, when it is recalled from a storage > > > > array, to {02/03/2008 00:41:26}. > > > > > > > > A lot of time spent tracing through my over-complex logic eventually > > > > located the probable "cause" in part of the code which restores a > > > > previously stored collection of settings. The relevant code snippet > > > > is: > > > > > > > > 'Timer tab controls > > > > LineRecord.StartDateChooser.Value = > > > > Date(records[ix].Start_Time) LineRecord.StartDateBox.Value = > > > > Date(records[ix].Start_Time) 'Do not trigger selected Change events > > > > LineRecord.INC_autoset > > > > LineRecord.HourTimeSet.Value = Hour(records[ix].Start_Time) > > > > LineRecord.MinuteTimeset.Value = > > > > Minute(records[ix].Start_Time) LineRecord.SecondTimeSet.Value = > > > > Second(records[ix].Start_Time) 'Re-enable selected Change events > > > > LineRecord.DEC_autoset > > > > 'LineRecord.StartTimeBox.Value = Time(records[ix].Start_Time) > > > > LineRecord.StartTimeBox.Value = (records[ix].Start_Time) > > > > > > > > In the last two lines the version commented out is the line which > > > > introduces the incorrect time. The line below works just fine. The > > > > records array is an array of objects of Class Recording. The > > > > Recording.Start_Time property is a Date value with both date and time > > > > parts. > > > > > > > > Until this week the first two lines, and the penultimate, simply > > > > assigned the whole date/time value to the DateChooser, StartDateBox > > > > and the StartTimeBox. I decided to make it more "correct" after > > > > reading about the Date and Time conversion functions. Only the > > > > Time(date_variable) line is "wrong". Reverting to the old sloppy way > > > > fixes the problem. > > > > > > > > Here's the question: Has anyone come across a similar problem in > > > > date/time handling? I have tried replicating the problem in > > > > independent code with no success. > > > > > > > > > > > > Richard > > > > > > Can you provide the full source code? > > > > Yes, can do, but it isn't pretty. The source archive is currently 640k, > > but that includes a lot of clutter in the project img folder. > > > > > And can you use DEBUG or PRINT > > > instruction to the prints the value of records[ix].Start_Time before > > > assigning it? > > > > I found the rogue value while stepping through the code using the > > debugger and the Watch pane. > > > > > Regards, > > > > I have also tried to replicate the problem in stand-alone code (a test > > project) which simply does the same logical things with date and time > > values, but that worked perfectly; just the way you would expect. My > > guess at this stage is that I have managed to create an inconsistency > > somewhere. The observation that nobody else has come across the same snag > > would seem to confirm that the bug is mine all mine! > > > > I'll do some more searching now that the latest modifications to the > > application are working and I'll get back to you if I need more help. > > > > Richard > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > OK, I have found another code sequence which works. > > I had scattered a few DEBUG statements around sections of code which read > and write the start date/time value and noticed that where the problem > value appears, my procedure reads the Recording.Start_Time property lots of > times. > > Apart from any other consideration, this seemed a bit wasteful of processor > power so I changed the procedure to read the property value once into a > local variable and then use the local value for extracting Date, Hour, > Minute, Second and Time values. > > This has had the interesting side effect of avoiding the bug. See the code > snippet below (compared to the same sequence copied in my first message): > > 'Timer tab controls > 'DEBUG ix; ">=";; records[ix].Start_Time;; > Date(records[ix].Start_Time);; Time(records[ix].Start_Time) > 'DEBUG CFloat(records[ix].Start_Time);; > CFloat(Date(records[ix].Start_Time));; CFloat(Time(records[ix].Start_Time)) > StartTime = records[ix].Start_Time > LineRecord.StartDateChooser.Value = Date(StartTime) > LineRecord.StartDateBox.Value = Date(StartTime) > 'Do not trigger selected Change events > LineRecord.INC_autoset > LineRecord.HourTimeSet.Value = Hour(StartTime) > LineRecord.MinuteTimeset.Value = Minute(StartTime) > LineRecord.SecondTimeSet.value = Second(StartTime) > 'Re-enable selected Change events > LineRecord.DEC_autoset > LineRecord.StartTimeBox.Value = Time(StartTime) > 'LineRecord.StartTimeBox.Value = (records[ix].Start_Time) > > This just gets more and more interesting, but it is late now. I'll explore > further tomorrow. > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user It has happened again in the same code sequence but with a different date/time. The time should have been 21:00:00, but the Time() function reads it as 00:41:26, the same wrong value. I still think it must be something not quite right with my program rather than a problem with the Time() function. I have a trimmed down version of the project - all the original code is present, just some xcf files deleted from the img folder - which has some tell-tale DEBUG statements in the right place to show what works and what doesn't. Nevertheless it is still about 230kbytes. Is that too big to post here? Richard From serif at ...1870... Thu Mar 13 09:31:50 2008 From: serif at ...1870... (Mike Brett) Date: Thu, 13 Mar 2008 08:31:50 +0000 Subject: [Gambas-user] Newbie problem connecting to MySQL Message-ID: <47D8E676.4070402@...1870...> I'm literally just starting with Gambas and would appreciate guidance please. Context : Latest compiled version (1.0.19), yum'd onto Fedora 8 Aim: test project to create a connection to a localhost MySQL server Code as follows: MODMain module (this is set as start up class).... PUBLIC $Con AS NEW Connection PUBLIC PROCEDURE Connect() $Con.Close() $Con.Type = "mysql" $Con.Host = "localhost" $Con.Login = "blabla" $Con.Port = "3306" $Con.Name = "tradewaste" $Con.Password = "whatever" $Con.Open() END Module Main ...... PUBLIC SUB Main() Connect() FRMStart.Visible = True END FRMStart exists but has no controls on it yet. When I run this, I get "Unknown Identifier: Connect at line 4 in Main.module" Components gb, gb.db and gb.qt are used in the project. I expected to have to include a mysql component as well, but nothing suitable is offered for inclusion in the component list. I'm sure this is something *very* simple! Appreciate your time. Thanks. - Mike - From gambas at ...1... Thu Mar 13 11:56:37 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 13 Mar 2008 11:56:37 +0100 Subject: [Gambas-user] Release of Gambas 2.3 Message-ID: <200803131156.37814.gambas@...1...> Hi, This new release fixes a lot of bugs discovered since the last version. The main changes are: * The IDE now can make Debian and Ubuntu packages for component projects. * The IDE now automatically reopen the previously opened files of each project. * Spanish, russian and french translations were updated. * The interpreter now opens device files in non-blocking mode. * The MySQL database driver automatically retries a query when the connection with the server has been lost. There are two pending bugs: * A bug in Table.Type in the gb.db component. This bug needs some confirmation from the reporter. * When opening a project now, the property panel is sometimes incorrectly displayed. Here is the full ChangeLog: ------------------------------------------------------------------------------- [CONFIGURATION] * BUG: Pass the -fsigned-char option to gcc so that gambas compiles on architectures where char is unsigned by default. * BUG: Add support for libffi through pkg-config when available. * NEW: Now GB_COMPONENT_PKG_CONFIG() macro accept an optional warning message. * NEW: The TODO file was removed. Only the TODO file in /trunk is valid. [DEVELOPMENT ENVIRONMENT] * BUG: Fixes the automatic completion when a line has non-ASCII characters inside. * BUG: Fixed the crash when choosing a non-default stack size. * BUG: Replace points by dash in the name of packages generated by the IDE packager. * BUG: The code editor method combo-box is correctly updated now. * NEW: Support to make Debian packages for native Gambas components * NEW: English and french tips were updated. A new tip was added. * NEW: Files that were opened at project close are automatically reopened when the project is loaded again. * NEW: Updated russian translation * NEW: Updated french translation * NEW: Automatic completion is automatically inserted in all cases when pressing one of the following keys: '.','(','[','!'. * NEW: Spanish translation updated. [DATABASE MANAGER] * NEW: Updated russian translation [EXAMPLES] * BUG: Fixed the Gravity and the GameOfLife examples so that they do not use public form controls anymore. [INTERPRETER] * BUG: Val() now ignores thousand separators characters at the end of the number. * NEW: Opening a device file in direct mode (FOR READ/WRITE) is now automatically non blocking. * OPT: Lof() now only tries its different methods (ioctl and lseek) once. [INFORMER] * BUG: Closes opened shared libs on OpenBSD, otherwise size mismatch errors are raised on duplicated symbol names between components. [GB.DB.MYSQL] * BUG: Automatically retries a query when the client has been disconnected from the server. [GB.DEBUG] * BUG: The gb.debug component interface declaration was not 64-bits aware. [GB.EVAL] * BUG: The Highlight.Purge() method now correctly deals with non-ASCII characters. [GB.FORM] * BUG: TableView.Edit() does not raise a "read-only combo-box" error anymore. * NEW: The FileChooser bookmark list was redesigned. [GB.FORM.DIALOG] * BUG: Dialog buttons now are never cut. [GB.GTK] * BUG: Message boxes correctly display the text of their buttons now. * BUG: Cached drawing areas are correctly redrawn now. * BUG: Loading big images now works correctly. There is apparently a bug in the GTK+ image loader, and I found a workaround. * BUG: Removed the debugging messages. * BUG: The Font property management was fixed. * BUG: The icon text alignment was fixed in the IconView control. [GB.NET.CURL] * BUG: Use pkg-config utility now. [GB.QT] * BUG: Show() and Hide() methods are now strictly equivalent to the Visible property. This finally fixes the problem with the unability to insert an existing form into a project in the IDE. * BUG: The Open, and initial Move and Resize event of embedded forms are now always raised when you call the Show method or if you set the Visible property. Before, it was raised when the embedded form was actually shown. [GB.WEB] * NEW: Application.Protocol is a new property that allows to tell the component that the protocol is not necessarily "http". [GB.XML] * BUG: Fixes some linking problems. * BUG: Makes gb.xml.rpc install correctly. ------------------------------------------------------------------------------- Finally, I must apologize too, because I introduced an non-compatible change with previous 2.x versions, something that I should *never* do! I did that because I need it for my job, so don't use it yourself, unless you know what you do exactly. This change is the Application.Protocol property in the gb.web component. With this property, you can tell the component that you are not running through the "http" protocol, but, for example, the "https" protocol. Normally, you don't need that. But if you are behind a proxy that rewrites https queries to http, but can't rewrite links in HTML pages from http:// to https://, this can be useful! Provided, of course, that, as I did, you modify your http server so that it can pass to CGI scripts a specific HTTP header created by the proxy to tell that https is in use... But this is another story! :-) Enjoy this new version. Regards, -- Benoit Minisini From kari.laine at ...1400... Thu Mar 13 12:22:31 2008 From: kari.laine at ...1400... (Kari Laine) Date: Thu, 13 Mar 2008 13:22:31 +0200 Subject: [Gambas-user] Newbie problem connecting to MySQL In-Reply-To: <47D8E676.4070402@...1870...> References: <47D8E676.4070402@...1870...> Message-ID: <47D90E77.4030702@...1400...> Mike Brett kirjoitti: > I'm literally just starting with Gambas and would appreciate guidance > please. > > Context : Latest compiled version (1.0.19), yum'd onto Fedora 8 > > Aim: test project to create a connection to a localhost MySQL server > > Code as follows: > MODMain module (this is set as start up class).... > PUBLIC $Con AS NEW Connection > PUBLIC PROCEDURE Connect() > $Con.Close() > $Con.Type = "mysql" > $Con.Host = "localhost" > $Con.Login = "blabla" > $Con.Port = "3306" > $Con.Name = "tradewaste" > $Con.Password = "whatever" > $Con.Open() > END > > Module Main ...... > PUBLIC SUB Main() > Connect() > FRMStart.Visible = True > END > > FRMStart exists but has no controls on it yet. > > When I run this, I get "Unknown Identifier: Connect at line 4 in > Main.module" How about changing Connect() to MODMain.Connect() ? Best Regards Kari From david_villalobos_c at ...43... Thu Mar 13 13:26:19 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 13 Mar 2008 05:26:19 -0700 (PDT) Subject: [Gambas-user] Newbie problem connecting to MySQL Message-ID: <16423.19400.qm@...1667...> mmmm, every seems OK for my, can you send your proyecto???? Regards, David ----- Original Message ---- From: Mike Brett To: gambas-user at lists.sourceforge.net Sent: Thursday, March 13, 2008 2:31:50 AM Subject: [Gambas-user] Newbie problem connecting to MySQL I'm literally just starting with Gambas and would appreciate guidance please. Context : Latest compiled version (1.0.19), yum'd onto Fedora 8 Aim: test project to create a connection to a localhost MySQL server Code as follows: MODMain module (this is set as start up class).... PUBLIC $Con AS NEW Connection PUBLIC PROCEDURE Connect() $Con.Close() $Con.Type = "mysql" $Con.Host = "localhost" $Con.Login = "blabla" $Con.Port = "3306" $Con.Name = "tradewaste" $Con.Password = "whatever" $Con.Open() END Module Main ...... PUBLIC SUB Main() Connect() FRMStart.Visible = True END FRMStart exists but has no controls on it yet. When I run this, I get "Unknown Identifier: Connect at line 4 in Main.module" Components gb, gb.db and gb.qt are used in the project. I expected to have to include a mysql component as well, but nothing suitable is offered for inclusion in the component list. I'm sure this is something *very* simple! Appreciate your time. Thanks. - Mike - ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping From jaap_cramer at ...67... Thu Mar 13 14:02:35 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 13 Mar 2008 14:02:35 +0100 Subject: [Gambas-user] Strange: TextEdit freezes Message-ID: Hi All I wondered if you could reproduce this bug I send in a week ago? grt, Jaap ---------------------------------------- > From: jaap_cramer at ...67... > To: gambas-user at lists.sourceforge.net > Subject: Strange: TextEdit freezes > Date: Fri, 7 Mar 2008 15:01:29 +0100 > > > Hi > > I have a problem. Some hebrew text freezes in a TextEditBox in combination with font-tags. No freeze without tags, but it freezes only sometimes. It is possible to display some text with tags without a problem. I added an example-project to recreate the bug, with further explaination. > Somebody an idea how to solve? > > Jaap > > _________________________________________________________________ > Bekijk Yes-R's real life soap op MSN Video! > http://video.msn.com/video.aspx?mkt=nl-nl&tab=m1192527562294&vid=8aff5b76-b78d-4b55-8b64-ef7e1d73aab2&playlist=videoByUuids:uuids:50b732c2-c105-41e9-adf0-36bd627d4eaa,0813da8c-031b-423f-a79d-35d925aee805,5cce447e-948d-43af-9862-45bb6bb9d6d8,6a39138c-f562-4254-be70-9d93343650f8,f9b8d78f-05a4-4c74-8e4b-28d20a4037ab&from=NLNL_Yes-R _________________________________________________________________ Nieuw: Windows Live Messenger 2008! Gratis downloaden http://get.live.com/messenger -------------- next part -------------- A non-text attachment was scrubbed... Name: freeze-0.0.1.tar.gz Type: application/x-gzip Size: 8829 bytes Desc: not available URL: From gambas at ...1... Thu Mar 13 16:43:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 13 Mar 2008 16:43:21 +0100 Subject: [Gambas-user] Strange: TextEdit freezes In-Reply-To: References: Message-ID: <200803131643.21308.gambas@...1...> On jeudi 13 mars 2008, Jaap Cramer wrote: > Hi All > > I wondered if you could reproduce this bug I send in a week ago? > > grt, > Jaap > I didn't test, but I think that a freeze is a bug in the QT right-to-left language management, so I can't do anything... Regards, -- Benoit Minisini From jaap_cramer at ...67... Thu Mar 13 16:50:08 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 13 Mar 2008 16:50:08 +0100 Subject: [Gambas-user] bug in string class? In-Reply-To: <200803131156.37814.gambas@...1...> References: <200803131156.37814.gambas@...1...> Message-ID: Hi all, I think I have found a little bug in the StringClass When I do Mid("", 0, 1) the result is "" When I do String.Mid("", 0, 1) I got an error "bad argument" greets, Jaap _________________________________________________________________ Probeer Live Search: de zoekmachine van de makers van MSN! http://www.live.com/?searchOnly=true From jaap_cramer at ...67... Thu Mar 13 17:57:14 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 13 Mar 2008 17:57:14 +0100 Subject: [Gambas-user] Strange: TextEdit freezes In-Reply-To: <200803131643.21308.gambas@...1...> References: <200803131643.21308.gambas@...1...> Message-ID: Hm... It seems it has to do something with the tags. who handles them? who creates the 'qrichtext'? QT or Gambas? And where should I post a bug with QT; who is responsible for the TextEdit-component? Is it a Gambas-component or a QT thing? kind regards :) Jaap ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Thu, 13 Mar 2008 16:43:21 +0100 > Subject: Re: [Gambas-user] Strange: TextEdit freezes > > On jeudi 13 mars 2008, Jaap Cramer wrote: >> Hi All >> >> I wondered if you could reproduce this bug I send in a week ago? >> >> grt, >> Jaap >> > > I didn't test, but I think that a freeze is a bug in the QT right-to-left > language management, so I can't do anything... > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Jouw nieuws en entertainment, vind je op MSN.nl! http://nl.msn.com/ From gambas at ...1... Thu Mar 13 18:00:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 13 Mar 2008 18:00:10 +0100 Subject: [Gambas-user] bug in string class? In-Reply-To: References: <200803131156.37814.gambas@...1...> Message-ID: <200803131800.10617.gambas@...1...> On jeudi 13 mars 2008, Jaap Cramer wrote: > Hi all, > > I think I have found a little bug in the StringClass > > When I do Mid("", 0, 1) the result is "" > When I do String.Mid("", 0, 1) I got an error "bad argument" > > greets, > Jaap The bug is in Mid$(), that should return the same error. -- Benoit Minisini From gambas at ...1... Thu Mar 13 18:01:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 13 Mar 2008 18:01:39 +0100 Subject: [Gambas-user] Strange: TextEdit freezes In-Reply-To: References: <200803131643.21308.gambas@...1...> Message-ID: <200803131801.39259.gambas@...1...> On jeudi 13 mars 2008, Jaap Cramer wrote: > Hm... > > It seems it has to do something with the tags. who handles them? who > creates the 'qrichtext'? QT or Gambas? And where should I post a bug with > QT; who is responsible for the TextEdit-component? Is it a Gambas-component > or a QT thing? > > kind regards :) > > Jaap All widget contents is managed by Qt, so you should see with their developers. I think it could be related to the font you use. What happens if you try another hebrew font? It can be worse, as Qt does not necessarily use the font you specify if it needs to display unicode characters not present in this font. Regards, -- Benoit Minisini From serif at ...1870... Thu Mar 13 23:04:04 2008 From: serif at ...1870... (Mike Brett) Date: Thu, 13 Mar 2008 22:04:04 +0000 Subject: [Gambas-user] [SOLVED: Newbie problem connecting to MySQL] Message-ID: <47D9A4D4.4040208@...1870...> -------- Original Message -------- Subject: Newbie problem connecting to MySQL Date: Thu, 13 Mar 2008 08:31:50 +0000 From: Mike Brett All resolved now: 1. I had set MODMain module as Start up module, should have been the Main module 2. The call to the connect procedure should have been MODMain.Connect not Connect() (thanks to Kari and David!) - Mike - From robert.c.rowe at ...626... Fri Mar 14 00:33:01 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Thu, 13 Mar 2008 19:33:01 -0400 Subject: [Gambas-user] Syntax highlighting Message-ID: <47D9B9AD.1030506@...626...> I'm not certain if this is intentional or a bug but the AND and OR keywords do not display as bold in the editor window. Robert Rowe From richard.j.walker at ...247... Fri Mar 14 00:53:52 2008 From: richard.j.walker at ...247... (Richard) Date: Thu, 13 Mar 2008 23:53:52 +0000 Subject: [Gambas-user] More Date woes Message-ID: <200803132353.52978.richard.j.walker@...247...> I have hit another snag with date handling while working on the problem referred to above (see "Strange problem with Date Time and ValueBox"). I use long form dates. I have done it for years. I like it that way. Gambas2 does not provide a mechanism (that I can find) to specify a default date format. When I set a ValueBox widget to display a date it is Gambas that decides whether it should be 13/03/2008 or 13/03/08 which seems to be governed by how I set the value. If I use: StartDateBox.value = Now then I get a 4 digit year. If I use: StartDateBox2.Value = Date(Now) then I get a 2 digit year. Does anyone know of a way to define a format for a ValueBox which will work for both input and display? Richard From maillists.gurulounge at ...626... Fri Mar 14 03:53:49 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Thu, 13 Mar 2008 19:53:49 -0700 Subject: [Gambas-user] More Date woes In-Reply-To: <200803132353.52978.richard.j.walker@...247...> References: <200803132353.52978.richard.j.walker@...247...> Message-ID: <1205463229.20750.3.camel@...1853...> As far as displaying is concerned I use the following in one of my projects: lblClock.Text = Format(Now, "ddd (mm/dd/yyyy) - h:nn:ss") The Format function takes a number of params specified here: http://gambasdoc.org/help/lang/format As far as input. That topic came up not too long ago in the mailing list. I don't know of a way to specifiy the input format for a textbox other than do write a module yourself. Jeff On Thu, 2008-03-13 at 23:53 +0000, Richard wrote: > I have hit another snag with date handling while working on the problem > referred to above (see "Strange problem with Date Time and ValueBox"). > > I use long form dates. I have done it for years. I like it that way. Gambas2 > does not provide a mechanism (that I can find) to specify a default date > format. When I set a ValueBox widget to display a date it is Gambas that > decides whether it should be 13/03/2008 or 13/03/08 which seems to be > governed by how I set the value. > > If I use: > > StartDateBox.value = Now > > then I get a 4 digit year. > > If I use: > > StartDateBox2.Value = Date(Now) > > then I get a 2 digit year. > > Does anyone know of a way to define a format for a ValueBox which will work > for both input and display? > > Richard > From sbungay at ...981... Fri Mar 14 04:51:22 2008 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 13 Mar 2008 23:51:22 -0400 Subject: [Gambas-user] Property question.... Message-ID: <47D9F63A.80004@...981...> Given the following.... PUBLIC mRecordSet AS Result PROPERTY RecordSet AS Result PRIVATE FUNCTION RecordSet_Read() AS Result RETURN (mRecordSet) ' This will probably never get used ' access mRecordSet directly. END PRIVATE SUB RecordSet_Write(Value AS Result) IF NOT IsNull(Value) THEN IF Value.Count > 0 THEN mRecordSet = Value PopulateForm END IF END IF END . . . ' Only gets called when Property RecordSet is written to... Private Sub PopulateForm() ' Code to populate the form from data in mRecordSet goes here END An assignment of a result set to property 'RecordSet' will yield "Unknown identifier: RecordSet at line [line number] in [formname].class. Why can I not use a property to store a result? I can code around this, but being able to do it lets me use the properties to make things happen when result sets get assigned. From jbskaggs at ...1871... Fri Mar 14 05:46:45 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Thu, 13 Mar 2008 21:46:45 -0700 (PDT) Subject: [Gambas-user] How to program a restart function? Message-ID: <16041400.post@...1379...> I have a program I wrote skinnable theme options for. But I need to have the program either restart or reload all the grphx files other wise my grphx don't refresh. What is the simplest way to do this besides having the user end the program and manually restart? JB Skaggs -- View this message in context: http://www.nabble.com/How-to-program-a-restart-function--tp16041400p16041400.html Sent from the gambas-user mailing list archive at Nabble.com. From smccuan at ...626... Fri Mar 14 06:01:30 2008 From: smccuan at ...626... (Shawn McCuan) Date: Fri, 14 Mar 2008 01:01:30 -0400 Subject: [Gambas-user] How to program a restart function? In-Reply-To: <16041400.post@...1379...> References: <16041400.post@...1379...> Message-ID: Seems to me that you would have to have an extra helper application that would close the real app and the open it up again. On Fri, Mar 14, 2008 at 12:46 AM, jbskaggs wrote: > > I have a program I wrote skinnable theme options for. But I need to have > the > program either restart or reload all the grphx files other wise my grphx > don't refresh. > > What is the simplest way to do this besides having the user end the > program > and manually restart? > > JB Skaggs > -- > View this message in context: > http://www.nabble.com/How-to-program-a-restart-function--tp16041400p16041400.html > Sent from the gambas-user mailing list archive at Nabble.com > . > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Shawn McCuan smccuan at ...626... Support a national vote in the US! http://en.wikipedia.org/wiki/National_Popular_Vote_Interstate_Compact http://www.nationalpopularvote.com From ariefbayu at ...626... Fri Mar 14 06:27:44 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Fri, 14 Mar 2008 12:27:44 +0700 Subject: [Gambas-user] How to program a restart function? In-Reply-To: <16041400.post@...1379...> References: <16041400.post@...1379...> Message-ID: <976ad9050803132227o22e96e8cld6d985bcdca26d01@...627...> I don't know if this help much. Maybe you could use a module as start program. Then implement the `restart` in that module to close all opened form and reopen it again. On Fri, Mar 14, 2008 at 11:46 AM, jbskaggs wrote: > > I have a program I wrote skinnable theme options for. But I need to have > the > program either restart or reload all the grphx files other wise my grphx > don't refresh. > > What is the simplest way to do this besides having the user end the > program > and manually restart? > > JB Skaggs > -- > View this message in context: > http://www.nabble.com/How-to-program-a-restart-function--tp16041400p16041400.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From jbskaggs at ...1871... Fri Mar 14 06:49:52 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Thu, 13 Mar 2008 22:49:52 -0700 (PDT) Subject: [Gambas-user] How to program a restart function? In-Reply-To: <16041400.post@...1379...> References: <16041400.post@...1379...> Message-ID: <16044747.post@...1379...> Thanks to both of you for that advice. I think I may have asked the wrong question. I got the restart to work (thanks) when I was still running i the console. BUt when I compiled to .exe my skinning failed. Or rather when I made the program exe then the skinning only partially worked- the pictures in picturebox and the images (or pictures) in Menus did not update when the program restarts. It updated all my sounds, and my drawingarea images but nothing else when in exe. How do I make the program update those files? Currently the way I am doing it is I have different theme dir's in my relative path. The program will then delete the grphx and sound files and replace them with the new files from the theme directory. (same files names diff content) here is the code to do so (Remember I am a novice) PUBLIC SUB B2cute_Click() 'copy portrait gifs textlabel1.Show bcloseme.Hide bexit.Hide b2cute.hide picturebox2.Hide bfantasy.Hide KILL application.path & "/0.gif" COPY application.path & "/themes/2cute/grfx/0.gif" TO application.path & "/0.gif" WAIT 0.5 REPEAT WAIT 0.1 fff=fff+1 textlabel1.Text=application.path & "/themes/2cute/grfx/"& fff &".gif" KILL application.path & "/" & fff & ".gif" COPY application.path & "/themes/2cute/grfx/"& fff &".gif" TO application.path & "/"& fff &".gif" UNTIL fff=44 'copy icons fff=0 REPEAT WAIT 0.1 fff=fff+1 textlabel1.Text=application.path & "/themes/2cute/icons/"& fff &".png" KILL application.path & "/"& fff &".png" COPY application.path & "/themes/2cute/icons/"& fff &".png" TO application.path & "/"& fff &".png" UNTIL fff=16 'COPY music textlabel1.Text=application.path & "/themes/2cute/grfx/10.mp3" KILL application.path & "/10.mp3" COPY application.path & "/themes/2cute/music/10.mp3" TO application.path & "/10.mp3" ' sounds textlabel2.Show button1.Show textlabel1.Text="All finished with no errors." END And I thought they would load these new images but it did not reload them all. So what do I need to do to get the controls to reload the files? Thanks JB Skaggs jbskaggs wrote: > > I have a program I wrote skinnable theme options for. But I need to have > the program either restart or reload all the grphx files other wise my > grphx don't refresh. > > What is the simplest way to do this besides having the user end the > program and manually restart? > > JB Skaggs > -- View this message in context: http://www.nabble.com/How-to-program-a-restart-function--tp16041400p16044747.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Mar 14 10:01:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 14 Mar 2008 10:01:12 +0100 Subject: [Gambas-user] More Date woes In-Reply-To: <200803132353.52978.richard.j.walker@...247...> References: <200803132353.52978.richard.j.walker@...247...> Message-ID: <200803141001.12479.gambas@...1...> On vendredi 14 mars 2008, Richard wrote: > I have hit another snag with date handling while working on the problem > referred to above (see "Strange problem with Date Time and ValueBox"). > > I use long form dates. I have done it for years. I like it that way. > Gambas2 does not provide a mechanism (that I can find) to specify a default > date format. When I set a ValueBox widget to display a date it is Gambas > that decides whether it should be 13/03/2008 or 13/03/08 which seems to be > governed by how I set the value. > > If I use: > > StartDateBox.value = Now > > then I get a 4 digit year. > > If I use: > > StartDateBox2.Value = Date(Now) > > then I get a 2 digit year. > This is a bug in ValueBox that forgets to reformat its contents after the Value property is set. > Does anyone know of a way to define a format for a ValueBox which will work > for both input and display? > > Richard > There is no way at the moment to change the format used for displaying the ValueBox contents. Regards, -- Benoit Minisini From gambas at ...1... Fri Mar 14 10:03:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 14 Mar 2008 10:03:11 +0100 Subject: [Gambas-user] Property question.... In-Reply-To: <47D9F63A.80004@...981...> References: <47D9F63A.80004@...981...> Message-ID: <200803141003.11727.gambas@...1...> On vendredi 14 mars 2008, Stephen Bungay wrote: > Given the following.... > > PUBLIC mRecordSet AS Result > > PROPERTY RecordSet AS Result > PRIVATE FUNCTION RecordSet_Read() AS Result > RETURN (mRecordSet) ' This will probably never get used > ' access mRecordSet directly. > END > > PRIVATE SUB RecordSet_Write(Value AS Result) > IF NOT IsNull(Value) THEN > IF Value.Count > 0 THEN > mRecordSet = Value > PopulateForm > END IF > END IF > END > . > . > . > ' Only gets called when Property RecordSet is written to... > Private Sub PopulateForm() > ' Code to populate the form from data in mRecordSet goes here > END > > > An assignment of a result set to property 'RecordSet' will yield > "Unknown identifier: RecordSet at line [line number] in [formname].class. This is a compiler error. Please explain how you can get it at runtime while assigning the property! -- Benoit Minisini From gambas at ...1... Fri Mar 14 10:04:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 14 Mar 2008 10:04:13 +0100 Subject: [Gambas-user] Syntax highlighting In-Reply-To: <47D9B9AD.1030506@...626...> References: <47D9B9AD.1030506@...626...> Message-ID: <200803141004.13277.gambas@...1...> On vendredi 14 mars 2008, Robert Rowe wrote: > I'm not certain if this is intentional or a bug but the AND and OR > keywords do not display as bold in the editor window. > > Robert Rowe > This is intentional. Keywords use a bold face, but operators do not. -- Benoit Minisini From adjie_hea at ...1541... Fri Mar 14 12:27:49 2008 From: adjie_hea at ...1541... (adjie) Date: Fri, 14 Mar 2008 18:27:49 +0700 Subject: [Gambas-user] Can't connect to xampp.mysql Message-ID: <47DA6135.9060102@...1541...> Hi all, I'm just trying to install gambas2-2.0.0 on ubuntu from the source. I have 2 question to ask. 1. In the end of ./configure process, shown gb.qte disabled. But I can still continue make and make install. What I'm missing ? I have isntalled all the dependency as on the installation guide. 2. I was installing mysql using xampp. I can connect to mysql using phpMyAdmin. But I can't connect using gambas. It says "Cannot open database: Can't connect to local MySQL server through socket'/var/run/mysqld/mysqld.sock'(2)". In xampp the socket is in "/opt/lampp/var/mysql/mysql.sock". I had experience this with MySQL Administrator. In MySQL Administrator there is a configuration to change the "Connect Using Socket File...". Where is it in gambas ? Thanks, adjie From steven at ...1652... Fri Mar 14 13:16:29 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 14 Mar 2008 13:16:29 +0100 Subject: [Gambas-user] Menus Message-ID: <1205496989.10576.76.camel@...1816...> Hi, I studied the docs, but they are really very limited on this point (Menus). Allso I cannot find any examples, who are doing what I need. I can add menu entries dynamically from program, whitout a problem. I can, later, from some form, add items in the same sub-menu. But I cannot understand how to delete them. I have (on the other form) the name (i.e. text) of the menu. How to find it in the menu-tree and distroy it. As far as I found out, i can probably enumerate all menus fo find him, and then do a .delete on it. But that seems a bit complicated. Is there a "simple" way ? Thanks, Steven From sbungay at ...981... Fri Mar 14 14:48:55 2008 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 14 Mar 2008 09:48:55 -0400 Subject: [Gambas-user] Property question.... In-Reply-To: <200803141003.11727.gambas@...1...> References: <47D9F63A.80004@...981...> <200803141003.11727.gambas@...1...> Message-ID: <47DA8247.6040106@...981...> Benoit Minisini wrote: > On vendredi 14 mars 2008, Stephen Bungay wrote: >> Given the following.... >> >> PUBLIC mRecordSet AS Result >> >> PROPERTY RecordSet AS Result >> PRIVATE FUNCTION RecordSet_Read() AS Result >> RETURN (mRecordSet) ' This will probably never get used >> ' access mRecordSet directly. >> END >> >> PRIVATE SUB RecordSet_Write(Value AS Result) >> IF NOT IsNull(Value) THEN >> IF Value.Count > 0 THEN >> mRecordSet = Value >> PopulateForm >> END IF >> END IF >> END >> . >> . >> . >> ' Only gets called when Property RecordSet is written to... >> Private Sub PopulateForm() >> ' Code to populate the form from data in mRecordSet goes here >> END >> >> >> An assignment of a result set to property 'RecordSet' will yield >> "Unknown identifier: RecordSet at line [line number] in [formname].class. > > This is a compiler error. Please explain how you can get it at runtime while > assigning the property! > Yes the error is happening at compile time and is something I did not expect (i.e. since RecordSet is declared as a property it should be a 'known' identifier). From sbungay at ...981... Fri Mar 14 15:08:44 2008 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 14 Mar 2008 10:08:44 -0400 Subject: [Gambas-user] Property question.... In-Reply-To: <47DA8247.6040106@...981...> References: <47D9F63A.80004@...981...> <200803141003.11727.gambas@...1...> <47DA8247.6040106@...981...> Message-ID: <47DA86EC.3060008@...981...> Stephen Bungay wrote: > Benoit Minisini wrote: >> On vendredi 14 mars 2008, Stephen Bungay wrote: >>> Given the following.... >>> >>> PUBLIC mRecordSet AS Result >>> >>> PROPERTY RecordSet AS Result >>> PRIVATE FUNCTION RecordSet_Read() AS Result >>> RETURN (mRecordSet) ' This will probably never get used >>> ' access mRecordSet directly. >>> END >>> >>> PRIVATE SUB RecordSet_Write(Value AS Result) >>> IF NOT IsNull(Value) THEN >>> IF Value.Count > 0 THEN >>> mRecordSet = Value >>> PopulateForm >>> END IF >>> END IF >>> END >>> . >>> . >>> . >>> ' Only gets called when Property RecordSet is written to... >>> Private Sub PopulateForm() >>> ' Code to populate the form from data in mRecordSet goes here >>> END >>> >>> >>> An assignment of a result set to property 'RecordSet' will yield >>> "Unknown identifier: RecordSet at line [line number] in [formname].class. >> This is a compiler error. Please explain how you can get it at runtime while >> assigning the property! >> > > Yes the error is happening at compile time and is something I did not > expect (i.e. since RecordSet is declared as a property it should be a > 'known' identifier). So if we have a button on the form called Button1 and the intent of this action is to execute an SQL and assign the result to the property 'RecordSet', that is where the compiler presents the error. It appears that the compiler isn't aware of the Property. Private Sub Button1_Click() 'Compiler gives an 'unknown identifier' error on the next line. RecordSet = DatabaseConnection.Exec("Select * FROM MyTable") END > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...1652... Fri Mar 14 17:15:21 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 14 Mar 2008 17:15:21 +0100 Subject: [Gambas-user] How to program a restart function? In-Reply-To: <16044747.post@...1379...> References: <16041400.post@...1379...> <16044747.post@...1379...> Message-ID: <1205511321.10576.132.camel@...1816...> Hi, My 2 cents : Just before closing your app, you do SHELL"sleep 2;start command for your app &" Steven Le jeudi 13 mars 2008 ? 22:49 -0700, jbskaggs a ?crit : > Thanks to both of you for that advice. I think I may have asked the wrong > question. > > I got the restart to work (thanks) when I was still running i the console. > BUt when I compiled to .exe my skinning failed. Or rather when I made the > program exe then the skinning only partially worked- the pictures in > picturebox and the images (or pictures) in Menus did not update when the > program restarts. It updated all my sounds, and my drawingarea images but > nothing else when in exe. > > How do I make the program update those files? > > Currently the way I am doing it is I have different theme dir's in my > relative path. The program will then delete the grphx and sound files and > replace them with the new files from the theme directory. (same files names > diff content) > > here is the code to do so (Remember I am a novice) > > PUBLIC SUB B2cute_Click() > 'copy portrait gifs > textlabel1.Show > bcloseme.Hide > bexit.Hide > b2cute.hide > picturebox2.Hide > bfantasy.Hide > > > KILL application.path & "/0.gif" > COPY application.path & "/themes/2cute/grfx/0.gif" TO application.path & > "/0.gif" > WAIT 0.5 > > REPEAT > WAIT 0.1 > fff=fff+1 > textlabel1.Text=application.path & "/themes/2cute/grfx/"& fff &".gif" > KILL application.path & "/" & fff & ".gif" > COPY application.path & "/themes/2cute/grfx/"& fff &".gif" TO > application.path & "/"& fff &".gif" > UNTIL fff=44 > > > 'copy icons > fff=0 > REPEAT > WAIT 0.1 > fff=fff+1 > textlabel1.Text=application.path & "/themes/2cute/icons/"& fff &".png" > KILL application.path & "/"& fff &".png" > COPY application.path & "/themes/2cute/icons/"& fff &".png" TO > application.path & "/"& fff &".png" > UNTIL fff=16 > > 'COPY music > textlabel1.Text=application.path & "/themes/2cute/grfx/10.mp3" > KILL application.path & "/10.mp3" > COPY application.path & "/themes/2cute/music/10.mp3" TO application.path & > "/10.mp3" > > ' sounds > textlabel2.Show > button1.Show > textlabel1.Text="All finished with no errors." > END > > > > > And I thought they would load these new images but it did not reload them > all. > > So what do I need to do to get the controls to reload the files? > > Thanks > JB Skaggs > > > jbskaggs wrote: > > > > I have a program I wrote skinnable theme options for. But I need to have > > the program either restart or reload all the grphx files other wise my > > grphx don't refresh. > > > > What is the simplest way to do this besides having the user end the > > program and manually restart? > > > > JB Skaggs > > > From m0e.lnx at ...626... Fri Mar 14 17:19:07 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 14 Mar 2008 11:19:07 -0500 Subject: [Gambas-user] Upgrade to gambas2-2.3? Message-ID: <1f1e8c1b0803140919n4ba93b41m80e259c12c0c8f7@...627...> I notice there is a lot of development going on with the gambas project itself.... I'm using version 2.0 and wondering if I can safely upgrade to a later version (2.3 right now) without breaking compatibility. Will my users have to upgrade their runtime package to run my applications? Will my code work still in the new versions? or will this be like the transition from gambas1 to gambas2? Please suggest Regads, M0E From david_villalobos_c at ...43... Fri Mar 14 17:27:04 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 14 Mar 2008 09:27:04 -0700 (PDT) Subject: [Gambas-user] Upgrade to gambas2-2.3? Message-ID: <79568.65881.qm@...1678...> I notice there is a lot of development going on with the gambas project itself.... I'm using version 2.0 and wondering if I can safely upgrade to a later version (2.3 right now) without breaking compatibility. Will my users have to upgrade their runtime package to run my applications? -->>>> I think Yes Will my code work still in the new versions? or will this be like the -->>> Everything should work OK, just recompile.... transition from gambas1 to gambas2? Please suggest Regads, M0E ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From leonardo at ...1237... Fri Mar 14 17:44:33 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 14 Mar 2008 17:44:33 +0100 Subject: [Gambas-user] Menus In-Reply-To: <1205496989.10576.76.camel@...1816...> References: <1205496989.10576.76.camel@...1816...> Message-ID: <47DAAB71.9010006@...1237...> You could simply set the visible flag on false, do you really need to destroy it? -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From leonardo at ...1237... Fri Mar 14 17:48:49 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 14 Mar 2008 17:48:49 +0100 Subject: [Gambas-user] Upgrade to gambas2-2.3? In-Reply-To: <79568.65881.qm@...1678...> References: <79568.65881.qm@...1678...> Message-ID: <47DAAC71.5070705@...1237...> During the jumps between intermediate versions, bug are corrected and new features are implemented. If you use some things thar are not involved in any change, you can upgrade without problem. But if you used a feature that has been corrected in something or has been modified, you have to recompile your projects. Check the changelog and look for any feature regarding your projects. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From m0e.lnx at ...626... Fri Mar 14 18:01:10 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 14 Mar 2008 12:01:10 -0500 Subject: [Gambas-user] Upgrade to gambas2-2.3? In-Reply-To: <47DAAC71.5070705@...1237...> References: <79568.65881.qm@...1678...> <47DAAC71.5070705@...1237...> Message-ID: <1f1e8c1b0803141001l46efb678q3df1c5521c547172@...627...> Ok.. Thanks guys... I will upgrade then On Fri, Mar 14, 2008 at 11:48 AM, Leonardo Miliani wrote: > During the jumps between intermediate versions, bug are corrected and > new features are implemented. > If you use some things thar are not involved in any change, you can > upgrade without problem. But if you used a feature that has been > corrected in something or has been modified, you have to recompile your > projects. > > Check the changelog and look for any feature regarding your projects. > > -- > Ciao. > Leo. > > Web: www.leonardomiliani.com > E-mail: leonardo at ...1237... > > Co-fondatore di Gambas-it.org: www.gambas-it.org > (il sito italiano dedicato alla comunit? di Gambas) > > Scegli software opensource - Choose opensource software > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...1652... Fri Mar 14 18:18:20 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 14 Mar 2008 18:18:20 +0100 Subject: [Gambas-user] Menus In-Reply-To: <47DAAB71.9010006@...1237...> References: <1205496989.10576.76.camel@...1816...> <47DAAB71.9010006@...1237...> Message-ID: <1205515100.26690.1.camel@...1816...> Yes, I have to It's a constantly changing list of menus, adapted to the way a user works. And, making them invisible does not change the problem of adressing them. Steven Le vendredi 14 mars 2008 ? 17:44 +0100, Leonardo Miliani a ?crit : > You could simply set the visible flag on false, do you really need to > destroy it? > From richard.j.walker at ...247... Fri Mar 14 18:44:02 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 14 Mar 2008 17:44:02 +0000 Subject: [Gambas-user] More Date woes In-Reply-To: <200803132353.52978.richard.j.walker@...247...> References: <200803132353.52978.richard.j.walker@...247...> Message-ID: <200803141744.03018.richard.j.walker@...247...> Jeffrey, thanks for the reminder on Format/Format$. I don't think I have used it anywhere in the current version of my program. I may have to go back to it, or be more careful in how I derive the Date values I display in ValueBox widgets. Benoit, perhaps I can do something useful if I study the ValueBox component. I learned a little bit from debugging an early version of DateBox and TimeBox and I have dared to tweak the DateChooser control to vary the format of the month name in the combo box depending on the width of the control. The tweak works well in English where full month names have well defined 3 letter short forms, and I use digits where even 3 letters is too long. If anyone is interested, the code is a simple form resize handler which can be added to the end of gambas/comp/src/gb.form/FCalendar.class. Here it is: PUBLIC SUB Form_Resize() DIM mth AS Integer DIM mth_name_max_len, mth_name_len, n, cboxW AS Integer DIM mth_format AS String 'Get rid of all combo box strings cmbMonth.Clear 'First find out the longest full month name ' The (-20) adjustment to width is an attempt to compensate for the ' inclusion of the drop down button in the reported width of the control. cboxW = cmbMonth.Width - 20 'Test for 4, 3 and 2 format characters ("m") FOR n = 4 TO 2 STEP -1 mth_name_max_len = 0 mth_format = String$(n, "m") 'Check all month names FOR mth = 1 TO 12 mth_name_len = cmbMonth.Font.Width(DConv(Format(Date(1972, mth, 1), mth_format))) IF mth_name_len > mth_name_max_len THEN mth_name_max_len = mth_name_len ENDIF NEXT 'Next find out if the month name will fit the combo box IF mth_name_max_len <= cboxW THEN FOR mth = 1 TO 12 cmbMonth.Add(DConv(Format(Date(1972, mth, 1), mth_format))) NEXT BREAK ENDIF NEXT END Richard From richard.j.walker at ...247... Fri Mar 14 18:50:36 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 14 Mar 2008 17:50:36 +0000 Subject: [Gambas-user] Can't connect to xampp.mysql In-Reply-To: <47DA6135.9060102@...1541...> References: <47DA6135.9060102@...1541...> Message-ID: <200803141750.36213.richard.j.walker@...247...> On Friday 14 March 2008 11:27:49 adjie wrote: > Hi all, > I'm just trying to install gambas2-2.0.0 on ubuntu from the source. I > have 2 question to ask. > 1. In the end of ./configure process, shown gb.qte disabled. But I can > still continue make and make install. What I'm missing ? I have > isntalled all the dependency as on the installation guide. Just don't worry about it. This is perfectly normal as the gb.qte extensions are for those who have the necessary envronment for writing QT embedded applications. I believe this is for things like, for example, phones. From gambas at ...1... Fri Mar 14 21:18:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 14 Mar 2008 21:18:01 +0100 Subject: [Gambas-user] More Date woes In-Reply-To: <200803141744.03018.richard.j.walker@...247...> References: <200803132353.52978.richard.j.walker@...247...> <200803141744.03018.richard.j.walker@...247...> Message-ID: <200803142118.01287.gambas@...1...> On vendredi 14 mars 2008, Richard wrote: > Jeffrey, thanks for the reminder on Format/Format$. I don't think I have > used it anywhere in the current version of my program. I may have to go > back to it, or be more careful in how I derive the Date values I display in > ValueBox widgets. > > > Benoit, perhaps I can do something useful if I study the ValueBox > component. I learned a little bit from debugging an early version of > DateBox and TimeBox and I have dared to tweak the DateChooser control to > vary the format of the month name in the combo box depending on the width > of the control. > > The tweak works well in English where full month names have well defined 3 > letter short forms, and I use digits where even 3 letters is too long. If you do something, it must work for any language and date format in the world! :-) -- Benoit Minisini From gambas at ...1... Fri Mar 14 21:19:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 14 Mar 2008 21:19:41 +0100 Subject: [Gambas-user] Property question.... In-Reply-To: <47DA86EC.3060008@...981...> References: <47D9F63A.80004@...981...> <47DA8247.6040106@...981...> <47DA86EC.3060008@...981...> Message-ID: <200803142119.41817.gambas@...1...> On vendredi 14 mars 2008, Stephen Bungay wrote: > Stephen Bungay wrote: > > Benoit Minisini wrote: > >> On vendredi 14 mars 2008, Stephen Bungay wrote: > >>> Given the following.... > >>> > >>> PUBLIC mRecordSet AS Result > >>> > >>> PROPERTY RecordSet AS Result > >>> PRIVATE FUNCTION RecordSet_Read() AS Result > >>> RETURN (mRecordSet) ' This will probably never get used > >>> ' access mRecordSet directly. > >>> END > >>> > >>> PRIVATE SUB RecordSet_Write(Value AS Result) > >>> IF NOT IsNull(Value) THEN > >>> IF Value.Count > 0 THEN > >>> mRecordSet = Value > >>> PopulateForm > >>> END IF > >>> END IF > >>> END > >>> . > >>> . > >>> . > >>> ' Only gets called when Property RecordSet is written to... > >>> Private Sub PopulateForm() > >>> ' Code to populate the form from data in mRecordSet goes here > >>> END > >>> > >>> > >>> An assignment of a result set to property 'RecordSet' will yield > >>> "Unknown identifier: RecordSet at line [line number] in > >>> [formname].class. > >> > >> This is a compiler error. Please explain how you can get it at runtime > >> while assigning the property! > > > > Yes the error is happening at compile time and is something I did not > > expect (i.e. since RecordSet is declared as a property it should be a > > 'known' identifier). > > So if we have a button on the form called Button1 and the intent of > this action is to execute an SQL and assign the result to the property > 'RecordSet', that is where the compiler presents the error. It appears > that the compiler isn't aware of the Property. > > Private Sub Button1_Click() > 'Compiler gives an 'unknown identifier' error on the next line. > RecordSet = DatabaseConnection.Exec("Select * FROM MyTable") > END > You must write ME.Recordset at the moment. I think this is a lack in the compiler that cannot compile properties without ME, whereas it could with methods and variables. Regards, -- Benoit Minisini From gambas at ...1... Fri Mar 14 21:20:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 14 Mar 2008 21:20:58 +0100 Subject: [Gambas-user] Menus In-Reply-To: <1205515100.26690.1.camel@...1816...> References: <1205496989.10576.76.camel@...1816...> <47DAAB71.9010006@...1237...> <1205515100.26690.1.camel@...1816...> Message-ID: <200803142120.58169.gambas@...1...> On vendredi 14 mars 2008, Steven Lobbezoo wrote: > Yes, I have to > > It's a constantly changing list of menus, adapted to the way a user > works. > And, making them invisible does not change the problem of adressing > them. > > Steven > If you want to destroy a menu later, just keep a reference on it in a variable. Can't you? -- Benoit Minisini From gambas at ...1... Fri Mar 14 21:23:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 14 Mar 2008 21:23:46 +0100 Subject: [Gambas-user] Upgrade to gambas2-2.3? In-Reply-To: <1f1e8c1b0803140919n4ba93b41m80e259c12c0c8f7@...627...> References: <1f1e8c1b0803140919n4ba93b41m80e259c12c0c8f7@...627...> Message-ID: <200803142123.46716.gambas@...1...> On vendredi 14 mars 2008, M0E Lnx wrote: > I notice there is a lot of development going on with the gambas > project itself.... I'm using version 2.0 and wondering if I can safely > upgrade to a later version (2.3 right now) without breaking > compatibility. > > Will my users have to upgrade their runtime package to run my applications? > Will my code work still in the new versions? or will this be like the > transition from gambas1 to gambas2? > > Please suggest > > Regads, M0E > 2.x are bug fixes version for the 2.0. There is no new uncompatible feature added. I.e. a program written with the 2.3 works with the 2.0, unless it is related to a bug fix. The only exception at the moment, as I wrote in the 2.3 release message, is the Application.Protocol property in the gb.web component. I did it for my job. This is a creator privilege. :-) Regards, -- Benoit Minisini From richard.j.walker at ...247... Fri Mar 14 21:29:20 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 14 Mar 2008 20:29:20 +0000 Subject: [Gambas-user] More Date woes In-Reply-To: <200803142118.01287.gambas@...1...> References: <200803132353.52978.richard.j.walker@...247...> <200803141744.03018.richard.j.walker@...247...> <200803142118.01287.gambas@...1...> Message-ID: <200803142029.20618.richard.j.walker@...247...> On Friday 14 March 2008 20:18:01 Benoit Minisini wrote: > On vendredi 14 mars 2008, Richard wrote: > > Jeffrey, thanks for the reminder on Format/Format$. I don't think I have > > used it anywhere in the current version of my program. I may have to go > > back to it, or be more careful in how I derive the Date values I display > > in ValueBox widgets. > > > > > > Benoit, perhaps I can do something useful if I study the ValueBox > > component. I learned a little bit from debugging an early version of > > DateBox and TimeBox and I have dared to tweak the DateChooser control to > > vary the format of the month name in the combo box depending on the width > > of the control. > > > > The tweak works well in English where full month names have well defined > > 3 letter short forms, and I use digits where even 3 letters is too long. > > If you do something, it must work for any language and date format in the > world! :-) Sounds reasonable:-) Do you think it would be ok to start with the languages directly supported by translations of Gambas? Actually, I think it might be easier than I first thought. The modified DateChooser uses whatever language the user has set as default and simply measures the desktop font width of the results of applying "mmmm", "mmm" and "mm" as the date format for the month. Each of the twelve months is measured so there is no presumption of which month has the longest name. I'll try setting a few "foreign" languages and see what happens with the current modification. I think I read somewhere in this list a few days ago where you explained how to start Gambas with a language other than the system default; I'll also check out your translation howto on the wiki for more hints. Can you think of anything else I should check? Richard From jbskaggs at ...1871... Fri Mar 14 21:37:49 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Fri, 14 Mar 2008 13:37:49 -0700 (PDT) Subject: [Gambas-user] Why does gambas do this? Message-ID: <16055199.post@...1379...> Okay I have tracked down what is happening in my program and I don't know why or what to do about it. I have a settings file. When my program runs it writes either "a" or "b" to the file. The file saves just fine. When the program loads (on my first form form_open) it opens the file reads it and if it reads "b" then it displays a button. fstart.text=file.Load("theme.txt") textlabel4.Text=fstart.Text IF Left$(fstart.Text)="b" THEN etc etc .... then problem is when the executable is made: At the time the executable is made theme.txt ="a" . So that now if I run the executable it always says fstart.text="a" irregardless of what is actually in the theme.txt. Why is this? How do I get gambas to read the file and update fstart.text at form_open? JB SKaggs -- View this message in context: http://www.nabble.com/Why-does-gambas-do-this--tp16055199p16055199.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Mar 14 21:45:17 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 14 Mar 2008 21:45:17 +0100 Subject: [Gambas-user] Why does gambas do this? In-Reply-To: <16055199.post@...1379...> References: <16055199.post@...1379...> Message-ID: <200803142145.17120.gambas@...1...> On vendredi 14 mars 2008, jbskaggs wrote: > Okay I have tracked down what is happening in my program and I don't know > why or what to do about it. > > I have a settings file. When my program runs it writes either "a" or "b" > to the file. The file saves just fine. > > When the program loads (on my first form form_open) it opens the file reads > it and if it reads "b" then it displays a button. > > fstart.text=file.Load("theme.txt") > textlabel4.Text=fstart.Text > IF Left$(fstart.Text)="b" THEN > > etc etc .... > > then problem is when the executable is made: At the time the executable is > made theme.txt ="a" . > > So that now if I run the executable it always says fstart.text="a" > irregardless of what is actually in the theme.txt. > > Why is this? > > How do I get gambas to read the file and update fstart.text at form_open? > > JB SKaggs Relative paths are files located in the project directory, and are always *read-only* when the executable is made. You can modify it when running the project from the IDE, as they are real files, but when the executable is made, these files become part of it, and so cannot be modified at all. Regards, -- Benoit Minisini From richard.j.walker at ...247... Fri Mar 14 22:47:33 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 14 Mar 2008 21:47:33 +0000 Subject: [Gambas-user] Locale question Message-ID: <200803142147.33751.richard.j.walker@...247...> This one is for anyone out there with multiple language experience. I executed "urpmi locales-fr locales-ar locales-ber locales-ru" and then started Gambas with "LANG=fr LANGUAGE=fr gambas2". I also tried each of Arabic, Berber and Russian. The result was that the Gambas IDE was translated for the available languages (no Berber) but all month names are still in English. Have I missed a step? Do I need to change my desktop locale too do you think? Richard From gambas at ...1... Fri Mar 14 23:04:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 14 Mar 2008 23:04:45 +0100 Subject: [Gambas-user] Locale question In-Reply-To: <200803142147.33751.richard.j.walker@...247...> References: <200803142147.33751.richard.j.walker@...247...> Message-ID: <200803142304.46028.gambas@...1...> On vendredi 14 mars 2008, Richard wrote: > This one is for anyone out there with multiple language experience. > > I executed "urpmi locales-fr locales-ar locales-ber locales-ru" and then > started Gambas with "LANG=fr LANGUAGE=fr gambas2". I also tried each of > Arabic, Berber and Russian. > > The result was that the Gambas IDE was translated for the available > languages (no Berber) but all month names are still in English. How do you get month names? > > Have I missed a step? Do I need to change my desktop locale too do you > think? Are what you call "desktop locale" the KDE settings? KDE uses its own locale system, Gambas does not use it. Gambas only uses the system locale settings of the GNU libc. Regards, -- Benoit Minisini From richard.j.walker at ...247... Fri Mar 14 23:19:26 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 14 Mar 2008 22:19:26 +0000 Subject: [Gambas-user] Locale question In-Reply-To: <200803142304.46028.gambas@...1...> References: <200803142147.33751.richard.j.walker@...247...> <200803142304.46028.gambas@...1...> Message-ID: <200803142219.26853.richard.j.walker@...247...> On Friday 14 March 2008 22:04:45 Benoit Minisini wrote: > On vendredi 14 mars 2008, Richard wrote: > > This one is for anyone out there with multiple language experience. > > > > I executed "urpmi locales-fr locales-ar locales-ber locales-ru" and then > > started Gambas with "LANG=fr LANGUAGE=fr gambas2". I also tried each of > > Arabic, Berber and Russian. > > > > The result was that the Gambas IDE was translated for the available > > languages (no Berber) but all month names are still in English. > > How do you get month names? > > > Have I missed a step? Do I need to change my desktop locale too do you > > think? > > Are what you call "desktop locale" the KDE settings? KDE uses its own > locale system, Gambas does not use it. Gambas only uses the system locale > settings of the GNU libc. > > Regards, 1. I created a text box and filled it with Format(Now, "dd mmmm yyyy") Putting a DateChooser on the form had already shown that month names are in English, but I tried the text box to check the output of the Format command too. 2. I suppose I meant system locale. I've never had to fiddle with that. I'm guessing that some script somewhere picks up on the information I entered during installation of the OS, but I am sure I could track it down if that needs to be changed too. I reckon that will confine me to checking with languages I have some acquaintance with. If my whole system starts to speak to me in Arabic I could be in trouble! Richard From richard.j.walker at ...247... Fri Mar 14 23:55:05 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 14 Mar 2008 22:55:05 +0000 Subject: [Gambas-user] Locale question In-Reply-To: <200803142219.26853.richard.j.walker@...247...> References: <200803142147.33751.richard.j.walker@...247...> <200803142304.46028.gambas@...1...> <200803142219.26853.richard.j.walker@...247...> Message-ID: <200803142255.05949.richard.j.walker@...247...> Le Friday 14 March 2008 22:19:26 Richard, vous avez ?crit?: > On Friday 14 March 2008 22:04:45 Benoit Minisini wrote: > > On vendredi 14 mars 2008, Richard wrote: > > > This one is for anyone out there with multiple language experience. > > > > > > I executed "urpmi locales-fr locales-ar locales-ber locales-ru" and > > > then started Gambas with "LANG=fr LANGUAGE=fr gambas2". I also tried > > > each of Arabic, Berber and Russian. > > > > > > The result was that the Gambas IDE was translated for the available > > > languages (no Berber) but all month names are still in English. > > > > How do you get month names? > > > > > Have I missed a step? Do I need to change my desktop locale too do you > > > think? > > > > Are what you call "desktop locale" the KDE settings? KDE uses its own > > locale system, Gambas does not use it. Gambas only uses the system locale > > settings of the GNU libc. > > > > Regards, > > 1. I created a text box and filled it with > > Format(Now, "dd mmmm yyyy") > > Putting a DateChooser on the form had already shown that month names are in > English, but I tried the text box to check the output of the Format command > too. > > 2. I suppose I meant system locale. I've never had to fiddle with that. I'm > guessing that some script somewhere picks up on the information I entered > during installation of the OS, but I am sure I could track it down if that > needs to be changed too. I reckon that will confine me to checking with > languages I have some acquaintance with. If my whole system starts to speak > to me in Arabic I could be in trouble! > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user OK, I have changed my system locale setting for language and location to French/France. Just for good measure, I also changed the KDE desktop setting and here's the calendar for proof that date translation is just fine on the desktop. I still get English language dates on my test form; see the other pic. Should I need to re-compile Gambas on my new French desktop? Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: calendar.png Type: image/png Size: 21034 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestDates.png Type: image/png Size: 44278 bytes Desc: not available URL: From sbungay at ...981... Sat Mar 15 00:06:23 2008 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 14 Mar 2008 19:06:23 -0400 Subject: [Gambas-user] Property question.... In-Reply-To: <200803142119.41817.gambas@...1...> References: <47D9F63A.80004@...981...> <47DA8247.6040106@...981...> <47DA86EC.3060008@...981...> <200803142119.41817.gambas@...1...> Message-ID: <47DB04EF.4020108@...981...> Benoit Minisini wrote: > On vendredi 14 mars 2008, Stephen Bungay wrote: >> Stephen Bungay wrote: >>> Benoit Minisini wrote: >>>> On vendredi 14 mars 2008, Stephen Bungay wrote: >>>>> Given the following.... >>>>> >>>>> PUBLIC mRecordSet AS Result >>>>> >>>>> PROPERTY RecordSet AS Result >>>>> PRIVATE FUNCTION RecordSet_Read() AS Result >>>>> RETURN (mRecordSet) ' This will probably never get used >>>>> ' access mRecordSet directly. >>>>> END >>>>> >>>>> PRIVATE SUB RecordSet_Write(Value AS Result) >>>>> IF NOT IsNull(Value) THEN >>>>> IF Value.Count > 0 THEN >>>>> mRecordSet = Value >>>>> PopulateForm >>>>> END IF >>>>> END IF >>>>> END >>>>> . >>>>> . >>>>> . >>>>> ' Only gets called when Property RecordSet is written to... >>>>> Private Sub PopulateForm() >>>>> ' Code to populate the form from data in mRecordSet goes here >>>>> END >>>>> >>>>> >>>>> An assignment of a result set to property 'RecordSet' will yield >>>>> "Unknown identifier: RecordSet at line [line number] in >>>>> [formname].class. >>>> This is a compiler error. Please explain how you can get it at runtime >>>> while assigning the property! >>> Yes the error is happening at compile time and is something I did not >>> expect (i.e. since RecordSet is declared as a property it should be a >>> 'known' identifier). >> So if we have a button on the form called Button1 and the intent of >> this action is to execute an SQL and assign the result to the property >> 'RecordSet', that is where the compiler presents the error. It appears >> that the compiler isn't aware of the Property. >> >> Private Sub Button1_Click() >> 'Compiler gives an 'unknown identifier' error on the next line. >> RecordSet = DatabaseConnection.Exec("Select * FROM MyTable") >> END >> > > You must write ME.Recordset at the moment. I think this is a lack in the > compiler that cannot compile properties without ME, whereas it could with > methods and variables. > > Regards, > Thanks Benoit. From horechuk at ...981... Sat Mar 15 00:28:54 2008 From: horechuk at ...981... (Paul Horechuk) Date: Fri, 14 Mar 2008 18:28:54 -0500 Subject: [Gambas-user] Error during reconf-all Message-ID: <200803141928.54978.horechuk@...981...> Kubuntu 7.04 64 bit svn trunk v1167 ./reconf-all /usr/share/aclocal/smpeg.m4:13: warning: underquoted definition of AM_PATH_SMPEG run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal /usr/share/aclocal/gtkextra--.m4:11: warning: underquoted definition of AM_PATH_GTKEXTRAMM /usr/share/aclocal/gtk--.m4:10: warning: underquoted definition of AM_PATH_GTKMM /usr/share/aclocal/smpeg.m4:13: warning: underquoted definition of AM_PATH_SMPEG run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal /usr/share/aclocal/gtkextra--.m4:11: warning: underquoted definition of AM_PATH_GTKEXTRAMM /usr/share/aclocal/gtk--.m4:10: warning: underquoted definition of AM_PATH_GTKMM configure.ac:53: error: Do not call AM_AUTOMAKE_VERSION, use AM_INIT_AUTOMAKE([1.9.6]). aclocal.m4:63: AM_AUTOMAKE_VERSION is expanded from... aclocal.m4:76: AM_SET_CURRENT_AUTOMAKE_VERSION is expanded from... aclocal.m4:449: AM_INIT_AUTOMAKE is expanded from... configure.ac:53: the top level autom4te: /usr/bin/m4 failed with exit status: 1 configure.ac:53: error: Do not call AM_AUTOMAKE_VERSION, use AM_INIT_AUTOMAKE([1.9.6]). aclocal.m4:63: AM_AUTOMAKE_VERSION is expanded from... aclocal.m4:76: AM_SET_CURRENT_AUTOMAKE_VERSION is expanded from... aclocal.m4:449: AM_INIT_AUTOMAKE is expanded from... configure.ac:53: the top level autom4te: /usr/bin/m4 failed with exit status: 1 autoreconf: /usr/bin/autoconf failed with exit status: 1 Any ideas? -- -- Paul Horechuk Think Free Use Open Sourec Software From jbskaggs at ...1871... Sat Mar 15 00:48:30 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Fri, 14 Mar 2008 16:48:30 -0700 (PDT) Subject: [Gambas-user] Why does gambas do this? In-Reply-To: <200803142145.17120.gambas@...1...> References: <16055199.post@...1379...> <200803142145.17120.gambas@...1...> Message-ID: <16062441.post@...1379...> Thank you that does explain some things. Now I am brand new to linux and to gambas. So when I try and use application.path in my picture load I get a not static error. So I assume I have to type out the full path. I also assume that I would need to install my program in the usr/bin directory so I can have absolute paths for users on different systems. But I dont know how to get root access on Ubuntu to place the project in either the home dir or usr/bin. Any idea? JB SKaggs Benoit Minisini wrote: > > On vendredi 14 mars 2008, jbskaggs wrote: >> Okay I have tracked down what is happening in my program and I don't know >> why or what to do about it. >> >> I have a settings file. When my program runs it writes either "a" or "b" >> to the file. The file saves just fine. >> >> When the program loads (on my first form form_open) it opens the file >> reads >> it and if it reads "b" then it displays a button. >> >> fstart.text=file.Load("theme.txt") >> textlabel4.Text=fstart.Text >> IF Left$(fstart.Text)="b" THEN >> >> etc etc .... >> >> then problem is when the executable is made: At the time the executable >> is >> made theme.txt ="a" . >> >> So that now if I run the executable it always says fstart.text="a" >> irregardless of what is actually in the theme.txt. >> >> Why is this? >> >> How do I get gambas to read the file and update fstart.text at form_open? >> >> JB SKaggs > > Relative paths are files located in the project directory, and are always > *read-only* when the executable is made. You can modify it when running > the > project from the IDE, as they are real files, but when the executable is > made, these files become part of it, and so cannot be modified at all. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Why-does-gambas-do-this--tp16055199p16062441.html Sent from the gambas-user mailing list archive at Nabble.com. From richard.j.walker at ...247... Sat Mar 15 01:01:31 2008 From: richard.j.walker at ...247... (Richard) Date: Sat, 15 Mar 2008 00:01:31 +0000 Subject: [Gambas-user] Why does gambas do this? In-Reply-To: <16062441.post@...1379...> References: <16055199.post@...1379...> <200803142145.17120.gambas@...1...> <16062441.post@...1379...> Message-ID: <200803150001.31176.richard.j.walker@...247...> Le Friday 14 March 2008 23:48:30 jbskaggs, vous avez ?crit?: > Thank you that does explain some things. > > Now I am brand new to linux and to gambas. > > So when I try and use application.path in my picture load I get a not > static error. > > So I assume I have to type out the full path. > > I also assume that I would need to install my program in the usr/bin > directory so I can have absolute paths for users on different systems. > > But I dont know how to get root access on Ubuntu to place the project in > either the home dir or usr/bin. Any idea? > > JB SKaggs > If you are writing a file which can be unique for each user then just use the "abbreviation" for the user's home directory; "~/". So if your application has a "private" directory at /home/jbskaggs/.mysecretplace you can use either ~/.mysecretplace/myfile or the Gambas built in property User.Home &/ ".mysecretplace/" &/ "myfile" note that the &/ operator wil concatenate strings ensuring that there is at least one "/" character between them; ideal for joining up path names. This means that the "extra" slash at the end of the directory name is not doubled up. > Benoit Minisini wrote: > > On vendredi 14 mars 2008, jbskaggs wrote: > >> Okay I have tracked down what is happening in my program and I don't > >> know why or what to do about it. > >> > >> I have a settings file. When my program runs it writes either "a" or > >> "b" to the file. The file saves just fine. > >> > >> When the program loads (on my first form form_open) it opens the file > >> reads > >> it and if it reads "b" then it displays a button. > >> > >> fstart.text=file.Load("theme.txt") > >> textlabel4.Text=fstart.Text > >> IF Left$(fstart.Text)="b" THEN > >> > >> etc etc .... > >> > >> then problem is when the executable is made: At the time the executable > >> is > >> made theme.txt ="a" . > >> > >> So that now if I run the executable it always says fstart.text="a" > >> irregardless of what is actually in the theme.txt. > >> > >> Why is this? > >> > >> How do I get gambas to read the file and update fstart.text at > >> form_open? > >> > >> JB SKaggs > > > > Relative paths are files located in the project directory, and are always > > *read-only* when the executable is made. You can modify it when running > > the > > project from the IDE, as they are real files, but when the executable is > > made, these files become part of it, and so cannot be modified at all. > > > > Regards, > > > > -- > > Benoit Minisini > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From richard.j.walker at ...247... Sat Mar 15 02:52:37 2008 From: richard.j.walker at ...247... (Richard) Date: Sat, 15 Mar 2008 01:52:37 +0000 Subject: [Gambas-user] More Date woes In-Reply-To: <200803141001.12479.gambas@...1...> References: <200803132353.52978.richard.j.walker@...247...> <200803141001.12479.gambas@...1...> Message-ID: <200803150152.37779.richard.j.walker@...247...> Le Friday 14 March 2008 09:01:12 Benoit Minisini, vous avez ?crit?: > On vendredi 14 mars 2008, Richard wrote: > > I have hit another snag with date handling while working on the problem > > referred to above (see "Strange problem with Date Time and ValueBox"). > > > > I use long form dates. I have done it for years. I like it that way. > > Gambas2 does not provide a mechanism (that I can find) to specify a > > default date format. When I set a ValueBox widget to display a date it is > > Gambas that decides whether it should be 13/03/2008 or 13/03/08 which > > seems to be governed by how I set the value. > > > > If I use: > > > > StartDateBox.value = Now > > > > then I get a 4 digit year. > > > > If I use: > > > > StartDateBox2.Value = Date(Now) > > > > then I get a 2 digit year. > > This is a bug in ValueBox that forgets to reformat its contents after the > Value property is set. Benoit, I had a look at the ValueBox and I reckon this might work. It certainly performs properly with the few tests I have had time to run; PRIVATE SUB Value_Write(Value AS Variant) SELECT CASE TRUE CASE (TypeOf(Value) = gb.Float OR TypeOf(Value) = gb.Integer) AND (ME.Type = {Number}) SUPER.Text = Str(Value) CASE (TypeOf(Value) = gb.Date) AND (ME.Type = {Date}) SUPER.Text = Format(Value, $sDateFormat) CASE (TypeOf(Value) = gb.Date) AND (ME.Type = {Time}) SUPER.Text = Format(Value, $sTimeFormat) CASE (TypeOf(Value) = gb.String) AND (ME.Type = {Identifier}) SUPER.Text = Value CASE ELSE SUPER.Text = Str(Value) END SELECT END If somebody manages to supply a value which doesn't fit one of the defined CASEs then it falls back to handling it just like the original. Do you have a test suite for this component I coud run against the modified version? Richard > > > Does anyone know of a way to define a format for a ValueBox which will > > work for both input and display? > > > > Richard > > There is no way at the moment to change the format used for displaying the > ValueBox contents. > > Regards, From steven at ...1652... Sat Mar 15 12:23:22 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 15 Mar 2008 12:23:22 +0100 Subject: [Gambas-user] Menus In-Reply-To: <200803142120.58169.gambas@...1...> References: <1205496989.10576.76.camel@...1816...> <47DAAB71.9010006@...1237...> <1205515100.26690.1.camel@...1816...> <200803142120.58169.gambas@...1...> Message-ID: <1205580202.7910.79.camel@...1816...> Exactly what I did, Thanks Steven Le vendredi 14 mars 2008 ? 21:20 +0100, Benoit Minisini a ?crit : > On vendredi 14 mars 2008, Steven Lobbezoo wrote: > > Yes, I have to > > > > It's a constantly changing list of menus, adapted to the way a user > > works. > > And, making them invisible does not change the problem of adressing > > them. > > > > Steven > > > > If you want to destroy a menu later, just keep a reference on it in a > variable. Can't you? > From horechuk at ...981... Sat Mar 15 16:16:51 2008 From: horechuk at ...981... (Paul Horechuk) Date: Sat, 15 Mar 2008 11:16:51 -0400 Subject: [Gambas-user] Runtime error for Gambas3 In-Reply-To: <200802161824.02966.horechuk@...981...> References: <200802161824.02966.horechuk@...981...> Message-ID: <200803151116.51419.horechuk@...981...> On February 16, 2008 06:24:02 pm Paul Horechuk wrote: > Running kubuntu 7.04 64 bit > svn trunk 1075 > I get an immediate error as per the attached screenshot. > > Where is the default settings file? /usr/local/lib/gb.settings.gambas? > How can I correct this? This error is happening again. This time with svn 1150. The work-around is to rm -rf ~/.config/gambas. Of course this "forgets" the last project used. It appears that exiting Gambas3 and restarting, is enough to trigger the problem. The slight change is that now the error is with settings line #31, instead of 20. To reproduce, I remove the user config for Gambas, start Gambas, load my project, and then quit. Restarting creates the error. -- -- Paul Horechuk Think Free Use Open Sourec Software -------------- next part -------------- A non-text attachment was scrubbed... Name: snapshot1.png Type: image/png Size: 19672 bytes Desc: not available URL: From kari.laine at ...1400... Sat Mar 15 16:28:52 2008 From: kari.laine at ...1400... (Kari Laine) Date: Sat, 15 Mar 2008 17:28:52 +0200 Subject: [Gambas-user] Very Strange Problem Message-ID: <47DBEB34.6020903@...1400...> Hi, I don't know where to start solving this. I have a module modprint, which contains printing module for invoice. When I try to develop it Gambas crashes with unexpected error whenever I type 10 following another number. So if I type "1" "0" "0" at the point of last 0 I get This application has raised an unexpected error and must abort. Void key. FCompletion.FillWithIdent.346. Could someone please help me. I am not versed enough to gambas source code to fix this... Best Regards Kari Laine From gambas at ...1... Sat Mar 15 21:51:42 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 15 Mar 2008 21:51:42 +0100 Subject: [Gambas-user] Very Strange Problem In-Reply-To: <47DBEB34.6020903@...1400...> References: <47DBEB34.6020903@...1400...> Message-ID: <200803152151.42949.gambas@...1...> On samedi 15 mars 2008, Kari Laine wrote: > Hi, > > I don't know where to start solving this. I have a module modprint, > which contains printing module for invoice. When I try to develop it > Gambas crashes with unexpected error whenever I type 10 following > another number. So if I type > > "1" "0" "0" at the point of last 0 I get > > This application has raised an unexpected error and must abort. > Void key. > FCompletion.FillWithIdent.346. > > Could someone please help me. I am not versed enough to gambas source > code to fix this... > > Best Regards > Kari Laine > Please tell which version of Gambas you use. -- Benoit Minisini From gambas at ...1... Sun Mar 16 00:32:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 16 Mar 2008 00:32:31 +0100 Subject: [Gambas-user] Property question.... In-Reply-To: <47DB04EF.4020108@...981...> References: <47D9F63A.80004@...981...> <200803142119.41817.gambas@...1...> <47DB04EF.4020108@...981...> Message-ID: <200803160032.31277.gambas@...1...> On samedi 15 mars 2008, Stephen Bungay wrote: > >>>>> > >>>>> An assignment of a result set to property 'RecordSet' will yield > >>>>> "Unknown identifier: RecordSet at line [line number] in > >>>>> [formname].class. > >>>> > >>>> This is a compiler error. Please explain how you can get it at runtime > >>>> while assigning the property! > >>> > >>> Yes the error is happening at compile time and is something I did > >>> not expect (i.e. since RecordSet is declared as a property it should be > >>> a 'known' identifier). > >> > >> So if we have a button on the form called Button1 and the intent of > >> this action is to execute an SQL and assign the result to the property > >> 'RecordSet', that is where the compiler presents the error. It appears > >> that the compiler isn't aware of the Property. > >> > >> Private Sub Button1_Click() > >> 'Compiler gives an 'unknown identifier' error on the next line. > >> RecordSet = DatabaseConnection.Exec("Select * FROM MyTable") > >> END > > > > You must write ME.Recordset at the moment. I think this is a lack in the > > compiler that cannot compile properties without ME, whereas it could with > > methods and variables. > > > > Regards, > > Thanks Benoit. > This will be fix for Gambas 3. I won't fix it for Gambas 2.4, as you will be able to make 2.4 projects that cannot be compiled on 2.3 then. Maybe this is not a good idea! But it is just a compiler limitation, it won't change anything in the bytecode. Internally, "PropertyName = xxx" will be compiled the same way as "ME.PropertyName = xxx". Regards, -- Benoit Minisini From kari.laine at ...1400... Sun Mar 16 12:01:00 2008 From: kari.laine at ...1400... (Kari Laine) Date: Sun, 16 Mar 2008 13:01:00 +0200 Subject: [Gambas-user] Very Strange Problem In-Reply-To: <200803152151.42949.gambas@...1...> References: <47DBEB34.6020903@...1400...> <200803152151.42949.gambas@...1...> Message-ID: <47DCFDEC.3040102@...1400...> Benoit Minisini kirjoitti: >> > > Please tell which version of Gambas you use. > Hi, I was using 2.2.1. Now I upgraded to 2.3.0 and haven't yet got the same error again. I will report back if it crashes again. Thanks Kari Laine From kari.laine at ...1400... Sun Mar 16 12:05:45 2008 From: kari.laine at ...1400... (Kari Laine) Date: Sun, 16 Mar 2008 13:05:45 +0200 Subject: [Gambas-user] About forms Message-ID: <47DCFF09.9060605@...1400...> Hi, I again have a problem with forms. I make three forms, FMain, form1, form2 and FMain is the startup form. there is a textbox in FMain and form1. There is button on FMain which shows form1. On the form1 there is a button which shows form2. On Form2 there is a button which sets textboxes on FMain and Form1. That button can change a textbox on Fmain but not on form1 - nothing happens for the textbox on form1. The button is able to change the textbox on FMain but not on Form1. Hopefully this is comprehensible. Best Regards Kari Laine From kari.laine at ...1400... Sun Mar 16 17:58:32 2008 From: kari.laine at ...1400... (Kari Laine) Date: Sun, 16 Mar 2008 18:58:32 +0200 Subject: [Gambas-user] Modules & Classes Message-ID: <47DD51B8.9070604@...1400...> Hi, in the series of stupid questions... What's the real difference between Modules & Classes? I understand how classes under VB6 are used. Is there property get and property let functions in gambas - I gather not. But could someone clear this bit for me - please. Best Regards Kari Laine From gbv at ...1076... Sun Mar 16 18:25:37 2008 From: gbv at ...1076... (Guillermo Ballester Valor) Date: Sun, 16 Mar 2008 17:25:37 +0000 Subject: [Gambas-user] New gambas rpm repository for opensuse Message-ID: <200803161725.38488.gbv@...1076...> Hello all, After months (actually years) of building some packages for SuSE in my own systems, I've been able to build most of them in opensuse buildservice. Among the packages that I built in Opensuse BuildServer (OBS) are the gambas2 2.3.0 ones. :-) The use of OBS make the builds easy an it is a good thing for me. You can add the repositories with the aid of yast with the URLs (depending on your distribution) http://download.opensuse.org/repositories/home:/gbvalor/openSUSE_10.2/ http://download.opensuse.org/repositories/home:/gbvalor/openSUSE_10.3/ http://download.opensuse.org/repositories/home:/gbvalor/openSUSE_factory/ There are both i586 (32 bits) and x86_64 (64 bits) binaries. Some caveats: -cannot build gambas2 for opensuse_10.1 because of the lack of libffi libraries - cannot build gambas2 corba components because of lack of SuSE original onmiORB packages. They are good ones in packman, but not in SuSE :( -cannot build net.smtp component in opensuse-10.2 (I still don't know the reason, something happens with glib-2.0 library ). I'm investigating. Guillermo -- Guillermo Ballester Valor gbv at ...1076... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From sourceforge-raindog2 at ...94... Sun Mar 16 18:28:12 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 16 Mar 2008 13:28:12 -0400 Subject: [Gambas-user] Modules & Classes In-Reply-To: <47DD51B8.9070604@...1400...> References: <47DD51B8.9070604@...1400...> Message-ID: <200803161328.12898.sourceforge-raindog2@...94...> On Sunday 16 March 2008 12:58, Kari Laine wrote: > What's the real difference between Modules & Classes? I understand > how classes under VB6 are used. The difference between modules and classes in Gambas is pretty much the same as in VB.... modules are just collections of procedures and variables you can call from elsewhere in your project, whereas classes get instantiated at runtime as objects (except for when they have static features, which you can use without instantiating them) and have methods and properties. It's really just the difference between object-oriented programming and non-object-oriented programming. If you made a class that was entirely static, I guess it would be the same thing as a module. But you can do a lot more with classes. > Is there property get and property > let functions in gambas - I gather not. But could someone clear > this bit for me - please. The equivalent functions are (propertyname)_Read and (propertyname)_Write. For example, if you had a property called "Visible", the get function would be Visible_Read and the let function would be Visible_Write. Rob From gambas at ...1... Sun Mar 16 18:37:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 16 Mar 2008 18:37:02 +0100 Subject: [Gambas-user] Modules & Classes In-Reply-To: <200803161328.12898.sourceforge-raindog2@...94...> References: <47DD51B8.9070604@...1400...> <200803161328.12898.sourceforge-raindog2@...94...> Message-ID: <200803161837.03056.gambas@...1...> On dimanche 16 mars 2008, Rob wrote: > If you made a class that was entirely static, I guess it would be the > same thing as a module. But you can do a lot more with classes. > You guess right. Module and classes are exactly the same thing, except that in a module all declarations are STATIC. Regards, -- Benoit Minisini From jbskaggs at ...1871... Sun Mar 16 19:00:53 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sun, 16 Mar 2008 11:00:53 -0700 (PDT) Subject: [Gambas-user] Upgraded to 2.21 Message-ID: <16081863.post@...1379...> I upgraded to ver 2.21 (ubuntu) and now gambas does not recognize certain words like file.load or user.home etc- it calls those unknown identifier. It does this with any project whether new or the supplied examples. Any thoughts? JB SKaggs -- View this message in context: http://www.nabble.com/Upgraded-to-2.21-tp16081863p16081863.html Sent from the gambas-user mailing list archive at Nabble.com. From horechuk at ...981... Sun Mar 16 21:03:21 2008 From: horechuk at ...981... (Paul Horechuk) Date: Sun, 16 Mar 2008 16:03:21 -0400 Subject: [Gambas-user] Runtime error for Gambas3 In-Reply-To: <200803151116.51419.horechuk@...981...> References: <200802161824.02966.horechuk@...981...> <200803151116.51419.horechuk@...981...> Message-ID: <200803161603.21530.horechuk@...981...> On March 15, 2008 11:16:51 am Paul Horechuk wrote: > On February 16, 2008 06:24:02 pm Paul Horechuk wrote: > > Running kubuntu 7.04 64 bit > > svn trunk 1075 > > I get an immediate error as per the attached screenshot. > > > > Where is the default settings file? /usr/local/lib/gb.settings.gambas? > > How can I correct this? > > This error is happening again. This time with svn 1150. The work-around is > to rm -rf ~/.config/gambas. Of course this "forgets" the last project used. > It appears that exiting Gambas3 and restarting, is enough to trigger the > problem. The slight change is that now the error is with settings line #31, > instead of 20. > To reproduce, I remove the user config for Gambas, start Gambas, load my > project, and then quit. Restarting creates the error. Further information: There is a line in the gambas3.conf file (line #31 as per the latest screenshot), that reads: ShowTipOnStartup=18446744073709551615 If I set this to -1 (true) and start Gambasm The Tip shows. If I leave the "ShowTipOnStartup" box ticked, the value gets set to the number shown and I get the error message. If I set it to 0 (zero = false), then everything works. It looks like an error caused by 64 bit values. -- -- Paul Horechuk Think Free Use Open Sourec Software From maximvonk at ...626... Sun Mar 16 21:18:09 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 16 Mar 2008 13:18:09 -0700 (PDT) Subject: [Gambas-user] Ubuntu 7.10 .deb Package Message-ID: <16083464.post@...1379...> Hi there, Iv been using Gambas (2.0.0) for a little while now and I'm most impressed, but unfortunately I managed to trash my system and had to re-install, so I'm stuck with the repository version (1.x.x) that comes with Ubuntu. I did have a link that I added to my sources and which allowed me to install Gambas 2.0.0, but for the life of me I cant find it again. Could someone please tell me the link to add to my sources again, so that I can get the newer version. Thanks Max -- View this message in context: http://www.nabble.com/Ubuntu-7.10-.deb-Package-tp16083464p16083464.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Sun Mar 16 21:51:50 2008 From: rterry at ...1822... (richard terry) Date: Mon, 17 Mar 2008 07:51:50 +1100 Subject: [Gambas-user] How to clear radio buttons - not working Message-ID: <200803170751.50685.rterry@...1822...> I've a couple of radio button's on my form, and I would have thought that this code: rb1.value = false rb2. value = false, would have removed the black dot from the radio button, but not so. Any clues? Thanks Richard From rterry at ...1822... Sun Mar 16 21:53:18 2008 From: rterry at ...1822... (richard terry) Date: Mon, 17 Mar 2008 07:53:18 +1100 Subject: [Gambas-user] What are the default naming/style conventions Message-ID: <200803170753.18261.rterry@...1822...> As my program becomes more and more complicated I need to start an adhere to some naming conventions. Some are obvious eg bWhatever as boolean iWhatever as integer but others not so eg. should class be cWhatever as class , but the what for constants? I wonder if someone could point me to a list. Also, what is the convention about capitalising names for functions/subroutines. eg SUB MySubroutine() or SUB mysubroutine or does it just remain personal choice. Thanks. Richard From rterry at ...1822... Sun Mar 16 21:53:38 2008 From: rterry at ...1822... (richard terry) Date: Mon, 17 Mar 2008 07:53:38 +1100 Subject: [Gambas-user] IDE feature suggestion in icon editor Message-ID: <200803170753.38912.rterry@...1822...> Note high on the priority list but just a suggestion. 1) Allow the icon to be 'saved as'. I'd loaded an icon where I wanted to change part of its color to indicate a changed state of the program, but wanted to use the basic icon as a template. Maybe this is already possible and I'm missing something. I know you can simple copy/paste an icon and then edit that at the moment. 2) having a preview of the icon on the toolbar in the icon editor to see what the result will look like. 3) I also noticed that if one was working in your data tree, and say in your icons directory, that closing the icon editor, re-sets the whole tree back to the forms directory. Richard T From rterry at ...1822... Sun Mar 16 21:54:21 2008 From: rterry at ...1822... (richard terry) Date: Mon, 17 Mar 2008 07:54:21 +1100 Subject: [Gambas-user] How to insert a "-" into a html string Message-ID: <200803170754.21685.rterry@...1822...> Off gambas topic I know, but if pre-formatting a string this particular character doesn't seem to get rendered properly. Thanks in advance Richard T From rterry at ...1822... Sun Mar 16 21:54:46 2008 From: rterry at ...1822... (richard terry) Date: Mon, 17 Mar 2008 07:54:46 +1100 Subject: [Gambas-user] Can one test for a null object? Message-ID: <200803170754.46707.rterry@...1822...> When I load a patients past history into my program I want to be able to get the total count to do something, but if there is nothing in the currentPatient.past_history collection, this line bombs: x = frmClinical.currentPatient.past_history.count and says 'null object' I has various attempts to test this first, with no luck. Any help appreciated. Richard T From gambas at ...1... Sun Mar 16 22:00:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 16 Mar 2008 22:00:33 +0100 Subject: [Gambas-user] How to clear radio buttons - not working In-Reply-To: <200803170751.50685.rterry@...1822...> References: <200803170751.50685.rterry@...1822...> Message-ID: <200803162200.33202.gambas@...1...> On dimanche 16 mars 2008, richard terry wrote: > I've a couple of radio button's on my form, and I would have thought that > this code: rb1.value = false rb2. value = false, would have removed the > black dot from the radio button, but not so. > > Any clues? > > Thanks > > Richard > You can't clear a radio button, because one radio button must always be set among all its siblings. If you don't like, use checkboxes, not radio buttons! Regards, -- Benoit Minisini From rterry at ...1822... Sun Mar 16 21:57:03 2008 From: rterry at ...1822... (richard terry) Date: Mon, 17 Mar 2008 07:57:03 +1100 Subject: [Gambas-user] How to detect a forms parent. Message-ID: <200803170757.03562.rterry@...1822...> I want to be able to test if a particular form has a parent, or is running stand alone. have tried various things using Me.Parent in the form_load() to no avail. Any help appreciated. Richard T From richard.j.walker at ...247... Sun Mar 16 22:26:06 2008 From: richard.j.walker at ...247... (Richard) Date: Sun, 16 Mar 2008 21:26:06 +0000 Subject: [Gambas-user] About forms In-Reply-To: <47DCFF09.9060605@...1400...> References: <47DCFF09.9060605@...1400...> Message-ID: <200803162126.06830.richard.j.walker@...247...> Le Sunday 16 March 2008 11:05:45 Kari Laine, vous avez ?crit?: > Hi, > > I again have a problem with forms. > > I make three forms, FMain, form1, form2 and FMain is the startup form. > there is a textbox in FMain and form1. > There is button on FMain which shows form1. On the form1 there is a > button which shows form2. On Form2 there is a button which sets > textboxes on FMain and Form1. That button can change a textbox on Fmain > but not on form1 - nothing happens for the textbox on form1. The button > is able to change the textbox on FMain but not on Form1. > > Hopefully this is comprehensible. > > Best Regards > Kari Laine > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user I have a suggested solution in the attached file. The basic idea is that since form controls are not, by default, public we can write a class method to update the text box for each form. This is public, so the button action on Form2 can use these public methods. Of course, you can also change the PUBLIC/PRIVATE setting for form controls in your project. See the menu Project->Properties and look at the Options page. Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: FormTest-0.0.1.tar.gz Type: application/x-tgz Size: 7851 bytes Desc: not available URL: From joshogeling at ...1873... Sun Mar 16 22:36:22 2008 From: joshogeling at ...1873... (jos) Date: Sun, 16 Mar 2008 22:36:22 +0100 Subject: [Gambas-user] editor Message-ID: <47DD92D6.2050203@...1873...> Hello, I can't find how to save the formatted text in an Editor (Gambas), that was a Richtextbox(VB). Can anyone tell how it's done? Thanks. From dcamposf at ...626... Mon Mar 17 00:33:15 2008 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 17 Mar 2008 00:33:15 +0100 Subject: [Gambas-user] Ubuntu 7.10 .deb Package In-Reply-To: <16083464.post@...1379...> References: <16083464.post@...1379...> Message-ID: <7259b5ae0803161633v54672e8dnaf9189787147861d@...627...> http://danicafe.extreblog.com/200709118041_Gambas-packages-for-Ubuntu-Feisty-and-Guadalinex-v41.html Regards Daniel 2008/3/16, MaxVK : > > Hi there, > > Iv been using Gambas (2.0.0) for a little while now and I'm most impressed, > but unfortunately I managed to trash my system and had to re-install, so I'm > stuck with the repository version (1.x.x) that comes with Ubuntu. I did have > a link that I added to my sources and which allowed me to install Gambas > 2.0.0, but for the life of me I cant find it again. > > Could someone please tell me the link to add to my sources again, so that I > can get the newer version. > > Thanks > > Max > -- > View this message in context: http://www.nabble.com/Ubuntu-7.10-.deb-Package-tp16083464p16083464.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From robert.c.rowe at ...626... Mon Mar 17 03:01:08 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Sun, 16 Mar 2008 22:01:08 -0400 Subject: [Gambas-user] Can one test for a null object? In-Reply-To: <200803170754.46707.rterry@...1822...> References: <200803170754.46707.rterry@...1822...> Message-ID: <47DDD0E4.60008@...626...> Have you tried: IF Null?(frmClinical.currentProject.past_history) THEN x = frmClinical.currentProject.past_history.count ELSE x = 0 ENDIF You could also use TRY x = 0 TRY x = frmClinical.currentProject.past_history.count IF ERROR then 'Do whatever you want if an error occurs ENDIF Robert Rowe richard terry wrote: > When I load a patients past history into my program I want to be able to get > the total count to do something, but if there is nothing in the > currentPatient.past_history collection, this line bombs: > > x = frmClinical.currentPatient.past_history.count > > and says 'null object' > > I has various attempts to test this first, with no luck. > > Any help appreciated. > > Richard T > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From robert.c.rowe at ...626... Mon Mar 17 03:03:33 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Sun, 16 Mar 2008 22:03:33 -0400 Subject: [Gambas-user] How to detect a forms parent. In-Reply-To: <200803170757.03562.rterry@...1822...> References: <200803170757.03562.rterry@...1822...> Message-ID: <47DDD175.80801@...626...> Have you tried checking to see if the parent is null? Robert Rowe richard terry wrote: > I want to be able to test if a particular form has a parent, or is running > stand alone. > > have tried various things using Me.Parent in the form_load() to no avail. > > Any help appreciated. > > Richard T > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From robert.c.rowe at ...626... Mon Mar 17 03:07:27 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Sun, 16 Mar 2008 22:07:27 -0400 Subject: [Gambas-user] How to clear radio buttons - not working In-Reply-To: <200803170751.50685.rterry@...1822...> References: <200803170751.50685.rterry@...1822...> Message-ID: <47DDD25F.6080702@...626...> It's cheating but you could have a third radio button with the visible property set to false. Setting the value of this radio button to true should set the others to false. It might actually be clearer to have the third radio button visible with a caption of "Unknown" or something similar. Robert Rowe richard terry wrote: > I've a couple of radio button's on my form, and I would have thought that this > code: rb1.value = false rb2. value = false, would have removed the black dot > from the radio button, but not so. > > Any clues? > > Thanks > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From robert.c.rowe at ...626... Mon Mar 17 03:20:00 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Sun, 16 Mar 2008 22:20:00 -0400 Subject: [Gambas-user] IDE feature suggestion in icon editor In-Reply-To: <200803170753.38912.rterry@...1822...> References: <200803170753.38912.rterry@...1822...> Message-ID: <47DDD550.7010906@...626...> 1 & 2 sound like great ideas. I found myself thinking the same thing just yesterday when I was making some icons. Adding the "Save As" sounds pretty easy. I'll add it to my TO DO list. The preview sounds a bit more involved. Actually the project list window updates whenever to save but I think you wanted to see it prior to saving. I'll look into it. Whenever you close a window the selected item in the project list is set to the current window. Did you have a form editor open that became the current window when you closed the icon editor window? Robert Rowe richard terry wrote: > Note high on the priority list but just a suggestion. > > 1) Allow the icon to be 'saved as'. > > I'd loaded an icon where I wanted to change part of its color to indicate a > changed state of the program, but wanted to use the basic icon as a template. > > Maybe this is already possible and I'm missing something. > I know you can simple copy/paste an icon and then edit that at the moment. > > 2) having a preview of the icon on the toolbar in the icon editor to see what > the result will look like. > > 3) I also noticed that if one was working in your data tree, and say in your > icons directory, that closing the icon editor, re-sets the whole tree back to > the forms directory. > > Richard T > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jbskaggs at ...1871... Mon Mar 17 04:59:07 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sun, 16 Mar 2008 20:59:07 -0700 (PDT) Subject: [Gambas-user] I am pleased Message-ID: <16087942.post@...1379...> Overall- this experience has been pleasant. Starting with almost now programming skills or knowledge about Linux I am able to write some usuable programs. After roughly a week and a half. Nothing too complex. SO far this Gambas is everything it was promised to be. The only problem I had is on ver 2.x the docs are incomplete and makes learning a little slower. And I am still learning the ropes on UBUNTU 7.10. So keep up the good work guys! JB SKaggs -- View this message in context: http://www.nabble.com/I-am-pleased-tp16087942p16087942.html Sent from the gambas-user mailing list archive at Nabble.com. From ronstk at ...239... Mon Mar 17 07:32:25 2008 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 17 Mar 2008 07:32:25 +0100 Subject: [Gambas-user] How to clear radio buttons - not working In-Reply-To: <47DDD25F.6080702@...626...> References: <200803170751.50685.rterry@...1822...> <47DDD25F.6080702@...626...> Message-ID: <200803170732.25765.ronstk@...239...> On Monday 17 March 2008 03:07, Robert Rowe wrote: > It's cheating but you could have a third radio button with the visible > property set to false. Setting the value of this radio button to true > should set the others to false. It might actually be clearer to have the > third radio button visible with a caption of "Unknown" or something > similar. > > Robert Rowe > > richard terry wrote: > > I've a couple of radio button's on my form, and I would have thought that this > > code: rb1.value = false rb2. value = false, would have removed the black dot > > from the radio button, but not so. > > > > Any clues? > > > > Thanks > > > > Richard > > Cheating yourself and the end user. Radio options is a way of only 1 of each of the other. (a) OR (b) OR (c) and not (a) maybe (b) OR (c) Check box is a selection from a collection of several choises AND/OR nothing. The most correct solution is (in my view): +-- Set Extension -------------------- | [] Check box: Use custom extension | -- custom ---- | () radio : save as *.gif | () radio : save as *.jpg | () radio : save as *.bmp +------------------------------------- Or use a selectbox with 4 rows and the first as empty +----------------+---+ | [empty] | V | or 'Use orginal extension' +----------------+---+ | save as *.gif | | save as *.jpg | | save as *.bmp | +--------------------+ Once you have forgotten the hidden radio as unlogical control to do something logical as a yes/no question with the check box. It is the fault of the unlogical control preset in VB and HTML you could have all radios conditions as 'off' I have a problem with a local website using this misbehaviour in html It can plays media with WMP ( as hidden), Real (as option) or Qtime (as option). Once I did try with Real and it did not work. No way to use WMP as default player again. Why? Ron Solution: It was saved in a cookie. From ronstk at ...239... Mon Mar 17 07:52:52 2008 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 17 Mar 2008 07:52:52 +0100 Subject: [Gambas-user] I am pleased In-Reply-To: <16087942.post@...1379...> References: <16087942.post@...1379...> Message-ID: <200803170752.52606.ronstk@...239...> On Monday 17 March 2008 04:59, jbskaggs wrote: > > Overall- this experience has been pleasant. > > Starting with almost now programming skills or knowledge about Linux I am > able to write some usuable programs. After roughly a week and a half. > Nothing too complex. SO far this Gambas is everything it was promised to > be. > > The only problem I had is on ver 2.x the docs are incomplete and makes > learning a little slower. And I am still learning the ropes on UBUNTU 7.10. Keep up firing, once you learn it and be happy with it as is. > > So keep up the good work guys! > > JB SKaggs In the past MS released 'Visual Basic Working Model' with magazines. It was just the Basic part of Visual Studio with C and VB and a mass of useless overdone programs and other stuff for newbies. This was as easy as gambas to use and learn. With this working model even the help documentation was stripped off and only the full help online at the MS website like gambas. ;=) The only thing extra missing thing, you could not make a *.exe You need to load the *.bas and press the 'Run' button. With the program 'autoit' it was a peace of cake to load the *.bas, hit the 'Run' button and hide the VB IDE window. Ron From maximvonk at ...626... Mon Mar 17 13:29:10 2008 From: maximvonk at ...626... (MaxVK) Date: Mon, 17 Mar 2008 05:29:10 -0700 (PDT) Subject: [Gambas-user] Ubuntu 7.10 .deb Package In-Reply-To: <7259b5ae0803161633v54672e8dnaf9189787147861d@...627...> References: <16083464.post@...1379...> <7259b5ae0803161633v54672e8dnaf9189787147861d@...627...> Message-ID: <16092365.post@...1379...> Daniel Campos-3 wrote: > > http://danicafe.extreblog.com/200709118041_Gambas-packages-for-Ubuntu-Feisty-and-Guadalinex-v41.html > > Regards > > Daniel > Thats not the page I found last time but its just as good! Thanks Daniel Regards Max -- View this message in context: http://www.nabble.com/Ubuntu-7.10-.deb-Package-tp16083464p16092365.html Sent from the gambas-user mailing list archive at Nabble.com. From ron at ...1740... Mon Mar 17 13:44:03 2008 From: ron at ...1740... (Ron) Date: Mon, 17 Mar 2008 13:44:03 +0100 Subject: [Gambas-user] Different look and feel Message-ID: <47DE6793.1090403@...1740...> Hi, I have just installed gambas 2.3 from cvs on debian etch with default gnome desktop. The look of the gambas ide dropdown buttons, listview sliders and menubar looks like they are from 1980, while all the gnome software is nice looking. See screenshot with abiword behind gambas ide. What is causing this? Is something missing during compile time? Can someone please point me in the right direction where to look to fix this, my programs look so old-fashioned now. I had gambas installed before on different distro and that looked great, so I know it can be done. Regards, Ron. -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas.JPG Type: image/jpeg Size: 120340 bytes Desc: not available URL: From joe1962 at ...626... Mon Mar 17 13:47:28 2008 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Mon, 17 Mar 2008 07:47:28 -0500 Subject: [Gambas-user] Different look and feel In-Reply-To: <47DE6793.1090403@...1740...> References: <47DE6793.1090403@...1740...> Message-ID: <6c208f950803170547w65cce4c9ha79b9ab5c1428fa5@...627...> On Mon, Mar 17, 2008 at 7:44 AM, Ron wrote: > Hi, > > I have just installed gambas 2.3 from cvs on debian etch with default > gnome desktop. > > The look of the gambas ide dropdown buttons, listview sliders and > menubar looks like they are from 1980, while all the gnome software is > nice looking. Change the qt theme with qtconfig. Regards, Joe1962 From m0e.lnx at ...626... Mon Mar 17 14:33:15 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 17 Mar 2008 08:33:15 -0500 Subject: [Gambas-user] Different look and feel In-Reply-To: <6c208f950803170547w65cce4c9ha79b9ab5c1428fa5@...627...> References: <47DE6793.1090403@...1740...> <6c208f950803170547w65cce4c9ha79b9ab5c1428fa5@...627...> Message-ID: <1f1e8c1b0803170633u5f4e1caeg5a9fe046cb45f75@...627...> Goddang... LTNS Joe1962! @ Ron The difference in the appearance is due to the fact that abiword uses GTK (and of course you use gnome... so gtk there). The gambas IDE runs using the QT toolkit which will most likely always look different... (GTK APPs would look just as ugly on qt too ;) ). On Mon, Mar 17, 2008 at 7:47 AM, Jose J. Rodriguez wrote: > On Mon, Mar 17, 2008 at 7:44 AM, Ron wrote: > > Hi, > > > > I have just installed gambas 2.3 from cvs on debian etch with default > > gnome desktop. > > > > The look of the gambas ide dropdown buttons, listview sliders and > > menubar looks like they are from 1980, while all the gnome software is > > nice looking. > > > Change the qt theme with qtconfig. > > Regards, > Joe1962 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From poposick at ...43... Mon Mar 17 15:27:07 2008 From: poposick at ...43... (Hn) Date: Mon, 17 Mar 2008 07:27:07 -0700 (PDT) Subject: [Gambas-user] (no subject) Message-ID: <185447.39962.qm@...1874...> i am new in linux. i use suse and already install gambas on it. i have done transfer data/message from one computer to another computer using serial port communication. the data/message received will save on text file. my problem is how can i display the data (from text file) on gui that create with gambas. or can gui display data/message( from command terminal) on gui? --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. From sourceforge-raindog2 at ...94... Mon Mar 17 15:56:00 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 17 Mar 2008 10:56:00 -0400 Subject: [Gambas-user] (no subject) In-Reply-To: <185447.39962.qm@...1874...> References: <185447.39962.qm@...1874...> Message-ID: <200803171056.00856.sourceforge-raindog2@...94...> On Monday 17 March 2008 10:27, Hn wrote: > my problem is how can i display the data (from text file) on gui > that create with gambas. or can gui display data/message( from > command terminal) on gui? At its most basic, you should be able to just put a Label control on your form and set its Caption property to the text contained in the text file. If you want to format the data for display, you would want to do that in code and put on the form some combination of controls appropriate to your data. Rob From francescokm at ...626... Mon Mar 17 16:38:42 2008 From: francescokm at ...626... (Francesco Xavier Kolly Mally) Date: Mon, 17 Mar 2008 22:38:42 +0700 Subject: [Gambas-user] how to create buttons with array Message-ID: <367b4cf70803170838r783435a6tb73ec871b1d03b8@...627...> hello everybody, my name francesco and I have problem with array, this is the situation: 1. I have a form and one picture named pic.png and a button 2. If I click the button and pic.png will appear in form and if I clik again the button then pic.png will appear again so now I have 2 pictures(pic.png) and so on. 3. now, the question it's "what is the syntaxe for my problem???" Thank you From ron at ...1740... Mon Mar 17 16:45:16 2008 From: ron at ...1740... (Ron) Date: Mon, 17 Mar 2008 16:45:16 +0100 Subject: [Gambas-user] Different look and feel In-Reply-To: <1f1e8c1b0803170633u5f4e1caeg5a9fe046cb45f75@...627...> References: <47DE6793.1090403@...1740...> <6c208f950803170547w65cce4c9ha79b9ab5c1428fa5@...627...> <1f1e8c1b0803170633u5f4e1caeg5a9fe046cb45f75@...627...> Message-ID: <47DE920C.7020509@...1740...> > Goddang... LTNS Joe1962! > > > @ Ron > The difference in the appearance is due to the fact that abiword uses > GTK (and of course you use gnome... so gtk there). The gambas IDE runs > using the QT toolkit which will most likely always look different... > (GTK APPs would look just as ugly on qt too ;) ). > > > On Mon, Mar 17, 2008 at 7:47 AM, Jose J. Rodriguez wrote: > >> On Mon, Mar 17, 2008 at 7:44 AM, Ron wrote: >> > Hi, >> > >> > I have just installed gambas 2.3 from cvs on debian etch with default >> > gnome desktop. >> > >> > The look of the gambas ide dropdown buttons, listview sliders and >> > menubar looks like they are from 1980, while all the gnome software is >> > nice looking. >> >> Are you sure about that? I had gambas running before on another gnome based distro, and it looked very nice. Changing the theme with qtconfig didn't solve the problem yet, will investigate more. Regards, Ron. From ronstk at ...239... Mon Mar 17 17:01:48 2008 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 17 Mar 2008 17:01:48 +0100 Subject: [Gambas-user] Different look and feel In-Reply-To: <47DE6793.1090403@...1740...> References: <47DE6793.1090403@...1740...> Message-ID: <200803171701.49091.ronstk@...239...> On Monday 17 March 2008 13:44, Ron wrote: > Hi, > > I have just installed gambas 2.3 from cvs on debian etch with default > gnome desktop. > > The look of the gambas ide dropdown buttons, listview sliders and > menubar looks like they are from 1980, while all the gnome software is > nice looking. > See screenshot with abiword behind gambas ide. > > What is causing this? Maybe theme not found. > > Is something missing during compile time? Could be, the IDE is build in the install phase. When the themes are not found just in time. > > Can someone please point me in the right direction where to look to fix > this, my programs look so old-fashioned now. > I had gambas installed before on different distro and that looked great, with Gnome or KDE? > so I know it can be done. > > Regards, > Ron. > I do see 2 problems here. You have icons from KDE and Gnome mixed in the IDE The font in the project TreeView and menubar looks strange compared to ABI word menubar. As sugested by someone to use qtconfig sounds strange to me when gnome is the default install, or is KDE also present on the box. Second the purpose of qtconfig, as far I know, is to let the gnome apps use the KDE desktop environment for the style as far as posible. For the project treeview you can try with a change in Tools->General the fontsize select box. What is the effect with Tools->General the Icon theme selection? Groeten van de andere Ron From gambas at ...1... Mon Mar 17 17:14:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 17 Mar 2008 17:14:27 +0100 Subject: [Gambas-user] Different look and feel In-Reply-To: <200803171701.49091.ronstk@...239...> References: <47DE6793.1090403@...1740...> <200803171701.49091.ronstk@...239...> Message-ID: <200803171714.27958.gambas@...1...> On lundi 17 mars 2008, Ron Onstenk wrote: > On Monday 17 March 2008 13:44, Ron wrote: > > Hi, > > > > I have just installed gambas 2.3 from cvs on debian etch with default > > gnome desktop. > > > > The look of the gambas ide dropdown buttons, listview sliders and > > menubar looks like they are from 1980, while all the gnome software is > > nice looking. > > See screenshot with abiword behind gambas ide. > > > > What is causing this? > > Maybe theme not found. > > > Is something missing during compile time? > > Could be, the IDE is build in the install phase. > When the themes are not found just in time. > > > Can someone please point me in the right direction where to look to fix > > this, my programs look so old-fashioned now. > > I had gambas installed before on different distro and that looked great, > > with Gnome or KDE? > > > so I know it can be done. > > > > Regards, > > Ron. > > I do see 2 problems here. > You have icons from KDE and Gnome mixed in the IDE > The font in the project TreeView and menubar looks strange > compared to ABI word menubar. > > As sugested by someone to use qtconfig sounds strange to me > when gnome is the default install, or is KDE also present on the box. > Second the purpose of qtconfig, as far I know, is to let the gnome > apps use the KDE desktop environment for the style as far as posible. > No. qtconfig, as its name says, configures the qt library, by making a .qt/qtrc file in the user home directory. As for the mix of GNOME and KDE icons, it is just the Gambas stock icons that do not detect GNOME for a reason I don't know. The detection algorithm is the one used by xdg-utils freedesktop.org scripts: if there is a GNOME_DESKTOP_SESSION_ID environmental variable set, then the Gnome iconset is used. Otherwise, the Crystal SVG (Qt) one is used. Regards, -- Benoit Minisini From ron at ...1740... Mon Mar 17 17:14:51 2008 From: ron at ...1740... (Ron) Date: Mon, 17 Mar 2008 17:14:51 +0100 Subject: [Gambas-user] Different look and feel In-Reply-To: <200803171701.49091.ronstk@...239...> References: <47DE6793.1090403@...1740...> <200803171701.49091.ronstk@...239...> Message-ID: <47DE98FB.7080802@...1740...> >> Can someone please point me in the right direction where to look to fix >> this, my programs look so old-fashioned now. >> I had gambas installed before on different distro and that looked great, >> > > with Gnome or KDE? > > Gnome. But as I think of it, I had problems getting gb.kde to compile because of the old gtk+2.8 on debian etch, I had to upgrade to gtk+2.10 and this step also upgraded gnome, maybe only parts of it, I will check my logwatch logs. > > I do see 2 problems here. > You have icons from KDE and Gnome mixed in the IDE > The font in the project TreeView and menubar looks strange > compared to ABI word menubar. > > As sugested by someone to use qtconfig sounds strange to me > when gnome is the default install, or is KDE also present on the box. > Second the purpose of qtconfig, as far I know, is to let the gnome > apps use the KDE desktop environment for the style as far as posible. > > For the project treeview you can try with a change in Tools->General the fontsize select box. > What is the effect with Tools->General the Icon theme selection? > > qtconfig changes didn't make a difference. If I change the fontsize from small to normal and restart gambas ide, i see no difference, same with theme, if I change from gnome from kde, to desktop, and restart in between, no difference. Will try to find where the themes are installed, i'm using the default clearlooks. Thanks, Ron. From joe1962 at ...626... Mon Mar 17 18:47:06 2008 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Mon, 17 Mar 2008 12:47:06 -0500 Subject: [Gambas-user] Different look and feel In-Reply-To: <47DE98FB.7080802@...1740...> References: <47DE6793.1090403@...1740...> <200803171701.49091.ronstk@...239...> <47DE98FB.7080802@...1740...> Message-ID: <6c208f950803171047n7caa671uaa85bfd7dbe6c539@...627...> On Mon, Mar 17, 2008 at 11:14 AM, Ron wrote: > qtconfig changes didn't make a difference. > > If I change the fontsize from small to normal and restart gambas ide, i > see no difference, same with theme, if I change from gnome from kde, to > desktop, and restart in between, no difference. > > Will try to find where the themes are installed, i'm using the default > clearlooks. > It has to, unless the IDE no is no longer strictly qt based. Make sure you are running qtconfig as the same user which runs gambas, the theme setting is per user. We went through the same issue when we first added gambas-runtime as an integral part of Vector Linux and started packaging the IDE for the repo. What qtconfig does is to change the settings for qt apps. Regards, Joe1962 From ronstk at ...239... Mon Mar 17 19:03:00 2008 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 17 Mar 2008 19:03:00 +0100 Subject: [Gambas-user] Different look and feel In-Reply-To: <200803171714.27958.gambas@...1...> References: <47DE6793.1090403@...1740...> <200803171701.49091.ronstk@...239...> <200803171714.27958.gambas@...1...> Message-ID: <200803171903.00806.ronstk@...239...> On Monday 17 March 2008 17:14, Benoit Minisini wrote: > No. qtconfig, as its name says, configures the qt library, by making > a .qt/qtrc file in the user home directory. > OK. I was ??? (in de war met) the 'GTK Styles and Fonts' in Kcontrol Center. But the fact qtconfig does nothing with GTK does apply (?) Ron From joe1962 at ...626... Mon Mar 17 19:18:25 2008 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Mon, 17 Mar 2008 13:18:25 -0500 Subject: [Gambas-user] Different look and feel In-Reply-To: <200803171903.00806.ronstk@...239...> References: <47DE6793.1090403@...1740...> <200803171701.49091.ronstk@...239...> <200803171714.27958.gambas@...1...> <200803171903.00806.ronstk@...239...> Message-ID: <6c208f950803171118i44a0843cm2b441874cc988042@...627...> On Mon, Mar 17, 2008 at 1:03 PM, Ron Onstenk wrote: > But the fact qtconfig does nothing with GTK does apply (?) > Indeed. They are 2 different toolkits with separate theming engines. Regards, Joe1962 From ron at ...1740... Mon Mar 17 21:06:53 2008 From: ron at ...1740... (Ron) Date: Mon, 17 Mar 2008 21:06:53 +0100 Subject: [Gambas-user] Different look and feel In-Reply-To: <6c208f950803171047n7caa671uaa85bfd7dbe6c539@...627...> References: <47DE6793.1090403@...1740...> <200803171701.49091.ronstk@...239...> <47DE98FB.7080802@...1740...> <6c208f950803171047n7caa671uaa85bfd7dbe6c539@...627...> Message-ID: <47DECF5D.5060006@...1740...> Jose J. Rodriguez schreef: > On Mon, Mar 17, 2008 at 11:14 AM, Ron wrote: > >> qtconfig changes didn't make a difference. >> >> If I change the fontsize from small to normal and restart gambas ide, i >> see no difference, same with theme, if I change from gnome from kde, to >> desktop, and restart in between, no difference. >> >> Will try to find where the themes are installed, i'm using the default >> clearlooks. >> >> > > It has to, unless the IDE no is no longer strictly qt based. Make sure > you are running qtconfig as the same user which runs gambas, the theme > setting is per user. We went through the same issue when we first > added gambas-runtime as an integral part of Vector Linux and started > packaging the IDE for the repo. What qtconfig does is to change the > settings for qt apps. > Hmm I had installed qt4-qtconfig, which displayed all the themes I run in gnome. But changing it didn't make a difference to gambas. Then I saw there was also an qt3-qtconfig, so I installed that one (desperate as I'am now), and with that version I can only select from the old looking themes I see in gambas. So gambas is finding qt3 stuff, while I run qt4... So i looked what i had installed: server:~# dpkg --get-selections|grep qt libavahi-qt3-1 install libavahi-qt3-dev install libdbus-qt-1-1c2 install libpoppler-qt-dev install libpoppler0c2-qt install libqt3-headers install libqt3-mt install libqt3-mt-dev install libqt4-core install libqt4-dev install libqt4-gui install libqt4-qt3support install libqt4-sql install libqthreads-12 install qt3-dev-tools install qt3-qtconfig install qt4-qtconfig deinstall if i remove the qt3 stuff, kde is removed also and I cannot build gambas... qmake is pointing to the correct version, but it seems gambas is still build using qt3. No idea what to fix/check next, maybe a reinstall... Regards, Ron. From sourceforge-raindog2 at ...94... Mon Mar 17 21:29:51 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 17 Mar 2008 16:29:51 -0400 Subject: [Gambas-user] Gambas has competition now Message-ID: <200803171629.51244.sourceforge-raindog2@...94...> http://arstechnica.com/journals/linux.ars/2008/03/17/monodevelop-1-0-officially-released ( http://xrl.us/bhs3j in case the link breaks ) The fruits of Novell's unholy alliance with Microsoft have finally reached 1.0, making it the second Free BASIC IDE with GUI designer to reach production status (after Gambas), and the first with the promise of cross-platform abilities. I don't think I would touch this with a ten foot pole due to the likelihood that Microsoft will start looking for money from Mono developers in a couple years, SCO-style, but I have no doubt that some organizations will use it. I also just think that Gambas as a language is better designed than VB.NET, let alone C#. I also think that anyone who is contributing or plans to ever contribute to the Gambas IDE, compiler/interpreter or components should refrain from downloading MonoDevelop. It seems likely to me that Microsoft or one of its sock puppets would someday try to use that as evidence that Gambas developers were ripping off MonoDevelop or Mono in general. Something to keep in mind. Rob From rterry at ...1822... Mon Mar 17 22:27:00 2008 From: rterry at ...1822... (richard terry) Date: Tue, 18 Mar 2008 08:27:00 +1100 Subject: [Gambas-user] A suggestion re copy/past in IDE Message-ID: <200803180827.00272.rterry@...1822...> I just went to duplicate a control which had a number of children on it. I really wanted just the container control, not the children. I wondered if there could be a copy/paste container only command on the menu, so that re-creating a control for which you have set all the properties would be possible instead of, at the moment having to copy the container and all its children, and then delete the children from the container. Makes any sense to anyone? Regards Richard From joe1962 at ...626... Mon Mar 17 22:49:44 2008 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Mon, 17 Mar 2008 16:49:44 -0500 Subject: [Gambas-user] Different look and feel In-Reply-To: <47DECF5D.5060006@...1740...> References: <47DE6793.1090403@...1740...> <200803171701.49091.ronstk@...239...> <47DE98FB.7080802@...1740...> <6c208f950803171047n7caa671uaa85bfd7dbe6c539@...627...> <47DECF5D.5060006@...1740...> Message-ID: <6c208f950803171449u70f2fdc4j228ecc681579e26e@...627...> On Mon, Mar 17, 2008 at 3:06 PM, Ron wrote: > it seems gambas is still build using qt3. Yes. > No idea what to fix/check next, maybe a reinstall... If you have KDE installed, qtconfig can use the nicer KDE themes like Plastik, etc. You need to add the KDE theme path to the qt library paths in qtconfig. There is also a Plastik-like qt theme called polymer, which is what we use as default qt3 theme in Vector Linux Standard (which only has XFCE). There might be a package of it for your distro. Regards, Joe1962 From ron at ...1740... Mon Mar 17 23:12:31 2008 From: ron at ...1740... (Ron) Date: Mon, 17 Mar 2008 23:12:31 +0100 Subject: [Gambas-user] Different look and feel In-Reply-To: <6c208f950803171449u70f2fdc4j228ecc681579e26e@...627...> References: <47DE6793.1090403@...1740...> <200803171701.49091.ronstk@...239...> <47DE98FB.7080802@...1740...> <6c208f950803171047n7caa671uaa85bfd7dbe6c539@...627...> <47DECF5D.5060006@...1740...> <6c208f950803171449u70f2fdc4j228ecc681579e26e@...627...> Message-ID: <47DEECCF.5030904@...1740...> > There is also a Plastik-like qt theme called > polymer, which is what we use as default qt3 theme in Vector Linux > Standard (which only has XFCE). There might be a package of it for > your distro. > Yes!! I googled for qt3 and polymer and found this: http://tombuntu.com/index.php/2008/02/11/theme-qt3-applications-in-gnome/ It's now looks even better than I have seen before! Thanks alot. Regards, Ron. From robertsonhamish at ...626... Tue Mar 18 03:35:22 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 18 Mar 2008 09:35:22 +0700 Subject: [Gambas-user] Gambas has competition now In-Reply-To: <200803171629.51244.sourceforge-raindog2@...94...> References: <200803171629.51244.sourceforge-raindog2@...94...> Message-ID: Sure..all good points rob..but mono is cross platform. How hard would it be to make GAMBAS truly cross platform? If we could access the windows userbase it would help in GAMBAS take-up for sure. H. On 18/03/2008, Rob wrote: > > > http://arstechnica.com/journals/linux.ars/2008/03/17/monodevelop-1-0-officially-released > > ( http://xrl.us/bhs3j in case the link breaks ) > > The fruits of Novell's unholy alliance with Microsoft have finally > reached 1.0, making it the second Free BASIC IDE with GUI designer to > reach production status (after Gambas), and the first with the > promise of cross-platform abilities. > > I don't think I would touch this with a ten foot pole due to the > likelihood that Microsoft will start looking for money from Mono > developers in a couple years, SCO-style, but I have no doubt that > some organizations will use it. I also just think that Gambas as a > language is better designed than VB.NET, let alone C#. > > I also think that anyone who is contributing or plans to ever > contribute to the Gambas IDE, compiler/interpreter or components > should refrain from downloading MonoDevelop. It seems likely to me > that Microsoft or one of its sock puppets would someday try to use > that as evidence that Gambas developers were ripping off MonoDevelop > or Mono in general. > > Something to keep in mind. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From robert.c.rowe at ...626... Tue Mar 18 04:36:43 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Mon, 17 Mar 2008 23:36:43 -0400 Subject: [Gambas-user] Gambas has competition now In-Reply-To: References: <200803171629.51244.sourceforge-raindog2@...94...> Message-ID: <47DF38CB.2060502@...626...> I've played with Mono. Gambas has nothing to fear. Mono stinks. I've been coding VB.Net for years and Mono is supposed to be .Net for Linux. It's not even close. I never could get anything to run. Also Mono assumes that you are running Gnome so it doesn't fit well with KDE. I've looked at all the Basic-like languages and Gambas is the best by far. If Mono ever gets to where its on par with .Net then that would be something nice but it will only happen if Microsoft changes its position about Linux. That will only happen when they think that they control it, which will never happen. Oh and the cross-platform line isn't really accurate either. From what I've read (and written) .Net is very dependant on things like IIS and MSSQL. Mono replaces these with Apache and MySQL both of which are very different from the Microsoft offerings. This makes the code different. I guess that you could use Apache and MySQL on Windows but few people would as MS programs dominate the Windows world. GUI development in .Net is done with WinForms and Mono doesn't have this either. They have GTK modules but again, the code is different so write once, run everywhere is not happening with Mono. The best cross platform language that I've seen is Java but Java is a bear to work in and generally performs poorly. Getting Gambas to run on Windows would be wonderful but it is dependant on a lot of Linux stuff that isn't readily available on Windows so I doubt it would happen. The two platforms are just too different. Maybe someday Microsoft will do what Apple did and use a *nix kernel. Only then will cross platform development be easy since there will really only be only platform. Robert Hamish Robertson wrote: > Sure..all good points rob..but mono is cross platform. > > How hard would it be to make GAMBAS truly cross platform? > > If we could access the windows userbase it would help in GAMBAS take-up for > sure. > > H. > > > On 18/03/2008, Rob wrote: > >> http://arstechnica.com/journals/linux.ars/2008/03/17/monodevelop-1-0-officially-released >> >> ( http://xrl.us/bhs3j in case the link breaks ) >> >> The fruits of Novell's unholy alliance with Microsoft have finally >> reached 1.0, making it the second Free BASIC IDE with GUI designer to >> reach production status (after Gambas), and the first with the >> promise of cross-platform abilities. >> >> I don't think I would touch this with a ten foot pole due to the >> likelihood that Microsoft will start looking for money from Mono >> developers in a couple years, SCO-style, but I have no doubt that >> some organizations will use it. I also just think that Gambas as a >> language is better designed than VB.NET, let alone C#. >> >> I also think that anyone who is contributing or plans to ever >> contribute to the Gambas IDE, compiler/interpreter or components >> should refrain from downloading MonoDevelop. It seems likely to me >> that Microsoft or one of its sock puppets would someday try to use >> that as evidence that Gambas developers were ripping off MonoDevelop >> or Mono in general. >> >> Something to keep in mind. >> >> Rob >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From robert.c.rowe at ...626... Tue Mar 18 05:03:38 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 18 Mar 2008 00:03:38 -0400 Subject: [Gambas-user] IDE change requests Message-ID: <47DF3F1A.4070405@...626...> I've been making some improvements to the IDE lately. They are in Gambas3 and I'll be backporting then to Gamabs2 soon. I'm interested to know if there is anything that people really want the IDE to do. Or is there something that it's currently doing that you want it to do different. I've been watching this list for about a week now and have been constructing a To Do list. I'd like to work on things that a lot of people really want though so I need some feedback. Here's some of the things on my To Do list (in no particular order) Integrate the help into the IDE so that you see the help when you need it. For instance I'm trying to add a small textlabel at the bottom of the property window to display help on the selected property. I'd like to extend this to work with the completion window also. Add a class builder wizard similar to the one in VB. Maybe some other builder wizards in the future. Split screen editors (already completed in Gambas3) A code snippets tool to store/retrieve often used code. Possibly with a connection to an online repository to allow sharing of snippets. Robert Rowe From robertsonhamish at ...626... Tue Mar 18 05:10:47 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 18 Mar 2008 11:10:47 +0700 Subject: [Gambas-user] IDE change requests In-Reply-To: <47DF3F1A.4070405@...626...> References: <47DF3F1A.4070405@...626...> Message-ID: Yes...for total newbies like me... 4 checkboxes in the properties panel that allows the window to be locked in place. Top left, top right bottom left and bottom right. On 18/03/2008, Robert Rowe wrote: > > I've been making some improvements to the IDE lately. They are in > Gambas3 and I'll be backporting then to Gamabs2 soon. I'm interested to > know if there is anything that people really want the IDE to do. Or is > there something that it's currently doing that you want it to do > different. > > I've been watching this list for about a week now and have been > constructing a To Do list. I'd like to work on things that a lot of > people really want though so I need some feedback. > > Here's some of the things on my To Do list (in no particular order) > > Integrate the help into the IDE so that you see the help when you need > it. For instance I'm trying to add a small textlabel at the bottom of > the property window to display help on the selected property. I'd like > to extend this to work with the completion window also. > > Add a class builder wizard similar to the one in VB. Maybe some other > builder wizards in the future. > > Split screen editors (already completed in Gambas3) > > A code snippets tool to store/retrieve often used code. Possibly with a > connection to an online repository to allow sharing of snippets. > > Robert Rowe > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Tue Mar 18 06:49:20 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 18 Mar 2008 01:49:20 -0400 Subject: [Gambas-user] Gambas has competition now In-Reply-To: References: <200803171629.51244.sourceforge-raindog2@...94...> Message-ID: <200803180149.20576.sourceforge-raindog2@...94...> On Monday 17 March 2008 22:35, Hamish Robertson wrote: > Sure..all good points rob..but mono is cross platform. Well, Mono is, but as Robert Rowe points out, many of VB.NET's dependencies aren't. But for a Linux developer who wanted to use free software but also deploy on Windows, it would be an option if he weren't afraid of Microsoft's eventual betrayal. > How hard would it be to make GAMBAS truly cross platform? Well, you need some elements we don't have right now. Most importantly, you need 1. a Windows programmer... 2. who's also intimately familiar with Linux, Qt and Gtk... 3. who has time to maintain a set of patches... 4. and time to support all the early-adopter Windows users until enough of them get up to speed to support each other. I'm not that guy. I don't know whether that guy exists. If it's you, though, awesome. Someone was attempting a Cygwin port of Gambas a few years ago, I think using Gtk. The Gtk component is a lot better now and Qt for Windows is GPL now, so it should at least be possible to get something going. I personally wouldn't know where to start, not having run Windows in 9 years now. Rob From robert.c.rowe at ...626... Tue Mar 18 14:16:05 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 18 Mar 2008 09:16:05 -0400 Subject: [Gambas-user] IDE change requests In-Reply-To: References: <47DF3F1A.4070405@...626...> Message-ID: <47DFC095.9070202@...626...> If I understand you correctly you are asking for docking panels. You want to be able to move the property window to other edges. This would require a new component. Big job. It would be nice though. I'll see what I can do. Robert Rowe Robertson wrote: > Yes...for total newbies like me... > 4 checkboxes in the properties panel that allows the window to be locked in > place. Top left, top right bottom left and bottom right. > > > > On 18/03/2008, Robert Rowe wrote: > >> I've been making some improvements to the IDE lately. They are in >> Gambas3 and I'll be backporting then to Gamabs2 soon. I'm interested to >> know if there is anything that people really want the IDE to do. Or is >> there something that it's currently doing that you want it to do >> different. >> >> I've been watching this list for about a week now and have been >> constructing a To Do list. I'd like to work on things that a lot of >> people really want though so I need some feedback. >> >> Here's some of the things on my To Do list (in no particular order) >> >> Integrate the help into the IDE so that you see the help when you need >> it. For instance I'm trying to add a small textlabel at the bottom of >> the property window to display help on the selected property. I'd like >> to extend this to work with the completion window also. >> >> Add a class builder wizard similar to the one in VB. Maybe some other >> builder wizards in the future. >> >> Split screen editors (already completed in Gambas3) >> >> A code snippets tool to store/retrieve often used code. Possibly with a >> connection to an online repository to allow sharing of snippets. >> >> Robert Rowe >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From steven at ...1652... Tue Mar 18 14:44:49 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Tue, 18 Mar 2008 14:44:49 +0100 Subject: [Gambas-user] IDE change requests In-Reply-To: <47DF3F1A.4070405@...626...> References: <47DF3F1A.4070405@...626...> Message-ID: <1205847889.10131.27.camel@...1816...> Hi, It's not so much the IDE, but the debugger. There is, as far as I know, no way to look at the large current variables, if the program stops at execution on some failure. Only the first part of a string is shown, or it is shown for about 3 seconds if you select it. 3 secs is not anough to check a string of about 500 characters. (specially if it concerns a complicated mysql statement ;-). On the ide itself : On re-opening a project, open all last open forms, and positioning on last position. Apart from that, I think it's just great! Steven Le mardi 18 mars 2008 ? 00:03 -0400, Robert Rowe a ?crit : > I've been making some improvements to the IDE lately. They are in > Gambas3 and I'll be backporting then to Gamabs2 soon. I'm interested to > know if there is anything that people really want the IDE to do. Or is > there something that it's currently doing that you want it to do different. > > I've been watching this list for about a week now and have been > constructing a To Do list. I'd like to work on things that a lot of > people really want though so I need some feedback. > > Here's some of the things on my To Do list (in no particular order) > > Integrate the help into the IDE so that you see the help when you need > it. For instance I'm trying to add a small textlabel at the bottom of > the property window to display help on the selected property. I'd like > to extend this to work with the completion window also. > > Add a class builder wizard similar to the one in VB. Maybe some other > builder wizards in the future. > > Split screen editors (already completed in Gambas3) > > A code snippets tool to store/retrieve often used code. Possibly with a > connection to an online repository to allow sharing of snippets. > > Robert Rowe > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Mar 18 14:40:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 18 Mar 2008 14:40:06 +0100 Subject: [Gambas-user] IDE change requests In-Reply-To: <1205847889.10131.27.camel@...1816...> References: <47DF3F1A.4070405@...626...> <1205847889.10131.27.camel@...1816...> Message-ID: <200803181440.06715.gambas@...1...> On mardi 18 mars 2008, Steven Lobbezoo wrote: > Hi, > > It's not so much the IDE, but the debugger. > There is, as far as I know, no way to look at the large current > variables, if the program stops at execution on some failure. > Only the first part of a string is shown, or it is shown for about 3 > seconds if you select it. 3 secs is not anough to check a string of > about 500 characters. (specially if it concerns a complicated mysql > statement ;-). You can use the console to print the contents of variables. The big missing feature is that you can only look in the current stack frame. > > On the ide itself : > On re-opening a project, open all last open forms, and positioning on > last position. This is done in 2.3. Regards, -- Benoit Minisini From robertsonhamish at ...626... Tue Mar 18 15:07:39 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Tue, 18 Mar 2008 21:07:39 +0700 Subject: [Gambas-user] IDE change requests In-Reply-To: <47DFC095.9070202@...626...> References: <47DF3F1A.4070405@...626...> <47DFC095.9070202@...626...> Message-ID: No.. I think I may have worded this incorrectly, my apologies. what I meant was say we have a textbox in the main form. If I resize that form the textbox stays the same size, unless I add code for it to change in size in proportion with the form. This is easily done with code, but could be more easily done with 4 checkboxes in the property panel. Lock top left, lock top right, lock bottom left and lock bottom right. Realbasic already does it and it works great. I think it's an idea worth pinching. ;) On 18/03/2008, Robert Rowe wrote: > > If I understand you correctly you are asking for docking panels. You > want to be able to move the property window to other edges. This would > require a new component. Big job. It would be nice though. I'll see what > I can do. > > > Robert Rowe > > > Robertson wrote: > > Yes...for total newbies like me... > > 4 checkboxes in the properties panel that allows the window to be locked > in > > place. Top left, top right bottom left and bottom right. > > > > > > > > On 18/03/2008, Robert Rowe wrote: > > > >> I've been making some improvements to the IDE lately. They are in > >> Gambas3 and I'll be backporting then to Gamabs2 soon. I'm interested to > >> know if there is anything that people really want the IDE to do. Or is > >> there something that it's currently doing that you want it to do > >> different. > >> > >> I've been watching this list for about a week now and have been > >> constructing a To Do list. I'd like to work on things that a lot of > >> people really want though so I need some feedback. > >> > >> Here's some of the things on my To Do list (in no particular order) > >> > >> Integrate the help into the IDE so that you see the help when you need > >> it. For instance I'm trying to add a small textlabel at the bottom of > >> the property window to display help on the selected property. I'd like > >> to extend this to work with the completion window also. > >> > >> Add a class builder wizard similar to the one in VB. Maybe some other > >> builder wizards in the future. > >> > >> Split screen editors (already completed in Gambas3) > >> > >> A code snippets tool to store/retrieve often used code. Possibly with a > >> connection to an online repository to allow sharing of snippets. > >> > >> Robert Rowe > >> > >> > ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: lockboxes.png Type: image/png Size: 138793 bytes Desc: not available URL: From m0e.lnx at ...626... Tue Mar 18 15:30:10 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 18 Mar 2008 09:30:10 -0500 Subject: [Gambas-user] Embedding a bulleted list in a text label Message-ID: <1f1e8c1b0803180730q60aad079p90b3d05ac2f57821@...627...> I'm trying to format text in a text label in an attempt to make a bulleted list. I've been trying to use this HTML to format it.
  • Item1
  • Item2
  • Item3
But when I run the code, the textlabel displays exactly that... the html code... not the formatted text... which makes me wonder 2 things... up to what point is one able to use HTML tags within gambas to format text, and then, how can I accomplish this? using gambas2-2.3 Regards, M0E From mcinquino at ...1875... Tue Mar 18 15:35:48 2008 From: mcinquino at ...1875... (Mike Cinquino) Date: Tue, 18 Mar 2008 10:35:48 -0400 Subject: [Gambas-user] using a button to trigger a keyboard event Message-ID: <1205850948.5528.6.camel@...37...> Is it possible to write code in Gambas that will allow it to act as a virtual keyboard? Thanks, Mike From robert.c.rowe at ...626... Tue Mar 18 15:46:05 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 18 Mar 2008 10:46:05 -0400 Subject: [Gambas-user] IDE change requests In-Reply-To: References: <47DF3F1A.4070405@...626...> <47DFC095.9070202@...626...> Message-ID: <47DFD5AD.5010605@...626...> I understand now. You want to anchor a control to an edge so that the distance from the edge of the control to the edge of the container remains constant. This makes resizing a snap. I use it in .Net all the time. I think that this would require changes to the individual controls though. Maybe Benoit or one of the other component writers could add this. It's a bit beyond me at this point. Robert Rowe Hamish Robertson wrote: > No.. I think I may have worded this incorrectly, my apologies. > > what I meant was say we have a textbox in the main form. If I resize that > form the textbox stays the same size, unless I add code for it to change in > size in proportion with the form. > > This is easily done with code, but could be more easily done with 4 > checkboxes in the property panel. Lock top left, lock top right, lock bottom > left and lock bottom right. > > Realbasic already does it and it works great. I think it's an idea worth > pinching. ;) > > On 18/03/2008, Robert Rowe wrote: > >> If I understand you correctly you are asking for docking panels. You >> want to be able to move the property window to other edges. This would >> require a new component. Big job. It would be nice though. I'll see what >> I can do. >> >> >> Robert Rowe >> >> >> Robertson wrote: >> >>> Yes...for total newbies like me... >>> 4 checkboxes in the properties panel that allows the window to be locked >>> >> in >> >>> place. Top left, top right bottom left and bottom right. >>> >>> >>> >>> On 18/03/2008, Robert Rowe wrote: >>> >>> >>>> I've been making some improvements to the IDE lately. They are in >>>> Gambas3 and I'll be backporting then to Gamabs2 soon. I'm interested to >>>> know if there is anything that people really want the IDE to do. Or is >>>> there something that it's currently doing that you want it to do >>>> different. >>>> >>>> I've been watching this list for about a week now and have been >>>> constructing a To Do list. I'd like to work on things that a lot of >>>> people really want though so I need some feedback. >>>> >>>> Here's some of the things on my To Do list (in no particular order) >>>> >>>> Integrate the help into the IDE so that you see the help when you need >>>> it. For instance I'm trying to add a small textlabel at the bottom of >>>> the property window to display help on the selected property. I'd like >>>> to extend this to work with the completion window also. >>>> >>>> Add a class builder wizard similar to the one in VB. Maybe some other >>>> builder wizards in the future. >>>> >>>> Split screen editors (already completed in Gambas3) >>>> >>>> A code snippets tool to store/retrieve often used code. Possibly with a >>>> connection to an online repository to allow sharing of snippets. >>>> >>>> Robert Rowe >>>> >>>> >>>> >> ------------------------------------------------------------------------- >> >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>>> >> ------------------------------------------------------------------------- >> >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> From robert.c.rowe at ...626... Tue Mar 18 15:50:28 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 18 Mar 2008 10:50:28 -0400 Subject: [Gambas-user] using a button to trigger a keyboard event In-Reply-To: <1205850948.5528.6.camel@...37...> References: <1205850948.5528.6.camel@...37...> Message-ID: <47DFD6B4.9030405@...626...> The Desktop object has a SendKeys method that should do this for you. Robert Rowe Mike Cinquino wrote: > Is it possible to write code in Gambas that will allow it to act as a > virtual keyboard? > > Thanks, > Mike > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From mcinquino at ...1875... Tue Mar 18 15:59:00 2008 From: mcinquino at ...1875... (Mike Cinquino) Date: Tue, 18 Mar 2008 10:59:00 -0400 Subject: [Gambas-user] using a button to trigger a keyboard event In-Reply-To: <47DFD6B4.9030405@...626...> References: <1205850948.5528.6.camel@...37...> <47DFD6B4.9030405@...626...> Message-ID: <1205852340.5528.12.camel@...37...> I don't see the SendKeys method? Is it available in Version 1.9.49? That is the version I have installed. On Tue, 2008-03-18 at 10:50 -0400, Robert Rowe wrote: > The Desktop object has a SendKeys method that should do this for you. > > Robert Rowe > > > > Mike Cinquino wrote: > > Is it possible to write code in Gambas that will allow it to act as a > > virtual keyboard? > > > > Thanks, > > Mike > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From robert.c.rowe at ...626... Tue Mar 18 16:20:18 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 18 Mar 2008 11:20:18 -0400 Subject: [Gambas-user] using a button to trigger a keyboard event In-Reply-To: <1205852340.5528.12.camel@...37...> References: <1205850948.5528.6.camel@...37...> <47DFD6B4.9030405@...626...> <1205852340.5528.12.camel@...37...> Message-ID: <47DFDDB2.3020207@...626...> I don't know when sendkeys was added. I looked in the documentation. I've never actually used sendkeys myself. Robert Rowe Mike Cinquino wrote: > I don't see the SendKeys method? Is it available in Version 1.9.49? That > is the version I have installed. > > > On Tue, 2008-03-18 at 10:50 -0400, Robert Rowe wrote: > >> The Desktop object has a SendKeys method that should do this for you. >> >> Robert Rowe >> >> >> >> Mike Cinquino wrote: >> >>> Is it possible to write code in Gambas that will allow it to act as a >>> virtual keyboard? >>> >>> Thanks, >>> Mike >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From leonardo at ...1237... Tue Mar 18 16:56:50 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 18 Mar 2008 16:56:50 +0100 Subject: [Gambas-user] Gambas has competition now In-Reply-To: <200803171629.51244.sourceforge-raindog2@...94...> References: <200803171629.51244.sourceforge-raindog2@...94...> Message-ID: <47DFE642.9080108@...1237...> Rob ha scritto: > http://arstechnica.com/journals/linux.ars/2008/03/17/monodevelop-1-0-officially-released > > ( http://xrl.us/bhs3j in case the link breaks ) > > The fruits of Novell's unholy alliance with Microsoft have finally > reached 1.0, making it the second Free BASIC IDE with GUI designer to > reach production status (after Gambas), and the first with the > promise of cross-platform abilities. > > I don't think I would touch this with a ten foot pole due to the > likelihood that Microsoft will start looking for money from Mono > developers in a couple years, SCO-style, but I have no doubt that > some organizations will use it. I also just think that Gambas as a > language is better designed than VB.NET, let alone C#. > > I also think that anyone who is contributing or plans to ever > contribute to the Gambas IDE, compiler/interpreter or components > should refrain from downloading MonoDevelop. It seems likely to me > that Microsoft or one of its sock puppets would someday try to use > that as evidence that Gambas developers were ripping off MonoDevelop > or Mono in general. > > Something to keep in mind. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I dislike Mono. It's a porting of a closed programming environment for a free system. Microsoft ever claimed (before and after the joint-venture with Novell) that Mono is a try of reverse-engineering and I have to grant with this point of view. If you use Linux I assume that you're looking for an opensource system and want to use free languages. But if you have to use a non-free environment (.Net is Microsoft patent) you could use Windows, don't you? -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From david_villalobos_c at ...43... Tue Mar 18 17:04:02 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 18 Mar 2008 09:04:02 -0700 (PDT) Subject: [Gambas-user] ERROR Class Message-ID: <662157.48940.qm@...1657...> Hi all, If I do: DIM hProceso AS Process hProceso = SHELL "dir /home/david" FOR READ 'Lets supposed the process fails IF ERROR THEN Message("The process has crashed!!!") Will it work? Or ERROR is just ti be used after TRY? Regards David --------------------------------- Never miss a thing. Make Yahoo your homepage. From gambas at ...1... Tue Mar 18 17:12:29 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 18 Mar 2008 17:12:29 +0100 Subject: [Gambas-user] ERROR Class In-Reply-To: <662157.48940.qm@...1657...> References: <662157.48940.qm@...1657...> Message-ID: <200803181712.29210.gambas@...1...> On mardi 18 mars 2008, David Villalobos Cambronero wrote: > Hi all, > If I do: > > DIM hProceso AS Process > > hProceso = SHELL "dir /home/david" FOR READ 'Lets supposed the process > fails > > IF ERROR THEN Message("The process has crashed!!!") > > Will it work? Or ERROR is just ti be used after TRY? > > Regards > > David > You should use ERROR only after TRY, because the behaviour of ERROR has changed in Gambas 3. And a crashed program is not an error. :-) You must read the Process.State property to know what happened. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Tue Mar 18 17:25:40 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 18 Mar 2008 12:25:40 -0400 Subject: [Gambas-user] Gambas has competition now In-Reply-To: <47DFE642.9080108@...1237...> References: <200803171629.51244.sourceforge-raindog2@...94...> <47DFE642.9080108@...1237...> Message-ID: <200803181225.41170.sourceforge-raindog2@...94...> On Tuesday 18 March 2008 11:56, Leonardo Miliani wrote: > If you use Linux I assume that you're looking for an opensource > system and want to use free languages. But if you have to use a > non-free environment (.Net is Microsoft patent) you could use > Windows, don't you? I agree with you, and it's upsetting that so many distributions carry Mono in their default repositories while relegating other patent-encumbered technologies like mp3 or DVD playback to "non-free" status and making it a pain for regular users to find them. But .NET has gained a lot of popularity with programmers, and many of them don't understand what "patent-encumbered" even means. Those are the people who are going to see MonoDevelop as an alternative to Gambas (if they even hear of Gambas at all, because the news sites seem a lot more willing to cover Mono than Gambas.) Rob From david_villalobos_c at ...43... Tue Mar 18 17:40:04 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 18 Mar 2008 09:40:04 -0700 (PDT) Subject: [Gambas-user] Instalation path Message-ID: <739452.83322.qm@...1678...> Hi all, When I install my application from the source package created with Gambas, the executable is instaled in /usr/local/usr/local/bin/, someone knows why? Regards. David ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From gambas at ...1... Tue Mar 18 17:42:37 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 18 Mar 2008 17:42:37 +0100 Subject: [Gambas-user] Gambas has competition now In-Reply-To: <200803181225.41170.sourceforge-raindog2@...94...> References: <200803171629.51244.sourceforge-raindog2@...94...> <47DFE642.9080108@...1237...> <200803181225.41170.sourceforge-raindog2@...94...> Message-ID: <200803181742.37323.gambas@...1...> On mardi 18 mars 2008, Rob wrote: > On Tuesday 18 March 2008 11:56, Leonardo Miliani wrote: > > If you use Linux I assume that you're looking for an opensource > > system and want to use free languages. But if you have to use a > > non-free environment (.Net is Microsoft patent) you could use > > Windows, don't you? > > I agree with you, and it's upsetting that so many distributions carry > Mono in their default repositories while relegating other > patent-encumbered technologies like mp3 or DVD playback to "non-free" > status and making it a pain for regular users to find them. I think this is mainly because of the Mono applications: Beagle, TomBoy, and F-Spot. Even on Mandriva, if I install KDE, I manually remove Mono to prevent Beagle from indexing of my directories. :-) > > But .NET has gained a lot of popularity with programmers, and many of > them don't understand what "patent-encumbered" even means. Those are > the people who are going to see MonoDevelop as an alternative to > Gambas (if they even hear of Gambas at all, because the news sites > seem a lot more willing to cover Mono than Gambas.) > > Rob > Maybe people should do desktop applications with Gambas, and then maybe they will be integrated in the main desktop environments, like the above ones. -- Benoit Minisini From david_villalobos_c at ...43... Tue Mar 18 17:43:03 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 18 Mar 2008 09:43:03 -0700 (PDT) Subject: [Gambas-user] Expand and Autoresize properties. Message-ID: <658673.87178.qm@...1671...> Hi all, I got a conflict betwen Expand and Autoresize properties for Labels. If Expand and Autoresize are setted to TRUE then the the lable expands to fit its conteiner, but does not autoresize. It is normal? I think yes, but just want to validate? Attached is an example. Regards. David ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping -------------- next part -------------- A non-text attachment was scrubbed... Name: InPutBox-0.0.1.tar.gz Type: application/x-gzip-compressed Size: 8030 bytes Desc: not available URL: From gambas at ...1... Tue Mar 18 17:45:22 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 18 Mar 2008 17:45:22 +0100 Subject: [Gambas-user] Instalation path In-Reply-To: <739452.83322.qm@...1678...> References: <739452.83322.qm@...1678...> Message-ID: <200803181745.22748.gambas@...1...> On mardi 18 mars 2008, David Villalobos Cambronero wrote: > Hi all, > When I install my application from the source package created with Gambas, > the executable is instaled in /usr/local/usr/local/bin/, someone knows why? > > Regards. > > David > I think you did something wrong somewhere... -- Benoit Minisini From gambas at ...1... Tue Mar 18 17:46:23 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 18 Mar 2008 17:46:23 +0100 Subject: [Gambas-user] Expand and Autoresize properties. In-Reply-To: <658673.87178.qm@...1671...> References: <658673.87178.qm@...1671...> Message-ID: <200803181746.23567.gambas@...1...> On mardi 18 mars 2008, David Villalobos Cambronero wrote: > Hi all, > I got a conflict betwen Expand and Autoresize properties for Labels. If > Expand and Autoresize are setted to TRUE then the the lable expands to fit > its conteiner, but does not autoresize. It is normal? I think yes, but just > want to validate? Attached is an example. > > Regards. > > David > It may work in some cases, as the meaning of AutoResize depends on the control, and the meaning of Expand depends on its container. But they are usually contradictory. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Tue Mar 18 17:56:08 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 18 Mar 2008 09:56:08 -0700 (PDT) Subject: [Gambas-user] Expand and Autoresize properties. Message-ID: <298251.4018.qm@...1678...> Ok, great to know that... Regards, David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Tuesday, March 18, 2008 5:46:23 PM Subject: Re: [Gambas-user] Expand and Autoresize properties. On mardi 18 mars 2008, David Villalobos Cambronero wrote: > Hi all, > I got a conflict betwen Expand and Autoresize properties for Labels. If > Expand and Autoresize are setted to TRUE then the the lable expands to fit > its conteiner, but does not autoresize. It is normal? I think yes, but just > want to validate? Attached is an example. > > Regards. > > David > It may work in some cases, as the meaning of AutoResize depends on the control, and the meaning of Expand depends on its container. But they are usually contradictory. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping From david_villalobos_c at ...43... Tue Mar 18 17:58:51 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 18 Mar 2008 09:58:51 -0700 (PDT) Subject: [Gambas-user] Instalation path Message-ID: <377998.76737.qm@...1781...> mmmmm, well I'll check and tell you Regards. David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Tuesday, March 18, 2008 5:45:22 PM Subject: Re: [Gambas-user] Instalation path On mardi 18 mars 2008, David Villalobos Cambronero wrote: > Hi all, > When I install my application from the source package created with Gambas, > the executable is instaled in /usr/local/usr/local/bin/, someone knows why? > > Regards. > > David > I think you did something wrong somewhere... -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping From sourceforge-raindog2 at ...94... Tue Mar 18 18:58:27 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 18 Mar 2008 13:58:27 -0400 Subject: [Gambas-user] Gambas has competition now In-Reply-To: <200803181742.37323.gambas@...1...> References: <200803171629.51244.sourceforge-raindog2@...94...> <200803181225.41170.sourceforge-raindog2@...94...> <200803181742.37323.gambas@...1...> Message-ID: <200803181358.28016.sourceforge-raindog2@...94...> On Tuesday 18 March 2008 12:42, Benoit Minisini wrote: > I think this is mainly because of the Mono applications: Beagle, > TomBoy, and F-Spot. Even on Mandriva, if I install KDE, I manually > remove Mono to prevent Beagle from indexing of my directories. :-) Yes, I do this too, every time. But I personally would argue that ffmpeg and lame are far more useful than any of beagle, tomboy, and f-spot, and the inclusion of the latter while using patents as an excuse to exclude the former seems incredibly short-sighted. > Maybe people should do desktop applications with Gambas, and then > maybe they will be integrated in the main desktop environments, > like the above ones. I agree, except that the kinds of desktop apps I tend to write outside of work usually involve one or more of the programs I mentioned that are relegated to the PLF in Mandriva ;-) Rob From gambas at ...1... Tue Mar 18 22:24:47 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 18 Mar 2008 22:24:47 +0100 Subject: [Gambas-user] Release of Gambas 2.4 Message-ID: <200803182224.47223.gambas@...1...> Hi, This new release is mainly a fix of the GTK+ component, which was broken in the 2.3 version. Here is the full ChangeLog: ------------------------------------------------------------------------------- [DEVELOPMENT ENVIRONMENT] * BUG: Ensure that the property panel is correctly shown or hidden when the project is opened. * BUG: More space for displaying the project name in the project property dialog. * NEW: Tips' Spanish translation updated. [INTERPRETER] * BUG: Mid$("", 0) returns an error now. [GB.FORM] * BUG: ValueBox now reformats its contents after its Value property has been set. [GB.GTK] * BUG: The default tray icon is the same as gb.qt now. * BUG: Using stock pictures work correctly again, and does not crash the interpreter anymore. * BUG: Fixes memory leaks with font and picture management, and in other places. * BUG: Composed keys are correctly handled again by KeyPress events. * BUG: Disable the management of input methods in TextBox and TextArea controls, so that the input methods are not disturbed. Consequently; SCIM and Bridged SCIM work again. * BUG: You can read keyboard events properties in a Form KeyPress or KeyRelease event handler correctly now. [GB.QT] * BUG: Removed some memory leaks. * BUG: TrayIcon objects are correctly destroyed at program exit. * BUG: TrayIcon Width, Height, ScreenX and ScreenY properties do not crash anymore when the tray icon is hidden. They return zero instead. [GB.WEB] * BUG: CGI.Decode() is more robust against malformed URLs. ------------------------------------------------------------------------------- I would like to thanks Valgrind for being the most useful debugging tool I ever see (provided that you have a powerful computer of course). It allowed me to fix memory leaks in both GTK+ and QT components. When the 2.x version will be stable enough, I will be able to start releasing some snapshots of the 3.0 development version. Regards, -- Benoit Minisini From sylvain.marleau at ...647... Wed Mar 19 00:50:51 2008 From: sylvain.marleau at ...647... (2020) Date: Tue, 18 Mar 2008 16:50:51 -0700 (PDT) Subject: [Gambas-user] FTDI USB Serial Device converter - Inavalid Parameter Message-ID: <16133910.post@...1379...> Hello folk, One of FTDI functions (FT_Write) call from Gambas 2.99 project does not respond properly (Return codes: 6 FT_INVALID_PARAMETER). I not sure if the data transfered by Gambas to the FTDI driver is converted properly, or it is just my bad programming. Code from my Gambas module; http://www.nabble.com/file/p16133910/opendmx.txt opendmx.txt Any ideas, thanks in advance. Sylvain. -- View this message in context: http://www.nabble.com/FTDI-USB-Serial-Device-converter---Inavalid-Parameter-tp16133910p16133910.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Wed Mar 19 01:34:45 2008 From: rterry at ...1822... (richard terry) Date: Wed, 19 Mar 2008 11:34:45 +1100 Subject: [Gambas-user] Another possible enhancment when adding icons to buttons etc Message-ID: <200803191134.45074.rterry@...1822...> Don't know if I mentioned this, but sometimes I've found I go to use an icon (my project icons, not stock) and think "damn... want this to be size 16 - would be handy to have a popup menu on right clicking the icon allowing opening it in an external tool such as kiconedit. Regards Richard From gambas at ...1... Wed Mar 19 01:49:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 19 Mar 2008 01:49:27 +0100 Subject: [Gambas-user] Another possible enhancment when adding icons to buttons etc In-Reply-To: <200803191134.45074.rterry@...1822...> References: <200803191134.45074.rterry@...1822...> Message-ID: <200803190149.27458.gambas@...1...> On mercredi 19 mars 2008, richard terry wrote: > Don't know if I mentioned this, but sometimes I've found I go to use an > icon (my project icons, not stock) and think "damn... want this to be size > 16 - would be handy to have a popup menu on right clicking the icon > allowing opening it in an external tool such as kiconedit. > > Regards > > Richard > But that is already implemented... -- Benoit Minisini From robert.c.rowe at ...626... Wed Mar 19 02:48:40 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 18 Mar 2008 21:48:40 -0400 Subject: [Gambas-user] Another possible enhancment when adding icons to buttons etc In-Reply-To: <200803190149.27458.gambas@...1...> References: <200803191134.45074.rterry@...1822...> <200803190149.27458.gambas@...1...> Message-ID: <47E070F8.9030700@...626...> How is the list of applications obtained? I have 7 programs associated with png's but I only get 3 (kolorpaint, krita & gimp) when I right click on a png and move to the Edit With submenu. My system is kubuntu. Robert Rowe Benoit Minisini wrote: > On mercredi 19 mars 2008, richard terry wrote: > >> Don't know if I mentioned this, but sometimes I've found I go to use an >> icon (my project icons, not stock) and think "damn... want this to be size >> 16 - would be handy to have a popup menu on right clicking the icon >> allowing opening it in an external tool such as kiconedit. >> >> Regards >> >> Richard >> >> > > But that is already implemented... > > From gambas at ...1... Wed Mar 19 02:48:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 19 Mar 2008 02:48:39 +0100 Subject: [Gambas-user] Another possible enhancment when adding icons to buttons etc In-Reply-To: <47E070F8.9030700@...626...> References: <200803191134.45074.rterry@...1822...> <200803190149.27458.gambas@...1...> <47E070F8.9030700@...626...> Message-ID: <200803190248.39577.gambas@...1...> On mercredi 19 mars 2008, Robert Rowe wrote: > How is the list of applications obtained? I have 7 programs associated > with png's but I only get 3 (kolorpaint, krita & gimp) when I right > click on a png and move to the Edit With submenu. My system is kubuntu. > > Robert Rowe > It is just a list in the program code. There is no support for mime-type association yet. -- Benoit Minisini From rterry at ...1822... Wed Mar 19 04:07:19 2008 From: rterry at ...1822... (richard terry) Date: Wed, 19 Mar 2008 14:07:19 +1100 Subject: [Gambas-user] Another possible enhancment when adding icons to buttons etc In-Reply-To: <200803190149.27458.gambas@...1...> References: <200803191134.45074.rterry@...1822...> <200803190149.27458.gambas@...1...> Message-ID: <200803191407.19337.rterry@...1822...> On Wed, 19 Mar 2008 11:49:27 am you wrote: > On mercredi 19 mars 2008, richard terry wrote: > > Don't know if I mentioned this, but sometimes I've found I go to use an > > icon (my project icons, not stock) and think "damn... want this to be > > size 16 - would be handy to have a popup menu on right clicking the icon > > allowing opening it in an external tool such as kiconedit. > > > > Regards > > > > Richard > > But that is already implemented... No in my version (2.4 build 1198). I put a tb on the toolbar, go to pictures up pops the dialog, select an icon from my icon tree, right mouse click .........nothing happens. Any suggestions.. Richard From robert.c.rowe at ...626... Wed Mar 19 05:15:35 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Wed, 19 Mar 2008 00:15:35 -0400 Subject: [Gambas-user] Another possible enhancment when adding icons to buttons etc In-Reply-To: <200803191407.19337.rterry@...1822...> References: <200803191134.45074.rterry@...1822...> <200803190149.27458.gambas@...1...> <200803191407.19337.rterry@...1822...> Message-ID: <47E09367.3070700@...626...> If the image is in your data directory you can right click on the file in the project list and you get an Edit With option. The list is hard coded right now but it might have what you need. Robert Rowe richard terry wrote: > On Wed, 19 Mar 2008 11:49:27 am you wrote: > >> On mercredi 19 mars 2008, richard terry wrote: >> >>> Don't know if I mentioned this, but sometimes I've found I go to use an >>> icon (my project icons, not stock) and think "damn... want this to be >>> size 16 - would be handy to have a popup menu on right clicking the icon >>> allowing opening it in an external tool such as kiconedit. >>> >>> Regards >>> >>> Richard >>> >> But that is already implemented... >> > > No in my version (2.4 build 1198). I put a tb on the toolbar, go to pictures > up pops the dialog, select an icon from my icon tree, right mouse > click .........nothing happens. > > Any suggestions.. > > Richard > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From smiefert at ...784... Wed Mar 19 13:20:20 2008 From: smiefert at ...784... (Stefan Miefert) Date: Wed, 19 Mar 2008 13:20:20 +0100 Subject: [Gambas-user] Multiple selection Columnview Message-ID: <47E10504.4080208@...784...> Hello, i have a Columview. How can i get all selected entry when i set it to multiple choice? From Karl.Reinl at ...9... Wed Mar 19 15:51:22 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 19 Mar 2008 15:51:22 +0100 Subject: [Gambas-user] gambas 2 Message-ID: <1205938282.5484.4.camel@...40...> Salut, why gbx2 -V says 2.1.0 I use : Rev: 1197 from 2008-03-18 21:11:20 +0100 (Di, 18 M?r 2008) Amicalment Charlie From demosthenesk at ...626... Wed Mar 19 15:55:43 2008 From: demosthenesk at ...626... (Demosthenes K) Date: Wed, 19 Mar 2008 16:55:43 +0200 Subject: [Gambas-user] compiling error gambas2-2.3.0 and 2.4.0 Message-ID: Hi to all, i am new to Gambas world and to this list and i face up some problems. i use gambas2-2.0.0 for now and i am very happy. i try to compile the new versions of gambas but i get this error. make[4]: Entering directory `/home/dimos/Pliroforiki/DEVELOPMENT/Basic/gambas/gambas2-2.3.0/gb.net.smtp/src' /bin/sh ../libtool --tag=CC --mode=link gcc -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -module -no-undefined -o gb.net.smtp.la -rpath /usr/local/lib/gambas2 main.lo libsmtp_comm.lo libsmtp_connection.lo libsmtp_data.lo libsmtp_error.lo base64.lo comm.lo parts.lo quoted.lo CSmtpClient.lo -lglib-2.0 gcc -shared .libs/main.o .libs/libsmtp_comm.o .libs/libsmtp_connection.o .libs/libsmtp_data.o .libs/libsmtp_error.o .libs/base64.o .libs/comm.o .libs/parts.o .libs/quoted.o .libs/CSmtpClient.o -lglib-2.0 -Wl,-soname -Wl,gb.net.smtp.so.0 -o .libs/gb.net.smtp.so.0.0.0 /usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lglib-2.0 collect2: ld returned 1 exit status make[4]: *** [gb.net.smtp.la] Error 1 make[4]: Leaving directory `/home/dimos/Pliroforiki/DEVELOPMENT/Basic/gambas/gambas2-2.3.0/gb.net.smtp/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/dimos/Pliroforiki/DEVELOPMENT/Basic/gambas/gambas2-2.3.0/gb.net.smtp' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/dimos/Pliroforiki/DEVELOPMENT/Basic/gambas/gambas2-2.3.0/gb.net.smtp' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/dimos/Pliroforiki/DEVELOPMENT/Basic/gambas/gambas2-2.3.0' make: *** [all] Error 2 Note: i have installed glib2 libs and devel rpms and i use openSuse 10.2 any help? From gambas at ...1... Wed Mar 19 16:10:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 19 Mar 2008 16:10:13 +0100 Subject: [Gambas-user] gambas 2 In-Reply-To: <1205938282.5484.4.camel@...40...> References: <1205938282.5484.4.camel@...40...> Message-ID: <200803191610.13652.gambas@...1...> On mercredi 19 mars 2008, Charlie Reinl wrote: > Salut, > > why gbx2 -V says 2.1.0 > > I use : Rev: 1197 from 2008-03-18 21:11:20 +0100 (Di, 18 M?r 2008) > > > Amicalment > Charlie > Forgot to reconfigure? -- Benoit Minisini From david_villalobos_c at ...43... Wed Mar 19 16:20:59 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Wed, 19 Mar 2008 08:20:59 -0700 (PDT) Subject: [Gambas-user] DrawingArea Message-ID: <853656.32369.qm@...1655...> Hi all, It is just an opinion. Every time I have to do something with DrawingArea I have to set the property Cached to TRUE, I have expended two days trying to put gb.report working on my proyect, ALL seemed to be OK but the report was not drawed. After two days I noted that this property was setted to TRUE on the examples then my report works. Is not for beenig lazy, but, Can be that property setted to TRUE by default? I think it will help Gambas newies ;-) (Like me). Any comments? Best regards... David --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. From gambas at ...1... Wed Mar 19 16:29:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 19 Mar 2008 16:29:07 +0100 Subject: [Gambas-user] DrawingArea In-Reply-To: <853656.32369.qm@...1655...> References: <853656.32369.qm@...1655...> Message-ID: <200803191629.07061.gambas@...1...> On mercredi 19 mars 2008, David Villalobos Cambronero wrote: > Hi all, > > It is just an opinion. > > Every time I have to do something with DrawingArea I have to set the > property Cached to TRUE, I have expended two days trying to put gb.report > working on my proyect, ALL seemed to be OK but the report was not drawed. > After two days I noted that this property was setted to TRUE on the > examples then my report works. > > Is not for beenig lazy, but, Can be that property setted to TRUE by > default? I think it will help Gambas newies ;-) (Like me). > > Any comments? > > Best regards... > > David > There is two ways of using DrawingArea: drawing during its Draw event, or setting Cached to TRUE and drawing in it directly. I don't see why the first one would be more difficult than the second one, even for a newbie. But I know for sure that setting Cached to TRUE use a pixmap buffer that uses memory, so I prefer Cached being set to FALSE by default. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Wed Mar 19 16:32:49 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Wed, 19 Mar 2008 08:32:49 -0700 (PDT) Subject: [Gambas-user] DrawingArea In-Reply-To: <200803191629.07061.gambas@...1...> Message-ID: <359236.37803.qm@...1658...> Ahh I see, you are right... anyway, thanks for explanation... Regards... David Benoit Minisini wrote: On mercredi 19 mars 2008, David Villalobos Cambronero wrote: > Hi all, > > It is just an opinion. > > Every time I have to do something with DrawingArea I have to set the > property Cached to TRUE, I have expended two days trying to put gb.report > working on my proyect, ALL seemed to be OK but the report was not drawed. > After two days I noted that this property was setted to TRUE on the > examples then my report works. > > Is not for beenig lazy, but, Can be that property setted to TRUE by > default? I think it will help Gambas newies ;-) (Like me). > > Any comments? > > Best regards... > > David > There is two ways of using DrawingArea: drawing during its Draw event, or setting Cached to TRUE and drawing in it directly. I don't see why the first one would be more difficult than the second one, even for a newbie. But I know for sure that setting Cached to TRUE use a pixmap buffer that uses memory, so I prefer Cached being set to FALSE by default. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. From gambas at ...1... Thu Mar 20 00:41:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 Mar 2008 00:41:02 +0100 Subject: [Gambas-user] Release of Gambas 2.4.1 Message-ID: <200803200041.02138.gambas@...1...> Hi, This release fixes a mistake in a gb.net.smtp configuration file that prevented it to compile on systems where the glib library is not installed in a standard directory. Regards, -- Benoit Minisini From obductor at ...626... Thu Mar 20 02:11:09 2008 From: obductor at ...626... (Roberto Estevam) Date: Thu, 20 Mar 2008 00:11:09 -0100 Subject: [Gambas-user] Release of Gambas 2.4.1 In-Reply-To: <200803200041.02138.gambas@...1...> References: <200803200041.02138.gambas@...1...> Message-ID: <13c329a90803191811g297ca003y7e35b09286cfbecd@...627...> Benoit, database gambas don't work. 2.4.0 and 2.4.1 On 19/03/2008, Benoit Minisini wrote: > > Hi, > > This release fixes a mistake in a gb.net.smtp configuration file that > prevented it to compile on systems where the glib library is not installed > in > a standard directory. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1822... Thu Mar 20 04:47:21 2008 From: rterry at ...1822... (richard terry) Date: Thu, 20 Mar 2008 14:47:21 +1100 Subject: [Gambas-user] Using gambas 2.99 Message-ID: <200803201447.21202.rterry@...1822...> I created a PKGBUILD for my archlinux box and downloaded the svn and built a package for my distro for (I think) the 3.0 trunk. At least the versioning comes up saying 2.99, so I guess that's the one. Rob said he'd committed the split editor to the branch,but I can't see it implemented. Any other pros/cons about using 2.99 for my ongoing development? Regards Richard T From gambas at ...1... Thu Mar 20 11:10:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 Mar 2008 11:10:30 +0100 Subject: [Gambas-user] Release of Gambas 2.4.1 In-Reply-To: <13c329a90803191811g297ca003y7e35b09286cfbecd@...627...> References: <200803200041.02138.gambas@...1...> <13c329a90803191811g297ca003y7e35b09286cfbecd@...627...> Message-ID: <200803201110.30863.gambas@...1...> On jeudi 20 mars 2008, Roberto Estevam wrote: > Benoit, database gambas don't work. 2.4.0 and 2.4.1 > There it works. More details maybe? -- Benoit Minisini From ariefbayu at ...626... Thu Mar 20 13:45:22 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Thu, 20 Mar 2008 19:45:22 +0700 Subject: [Gambas-user] Stop application from program Message-ID: <976ad9050803200545qa343969l6ce426ce3ca97051@...627...> Hi all, I don't know if the subject is right. I have a condition where my application run from module PUBLIC SUB MAIN and from there, It create a trayicon and a bunch of menu. Now, my question is how can I close the aplication? since ME.close doesn't available? Regard, -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From robert.c.rowe at ...626... Thu Mar 20 15:40:08 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Thu, 20 Mar 2008 10:40:08 -0400 Subject: [Gambas-user] Stop application from program In-Reply-To: <976ad9050803200545qa343969l6ce426ce3ca97051@...627...> References: <976ad9050803200545qa343969l6ce426ce3ca97051@...627...> Message-ID: <47E27748.6070800@...626...> The Quit statement will end your program. Robert Rowe Arief Bayu Purwanto wrote: > Hi all, > > I don't know if the subject is right. I have a condition where my > application run from module > > PUBLIC SUB MAIN > > and from there, It create a trayicon and a bunch of menu. > Now, my question is how can I close the aplication? since ME.close doesn't > available? > > Regard, > > From ariefbayu at ...626... Thu Mar 20 15:42:53 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Thu, 20 Mar 2008 21:42:53 +0700 Subject: [Gambas-user] Stop application from program In-Reply-To: <47E27748.6070800@...626...> References: <976ad9050803200545qa343969l6ce426ce3ca97051@...627...> <47E27748.6070800@...626...> Message-ID: <976ad9050803200742y4fcd7a90pf4c7e3f379d0d095@...627...> On Thu, Mar 20, 2008 at 9:40 PM, Robert Rowe wrote: > The Quit statement will end your program. > > Robert Rowe ah, thank you. -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From demosthenesk at ...626... Thu Mar 20 16:51:46 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 20 Mar 2008 17:51:46 +0200 Subject: [Gambas-user] VirtualCd gambas project released Message-ID: Hi all, out there This is my first application in gambas2 This small program mounts and unmounts ISO images from/to your file system from/to a specific mount point. It's an application for newbies in Linux world or for users who like the visual way, not the command line way. You can use the command line "mount -o loop -t iso9660 -r cd_image.iso /mnt/cdrom" or you can use this application the choice is yours. This program is written in gambas2 basic. From demosthenesk at ...626... Thu Mar 20 16:55:29 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 20 Mar 2008 17:55:29 +0200 Subject: [Gambas-user] VirtualCd gambas project released Message-ID: i forgot the link http://sourceforge.net/projects/virtualcd/ have fun and enjoy gambas !!! From gareth at ...1689... Thu Mar 20 17:33:20 2008 From: gareth at ...1689... (Gareth Bult) Date: Thu, 20 Mar 2008 16:33:20 +0000 (GMT) Subject: [Gambas-user] Release of Gambas 2.4.1 In-Reply-To: <200803201110.30863.gambas@...1...> Message-ID: <10092812.4111206030800495.JavaMail.root@...1834...> Hi, I seem to have a problem in 2.4.1 (and possibly other recent versions) , I have a control which inherits "UserContainer", and it complains when run that it can't load the class UserContainer. (it uses Gambas written components) Is there any obvious change / reason for this ? (the software runs fine on a machine running 2.1) tia Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, March 20, 2008 10:10:30 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Release of Gambas 2.4.1 On jeudi 20 mars 2008, Roberto Estevam wrote: > Benoit, database gambas don't work. 2.4.0 and 2.4.1 > There it works. More details maybe? -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Mar 20 17:38:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 Mar 2008 17:38:24 +0100 Subject: [Gambas-user] Release of Gambas 2.4.1 In-Reply-To: <10092812.4111206030800495.JavaMail.root@...1834...> References: <10092812.4111206030800495.JavaMail.root@...1834...> Message-ID: <200803201738.24595.gambas@...1...> On jeudi 20 mars 2008, Gareth Bult wrote: > Hi, > > I seem to have a problem in 2.4.1 (and possibly other recent versions) , I > have a control which inherits "UserContainer", and it complains when run > that it can't load the class UserContainer. (it uses Gambas written > components) > > Is there any obvious change / reason for this ? > (the software runs fine on a machine running 2.1) > > tia > Gareth. > Mmm. No. I don't see any change related to UserContainer since a while... Please provide some details! -- Benoit Minisini From gareth at ...1689... Thu Mar 20 17:42:30 2008 From: gareth at ...1689... (Gareth Bult) Date: Thu, 20 Mar 2008 16:42:30 +0000 (GMT) Subject: [Gambas-user] Release of Gambas 2.4.1 In-Reply-To: <200803201738.24595.gambas@...1...> Message-ID: <9732489.4141206031350203.JavaMail.root@...1834...> Mmm, I'm not sure what more I can say .. the component is the GridEditor component which has been around for a while now, and when I load it to compile, it complains it can't load the "UserContainer" class and fails ... I'm trying to install 2.0 on the same box .. will narrow it down and get back to you ... ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, March 20, 2008 4:38:24 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Release of Gambas 2.4.1 On jeudi 20 mars 2008, Gareth Bult wrote: > Hi, > > I seem to have a problem in 2.4.1 (and possibly other recent versions) , I > have a control which inherits "UserContainer", and it complains when run > that it can't load the class UserContainer. (it uses Gambas written > components) > > Is there any obvious change / reason for this ? > (the software runs fine on a machine running 2.1) > > tia > Gareth. > Mmm. No. I don't see any change related to UserContainer since a while... Please provide some details! -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gareth at ...1689... Thu Mar 20 17:58:42 2008 From: gareth at ...1689... (Gareth Bult) Date: Thu, 20 Mar 2008 16:58:42 +0000 (GMT) Subject: [Gambas-user] Release of Gambas 2.4.1 In-Reply-To: <200803201738.24595.gambas@...1...> Message-ID: <10394054.4171206032322895.JavaMail.root@...1834...> Mmm, Downloaded and compiled 2.0 on the same machine in the same way .. works perfectly. (!) ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, March 20, 2008 4:38:24 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Release of Gambas 2.4.1 On jeudi 20 mars 2008, Gareth Bult wrote: > Hi, > > I seem to have a problem in 2.4.1 (and possibly other recent versions) , I > have a control which inherits "UserContainer", and it complains when run > that it can't load the class UserContainer. (it uses Gambas written > components) > > Is there any obvious change / reason for this ? > (the software runs fine on a machine running 2.1) > > tia > Gareth. > Mmm. No. I don't see any change related to UserContainer since a while... Please provide some details! -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Mar 20 18:06:23 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 Mar 2008 18:06:23 +0100 Subject: [Gambas-user] Release of Gambas 2.4.1 In-Reply-To: <10394054.4171206032322895.JavaMail.root@...1834...> References: <10394054.4171206032322895.JavaMail.root@...1834...> Message-ID: <200803201806.23315.gambas@...1...> On jeudi 20 mars 2008, Gareth Bult wrote: > Mmm, > > Downloaded and compiled 2.0 on the same machine in the same way .. works > perfectly. > > (!) > You don't provide any details, so... But you can use a tool like KDiff3 for seeing the difference between the install of the two versions. Regards, -- Benoit Minisini From gareth at ...1689... Thu Mar 20 18:11:13 2008 From: gareth at ...1689... (Gareth Bult) Date: Thu, 20 Mar 2008 17:11:13 +0000 (GMT) Subject: [Gambas-user] Release of Gambas 2.4.1 In-Reply-To: <200803201806.23315.gambas@...1...> Message-ID: <14995291.4201206033073333.JavaMail.root@...1834...> I'm trying 2.3 now .. what details can I give you ? Source is here .. http://gambasrad.org/software/gambas-grideditor ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, March 20, 2008 5:06:23 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Release of Gambas 2.4.1 On jeudi 20 mars 2008, Gareth Bult wrote: > Mmm, > > Downloaded and compiled 2.0 on the same machine in the same way .. works > perfectly. > > (!) > You don't provide any details, so... But you can use a tool like KDiff3 for seeing the difference between the install of the two versions. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Mar 20 18:16:37 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 Mar 2008 18:16:37 +0100 Subject: [Gambas-user] Release of Gambas 2.4.1 In-Reply-To: <14995291.4201206033073333.JavaMail.root@...1834...> References: <14995291.4201206033073333.JavaMail.root@...1834...> Message-ID: <200803201816.37542.gambas@...1...> On jeudi 20 mars 2008, Gareth Bult wrote: > I'm trying 2.3 now .. what details can I give you ? > > Source is here .. > http://gambasrad.org/software/gambas-grideditor > Let's be logical. :-) If it works with 2.0 and not with 2.3, and if your project do not change, first do find the difference on what is installed between the two versions with KDiff3 (or diff). It will give me some information. Regards, -- Benoit Minisini From gareth at ...1689... Thu Mar 20 18:32:57 2008 From: gareth at ...1689... (Gareth Bult) Date: Thu, 20 Mar 2008 17:32:57 +0000 (GMT) Subject: [Gambas-user] Release of Gambas 2.4.1 In-Reply-To: <200803201816.37542.gambas@...1...> Message-ID: <22604743.4291206034377792.JavaMail.root@...1834...> No they won't .. ;-) (he says after finding the problem) When loading Gambas, 2.x, there was a pre-existing compiled component in .local/lib/gambas2, it seems this was causing the error. Even though I was able to load the component source, compile it and make an executable, it wasn't over-writing the old contents of .local/lib/gambas2. Solution; rm -rfv .local/lib/gambas2 and THEN recompile the component. Now working fine on all versions .. (!) :) Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, March 20, 2008 5:16:37 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Release of Gambas 2.4.1 On jeudi 20 mars 2008, Gareth Bult wrote: > I'm trying 2.3 now .. what details can I give you ? > > Source is here .. > http://gambasrad.org/software/gambas-grideditor > Let's be logical. :-) If it works with 2.0 and not with 2.3, and if your project do not change, first do find the difference on what is installed between the two versions with KDiff3 (or diff). It will give me some information. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From maximvonk at ...626... Thu Mar 20 23:40:49 2008 From: maximvonk at ...626... (MaxVK) Date: Thu, 20 Mar 2008 15:40:49 -0700 (PDT) Subject: [Gambas-user] TextEdit Example In-Reply-To: <6324a42a0705170323o12073b49oa53251e37e9fc8a6@...627...> References: <6324a42a0705170323o12073b49oa53251e37e9fc8a6@...627...> Message-ID: <16190349.post@...1379...> Fabien Bodard-4 wrote: > > Hi to all, > > This is an example to how to use the textedit widget. > > If Benoit want to add it in the examples... > > Regards, > Fabien Bodard > Hi Fabien, sorry to resurrect such an old post here, but I found it using my browser, and I'm having trouble with the file download. When I save the file it is unreadable. Is there some other way to get it? Regards Max -- View this message in context: http://www.nabble.com/TextEdit-Example-tp10661530p16190349.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Thu Mar 20 22:27:50 2008 From: rterry at ...1822... (richard terry) Date: Fri, 21 Mar 2008 08:27:50 +1100 Subject: [Gambas-user] Signal 11 (Gambas build 2.99 1200) Message-ID: <200803210827.50353.rterry@...1822...> If I can reproduce this condition reliably in a program, is there anyway in build bug-tracking I can enable to send a bug report? Regards Richard From rterry at ...1822... Thu Mar 20 22:29:59 2008 From: rterry at ...1822... (richard terry) Date: Fri, 21 Mar 2008 08:29:59 +1100 Subject: [Gambas-user] Things to do before closing a form Message-ID: <200803210829.59376.rterry@...1822...> If you simply close a form, does it destory everything that has been created?, eg if you made a database connection, etc, does this along with the form get removed? Regards Richard T From gambas at ...1... Fri Mar 21 01:20:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 Mar 2008 01:20:32 +0100 Subject: [Gambas-user] Signal 11 (Gambas build 2.99 1200) In-Reply-To: <200803210827.50353.rterry@...1822...> References: <200803210827.50353.rterry@...1822...> Message-ID: <200803210120.32171.gambas@...1...> On jeudi 20 mars 2008, richard terry wrote: > If I can reproduce this condition reliably in a program, is there anyway in > build bug-tracking I can enable to send a bug report? > > Regards > > Richard > Just explain what you did. Or, better, follow what is explained in the troubleshooting page of the website. Regards, -- Benoit Minisini From rterry at ...1822... Fri Mar 21 01:17:17 2008 From: rterry at ...1822... (richard terry) Date: Fri, 21 Mar 2008 11:17:17 +1100 Subject: [Gambas-user] Suggestion for a menu option in the IDE Message-ID: <200803211117.17535.rterry@...1822...> As I work I often want to duplicate a routine for modification say to test new code, but keep the old one. Wondered if it would be possible to add a menu option 'Duplicate Subroutine' and automatically copy the subroutine under the cursor, and insert it underneath as an incrementally numbered area of code ie Mysubroutine1. Just a thought, maybe just my learning style, but I seem to be doing it all the time. Regards Richard From gambas at ...1... Fri Mar 21 01:29:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 Mar 2008 01:29:48 +0100 Subject: [Gambas-user] Things to do before closing a form In-Reply-To: <200803210829.59376.rterry@...1822...> References: <200803210829.59376.rterry@...1822...> Message-ID: <200803210129.48880.gambas@...1...> On jeudi 20 mars 2008, richard terry wrote: > If you simply close a form, does it destory everything that has been > created?, eg if you made a database connection, etc, does this along with > the form get removed? > > Regards > > Richard T > Not necessarily. Objects are destroyed then no variable, no array slot, no collection slot has a reference on it. Moreover, Gambas GUI controls are internally referenced by the underlying toolkit widget they are associated with, i.e. they cannot be destroyed if their associated widget is alive. Regards, -- Benoit Minisini From rterry at ...1822... Fri Mar 21 01:30:03 2008 From: rterry at ...1822... (richard terry) Date: Fri, 21 Mar 2008 11:30:03 +1100 Subject: [Gambas-user] Adding menu item in code > no caption visible Message-ID: <200803211130.03645.rterry@...1822...> I've overiddden the menu on the tabstip and want to dynamically add menu items as sub items in the menu to an existing menu called menu_EditorTab_AddNotes: This sub stops the original tab strip menu from popping up, it does work as the print statement shows up on the console,I enclose a png of what it looks like on the screen. However, no text shows up in the caption. PUBLIC SUB Editor_tabstrip_Menu() DIM hmenu AS Menu STOP EVENT PRINT "this worked" Editor_TapStip_CreateMenuChild("Hi There") menu_EditorTab.popup END PUBLIC SUB Editor_TapStip_CreateMenuChild(newmenuname AS String) DIM hmenu AS Menu hmenu = NEW Menu(menu_EditorTab_AddNotes, TRUE) hmenu.Caption = newmenuname END An help appreciated. Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: no_caption_menu.png Type: image/png Size: 26596 bytes Desc: not available URL: From robert.c.rowe at ...626... Fri Mar 21 01:45:51 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Thu, 20 Mar 2008 20:45:51 -0400 Subject: [Gambas-user] Suggestion for a menu option in the IDE In-Reply-To: <200803211117.17535.rterry@...1822...> References: <200803211117.17535.rterry@...1822...> Message-ID: <47E3053F.3020803@...626...> I'll add it to my to do list and see what I can come up with. Robert Rowe richard terry wrote: > As I work I often want to duplicate a routine for modification say to test new > code, but keep the old one. > > Wondered if it would be possible to add a menu option 'Duplicate Subroutine' > and automatically copy the subroutine under the cursor, and insert it > underneath as an incrementally numbered area of code ie Mysubroutine1. > > Just a thought, maybe just my learning style, but I seem to be doing it all > the time. > > Regards > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From rterry at ...1822... Fri Mar 21 04:33:01 2008 From: rterry at ...1822... (richard terry) Date: Fri, 21 Mar 2008 14:33:01 +1100 Subject: [Gambas-user] Adding menu item in code > no caption visible (Solved) In-Reply-To: <200803211130.03645.rterry@...1822...> References: <200803211130.03645.rterry@...1822...> Message-ID: <200803211433.01512.rterry@...1822...> Stupid me, wrong flag, this works fine now, should have RTFM (which I did but mixed up the TRUE/FALSE flags. ---------------------------------------------------------------------------------------- DIM hmenu AS Menu DIM item AS cPastHistory FOR EACH item IN currentpatient.past_history hmenu = NEW Menu(menu_EditorTab_AddNotes, FALSE) hmenu.Caption = item.description NEXT ----------------------------------------------------------------------------------------- Regards Richard On Fri, 21 Mar 2008 11:30:03 am richard terry wrote: > I've overiddden the menu on the tabstip and want to dynamically add menu > items as sub items in the menu to an existing menu called > menu_EditorTab_AddNotes: > > This sub stops the original tab strip menu from popping up, it does work > as the print statement shows up on the console,I enclose a png of what it > looks like on the screen. > > However, no text shows up in the caption. > > PUBLIC SUB Editor_tabstrip_Menu() > DIM hmenu AS Menu > STOP EVENT > PRINT "this worked" > Editor_TapStip_CreateMenuChild("Hi There") > menu_EditorTab.popup > > END > PUBLIC SUB Editor_TapStip_CreateMenuChild(newmenuname AS String) > DIM hmenu AS Menu > hmenu = NEW Menu(menu_EditorTab_AddNotes, TRUE) > hmenu.Caption = newmenuname > END > > An help appreciated. > > Richard From kaoticus60 at ...151... Fri Mar 21 08:51:48 2008 From: kaoticus60 at ...151... (andy2) Date: Fri, 21 Mar 2008 08:51:48 +0100 Subject: [Gambas-user] How to verify a date like dd/mm/yyyy? In-Reply-To: References: Message-ID: <47E36914.5040200@...151...> in Php i found the following script. My problem is to replicate the ereg function. FUNCTION ControlloData($data){ If(!ereg("^[0-9]{2}/[0-9]{2}/[0-9]{4}$", $data)){ RETURN FALSE; } ELSE { $arrayData = explode("/", $data); $Giorno = $arrayData[0]; $Mese = $arrayData[1]; $Anno = $arrayData[2]; If(!checkdate($Mese, $Giorno, $Anno)){ RETURN FALSE; } ELSE { RETURN TRUE; } } } From dcamposf at ...626... Fri Mar 21 13:09:51 2008 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 21 Mar 2008 13:09:51 +0100 Subject: [Gambas-user] Gambas on Windows - Alternative Message-ID: <7259b5ae0803210509n7bdf9fffj5880047a34cd451f@...627...> Hi: I don't know if anybody wrote here about this topic, but I've just tested a Linux environment on Windows capable to run Gambas2 IDE and applications without any problem. You can find it here: http://www.andlinux.org (It is GPL'ed) It is based on cooperative-linux, a Linux kernel running on Windows. It adds a rootless X server as well as some graphical applications (or a complete KDE system if you want to download a 700 Mb installer). It runs Linux 32-bits binaries, and provides a basic Ubuntu system, that is, you just need to download Gambas packages for Ubuntu, and start it from a console. If anybody is interested in that project, creating a custom AndLinux distribution without extra stuff, just with colinux kernel, X-Server and the libraries needed to run Gambas2, could be a good idea. Compared to Cygwin systems, It works really fast, applications seem to be running on a native Linux system, and If you want, you can provide access to the entire hard disk to manage files in your system. I've been testing it on my Laptop (32bits Win Vista + Intel Core Duo + 1GB RAM) and everything works fast and without problems. I tested the RAD environment and some examples (basic and networking). Both QT and GTK+ Gambas apps work. Using that system you don't need a Linux server connected with a Windows+X server system, and you don't need to compile anything, just download your apps using apt! Daniel From gambas at ...1... Fri Mar 21 13:16:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 Mar 2008 13:16:46 +0100 Subject: [Gambas-user] Gambas on Windows - Alternative In-Reply-To: <7259b5ae0803210509n7bdf9fffj5880047a34cd451f@...627...> References: <7259b5ae0803210509n7bdf9fffj5880047a34cd451f@...627...> Message-ID: <200803211316.46159.gambas@...1...> On vendredi 21 mars 2008, Daniel Campos wrote: > Hi: > > I don't know if anybody wrote here about this topic, but I've just > tested a Linux environment on Windows capable to run Gambas2 IDE and > applications without any problem. You can find it here: > http://www.andlinux.org (It is GPL'ed) > > It is based on cooperative-linux, a Linux kernel running on Windows. > It adds a rootless X server as well as some graphical applications (or > a complete KDE system if you want to download a 700 Mb installer). > > It runs Linux 32-bits binaries, and provides a basic Ubuntu system, > that is, you just need to download Gambas packages for Ubuntu, and > start it from a console. > > If anybody is interested in that project, creating a custom AndLinux > distribution without extra stuff, just with colinux kernel, X-Server > and the libraries needed to run Gambas2, could be a good idea. > > Compared to Cygwin systems, It works really fast, applications seem to > be running on a native Linux system, and If you want, you can provide > access to the entire hard disk to manage files in your system. > > I've been testing it on my Laptop (32bits Win Vista + Intel Core Duo + > 1GB RAM) and everything works fast and without problems. I tested the > RAD environment and some examples (basic and networking). Both QT and > GTK+ Gambas apps work. > > Using that system you don't need a Linux server connected with a > Windows+X server system, and you don't need to compile anything, just > download your apps using apt! > > Daniel > Do you have some screenshots? I'm currently trying to compile Gambas on Cygwin. There are a *lot* of problems, and the cygwin architecture reveals many bugs (memory alignment problems at the moment). So I don't totally lost my time. :-) Anyway, do you think it is possible to create a andlinux distribution with "just" Gambas, and creates an icon on the windows desktop to run a gambas application by automatically initializing all the stuff? -- Benoit Minisini From gambas at ...1... Fri Mar 21 13:19:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 Mar 2008 13:19:20 +0100 Subject: [Gambas-user] How to verify a date like dd/mm/yyyy? In-Reply-To: <47E36914.5040200@...151...> References: <47E36914.5040200@...151...> Message-ID: <200803211319.20873.gambas@...1...> On vendredi 21 mars 2008, andy2 wrote: > in Php i found the following script. My problem is to replicate the ereg > function. > > FUNCTION ControlloData($data){ > If(!ereg("^[0-9]{2}/[0-9]{2}/[0-9]{4}$", $data)){ > RETURN FALSE; > } ELSE { > $arrayData = explode("/", $data); > $Giorno = $arrayData[0]; > $Mese = $arrayData[1]; > $Anno = $arrayData[2]; > If(!checkdate($Mese, $Giorno, $Anno)){ > RETURN FALSE; > } ELSE { > RETURN TRUE; > } > } > } > What do you need to do exactly? If you want to know if a string can be interpreted as a date, then you must do something like that: DIM vDate AS Variant DIM sStr AS String vDate = Val(sStr) IF IsDate(vDate) THEN ' OK, I got a date ELSE ' Bad, I didn't go a date ENDIF Regards, -- Benoit Minisini From jredrejo at ...626... Fri Mar 21 13:28:35 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Fri, 21 Mar 2008 13:28:35 +0100 Subject: [Gambas-user] Gambas on Windows - Alternative In-Reply-To: <200803211316.46159.gambas@...1...> References: <7259b5ae0803210509n7bdf9fffj5880047a34cd451f@...627...> <200803211316.46159.gambas@...1...> Message-ID: <8eb28a500803210528h27babc46keb58898cbacd05d6@...627...> 2008/3/21, Benoit Minisini : > > On vendredi 21 mars 2008, Daniel Campos wrote: > > Hi: > > > > I don't know if anybody wrote here about this topic, but I've just > > tested a Linux environment on Windows capable to run Gambas2 IDE and > > applications without any problem. You can find it here: > > http://www.andlinux.org (It is GPL'ed) > > > > It is based on cooperative-linux, a Linux kernel running on Windows. > > It adds a rootless X server as well as some graphical applications (or > > a complete KDE system if you want to download a 700 Mb installer). > > > > It runs Linux 32-bits binaries, and provides a basic Ubuntu system, > > that is, you just need to download Gambas packages for Ubuntu, and > > start it from a console. > > > > If anybody is interested in that project, creating a custom AndLinux > > distribution without extra stuff, just with colinux kernel, X-Server > > and the libraries needed to run Gambas2, could be a good idea. > > > > Compared to Cygwin systems, It works really fast, applications seem to > > be running on a native Linux system, and If you want, you can provide > > access to the entire hard disk to manage files in your system. > > > > I've been testing it on my Laptop (32bits Win Vista + Intel Core Duo + > > 1GB RAM) and everything works fast and without problems. I tested the > > RAD environment and some examples (basic and networking). Both QT and > > GTK+ Gambas apps work. > > > > Using that system you don't need a Linux server connected with a > > Windows+X server system, and you don't need to compile anything, just > > download your apps using apt! > > > > Daniel > > > > > Do you have some screenshots? > > I'm currently trying to compile Gambas on Cygwin. There are a *lot* of > problems, and the cygwin architecture reveals many bugs (memory alignment > problems at the moment). So I don't totally lost my time. :-) > > Anyway, do you think it is possible to create a andlinux distribution > with "just" Gambas, and creates an icon on the windows desktop to run a > gambas application by automatically initializing all the stuff? > > I do think so, as Daniel says there's no much magic on andlinux.org. The tricky part is the kernel:http://www.colinux.org/ . Having such kernel, any distribution could be done: mandriva, debian, redhat, etc. and you only have to decide the packages to include there. It would have been a nice GSoC project but we're two weeks later for this year projects. Regards. From jredrejo at ...626... Fri Mar 21 13:33:52 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Fri, 21 Mar 2008 13:33:52 +0100 Subject: [Gambas-user] Gambas on Windows - Alternative In-Reply-To: <8eb28a500803210528h27babc46keb58898cbacd05d6@...627...> References: <7259b5ae0803210509n7bdf9fffj5880047a34cd451f@...627...> <200803211316.46159.gambas@...1...> <8eb28a500803210528h27babc46keb58898cbacd05d6@...627...> Message-ID: <8eb28a500803210533j296938d6kac89f5f4d763693a@...627...> 2008/3/21, Jos? Luis Redrejo : > > > > 2008/3/21, Benoit Minisini : > > > > On vendredi 21 mars 2008, Daniel Campos wrote: > > > Hi: > > > > > > I don't know if anybody wrote here about this topic, but I've just > > > tested a Linux environment on Windows capable to run Gambas2 IDE and > > > applications without any problem. You can find it here: > > > http://www.andlinux.org (It is GPL'ed) > > > > > > It is based on cooperative-linux, a Linux kernel running on Windows. > > > It adds a rootless X server as well as some graphical applications (or > > > a complete KDE system if you want to download a 700 Mb installer). > > > > > > It runs Linux 32-bits binaries, and provides a basic Ubuntu system, > > > that is, you just need to download Gambas packages for Ubuntu, and > > > start it from a console. > > > > > > If anybody is interested in that project, creating a custom AndLinux > > > distribution without extra stuff, just with colinux kernel, X-Server > > > and the libraries needed to run Gambas2, could be a good idea. > > > > > > Compared to Cygwin systems, It works really fast, applications seem to > > > be running on a native Linux system, and If you want, you can provide > > > access to the entire hard disk to manage files in your system. > > > > > > I've been testing it on my Laptop (32bits Win Vista + Intel Core Duo + > > > 1GB RAM) and everything works fast and without problems. I tested the > > > RAD environment and some examples (basic and networking). Both QT and > > > GTK+ Gambas apps work. > > > > > > Using that system you don't need a Linux server connected with a > > > Windows+X server system, and you don't need to compile anything, just > > > download your apps using apt! > > > > > > Daniel > > > > > > > > > Do you have some screenshots? > > > > I'm currently trying to compile Gambas on Cygwin. There are a *lot* of > > problems, and the cygwin architecture reveals many bugs (memory > > alignment > > problems at the moment). So I don't totally lost my time. :-) > > > > Anyway, do you think it is possible to create a andlinux distribution > > with "just" Gambas, and creates an icon on the windows desktop to run a > > gambas application by automatically initializing all the stuff? > > > > > I do think so, as Daniel says there's no much magic on andlinux.org. The > tricky part is the kernel:http://www.colinux.org/ . Having such kernel, > any distribution could be done: mandriva, debian, redhat, etc. and you only > have to decide the packages to include there. > It would have been a nice GSoC project but we're two weeks later for this > year projects. > Regards. > Well, a howto to build any distribution with colinux is here: http://sourceforge.net/mailarchive/message.php?msg_name=8B83D09529A28D4E9768DBF3DC23913801A76295%40e-exch.emblazer.com There is also a wikipage called "Converting distributions" describing the process: http://colinux.wikia.com/wiki/Converting_Distributions More info in the colinux faq: http://colinux.wikia.com/wiki/CoLinux_FAQ Regards Jos? L. From richard.j.walker at ...247... Fri Mar 21 13:57:04 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 21 Mar 2008 12:57:04 +0000 Subject: [Gambas-user] How to verify a date like dd/mm/yyyy? In-Reply-To: <47E36914.5040200@...151...> References: <47E36914.5040200@...151...> Message-ID: <200803211257.05105.richard.j.walker@...247...> On Friday 21 March 2008 07:51:48 andy2 wrote: > in Php i found the following script. My problem is to replicate the ereg > function. > > FUNCTION ControlloData($data){ > If(!ereg("^[0-9]{2}/[0-9]{2}/[0-9]{4}$", $data)){ > RETURN FALSE; > } ELSE { > $arrayData = explode("/", $data); > $Giorno = $arrayData[0]; > $Mese = $arrayData[1]; > $Anno = $arrayData[2]; > If(!checkdate($Mese, $Giorno, $Anno)){ > RETURN FALSE; > } ELSE { > RETURN TRUE; > } > } > } > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user You could also do something similar to the PHP code: PUBLIC FUNCTION is_date(data AS String) AS Boolean DIM aDateElements AS String[] DIM iDay AS Integer DIM iMth AS Integer DIM iYear AS Integer IF NOT (data LIKE "[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]") THEN RETURN FALSE ELSE aDateElements = Split(data, "/") iDay = aDateElements[0] iMth = aDateElements[1] iYear = aDateElements[2] TRY RETURN IsDate(Date(iYear, iMth, iDay)) IF ERROR THEN RETURN FALSE ENDIF END The Gambas LIKE operator is just as weak as the VB one and the mask I have shown will only check for digits. It will accept digits which do not make up a date (eg 72/33/1234); this is the same behaviour as your PHP regular expression. From gambas at ...1... Fri Mar 21 14:10:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 Mar 2008 14:10:24 +0100 Subject: [Gambas-user] How to verify a date like dd/mm/yyyy? In-Reply-To: <200803211257.05105.richard.j.walker@...247...> References: <47E36914.5040200@...151...> <200803211257.05105.richard.j.walker@...247...> Message-ID: <200803211410.25291.gambas@...1...> On vendredi 21 mars 2008, Richard wrote: > On Friday 21 March 2008 07:51:48 andy2 wrote: > > in Php i found the following script. My problem is to replicate the ereg > > function. > > > > FUNCTION ControlloData($data){ > > If(!ereg("^[0-9]{2}/[0-9]{2}/[0-9]{4}$", $data)){ > > RETURN FALSE; > > } ELSE { > > $arrayData = explode("/", $data); > > $Giorno = $arrayData[0]; > > $Mese = $arrayData[1]; > > $Anno = $arrayData[2]; > > If(!checkdate($Mese, $Giorno, $Anno)){ > > RETURN FALSE; > > } ELSE { > > RETURN TRUE; > > } > > } > > } > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > You could also do something similar to the PHP code: > > PUBLIC FUNCTION is_date(data AS String) AS Boolean > DIM aDateElements AS String[] > DIM iDay AS Integer > DIM iMth AS Integer > DIM iYear AS Integer > > IF NOT (data LIKE "[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]") THEN > RETURN FALSE > ELSE > aDateElements = Split(data, "/") > iDay = aDateElements[0] > iMth = aDateElements[1] > iYear = aDateElements[2] > TRY RETURN IsDate(Date(iYear, iMth, iDay)) > IF ERROR THEN RETURN FALSE > ENDIF > > END > > The Gambas LIKE operator is just as weak as the VB one Yes, but it is fast. It could be enhanced a little too. If you nead real regular expressions, use gb.pcre. But most of the time, LIKE is enough, and prevents you from writing horrible code full of regular expressions. :-) Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Fri Mar 21 14:23:02 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 21 Mar 2008 09:23:02 -0400 Subject: [Gambas-user] How to verify a date like dd/mm/yyyy? In-Reply-To: <200803211410.25291.gambas@...1...> References: <200803211257.05105.richard.j.walker@...247...> <200803211410.25291.gambas@...1...> Message-ID: <200803210923.03121.sourceforge-raindog2@...94...> On Friday 21 March 2008 09:10, Benoit Minisini wrote: > time, LIKE is enough, and prevents you from writing horrible code > full of regular expressions. :-) Hey! Regular expressions are like beautiful poetry. :-) Rob From richard.j.walker at ...247... Fri Mar 21 15:27:45 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 21 Mar 2008 14:27:45 +0000 Subject: [Gambas-user] How to verify a date like dd/mm/yyyy? In-Reply-To: <200803210923.03121.sourceforge-raindog2@...94...> References: <200803211410.25291.gambas@...1...> <200803210923.03121.sourceforge-raindog2@...94...> Message-ID: <200803211427.45804.richard.j.walker@...247...> On Friday 21 March 2008 13:23:02 Rob wrote: > On Friday 21 March 2008 09:10, Benoit Minisini wrote: > > time, LIKE is enough, and prevents you from writing horrible code > > full of regular expressions. :-) > > Hey! Regular expressions are like beautiful poetry. :-) > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hmm, I have not yet learned to appreciate the beauty of Klingon poetry:-) Richard From richard.j.walker at ...247... Fri Mar 21 15:44:51 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 21 Mar 2008 14:44:51 +0000 Subject: [Gambas-user] How to verify a date like dd/mm/yyyy? In-Reply-To: <200803211257.05105.richard.j.walker@...247...> References: <47E36914.5040200@...151...> <200803211257.05105.richard.j.walker@...247...> Message-ID: <200803211444.52075.richard.j.walker@...247...> On Friday 21 March 2008 12:57:04 Richard wrote: > On Friday 21 March 2008 07:51:48 andy2 wrote: > > in Php i found the following script. My problem is to replicate the ereg > > function. > > > > FUNCTION ControlloData($data){ > > If(!ereg("^[0-9]{2}/[0-9]{2}/[0-9]{4}$", $data)){ > > RETURN FALSE; > > } ELSE { > > $arrayData = explode("/", $data); > > $Giorno = $arrayData[0]; > > $Mese = $arrayData[1]; > > $Anno = $arrayData[2]; > > If(!checkdate($Mese, $Giorno, $Anno)){ > > RETURN FALSE; > > } ELSE { > > RETURN TRUE; > > } > > } > > } > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > You could also do something similar to the PHP code: > > PUBLIC FUNCTION is_date(data AS String) AS Boolean > DIM aDateElements AS String[] > DIM iDay AS Integer > DIM iMth AS Integer > DIM iYear AS Integer > > IF NOT (data LIKE "[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]") THEN > RETURN FALSE > ELSE > aDateElements = Split(data, "/") > iDay = aDateElements[0] > iMth = aDateElements[1] > iYear = aDateElements[2] > TRY RETURN IsDate(Date(iYear, iMth, iDay)) > IF ERROR THEN RETURN FALSE > ENDIF > > END > > The Gambas LIKE operator is just as weak as the VB one and the mask I have > shown will only check for digits. It will accept digits which do not make > up a date (eg 72/33/1234); this is the same behaviour as your PHP regular > expression. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user I suppose, in deference to the peculiar requirements of our northern trans-atlantic brethren I should have taken more care in the example to make it locale-aware. The trick, which I found when looking at the ValueBox code, is to construct a localised version of the YYYY MM DD format string for a gb.ShortDate. When we are extracting day and month from the array of date element values we must know which one is the day and which the month. Benoit did it something like this: sDateFormat = Format(Date(3333, 11, 22), gb.ShortDate) so now the month is represented by 11 and the day by 22. All we need to do is check what the first two digits represent by looking at our date format variable before we fetch values from the array. PUBLIC FUNCTION is_date(data AS String) AS Boolean DIM aDateElements AS String[] DIM iDay AS Integer DIM iMth AS Integer DIM iYear AS Integer DIM $sDateFormat AS String sDateFormat = Format(Date(3333, 11, 22), gb.ShortDate) IF NOT (data LIKE "[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]") THEN RETURN FALSE ELSE aDateElements = Split(data, "/") iDay = IIF(LEFT(sDateFormat,2)="22",aDateElements[0],aDateElements[1]) iMth = IIF(LEFT(sDateFormat,2)="11",aDateElements[0],aDateElements[1]) iYear = aDateElements[2] TRY RETURN IsDate(Date(iYear, iMth, iDay)) IF ERROR THEN RETURN FALSE ENDIF END From richard.j.walker at ...247... Fri Mar 21 16:02:21 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 21 Mar 2008 15:02:21 +0000 Subject: [Gambas-user] How to verify a date like dd/mm/yyyy? In-Reply-To: <200803211444.52075.richard.j.walker@...247...> References: <200803211257.05105.richard.j.walker@...247...> <200803211444.52075.richard.j.walker@...247...> Message-ID: <200803211502.21429.richard.j.walker@...247...> On Friday 21 March 2008 14:44:51 Richard wrote: > On Friday 21 March 2008 12:57:04 Richard wrote: > > On Friday 21 March 2008 07:51:48 andy2 wrote: > > > in Php i found the following script. My problem is to replicate the > > > ereg function. > > > > > > FUNCTION ControlloData($data){ > > > If(!ereg("^[0-9]{2}/[0-9]{2}/[0-9]{4}$", $data)){ > > > RETURN FALSE; > > > } ELSE { > > > $arrayData = explode("/", $data); > > > $Giorno = $arrayData[0]; > > > $Mese = $arrayData[1]; > > > $Anno = $arrayData[2]; > > > If(!checkdate($Mese, $Giorno, $Anno)){ > > > RETURN FALSE; > > > } ELSE { > > > RETURN TRUE; > > > } > > > } > > > } > > > > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > You could also do something similar to the PHP code: > > > > PUBLIC FUNCTION is_date(data AS String) AS Boolean > > DIM aDateElements AS String[] > > DIM iDay AS Integer > > DIM iMth AS Integer > > DIM iYear AS Integer > > > > IF NOT (data LIKE "[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]") THEN > > RETURN FALSE > > ELSE > > aDateElements = Split(data, "/") > > iDay = aDateElements[0] > > iMth = aDateElements[1] > > iYear = aDateElements[2] > > TRY RETURN IsDate(Date(iYear, iMth, iDay)) > > IF ERROR THEN RETURN FALSE > > ENDIF > > > > END > > > > The Gambas LIKE operator is just as weak as the VB one and the mask I > > have shown will only check for digits. It will accept digits which do not > > make up a date (eg 72/33/1234); this is the same behaviour as your PHP > > regular expression. > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I suppose, in deference to the peculiar requirements of our northern > trans-atlantic brethren I should have taken more care in the example to > make it locale-aware. > > The trick, which I found when looking at the ValueBox code, is to construct > a localised version of the YYYY MM DD format string for a gb.ShortDate. > When we are extracting day and month from the array of date element values > we must know which one is the day and which the month. > > Benoit did it something like this: > > sDateFormat = Format(Date(3333, 11, 22), gb.ShortDate) > > so now the month is represented by 11 and the day by 22. All we need to do > is check what the first two digits represent by looking at our date format > variable before we fetch values from the array. > > PUBLIC FUNCTION is_date(data AS String) AS Boolean > DIM aDateElements AS String[] > DIM iDay AS Integer > DIM iMth AS Integer > DIM iYear AS Integer > DIM $sDateFormat AS String > > sDateFormat = Format(Date(3333, 11, 22), gb.ShortDate) > > IF NOT (data LIKE "[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]") THEN > RETURN FALSE > ELSE > aDateElements = Split(data, "/") > iDay = > IIF(LEFT(sDateFormat,2)="22",aDateElements[0],aDateElements[1]) iMth = > IIF(LEFT(sDateFormat,2)="11",aDateElements[0],aDateElements[1]) iYear = > aDateElements[2] > TRY RETURN IsDate(Date(iYear, iMth, iDay)) > IF ERROR THEN RETURN FALSE > ENDIF > > END > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user One more attempt to get it right... I overlooked the assumption about the date format in the LIKE expression and the possibility to tighten up the comparison mask to make it a little more robust (not much). PUBLIC FUNCTION is_date(data AS String) AS Boolean DIM aDateElements AS String[] DIM iDay AS Integer DIM iMth AS Integer DIM iYear AS Integer DIM sDateFormat AS String DIM sMask AS String sDateFormat = Format(Date(3333, 11, 22), gb.ShortDate) IF LEFT(sDateFormat,2)="22" THEN sMask = "[0-3][0-9]/[0-1][0-9]/[0-9][0-9][0-9][0-9]" ELSE sMask = "[0-1][0-9]/[0-3][0-9]/[0-9][0-9][0-9][0-9]" ENDIF IF NOT (data LIKE sMask) THEN RETURN FALSE ELSE aDateElements = Split(data, "/") iDay = IIF(LEFT(sDateFormat,2)="22",aDateElements[0],aDateElements[1]) iMth =IIF(LEFT(sDateFormat,2)="11",aDateElements[0],aDateElements[1]) iYear = aDateElements[2] TRY RETURN IsDate(Date(iYear, iMth, iDay)) IF ERROR THEN RETURN FALSE ENDIF END Richard From gambas at ...1... Fri Mar 21 16:11:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 Mar 2008 16:11:18 +0100 Subject: [Gambas-user] How to verify a date like dd/mm/yyyy? In-Reply-To: <200803211502.21429.richard.j.walker@...247...> References: <200803211444.52075.richard.j.walker@...247...> <200803211502.21429.richard.j.walker@...247...> Message-ID: <200803211611.18383.gambas@...1...> On vendredi 21 mars 2008, Richard wrote: > On Friday 21 March 2008 14:44:51 Richard wrote: > > On Friday 21 March 2008 12:57:04 Richard wrote: > > > On Friday 21 March 2008 07:51:48 andy2 wrote: > > > > in Php i found the following script. My problem is to replicate the > > > > ereg function. > > > > > > > > FUNCTION ControlloData($data){ > > > > If(!ereg("^[0-9]{2}/[0-9]{2}/[0-9]{4}$", $data)){ > > > > RETURN FALSE; > > > > } ELSE { > > > > $arrayData = explode("/", $data); > > > > $Giorno = $arrayData[0]; > > > > $Mese = $arrayData[1]; > > > > $Anno = $arrayData[2]; > > > > If(!checkdate($Mese, $Giorno, $Anno)){ > > > > RETURN FALSE; > > > > } ELSE { > > > > RETURN TRUE; > > > > } > > > > } > > > > } > > > > > > > > --------------------------------------------------------------------- > > > >-- -- This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > You could also do something similar to the PHP code: > > > > > > PUBLIC FUNCTION is_date(data AS String) AS Boolean > > > DIM aDateElements AS String[] > > > DIM iDay AS Integer > > > DIM iMth AS Integer > > > DIM iYear AS Integer > > > > > > IF NOT (data LIKE "[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]") > > > THEN RETURN FALSE > > > ELSE > > > aDateElements = Split(data, "/") > > > iDay = aDateElements[0] > > > iMth = aDateElements[1] > > > iYear = aDateElements[2] > > > TRY RETURN IsDate(Date(iYear, iMth, iDay)) > > > IF ERROR THEN RETURN FALSE > > > ENDIF > > > > > > END > > > > > > The Gambas LIKE operator is just as weak as the VB one and the mask I > > > have shown will only check for digits. It will accept digits which do > > > not make up a date (eg 72/33/1234); this is the same behaviour as your > > > PHP regular expression. > > > > > > > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > I suppose, in deference to the peculiar requirements of our northern > > trans-atlantic brethren I should have taken more care in the example to > > make it locale-aware. > > > > The trick, which I found when looking at the ValueBox code, is to > > construct a localised version of the YYYY MM DD format string for a > > gb.ShortDate. When we are extracting day and month from the array of date > > element values we must know which one is the day and which the month. > > > > Benoit did it something like this: > > > > sDateFormat = Format(Date(3333, 11, 22), gb.ShortDate) > > > > so now the month is represented by 11 and the day by 22. All we need to > > do is check what the first two digits represent by looking at our date > > format variable before we fetch values from the array. > > > > PUBLIC FUNCTION is_date(data AS String) AS Boolean > > DIM aDateElements AS String[] > > DIM iDay AS Integer > > DIM iMth AS Integer > > DIM iYear AS Integer > > DIM $sDateFormat AS String > > > > sDateFormat = Format(Date(3333, 11, 22), gb.ShortDate) > > > > IF NOT (data LIKE "[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]") THEN > > RETURN FALSE > > ELSE > > aDateElements = Split(data, "/") > > iDay = > > IIF(LEFT(sDateFormat,2)="22",aDateElements[0],aDateElements[1]) iMth = > > IIF(LEFT(sDateFormat,2)="11",aDateElements[0],aDateElements[1]) iYear = > > aDateElements[2] > > TRY RETURN IsDate(Date(iYear, iMth, iDay)) > > IF ERROR THEN RETURN FALSE > > ENDIF > > > > END > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > One more attempt to get it right... > > I overlooked the assumption about the date format in the LIKE expression > and the possibility to tighten up the comparison mask to make it a little > more robust (not much). > > PUBLIC FUNCTION is_date(data AS String) AS Boolean > DIM aDateElements AS String[] > DIM iDay AS Integer > DIM iMth AS Integer > DIM iYear AS Integer > DIM sDateFormat AS String > DIM sMask AS String > > sDateFormat = Format(Date(3333, 11, 22), gb.ShortDate) > > IF LEFT(sDateFormat,2)="22" THEN > sMask = "[0-3][0-9]/[0-1][0-9]/[0-9][0-9][0-9][0-9]" > ELSE > sMask = "[0-1][0-9]/[0-3][0-9]/[0-9][0-9][0-9][0-9]" > ENDIF > > IF NOT (data LIKE sMask) THEN > RETURN FALSE > ELSE > aDateElements = Split(data, "/") > iDay = > IIF(LEFT(sDateFormat,2)="22",aDateElements[0],aDateElements[1]) iMth > =IIF(LEFT(sDateFormat,2)="11",aDateElements[0],aDateElements[1]) iYear = > aDateElements[2] > TRY RETURN IsDate(Date(iYear, iMth, iDay)) > IF ERROR THEN RETURN FALSE > ENDIF > > END > > > Richard > RETURN IsDate(Val(data)) is not complex enough? :-) -- Benoit Minisini From m0e.lnx at ...626... Fri Mar 21 16:32:22 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 21 Mar 2008 10:32:22 -0500 Subject: [Gambas-user] Gambas on Windows - Alternative In-Reply-To: <8eb28a500803210533j296938d6kac89f5f4d763693a@...627...> References: <7259b5ae0803210509n7bdf9fffj5880047a34cd451f@...627...> <200803211316.46159.gambas@...1...> <8eb28a500803210528h27babc46keb58898cbacd05d6@...627...> <8eb28a500803210533j296938d6kac89f5f4d763693a@...627...> Message-ID: <1f1e8c1b0803210832r72cfeb21p55374812a63c1587@...627...> That's almost like running qemu or Virtualbox on windows. I used CoLinux for a while when I began my way out of windows and into Linux... Good for a linux newbie... But that doesn't mean gambas will be running on windows... it is really a Linux distro running inside a windows environment... You do everything like you would in Linux... You can really run just about any distro inside CoLinux if you manage to get your configuration and your image right... so it's really just Linux inside windows. On Fri, Mar 21, 2008 at 7:33 AM, Jos? Luis Redrejo wrote: > 2008/3/21, Jos? Luis Redrejo : > > > > > > > > > 2008/3/21, Benoit Minisini : > > > > > > On vendredi 21 mars 2008, Daniel Campos wrote: > > > > Hi: > > > > > > > > I don't know if anybody wrote here about this topic, but I've just > > > > tested a Linux environment on Windows capable to run Gambas2 IDE and > > > > applications without any problem. You can find it here: > > > > http://www.andlinux.org (It is GPL'ed) > > > > > > > > It is based on cooperative-linux, a Linux kernel running on Windows. > > > > It adds a rootless X server as well as some graphical applications (or > > > > a complete KDE system if you want to download a 700 Mb installer). > > > > > > > > It runs Linux 32-bits binaries, and provides a basic Ubuntu system, > > > > that is, you just need to download Gambas packages for Ubuntu, and > > > > start it from a console. > > > > > > > > If anybody is interested in that project, creating a custom AndLinux > > > > distribution without extra stuff, just with colinux kernel, X-Server > > > > and the libraries needed to run Gambas2, could be a good idea. > > > > > > > > Compared to Cygwin systems, It works really fast, applications seem to > > > > be running on a native Linux system, and If you want, you can provide > > > > access to the entire hard disk to manage files in your system. > > > > > > > > I've been testing it on my Laptop (32bits Win Vista + Intel Core Duo + > > > > 1GB RAM) and everything works fast and without problems. I tested the > > > > RAD environment and some examples (basic and networking). Both QT and > > > > GTK+ Gambas apps work. > > > > > > > > Using that system you don't need a Linux server connected with a > > > > Windows+X server system, and you don't need to compile anything, just > > > > download your apps using apt! > > > > > > > > Daniel > > > > > > > > > > > > > Do you have some screenshots? > > > > > > I'm currently trying to compile Gambas on Cygwin. There are a *lot* of > > > problems, and the cygwin architecture reveals many bugs (memory > > > alignment > > > problems at the moment). So I don't totally lost my time. :-) > > > > > > Anyway, do you think it is possible to create a andlinux distribution > > > with "just" Gambas, and creates an icon on the windows desktop to run a > > > gambas application by automatically initializing all the stuff? > > > > > > > > I do think so, as Daniel says there's no much magic on andlinux.org. The > > tricky part is the kernel:http://www.colinux.org/ . Having such kernel, > > any distribution could be done: mandriva, debian, redhat, etc. and you only > > have to decide the packages to include there. > > It would have been a nice GSoC project but we're two weeks later for this > > year projects. > > Regards. > > > > Well, a howto to build any distribution with colinux is here: > http://sourceforge.net/mailarchive/message.php?msg_name=8B83D09529A28D4E9768DBF3DC23913801A76295%40e-exch.emblazer.com > There is also a wikipage called "Converting distributions" describing the > process: > http://colinux.wikia.com/wiki/Converting_Distributions > > More info in the colinux faq: > http://colinux.wikia.com/wiki/CoLinux_FAQ > > Regards > Jos? L. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From richard.j.walker at ...247... Fri Mar 21 16:43:03 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 21 Mar 2008 15:43:03 +0000 Subject: [Gambas-user] How to verify a date like dd/mm/yyyy? In-Reply-To: <200803211611.18383.gambas@...1...> References: <200803211502.21429.richard.j.walker@...247...> <200803211611.18383.gambas@...1...> Message-ID: <200803211543.03365.richard.j.walker@...247...> On Friday 21 March 2008 15:11:18 Benoit Minisini wrote: > On vendredi 21 mars 2008, Richard wrote: > > On Friday 21 March 2008 14:44:51 Richard wrote: > > > On Friday 21 March 2008 12:57:04 Richard wrote: > > > > On Friday 21 March 2008 07:51:48 andy2 wrote: > > > > > in Php i found the following script. My problem is to replicate the > > > > > ereg function. > > > > > > > > > > FUNCTION ControlloData($data){ > > > > > If(!ereg("^[0-9]{2}/[0-9]{2}/[0-9]{4}$", $data)){ > > > > > RETURN FALSE; > > > > > } ELSE { > > > > > $arrayData = explode("/", $data); > > > > > $Giorno = $arrayData[0]; > > > > > $Mese = $arrayData[1]; > > > > > $Anno = $arrayData[2]; > > > > > If(!checkdate($Mese, $Giorno, $Anno)){ > > > > > RETURN FALSE; > > > > > } ELSE { > > > > > RETURN TRUE; > > > > > } > > > > > } > > > > > } > > > > > > > > > > ------------------------------------------------------------------- > > > > >-- -- -- This SF.net email is sponsored by: Microsoft > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > You could also do something similar to the PHP code: > > > > > > > > PUBLIC FUNCTION is_date(data AS String) AS Boolean > > > > DIM aDateElements AS String[] > > > > DIM iDay AS Integer > > > > DIM iMth AS Integer > > > > DIM iYear AS Integer > > > > > > > > IF NOT (data LIKE "[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]") > > > > THEN RETURN FALSE > > > > ELSE > > > > aDateElements = Split(data, "/") > > > > iDay = aDateElements[0] > > > > iMth = aDateElements[1] > > > > iYear = aDateElements[2] > > > > TRY RETURN IsDate(Date(iYear, iMth, iDay)) > > > > IF ERROR THEN RETURN FALSE > > > > ENDIF > > > > > > > > END > > > > > > > > The Gambas LIKE operator is just as weak as the VB one and the mask I > > > > have shown will only check for digits. It will accept digits which do > > > > not make up a date (eg 72/33/1234); this is the same behaviour as > > > > your PHP regular expression. > > > > > > > > > > > > --------------------------------------------------------------------- > > > >-- -- This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > I suppose, in deference to the peculiar requirements of our northern > > > trans-atlantic brethren I should have taken more care in the example to > > > make it locale-aware. > > > > > > The trick, which I found when looking at the ValueBox code, is to > > > construct a localised version of the YYYY MM DD format string for a > > > gb.ShortDate. When we are extracting day and month from the array of > > > date element values we must know which one is the day and which the > > > month. > > > > > > Benoit did it something like this: > > > > > > sDateFormat = Format(Date(3333, 11, 22), gb.ShortDate) > > > > > > so now the month is represented by 11 and the day by 22. All we need to > > > do is check what the first two digits represent by looking at our date > > > format variable before we fetch values from the array. > > > > > > PUBLIC FUNCTION is_date(data AS String) AS Boolean > > > DIM aDateElements AS String[] > > > DIM iDay AS Integer > > > DIM iMth AS Integer > > > DIM iYear AS Integer > > > DIM $sDateFormat AS String > > > > > > sDateFormat = Format(Date(3333, 11, 22), gb.ShortDate) > > > > > > IF NOT (data LIKE "[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]") > > > THEN RETURN FALSE > > > ELSE > > > aDateElements = Split(data, "/") > > > iDay = > > > IIF(LEFT(sDateFormat,2)="22",aDateElements[0],aDateElements[1]) iMth = > > > IIF(LEFT(sDateFormat,2)="11",aDateElements[0],aDateElements[1]) iYear = > > > aDateElements[2] > > > TRY RETURN IsDate(Date(iYear, iMth, iDay)) > > > IF ERROR THEN RETURN FALSE > > > ENDIF > > > > > > END > > > > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > One more attempt to get it right... > > > > I overlooked the assumption about the date format in the LIKE expression > > and the possibility to tighten up the comparison mask to make it a little > > more robust (not much). > > > > PUBLIC FUNCTION is_date(data AS String) AS Boolean > > DIM aDateElements AS String[] > > DIM iDay AS Integer > > DIM iMth AS Integer > > DIM iYear AS Integer > > DIM sDateFormat AS String > > DIM sMask AS String > > > > sDateFormat = Format(Date(3333, 11, 22), gb.ShortDate) > > > > IF LEFT(sDateFormat,2)="22" THEN > > sMask = "[0-3][0-9]/[0-1][0-9]/[0-9][0-9][0-9][0-9]" > > ELSE > > sMask = "[0-1][0-9]/[0-3][0-9]/[0-9][0-9][0-9][0-9]" > > ENDIF > > > > IF NOT (data LIKE sMask) THEN > > RETURN FALSE > > ELSE > > aDateElements = Split(data, "/") > > iDay = > > IIF(LEFT(sDateFormat,2)="22",aDateElements[0],aDateElements[1]) iMth > > =IIF(LEFT(sDateFormat,2)="11",aDateElements[0],aDateElements[1]) iYear = > > aDateElements[2] > > TRY RETURN IsDate(Date(iYear, iMth, iDay)) > > IF ERROR THEN RETURN FALSE > > ENDIF > > > > END > > > > > > Richard > > RETURN IsDate(Val(data)) is not complex enough? :-) You got me there! That gets rid of the possibility of the ERROR on the Date conversion, thus removing the need for the TRY. Presumably it also takes care of localisation so the splitting of the array into date elements is redundant, as is the LIKE check against a mask string. My only excuse is that I wanted to make it "look" functionally similar to the PHP version, and show off some of Gambas's neat string related features (like Split). Richard (properly chastened, but not cowed :-) From gambas at ...1... Fri Mar 21 16:50:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 Mar 2008 16:50:57 +0100 Subject: [Gambas-user] How to verify a date like dd/mm/yyyy? In-Reply-To: <200803211543.03365.richard.j.walker@...247...> References: <200803211611.18383.gambas@...1...> <200803211543.03365.richard.j.walker@...247...> Message-ID: <200803211650.57794.gambas@...1...> On vendredi 21 mars 2008, Richard wrote: > On Friday 21 March 2008 15:11:18 Benoit Minisini wrote: > > On vendredi 21 mars 2008, Richard wrote: > > > On Friday 21 March 2008 14:44:51 Richard wrote: > > > > On Friday 21 March 2008 12:57:04 Richard wrote: > > > > > On Friday 21 March 2008 07:51:48 andy2 wrote: > > > > > > in Php i found the following script. My problem is to replicate > > > > > > the ereg function. > > > > > > > > > > > > FUNCTION ControlloData($data){ > > > > > > If(!ereg("^[0-9]{2}/[0-9]{2}/[0-9]{4}$", $data)){ > > > > > > RETURN FALSE; > > > > > > } ELSE { > > > > > > $arrayData = explode("/", $data); > > > > > > $Giorno = $arrayData[0]; > > > > > > $Mese = $arrayData[1]; > > > > > > $Anno = $arrayData[2]; > > > > > > If(!checkdate($Mese, $Giorno, $Anno)){ > > > > > > RETURN FALSE; > > > > > > } ELSE { > > > > > > RETURN TRUE; > > > > > > } > > > > > > } > > > > > > } > > > > > > > > > > > > ----------------------------------------------------------------- > > > > > >-- -- -- -- This SF.net email is sponsored by: Microsoft > > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > You could also do something similar to the PHP code: > > > > > > > > > > PUBLIC FUNCTION is_date(data AS String) AS Boolean > > > > > DIM aDateElements AS String[] > > > > > DIM iDay AS Integer > > > > > DIM iMth AS Integer > > > > > DIM iYear AS Integer > > > > > > > > > > IF NOT (data LIKE "[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]") > > > > > THEN RETURN FALSE > > > > > ELSE > > > > > aDateElements = Split(data, "/") > > > > > iDay = aDateElements[0] > > > > > iMth = aDateElements[1] > > > > > iYear = aDateElements[2] > > > > > TRY RETURN IsDate(Date(iYear, iMth, iDay)) > > > > > IF ERROR THEN RETURN FALSE > > > > > ENDIF > > > > > > > > > > END > > > > > > > > > > The Gambas LIKE operator is just as weak as the VB one and the mask > > > > > I have shown will only check for digits. It will accept digits > > > > > which do not make up a date (eg 72/33/1234); this is the same > > > > > behaviour as your PHP regular expression. > > > > > > > > > > > > > > > ------------------------------------------------------------------- > > > > >-- -- -- This SF.net email is sponsored by: Microsoft > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > I suppose, in deference to the peculiar requirements of our northern > > > > trans-atlantic brethren I should have taken more care in the example > > > > to make it locale-aware. > > > > > > > > The trick, which I found when looking at the ValueBox code, is to > > > > construct a localised version of the YYYY MM DD format string for a > > > > gb.ShortDate. When we are extracting day and month from the array of > > > > date element values we must know which one is the day and which the > > > > month. > > > > > > > > Benoit did it something like this: > > > > > > > > sDateFormat = Format(Date(3333, 11, 22), gb.ShortDate) > > > > > > > > so now the month is represented by 11 and the day by 22. All we need > > > > to do is check what the first two digits represent by looking at our > > > > date format variable before we fetch values from the array. > > > > > > > > PUBLIC FUNCTION is_date(data AS String) AS Boolean > > > > DIM aDateElements AS String[] > > > > DIM iDay AS Integer > > > > DIM iMth AS Integer > > > > DIM iYear AS Integer > > > > DIM $sDateFormat AS String > > > > > > > > sDateFormat = Format(Date(3333, 11, 22), gb.ShortDate) > > > > > > > > IF NOT (data LIKE "[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]") > > > > THEN RETURN FALSE > > > > ELSE > > > > aDateElements = Split(data, "/") > > > > iDay = > > > > IIF(LEFT(sDateFormat,2)="22",aDateElements[0],aDateElements[1]) iMth > > > > = IIF(LEFT(sDateFormat,2)="11",aDateElements[0],aDateElements[1]) > > > > iYear = aDateElements[2] > > > > TRY RETURN IsDate(Date(iYear, iMth, iDay)) > > > > IF ERROR THEN RETURN FALSE > > > > ENDIF > > > > > > > > END > > > > > > > > --------------------------------------------------------------------- > > > >-- -- This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > One more attempt to get it right... > > > > > > I overlooked the assumption about the date format in the LIKE > > > expression and the possibility to tighten up the comparison mask to > > > make it a little more robust (not much). > > > > > > PUBLIC FUNCTION is_date(data AS String) AS Boolean > > > DIM aDateElements AS String[] > > > DIM iDay AS Integer > > > DIM iMth AS Integer > > > DIM iYear AS Integer > > > DIM sDateFormat AS String > > > DIM sMask AS String > > > > > > sDateFormat = Format(Date(3333, 11, 22), gb.ShortDate) > > > > > > IF LEFT(sDateFormat,2)="22" THEN > > > sMask = "[0-3][0-9]/[0-1][0-9]/[0-9][0-9][0-9][0-9]" > > > ELSE > > > sMask = "[0-1][0-9]/[0-3][0-9]/[0-9][0-9][0-9][0-9]" > > > ENDIF > > > > > > IF NOT (data LIKE sMask) THEN > > > RETURN FALSE > > > ELSE > > > aDateElements = Split(data, "/") > > > iDay = > > > IIF(LEFT(sDateFormat,2)="22",aDateElements[0],aDateElements[1]) iMth > > > =IIF(LEFT(sDateFormat,2)="11",aDateElements[0],aDateElements[1]) iYear > > > = aDateElements[2] > > > TRY RETURN IsDate(Date(iYear, iMth, iDay)) > > > IF ERROR THEN RETURN FALSE > > > ENDIF > > > > > > END > > > > > > > > > Richard > > > > RETURN IsDate(Val(data)) is not complex enough? :-) > > You got me there! That gets rid of the possibility of the ERROR on the Date > conversion, thus removing the need for the TRY. > > Presumably it also takes care of localisation so the splitting of the array > into date elements is redundant, as is the LIKE check against a mask > string. > > My only excuse is that I wanted to make it "look" functionally similar to > the PHP version, and show off some of Gambas's neat string related features > (like Split). > > > Richard > (properly chastened, but not cowed :-) > Actually that test returns TRUE when data is a time, not a date, so another check is needed! Regards, -- Benoit Minisini From ron at ...1740... Fri Mar 21 16:57:15 2008 From: ron at ...1740... (Ron) Date: Fri, 21 Mar 2008 16:57:15 +0100 Subject: [Gambas-user] Gambas on Windows - Alternative In-Reply-To: <1f1e8c1b0803210832r72cfeb21p55374812a63c1587@...627...> References: <7259b5ae0803210509n7bdf9fffj5880047a34cd451f@...627...> <200803211316.46159.gambas@...1...> <8eb28a500803210528h27babc46keb58898cbacd05d6@...627...> <8eb28a500803210533j296938d6kac89f5f4d763693a@...627...> <1f1e8c1b0803210832r72cfeb21p55374812a63c1587@...627...> Message-ID: <47E3DADB.5080108@...1740...> M0E Lnx schreef: > That's almost like running qemu or Virtualbox on windows. > > I used CoLinux for a while when I began my way out of windows and into Linux... > Good for a linux newbie... > > But that doesn't mean gambas will be running on windows... it is > really a Linux distro running inside a windows environment... You do > everything like you would in Linux... > > You can really run just about any distro inside CoLinux if you manage > to get your configuration and your image right... so it's really just > Not the same but I have chosen this route: I ran a headless server at home (for email/web/domotics etc) with debian etch, I have installed a basic gnome desktop and freenx on it. Installed the freenx client on my windows machine at work (laptop) and at home, configured ssh, and presto i can run and develop in gambas from anywhere and the freenx client can be run in full screen mode, and is fast. I like it... Regards, Ron. From ron at ...1740... Fri Mar 21 17:14:51 2008 From: ron at ...1740... (Ron) Date: Fri, 21 Mar 2008 17:14:51 +0100 Subject: [Gambas-user] Gambas on Windows - Alternative In-Reply-To: <47E3DADB.5080108@...1740...> References: <7259b5ae0803210509n7bdf9fffj5880047a34cd451f@...627...> <200803211316.46159.gambas@...1...> <8eb28a500803210528h27babc46keb58898cbacd05d6@...627...> <8eb28a500803210533j296938d6kac89f5f4d763693a@...627...> <1f1e8c1b0803210832r72cfeb21p55374812a63c1587@...627...> <47E3DADB.5080108@...1740...> Message-ID: <47E3DEFB.9060507@...1740...> Ron schreef: > M0E Lnx schreef: > >> That's almost like running qemu or Virtualbox on windows. >> >> I used CoLinux for a while when I began my way out of windows and into Linux... >> Good for a linux newbie... >> >> But that doesn't mean gambas will be running on windows... it is >> really a Linux distro running inside a windows environment... You do >> everything like you would in Linux... >> >> You can really run just about any distro inside CoLinux if you manage >> to get your configuration and your image right... so it's really just >> >> > > Not the same but I have chosen this route: > > I ran a headless server at home (for email/web/domotics etc) with debian > etch, > I have installed a basic gnome desktop and freenx on it. > > Installed the freenx client on my windows machine at work (laptop) and > at home, configured ssh, and presto i can run and develop in gambas from > anywhere > and the freenx client can be run in full screen mode, and is fast. > I like it... > > Regards, > Ron. > And you don't need to start a whole gnome desktop, if you setup the connection to just run remote command gambas2, you get only gambas ide in a ms window which integrates nicely. I currently develop a webcgi so I don't have to run anything else on linux desktop, and can test from firefox in windows. Regards. From m0e.lnx at ...626... Fri Mar 21 17:32:53 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 21 Mar 2008 11:32:53 -0500 Subject: [Gambas-user] Gambas on Windows - Alternative In-Reply-To: <47E3DEFB.9060507@...1740...> References: <7259b5ae0803210509n7bdf9fffj5880047a34cd451f@...627...> <200803211316.46159.gambas@...1...> <8eb28a500803210528h27babc46keb58898cbacd05d6@...627...> <8eb28a500803210533j296938d6kac89f5f4d763693a@...627...> <1f1e8c1b0803210832r72cfeb21p55374812a63c1587@...627...> <47E3DADB.5080108@...1740...> <47E3DEFB.9060507@...1740...> Message-ID: <1f1e8c1b0803210932v510da837se071c767f751dfb@...627...> I normally just do VNC, but now I have a chance to run Linux @ work, so I always have a linux environment available On Fri, Mar 21, 2008 at 11:14 AM, Ron wrote: > Ron schreef: > > M0E Lnx schreef: > > > >> That's almost like running qemu or Virtualbox on windows. > >> > >> I used CoLinux for a while when I began my way out of windows and into Linux... > >> Good for a linux newbie... > >> > >> But that doesn't mean gambas will be running on windows... it is > >> really a Linux distro running inside a windows environment... You do > >> everything like you would in Linux... > >> > >> You can really run just about any distro inside CoLinux if you manage > >> to get your configuration and your image right... so it's really just > >> > >> > > > > Not the same but I have chosen this route: > > > > I ran a headless server at home (for email/web/domotics etc) with debian > > etch, > > I have installed a basic gnome desktop and freenx on it. > > > > Installed the freenx client on my windows machine at work (laptop) and > > at home, configured ssh, and presto i can run and develop in gambas from > > anywhere > > and the freenx client can be run in full screen mode, and is fast. > > I like it... > > > > Regards, > > Ron. > > > And you don't need to start a whole gnome desktop, if you setup the > connection to just run remote command gambas2, you get only gambas ide > in a ms window which integrates nicely. > > I currently develop a webcgi so I don't have to run anything else on > linux desktop, and can test from firefox in windows. > > Regards. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nxgtrturbo at ...626... Fri Mar 21 17:58:08 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Fri, 21 Mar 2008 08:58:08 -0800 Subject: [Gambas-user] Gambas on Windows - Alternative Message-ID: <688afe140803210958u6d42db10o4d4e69e988f553c2@...627...> > If anybody is interested in that project, creating a custom AndLinux > distribution without extra stuff, just with colinux kernel, X-Server > and the libraries needed to run Gambas2, could be a good idea. Thats pretty nice, I would like to do that since I was actually trying to create a custom VM for my gambas project (http://systemarpi.googlepages.com) (the English side is still under construction so, you can expect some grammatic errors), since most of the people have downloaded the app, wants to run it under Windows, and the VM option didn't sound nice to them. People don't like to download 700mb to test a 10mb GambasX project hehe... so.... keep size as low a possible is the key for success > I've been testing it on my Laptop (32bits Win Vista + Intel Core Duo + > 1GB RAM) and everything works fast and without problems. I tested the > RAD environment and some examples (basic and networking). Both QT and > GTK+ Gambas apps work. Did you need to install the whole 700mb package to be able to run QT app? Por cierto, ?hablas espa?ol? (daniel campos), tu nombre me suena de habla espa?ola. -- Nx GT-R From robert.c.rowe at ...626... Fri Mar 21 19:18:59 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Fri, 21 Mar 2008 14:18:59 -0400 Subject: [Gambas-user] Gambas on Windows - Alternative In-Reply-To: <1f1e8c1b0803210832r72cfeb21p55374812a63c1587@...627...> References: <7259b5ae0803210509n7bdf9fffj5880047a34cd451f@...627...> <200803211316.46159.gambas@...1...> <8eb28a500803210528h27babc46keb58898cbacd05d6@...627...> <8eb28a500803210533j296938d6kac89f5f4d763693a@...627...> <1f1e8c1b0803210832r72cfeb21p55374812a63c1587@...627...> Message-ID: <47E3FC13.2050804@...626...> I just installed it here at work and it works great. Robert Rowe M0E Lnx wrote: > That's almost like running qemu or Virtualbox on windows. > > I used CoLinux for a while when I began my way out of windows and into Linux... > Good for a linux newbie... > > But that doesn't mean gambas will be running on windows... it is > really a Linux distro running inside a windows environment... You do > everything like you would in Linux... > > You can really run just about any distro inside CoLinux if you manage > to get your configuration and your image right... so it's really just > Linux inside windows. > > > On Fri, Mar 21, 2008 at 7:33 AM, Jos? Luis Redrejo wrote: > >> 2008/3/21, Jos? Luis Redrejo : >> >> >>> >>> 2008/3/21, Benoit Minisini : >>> >>>> On vendredi 21 mars 2008, Daniel Campos wrote: >>>> >>>>> Hi: >>>>> >>>>> I don't know if anybody wrote here about this topic, but I've just >>>>> tested a Linux environment on Windows capable to run Gambas2 IDE and >>>>> applications without any problem. You can find it here: >>>>> http://www.andlinux.org (It is GPL'ed) >>>>> >>>>> It is based on cooperative-linux, a Linux kernel running on Windows. >>>>> It adds a rootless X server as well as some graphical applications (or >>>>> a complete KDE system if you want to download a 700 Mb installer). >>>>> >>>>> It runs Linux 32-bits binaries, and provides a basic Ubuntu system, >>>>> that is, you just need to download Gambas packages for Ubuntu, and >>>>> start it from a console. >>>>> >>>>> If anybody is interested in that project, creating a custom AndLinux >>>>> distribution without extra stuff, just with colinux kernel, X-Server >>>>> and the libraries needed to run Gambas2, could be a good idea. >>>>> >>>>> Compared to Cygwin systems, It works really fast, applications seem to >>>>> be running on a native Linux system, and If you want, you can provide >>>>> access to the entire hard disk to manage files in your system. >>>>> >>>>> I've been testing it on my Laptop (32bits Win Vista + Intel Core Duo + >>>>> 1GB RAM) and everything works fast and without problems. I tested the >>>>> RAD environment and some examples (basic and networking). Both QT and >>>>> GTK+ Gambas apps work. >>>>> >>>>> Using that system you don't need a Linux server connected with a >>>>> Windows+X server system, and you don't need to compile anything, just >>>>> download your apps using apt! >>>>> >>>>> Daniel >>>>> >>>>> >>>> Do you have some screenshots? >>>> >>>> I'm currently trying to compile Gambas on Cygwin. There are a *lot* of >>>> problems, and the cygwin architecture reveals many bugs (memory >>>> alignment >>>> problems at the moment). So I don't totally lost my time. :-) >>>> >>>> Anyway, do you think it is possible to create a andlinux distribution >>>> with "just" Gambas, and creates an icon on the windows desktop to run a >>>> gambas application by automatically initializing all the stuff? >>>> >>>> >>>> >>> I do think so, as Daniel says there's no much magic on andlinux.org. The >>> tricky part is the kernel:http://www.colinux.org/ . Having such kernel, >>> any distribution could be done: mandriva, debian, redhat, etc. and you only >>> have to decide the packages to include there. >>> It would have been a nice GSoC project but we're two weeks later for this >>> year projects. >>> Regards. >>> >>> >> Well, a howto to build any distribution with colinux is here: >> http://sourceforge.net/mailarchive/message.php?msg_name=8B83D09529A28D4E9768DBF3DC23913801A76295%40e-exch.emblazer.com >> There is also a wikipage called "Converting distributions" describing the >> process: >> http://colinux.wikia.com/wiki/Converting_Distributions >> >> More info in the colinux faq: >> http://colinux.wikia.com/wiki/CoLinux_FAQ >> >> Regards >> Jos? L. >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From dcamposf at ...626... Fri Mar 21 19:21:23 2008 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 21 Mar 2008 19:21:23 +0100 Subject: [Gambas-user] Gambas on Windows - Alternative In-Reply-To: <688afe140803210958u6d42db10o4d4e69e988f553c2@...627...> References: <688afe140803210958u6d42db10o4d4e69e988f553c2@...627...> Message-ID: <7259b5ae0803211121h3199ae31q48e71ae95821b530@...627...> Hi: > > Thats pretty nice, I would like to do that since I was actually trying to > create a custom VM for my gambas project (http://systemarpi.googlepages.com) > (the English side is still under construction so, you can expect some > grammatic errors), since most of the people have downloaded the app, wants > to run it under Windows, and the VM option didn't sound nice to them. > Then welcome to that project :-) > People don't like to download 700mb to test a 10mb GambasX project hehe... > so.... keep size as low a possible is the key for success > I downloaded a 150Mb installer: XFCE + X Window system + Basic Ubuntu system. Once it is installed it is easy to remove packages, just using apt-get. I removed every package related to XFCE. I would like to remove Firefox too, but then we could find a way to run the documentation using a native browser. I think a basic system + X Window + Gambas could be about 50 Mb (may be a bit more). Not bad if you compare it with the 4 CD set for VB6! > > Por cierto, ?hablas espa?ol? (daniel campos), tu nombre me suena de habla > espa?ola. Yes I speak spanish, as you can see I have Spanish accent when talking english :-) Daniel From ron at ...1740... Fri Mar 21 19:23:38 2008 From: ron at ...1740... (Ron) Date: Fri, 21 Mar 2008 19:23:38 +0100 Subject: [Gambas-user] Make an array having only unique entries Message-ID: <47E3FD2A.2070709@...1740...> Hi, a simple basic question, but i'm so good with arrays ;-) Say I have a array with categories in them, also alot of double ones, how can I weed out the double entries easy? Thanks in advance! Regards, Ron. From dcamposf at ...626... Fri Mar 21 19:27:19 2008 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 21 Mar 2008 19:27:19 +0100 Subject: [Gambas-user] Gambas on Windows - Alternative In-Reply-To: <7259b5ae0803211121h3199ae31q48e71ae95821b530@...627...> References: <688afe140803210958u6d42db10o4d4e69e988f553c2@...627...> <7259b5ae0803211121h3199ae31q48e71ae95821b530@...627...> Message-ID: <7259b5ae0803211127y1ceb7cd9wf05543a8f6dcdf84@...627...> If you really plan to create that custom Win distribution, there are a couple of things that we have to figure out in order to make it really useable: 1) Filesystem: That virtualization system uses its own filesystem (a folder inside the Windows filesystem). You can select to use "CuFS" to have access to all the main filesystem. It would be a good idea to select an standard path for that (I used /mnt/windows) that way every programmer could have access to the entire filesystem. 2) How to deal with Windows executables? I you want to use EXEC or SHELL, I think you can do it only with Linux executables, at this moment... or may it will work with Windows executables inside the real filesystem? Anybody to test it? 3) Once we can run Windows executables, the RAD Gambas application should use a native browser (IE or Firefox) Daniel From leonardo at ...1237... Fri Mar 21 23:39:00 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 21 Mar 2008 23:39:00 +0100 Subject: [Gambas-user] Gambas 2 on ArchLinux Message-ID: <20080321233900.8ouplnhyoscg80kw@...1848...> I would like to inform all the ArchLinux users that Gambas 2 is available through the AUR repo. You can find more info and the PKGBUILD file here: http://aur.archlinux.org/packages.php?ID=15821 The package is updated to the last official release (2.4.1) and it compiles and works fine. Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From sbungay at ...981... Sat Mar 22 00:14:39 2008 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 21 Mar 2008 19:14:39 -0400 Subject: [Gambas-user] Make an array having only unique entries In-Reply-To: <47E3FD2A.2070709@...1740...> References: <47E3FD2A.2070709@...1740...> Message-ID: <47E4415F.40705@...981...> Push the array (or result, or whatever) to a collection and use the category as the index into it. If you try to add an index twice it will throw an error, at which time you keep on processing, proceeding to the next item. Now you have a unique collection of items, you don't need to use an array, but if you want to just push the collection back to the array. Two step process, no fuss, no muss. Ron wrote: > Hi, > > a simple basic question, but i'm so good with arrays ;-) > > Say I have a array with categories in them, also alot of double ones, > how can I weed out the double entries easy? > > Thanks in advance! > > Regards, > Ron. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jbskaggs at ...1871... Sat Mar 22 02:11:10 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Fri, 21 Mar 2008 18:11:10 -0700 (PDT) Subject: [Gambas-user] Newb needs help, Could I have an example of treefile save? Message-ID: <16213218.post@...1379...> As yall know I am just beginning programming, and In my program I am at the point of where I need to save my treeview. But I am getting confused by the save commands. Could you show me an example of how exactly to open and save file that would record each treeview.item's characteristics: ie this is what I am thinking but it's not working and open "myfile" as #1 treecount = TreeView2.Count REPEAT WRITE #1 TreeView2.Item.Key, TreeView2.Item.Image, TreeView2.Item.Text, TreeView2.Parent treeview2.MoveNext savecount+=1 UNTIL savecount = treecount so could somebody give the code to do this? Thanks JB SKaggs -- View this message in context: http://www.nabble.com/Newb-needs-help%2C-Could-I-have-an-example-of-treefile-save--tp16213218p16213218.html Sent from the gambas-user mailing list archive at Nabble.com. From sbungay at ...981... Sat Mar 22 04:57:31 2008 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 21 Mar 2008 23:57:31 -0400 Subject: [Gambas-user] Newb needs help, Could I have an example of treefile save? In-Reply-To: <16213218.post@...1379...> References: <16213218.post@...1379...> Message-ID: <47E483AB.3020805@...981...> When last I looked, TreeView.Parent does not store the parent key of the current node, but rather points you to the parent container for the treeview control. As such TreeView.Parent is, for the purpose of storing the tree structure, fairly useless. You can use a collection and a class to store the tree structure. If the tree itself can not give you the salient details you need to persist it's structure to a table or text file, then it falls on you to create the mechanism to do the job. A class with three fields (lets call it ClassTree) can store what you need. Key ParentKey NodeText When you add a node to the tree you already know 1. What key you added or is to be added 2. What node text is going to be used 3. What the parent key is for the node being added The time to capture this information is when you add a new node. You can do something like this... TreeClass = new ClassTree With TreeClass .Key = KeyBeingAdded .ParentKey = ParentKey .NodeText = TextString end with TreeCollection.Add TreeClass When it comes time to persist the tree to a file you simply walk the TreeCollection by using a for-next loop. Your code might look something like this... open "myfile" as #1 For X = 1 to TreeCollection.COunt With TreeCollection WRITE #1 .Key, .ParentKey, .NodeText End With Next close #1 Of course you can store the name of an image file (don't forget the path to the file) as well. Just add the ImageName to the class, so your class would look like this; Key ParentKey NodeText ImageName and adding it to the collection then looks something like this; TreeClass = new ClassTree With TreeClass .Key = KeyBeingAdded .ParentKey = ParentKey .NodeText = TextString .ImageName = ImageName end with TreeCollection.Add TreeClass Hope this helps. Steve. jbskaggs wrote: > As yall know I am just beginning programming, and In my program I am at the > point of where I need to save my treeview. But I am getting confused by the > save commands. > > Could you show me an example of how exactly to open and save file that would > record each treeview.item's characteristics: > > ie this is what I am thinking but it's not working and > > open "myfile" as #1 > > treecount = TreeView2.Count > > REPEAT > WRITE #1 TreeView2.Item.Key, TreeView2.Item.Image, TreeView2.Item.Text, > TreeView2.Parent > treeview2.MoveNext > savecount+=1 > UNTIL savecount = treecount > > so could somebody give the code to do this? > > Thanks > > JB SKaggs From jbskaggs at ...1871... Sat Mar 22 05:12:55 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Fri, 21 Mar 2008 21:12:55 -0700 (PDT) Subject: [Gambas-user] Newb needs help, Could I have an example of treefile save? In-Reply-To: <47E483AB.3020805@...981...> References: <16213218.post@...1379...> <47E483AB.3020805@...981...> Message-ID: <16215561.post@...1379...> Ok this is new to me. SO I will go and study class and collection and wrap my mind around your lesson. Thank you. JB SKaggs Stephen Bungay-2 wrote: > > When last I looked, TreeView.Parent does not store the parent key of > the current node, but rather points you to the parent container for the > treeview control. As such TreeView.Parent is, for the purpose of storing > the tree structure, fairly useless. > You can use a collection and a class to store the tree structure. If > the tree itself can not give you the salient details you need to persist > it's structure to a table or text file, then it falls on you to create > the mechanism to do the job. > A class with three fields (lets call it ClassTree) can store what you > need. > > Key > ParentKey > NodeText > > When you add a node to the tree you already know > 1. What key you added or is to be added > 2. What node text is going to be used > 3. What the parent key is for the node being added > > The time to capture this information is when you add a new node. You can > do something like this... > > TreeClass = new ClassTree > With TreeClass > .Key = KeyBeingAdded > .ParentKey = ParentKey > .NodeText = TextString > end with > > TreeCollection.Add TreeClass > > When it comes time to persist the tree to a file you simply walk the > TreeCollection by using a for-next loop. Your code might look something > like this... > > open "myfile" as #1 > For X = 1 to TreeCollection.COunt > With TreeCollection > WRITE #1 .Key, .ParentKey, .NodeText > End With > Next > close #1 > > Of course you can store the name of an image file (don't forget the > path to the file) as well. Just add the ImageName to the class, so your > class would look like this; > > Key > ParentKey > NodeText > ImageName > > > and adding it to the collection then looks something like this; > > TreeClass = new ClassTree > With TreeClass > .Key = KeyBeingAdded > .ParentKey = ParentKey > .NodeText = TextString > .ImageName = ImageName > end with > > TreeCollection.Add TreeClass > > Hope this helps. > > Steve. > > jbskaggs wrote: >> As yall know I am just beginning programming, and In my program I am at >> the >> point of where I need to save my treeview. But I am getting confused by >> the >> save commands. >> >> Could you show me an example of how exactly to open and save file that >> would >> record each treeview.item's characteristics: >> >> ie this is what I am thinking but it's not working and >> >> open "myfile" as #1 >> >> treecount = TreeView2.Count >> >> REPEAT >> WRITE #1 TreeView2.Item.Key, TreeView2.Item.Image, >> TreeView2.Item.Text, >> TreeView2.Parent >> treeview2.MoveNext >> savecount+=1 >> UNTIL savecount = treecount >> >> so could somebody give the code to do this? >> >> Thanks >> >> JB SKaggs > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Newb-needs-help%2C-Could-I-have-an-example-of-treefile-save--tp16213218p16215561.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Fri Mar 21 09:17:58 2008 From: rterry at ...1822... (richard terry) Date: Fri, 21 Mar 2008 19:17:58 +1100 Subject: [Gambas-user] Tracked down - one cause of Signal 11 crash (2.99 build 1200) Message-ID: <200803211917.58573.rterry@...1822...> This is just my sloppy coding, but the program didn't baulk with an error message, it just died with signal 11. In this routine, I set up a few observors to overide the events on an embedded form, for some toolbuttons, texteditors, comboboxes, In this case, at the top of the form I declare: DIM ipagecount AS Integer DIM hTabStrip AS TabStrip DIM hCtrl AS Control DIM hChildCtrl AS control DIM hTextEdit AS TextEdit DIM hTextbox AS TextBox DIM hCombo AS ComboBox DIM hToolbutton AS ToolButton DIM page AS frmTextEditor ipagecount = WorkspaceEditor.children.Count Newpage = NEW frmTextEditor EditorPages.add(Newpage, ipagecount) WorkspaceEditor.Add(NewPage) Then later down when I'm looking for all the combo's on one of my toolbars, I stuffed up by having copied a few lines of code, and not substituted the hToolbutton for hCombo > which caused the signal 11 and crashed the program. ----------------------------------------------------------------------------------------------------- FOR EACH hCtrl IN NewPage.HBoxEditorToolBar.Children IF hCtrl IS ComboBox THEN hCombo = hCtrl hObs = NEW Observer(hToolbutton) AS "Editor_ComboCtrl" END IF NEXT ------------------------------------------------------------------------------------------------------- Not sure if this is any use, but I would have expected the program to just stop at that line, not crash. Regards Richard From rterry at ...1822... Sat Mar 22 06:15:16 2008 From: rterry at ...1822... (richard terry) Date: Sat, 22 Mar 2008 16:15:16 +1100 Subject: [Gambas-user] Gambas 3 on ArchLinux In-Reply-To: <20080321233900.8ouplnhyoscg80kw@...1848...> References: <20080321233900.8ouplnhyoscg80kw@...1848...> Message-ID: <200803221615.17231.rterry@...1822...> Leonardo, this PKGBUILD works (albeit one mistake) for 2.99. As I don't understand this stuff, maybe you could fix it and mail me back, that way ARCH uses can use the latest 2.99 version if they like. I scrawled a bit '3' across the gambas icon so as not to get confused with 2.4 Richard On Sat, 22 Mar 2008 09:39:00 am Leonardo Miliani wrote: > I would like to inform all the ArchLinux users that Gambas 2 is > available through the AUR repo. You can find more info and the > PKGBUILD file here: > http://aur.archlinux.org/packages.php?ID=15821 > > The package is updated to the last official release (2.4.1) and it > compiles and works fine. > > Ciao. > Leo. > > Web: www.leonardomiliani.com > E-mail: leonardo at ...1237... > > Co-fondatore di Gambas-it.org > Il sito di riferimento della comunit? italiana degli utenti di Gambas > www.gambas-it.org > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas3.png Type: image/png Size: 2396 bytes Desc: not available URL: -------------- next part -------------- # Contributor: Toni Foerster # changed by Richard Terry (so it is probably Wrong! rterry at ...1822... # to get the lastest development branch of Gambas libffi added as dependency pkgname=gambas3-svn pkgver=1226 pkgrel=2 pkgdesc="Gambas is a free development environment based on a Basic interpreter." arch=('i686') url="http://gambas.sourceforge.net" depends=('libldap' 'librsvg' 'postgresql' 'libmysqlclient' 'curl' 'sqlite2' \ 'sqlite3' 'sdl_mixer' 'sdl_image' 'unixodbc' 'kdelibs' 'poppler' \ 'libfbclient' 'omniorb' 'libffi') license=('GPL') conflicts=('gambas_3' 'gambas3') install=gambas3-svn.install source=(gambas3.desktop gambas3.png) md5sums=('177837d2a53cd202ab0fc307656a8c50' '682f60d694dd1df53d786c21939622c5') _svntrunk=https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk _svnrevision=1226 build() { cd $startdir/src/trunk msg "Checking out svn-tree..." svn checkout -r $_svnrevision $_svntrunk|| return 1 cd $startdir/src/trunk msg "Configure files..." ./reconf-all ./configure --disable-qte \ --prefix=/usr msg "Start Compiling..." make bindir=$startdir/pkg/usr/bin || return 1 make DESTDIR=$startdir/pkg install || return 1 chmod -R 755 $startdir/pkg/usr/share/gambas3/help install -D -m644 $startdir/src/gambas3.desktop \ $startdir/pkg/usr/share/applications/gambas3.desktop install -D -m644 $startdir/src/gambas3.png \ $startdir/pkg/usr/share/pixmaps/gambas3.png } -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas3.desktop Type: application/x-desktop Size: 391 bytes Desc: not available URL: -------------- next part -------------- post_install() { echo ">>> This software is still BETA. Do NOT expect" echo ">>> full functionality." echo "" echo ">>> If you like to create packages of your Gambas" echo ">>> Project for other distributions e.g. Fedora or" echo ">>> Debian, install the packages: rpm and debhelper" } post_upgrade() { post_install $1 } op=$1 shift $op $* From rterry at ...1822... Sat Mar 22 06:33:45 2008 From: rterry at ...1822... (richard terry) Date: Sat, 22 Mar 2008 16:33:45 +1100 Subject: [Gambas-user] Workspace question - moving across tabs in code, not by clicking Message-ID: <200803221633.45422.rterry@...1822...> Having added a number of forms to a workspace editor, and set the tab's titles, one can then obviously click on that tab to change. I want implement a back/forward button on an underlying toolbar, and wondered if it is possible to know what the curent index is, and then re-set it. The doc's mention that the workspace uses the tabstrip, but I couldn't figure about a way to address this in code. Any help appreciated. Richard From ron at ...1740... Sat Mar 22 11:32:56 2008 From: ron at ...1740... (Ron) Date: Sat, 22 Mar 2008 11:32:56 +0100 Subject: [Gambas-user] Database manager Message-ID: <47E4E058.6000900@...1740...> When starting using the database manager for the first time, I tried to login to my mysql server about 12 times, nothing happened, I thought, until in noticed that the treeview on the left was simple not visible. (ie at min width) I remembered someone else was bitten by this flaw, maybe make sure the treeview is visible for first time users better? (if you resize is the first time it remembers it, but the default width seems not ok) My 2 ? cents Regards, Ron. From maximvonk at ...626... Sat Mar 22 12:47:29 2008 From: maximvonk at ...626... (MaxVK) Date: Sat, 22 Mar 2008 04:47:29 -0700 (PDT) Subject: [Gambas-user] Correctly using the LIKE operator Message-ID: <16218560.post@...1379...> Hi, I'm having some problems using the LIKE operator. I'm trying to use it in a spell check routine, to generate a list of words that might be the correct spelling for a word that is not in the dictionary. However, I seem to be able to either include almost every word in the dictionary, or no words at all! I'm doing something like this: IF CheckWord LIKE "[" & sp_Dict[d] & "]*" THEN .... add this word to a list I have tried using "?[...]?", and "*[...]*" and various similar combinations, but I'm still unable to get a satisfactory result, either getting words that are in no way 'LIKE' the misspelled word, or getting none at all. Could anyone point me in the right direction please, or possibly even offer an alternative way to do this. Many thanks Max -- View this message in context: http://www.nabble.com/Correctly-using-the-LIKE-operator-tp16218560p16218560.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sat Mar 22 12:59:35 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 22 Mar 2008 12:59:35 +0100 Subject: [Gambas-user] TextEdit Example In-Reply-To: <16190349.post@...1379...> References: <6324a42a0705170323o12073b49oa53251e37e9fc8a6@...627...> <16190349.post@...1379...> Message-ID: <6324a42a0803220459q141757e4k65efc0902d99cabe@...627...> in fact the example is in the gambas2 exemples... richtext 2008/3/20, MaxVK : > > > > Fabien Bodard-4 wrote: > > > > Hi to all, > > > > This is an example to how to use the textedit widget. > > > > If Benoit want to add it in the examples... > > > > Regards, > > Fabien Bodard > > > > > > Hi Fabien, sorry to resurrect such an old post here, but I found it using > my > browser, and I'm having trouble with the file download. When I save the > file > it is unreadable. Is there some other way to get it? > > Regards > > Max > -- > View this message in context: > http://www.nabble.com/TextEdit-Example-tp10661530p16190349.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Mike at ...680... Sat Mar 22 17:47:07 2008 From: Mike at ...680... (Mike Keehan) Date: Sat, 22 Mar 2008 16:47:07 +0000 Subject: [Gambas-user] Correctly using the LIKE operator In-Reply-To: <16218560.post@...1379...> References: <16218560.post@...1379...> Message-ID: <47E5380B.1070407@...680...> MaxVK wrote: > Hi, I'm having some problems using the LIKE operator. > > I'm trying to use it in a spell check routine, to generate a list of words > that might be the correct spelling for a word that is not in the dictionary. > However, I seem to be able to either include almost every word in the > dictionary, or no words at all! > > I'm doing something like this: > > IF CheckWord LIKE "[" & sp_Dict[d] & "]*" THEN .... add this word to a list > > I have tried using "?[...]?", and "*[...]*" and various similar > combinations, but I'm still unable to get a satisfactory result, either > getting words that are in no way 'LIKE' the misspelled word, or getting none > at all. > > Could anyone point me in the right direction please, or possibly even offer > an alternative way to do this. > > Many thanks > > Max Hi Max. I don't think LIKE will do what you want. When you code 'IF CheckWord LIKE "[abcd]*" THEN ...', then the IF condition is true if CheckWord starts with any of the letters 'a', 'b', 'c', or 'd'. The square brackets are used to match against a single character of CheckWord. 'LIKE' will not say that 'picure' is similar to 'picture' for example. I suggest you research (i.e. google) for Soundex, and for correlate. Best of luck, Mike. From maximvonk at ...626... Sat Mar 22 18:09:43 2008 From: maximvonk at ...626... (MaxVK) Date: Sat, 22 Mar 2008 10:09:43 -0700 (PDT) Subject: [Gambas-user] Correctly using the LIKE operator In-Reply-To: <47E5380B.1070407@...680...> References: <16218560.post@...1379...> <47E5380B.1070407@...680...> Message-ID: <16224753.post@...1379...> Mike Keehan-2 wrote: > > Hi Max. > > I don't think LIKE will do what you want. > > When you code 'IF CheckWord LIKE "[abcd]*" THEN ...', then the IF > condition is true if CheckWord starts with any of the letters 'a', > 'b', 'c', or 'd'. The square brackets are used to match against a > single character of CheckWord. > > 'LIKE' will not say that 'picure' is similar to 'picture' for example. > > I suggest you research (i.e. google) for Soundex, and for correlate. > > Best of luck, > > Mike. > Aha! Thanks Mike. I think I was becoming a little confused about what LIKE actually does. Iv found some information on soundex and its looking promising. Cheers Max -- View this message in context: http://www.nabble.com/Correctly-using-the-LIKE-operator-tp16218560p16224753.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Sat Mar 22 19:31:18 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sat, 22 Mar 2008 11:31:18 -0700 (PDT) Subject: [Gambas-user] file problem on 2.21 ubuntu Message-ID: <16225751.post@...1379...> The other day I was given a file save example to learn on. In my program I have about six forms. On all my forms when I use the word file I have the choice of choosing file as class or file as command. but on my form3 it does not give me the option of using the file command (denoted by a blackdiamond) rather only as as class? (denoted by a form image) here are screenshots: This first one shows the proper file command with the black diamond- (the bix pops up when I type the word file) so when I choose the the one with diamond I can use commands like save, load, read, write etc. http://www.nabble.com/file/p16225751/Screenshot-1.png This is the second one. As you cansee on the popup box it does not offer the file command with the black diamond- only a form image and will not let me open, load, save, read, or write. http://www.nabble.com/file/p16225751/Screenshot.png What can I do to get the form to let me use the right file command? In other words what have I done wrong? JB Skaggs -- View this message in context: http://www.nabble.com/file-problem-on-2.21-ubuntu-tp16225751p16225751.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Mar 22 21:25:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 22 Mar 2008 21:25:24 +0100 Subject: [Gambas-user] Gambas on Windows - Alternative In-Reply-To: <47E3FC13.2050804@...626...> References: <7259b5ae0803210509n7bdf9fffj5880047a34cd451f@...627...> <1f1e8c1b0803210832r72cfeb21p55374812a63c1587@...627...> <47E3FC13.2050804@...626...> Message-ID: <200803222125.24798.gambas@...1...> On vendredi 21 mars 2008, Robert Rowe wrote: > I just installed it here at work and it works great. > > Robert Rowe > Apparently, it does not work inside VirtualBox... -- Benoit Minisini From gambas at ...1... Sat Mar 22 21:39:00 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 22 Mar 2008 21:39:00 +0100 Subject: [Gambas-user] Newb needs help, Could I have an example of treefile save? In-Reply-To: <16213218.post@...1379...> References: <16213218.post@...1379...> Message-ID: <200803222139.00486.gambas@...1...> On samedi 22 mars 2008, jbskaggs wrote: > As yall know I am just beginning programming, and In my program I am at the > point of where I need to save my treeview. But I am getting confused by > the save commands. > > Could you show me an example of how exactly to open and save file that > would record each treeview.item's characteristics: > > ie this is what I am thinking but it's not working and > > open "myfile" as #1 > > treecount = TreeView2.Count > > REPEAT > WRITE #1 TreeView2.Item.Key, TreeView2.Item.Image, TreeView2.Item.Text, > TreeView2.Parent > treeview2.MoveNext > savecount+=1 > UNTIL savecount = treecount > > so could somebody give the code to do this? > > Thanks > > JB SKaggs As treeview is a recursive structure, you must replace the "treeview2.MoveNext" line by the following algorithm: ' Moves to the first item treeview2.MoveFirst() WHILE treeview2.Available ' Do your job there... ' Moves to first child treeview2.MoveChild() ' No first child ? Go to the next sibling IF NOT treeview2.Available THEN treeview2.MoveBack() ' Returns to the current item treeview2.MoveNext() ENDIF ' I am the last child of my parent ? IF NOT treeview2.Available THEN treeview2.MoveBack() ' Returns to the current item DO ' Go to the parent treeview2.MoveParent() ' No more parent ? Stop IF NOT treeview2.Available THEN BREAK ' And maybe its next sibling treeview2.MoveNext() ' If there is a next sibling, stop IF treeview2.Available THEN BREAK ' Otherwise, go to the grand-parent, and so on... treeview2.MoveBack() ' Returns to the parent LOOP ENDIF WEND It should enumerate all treeview items... This algorithm is useless in gb.gtk, as the TreeView.MoveBelow() already implements this algorithm. In gb.qt, TreeView.MoveBelow() uses a qt method that seems to not be reliable. The gb.gtk algorithm must be put in the gb.qt component, but I didn't do that yet... Regards, -- Benoit Minisini From gambas at ...1... Sat Mar 22 21:40:23 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 22 Mar 2008 21:40:23 +0100 Subject: [Gambas-user] Workspace question - moving across tabs in code, not by clicking In-Reply-To: <200803221633.45422.rterry@...1822...> References: <200803221633.45422.rterry@...1822...> Message-ID: <200803222140.23250.gambas@...1...> On samedi 22 mars 2008, richard terry wrote: > Having added a number of forms to a workspace editor, and set the tab's > titles, one can then obviously click on that tab to change. > > I want implement a back/forward button on an underlying toolbar, and > wondered if it is possible to know what the curent index is, and then > re-set it. > > The doc's mention that the workspace uses the tabstrip, but I couldn't > figure about a way to address this in code. > > Any help appreciated. > > Richard > The Workspace does not work by index, but by using the ActiveWindow property that returns the current activated Window MDI child. Set this property to activate a specific MDI child window. -- Benoit Minisini From gambas at ...1... Sat Mar 22 21:40:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 22 Mar 2008 21:40:55 +0100 Subject: [Gambas-user] Database manager In-Reply-To: <47E4E058.6000900@...1740...> References: <47E4E058.6000900@...1740...> Message-ID: <200803222140.56005.gambas@...1...> On samedi 22 mars 2008, Ron wrote: > When starting using the database manager for the first time, I tried to > login to my mysql server about 12 times, nothing happened, I thought, > until in noticed that the treeview on the left was simple not visible. > (ie at min width) > > I remembered someone else was bitten by this flaw, maybe make sure the > treeview is visible for first time users better? > (if you resize is the first time it remembers it, but the default width > seems not ok) > > My 2 ? cents > > Regards, > Ron. > It should have been fixed in a recent release. Which one do you use? -- Benoit Minisini From gambas at ...1... Sat Mar 22 21:42:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 22 Mar 2008 21:42:36 +0100 Subject: [Gambas-user] file problem on 2.21 ubuntu In-Reply-To: <16225751.post@...1379...> References: <16225751.post@...1379...> Message-ID: <200803222142.36352.gambas@...1...> On samedi 22 mars 2008, jbskaggs wrote: > The other day I was given a file save example to learn on. > > In my program I have about six forms. On all my forms when I use the word > file I have the choice of choosing file as class or file as command. > > but on my form3 it does not give me the option of using the file command > (denoted by a blackdiamond) rather only as as class? (denoted by a form > image) > > here are screenshots: > > This first one shows the proper file command with the black diamond- (the > bix pops up when I type the word file) so when I choose the the one with > diamond I can use commands like save, load, read, write etc. > > http://www.nabble.com/file/p16225751/Screenshot-1.png > > > This is the second one. As you cansee on the popup box it does not offer > the file command with the black diamond- only a form image and will not let > me open, load, save, read, or write. > > http://www.nabble.com/file/p16225751/Screenshot.png > > What can I do to get the form to let me use the right file command? In > other words what have I done wrong? > > JB Skaggs "File" is the File class defined globally, and "file" should be a symbol named "file" that is present somewhere in one file, and not in the other. Regards, -- Benoit Minisini From ron at ...1740... Sat Mar 22 22:13:35 2008 From: ron at ...1740... (Ron) Date: Sat, 22 Mar 2008 22:13:35 +0100 Subject: [Gambas-user] Database manager In-Reply-To: <200803222140.56005.gambas@...1...> References: <47E4E058.6000900@...1740...> <200803222140.56005.gambas@...1...> Message-ID: <47E5767F.7050607@...1740...> >> I remembered someone else was bitten by this flaw, maybe make sure the >> treeview is visible for first time users better? >> (if you resize is the first time it remembers it, but the default width >> seems not ok) >> >> >> >> > > It should have been fixed in a recent release. Which one do you use? > I'm using 2.4.0, will try 2.4.1. Where are the window position and sizes stored, so i can delete them first? btw, im stunned as how fast a gambas cgi program is, i'm building one to run my website on , with doc.cgi as example, it's great! Regards, Ron. From ron at ...1740... Sat Mar 22 22:38:37 2008 From: ron at ...1740... (Ron) Date: Sat, 22 Mar 2008 22:38:37 +0100 Subject: [Gambas-user] Make an array having only unique entries In-Reply-To: <47E4415F.40705@...981...> References: <47E3FD2A.2070709@...1740...> <47E4415F.40705@...981...> Message-ID: <47E57C5D.5070800@...1740...> Stephen Bungay schreef: > Push the array (or result, or whatever) to a collection and use the > category as the index into it. If you try to add an index twice it will > throw an error, at which time you keep on processing, proceeding to the > next item. Now you have a unique collection of items, you don't need to > use an array, but if you want to just push the collection back to the > array. Two step process, no fuss, no muss. > > Yes that works great! PUBLIC cPhotoCatList AS Collection PUBLIC sPhotoCatLst AS String ... cPhotoCatList = NEW Collection TRY cPhotoCatList.Add(sTempCategory, sTempCategory) ... ' list unique categories FOR EACH sPhotoCatLst IN cPhotoCatList PRINT sPhotoCatLst NEXT Domotics Public Misc Uncategorized Thanks! Ron. From richard.j.walker at ...247... Sun Mar 23 14:52:16 2008 From: richard.j.walker at ...247... (Richard) Date: Sun, 23 Mar 2008 13:52:16 +0000 Subject: [Gambas-user] Message Box pops up where? (smaller image) Message-ID: <200803231352.16887.richard.j.walker@...247...> Hi all, It's a lovely sunny but cold afternoon here in beautiful County Fermanagh but I have an itch I want to scratch so for now I will just enjoy the view of the mountains from my window. My niggling little problem is; How do I control where a Message.xxxx box will pop up on the screen? This is only a major niggle when I am working on a wider than normal (4:3) screen. My current screen is 8:3 split over two monitors. With this arrangement one tends to work in one screen or the other. The centre of the screen is not much used because of the 3 inches of plastic slap in the middle of it. I have a little "tray" application which, from time to time, scans my LAN and notes what systems are up. It also acts as an "intercom" to allow members of the family to send quick messages to each other like cries for help or "is the printer turned on?" - that sort of thing. I have some message boxes for error reporting, but those are rare. The biggest pop up position problem is caused by a Menupopup.Popup window. They all share the problem which is that the popup which needs attention can be over a foot (30cm) away from where the mouse pointer has just clicked a button (see attached pic). I know I can control the position of my applications' screens because I have code which takes the current mouse position as the centre of the screen for each starting program. Is it possible to do the same with the Gambas System Popup? regards, Richard PS to any readers in NZ. What is going on at Napier? I've never seen anything like it in my life! -------------- next part -------------- A non-text attachment was scrubbed... Name: smallfullscreen.jpg Type: image/jpeg Size: 57438 bytes Desc: not available URL: From kaoticus60 at ...151... Sun Mar 23 15:32:23 2008 From: kaoticus60 at ...151... (andy2) Date: Sun, 23 Mar 2008 15:32:23 +0100 Subject: [Gambas-user] How to open main form in the centre of any screen In-Reply-To: References: Message-ID: <47E669F7.9000702@...151...> I have problem to open my software at the centre of my screen. Actually i use the following code: PUBLIC SUB Main() fMain.x = fMain.ScreenX / 2 fMain.y = fMain.ScreenY + 200 fMain.Show END But this code doesn't work very well. Thanks for your attention. Andy From horechuk at ...981... Sun Mar 23 15:39:27 2008 From: horechuk at ...981... (Paul Horechuk) Date: Sun, 23 Mar 2008 10:39:27 -0400 Subject: [Gambas-user] How to open main form in the centre of any screen In-Reply-To: <47E669F7.9000702@...151...> References: <47E669F7.9000702@...151...> Message-ID: <200803231039.27059.horechuk@...981...> On March 23, 2008 10:32:23 am andy2 wrote: > I have problem to open my software at the centre of my screen. Actually > i use the following code: > > PUBLIC SUB Main() > fMain.x = fMain.ScreenX / 2 > fMain.y = fMain.ScreenY + 200 > fMain.Show > END > > But this code doesn't work very well. Thanks for your attention. > > Andy > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user How about something like this: PUBLIC SUB Form_Open() ME.X = Desktop.Width / 2 - ME.Width / 2 ME.Y = Desktop.Height / 2 - ME.Height / 2 ' more code END -- -- Paul Horechuk Think Free Use Open Sourec Software From robert.c.rowe at ...626... Sun Mar 23 15:47:57 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Sun, 23 Mar 2008 10:47:57 -0400 Subject: [Gambas-user] How to open main form in the centre of any screen In-Reply-To: <47E669F7.9000702@...151...> References: <47E669F7.9000702@...151...> Message-ID: <47E66D9D.503@...626...> Try this: fMain.x = (Desktop.Width - fMain.Width) / 2 fMain.y = (Desktop.Height - fMain.Height) / 2 Robert Rowe andy2 wrote: > I have problem to open my software at the centre of my screen. Actually > i use the following code: > > PUBLIC SUB Main() > fMain.x = fMain.ScreenX / 2 > fMain.y = fMain.ScreenY + 200 > fMain.Show > END > > But this code doesn't work very well. Thanks for your attention. > > Andy > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Sun Mar 23 17:21:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 Mar 2008 17:21:44 +0100 Subject: [Gambas-user] How to open main form in the centre of any screen In-Reply-To: <47E66D9D.503@...626...> References: <47E669F7.9000702@...151...> <47E66D9D.503@...626...> Message-ID: <200803231721.44304.gambas@...1...> On dimanche 23 mars 2008, Robert Rowe wrote: > Try this: > > fMain.x = (Desktop.Width - fMain.Width) / 2 > fMain.y = (Desktop.Height - fMain.Height) / 2 > > Robert Rowe > Or this: fMain.Center() -- Benoit Minisini From gambas at ...1... Sun Mar 23 19:19:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 Mar 2008 19:19:16 +0100 Subject: [Gambas-user] Database manager In-Reply-To: <47E5767F.7050607@...1740...> References: <47E4E058.6000900@...1740...> <200803222140.56005.gambas@...1...> <47E5767F.7050607@...1740...> Message-ID: <200803231919.16062.gambas@...1...> On samedi 22 mars 2008, Ron wrote: > >> I remembered someone else was bitten by this flaw, maybe make sure the > >> treeview is visible for first time users better? > >> (if you resize is the first time it remembers it, but the default width > >> seems not ok) > > > > It should have been fixed in a recent release. Which one do you use? > > I'm using 2.4.0, will try 2.4.1. > > Where are the window position and sizes stored, so i can delete them first? In the ~/.config/gambas/gambas2.conf file, or ~/.config/gambas3/gambas3.conf file. > > btw, im stunned as how fast a gambas cgi program is, i'm building one to > run my website on , with doc.cgi as example, it's great! 'doc.cgi' is just a big awful quick & dirty hack. You should based your CGI script on the gb.web component instead. It has an ASP-like interface. And I like the speed of CGI scripts written in Gambas too. :-) After all, I earn my life with the gb.web component now. And if you replace your apache http server by something like thttpd, it will faster again! I plan to enhance the web support in the IDE. Now users wants web applications. Mainly windows users, because local applications that you must install on each computer is a real nightmare on this OS. Regards, -- Benoit Minisini From jcvivian at ...626... Sun Mar 23 20:02:07 2008 From: jcvivian at ...626... (Julio Vivian) Date: Sun, 23 Mar 2008 16:02:07 -0300 Subject: [Gambas-user] problems with sdl programming in gambas 1 and 2 Message-ID: Hi, I'm using Gambas 1.0.15 and gambas 2.2.0 in Debian Etch and Ubuntu Gutsy Gibbon and everytime i declare PUBLIC Screen AS NEW Window AS "Screen" in the source code (generaly i put it in the first lines of the code just after the ' Gambas class file statement) it returns Unkown identifier: Window at line... in both distros and gambas versions I believe this happens because the examples distributed with gambas are coded the wrong way. Could it be? If so, wich is the proper syntax for the SDL component in gambas? If don't, wich is the problem? Thanks Julio Vivian From gambas at ...1... Sun Mar 23 20:07:22 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 Mar 2008 20:07:22 +0100 Subject: [Gambas-user] problems with sdl programming in gambas 1 and 2 In-Reply-To: References: Message-ID: <200803232007.22144.gambas@...1...> On dimanche 23 mars 2008, Julio Vivian wrote: > Hi, > I'm using Gambas 1.0.15 and gambas 2.2.0 in Debian Etch and Ubuntu Gutsy > Gibbon and everytime i declare PUBLIC Screen AS NEW Window AS "Screen" in > the source code (generaly i put it in the first lines of the code just > after the ' Gambas class file statement) it returns Unkown identifier: > Window at line... in both distros and gambas versions > I believe this happens because the examples distributed with gambas are > coded the wrong way. Could it be? > If so, wich is the proper syntax for the SDL component in gambas? > If don't, wich is the problem? > Thanks > > Julio Vivian Did you check the gb.sdl component? -- Benoit Minisini From leonardo at ...1237... Sun Mar 23 23:38:28 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 23 Mar 2008 23:38:28 +0100 Subject: [Gambas-user] Gambas 3 on ArchLinux In-Reply-To: <200803221615.17231.rterry@...1822...> References: <20080321233900.8ouplnhyoscg80kw@...1848...> <200803221615.17231.rterry@...1822...> Message-ID: <20080323233828.36bddmwf4gw80848@...1848...> The webmaster of the italian ArchLinux site sent me this archive containing the corrected files to compile & install Gambas3 SVN. He said me that versionpkg is needed to compile the software ('sudo pacman -S versionpkg' is isn't installed) instead of makepkg. After Easter holidays he will put it in AUR. I didn't try it that I'm sure that it will work ;-) Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas3-svn.tar.gz Type: application/x-gzip Size: 4017 bytes Desc: not available URL: From richard.j.walker at ...247... Mon Mar 24 15:29:01 2008 From: richard.j.walker at ...247... (Richard) Date: Mon, 24 Mar 2008 14:29:01 +0000 Subject: [Gambas-user] Message Box pops up where? (smaller image) In-Reply-To: <200803231352.16887.richard.j.walker@...247...> References: <200803231352.16887.richard.j.walker@...247...> Message-ID: <200803241429.01821.richard.j.walker@...247...> On Sunday 23 Mar 2008 13:52, Richard wrote: > Hi all, > .... > > I know I can control the position of my applications' screens because I > have code which takes the current mouse position as the centre of the > screen for each starting program. Is it possible to do the same with the > Gambas System Popup? > > regards, > > Richard > .... I think I can see the answer to my problem in respect of the Message popup "dialog". After looking at the Gambas source for a message box and at the QT qmessage.h file it seems likely that the necessary XY properties are buried too deep to be accessed. The problem now becomes can one write a class which inherits gb.qt.Message (and presumably the GTK version too) which can confine a message box to the boundaries which it defines? I think perhaps I need to know a bit more about how QT and GTK decide where to place a message box. Does anyone know? Richard From demosthenesk at ...626... Mon Mar 24 16:48:12 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 24 Mar 2008 17:48:12 +0200 Subject: [Gambas-user] ERROR:ld.so: object 'libqt-mt.so.3 Message-ID: Hi, i have a procces with SHELL executing a "su" command. When the project runs in GAMBAS IDE everything is fine. No error message box appeared But when i run the executable i get the following error "ERROR:ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be preloaded: ignored" So i have to write something like that in Procces_Error Sub to avoid the error messagebox in executable PUBLIC SUB Process_Error(txtError AS String) 'we use one var to inform the errors to user DIM txtErrorString AS String 'if txtError start with word "ERROR" dont show message 'if we dont write these "if" lines the executable file raises an error when we execute a "su" command 'the error is "ERROR:ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be preloaded: ignored" IF Mid(txtError, 1, 5) = "ERROR" THEN RETURN ELSE txtErrorString = "The process raised the following error:\n" message.Error(txtErrorString & txtError) END IF END Does anybody know something about that? -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From gambas at ...1... Mon Mar 24 17:53:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Mar 2008 17:53:21 +0100 Subject: [Gambas-user] ERROR:ld.so: object 'libqt-mt.so.3 In-Reply-To: References: Message-ID: <200803241753.21595.gambas@...1...> On lundi 24 mars 2008, Demosthenes Koptsis wrote: > Hi, i have a procces with SHELL executing a "su" command. > When the project runs in GAMBAS IDE everything is fine. No error > message box appeared > But when i run the executable i get the following error > "ERROR:ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be > preloaded: ignored" > So i have to write something like that in Procces_Error Sub to avoid > the error messagebox in executable > > PUBLIC SUB Process_Error(txtError AS String) > > 'we use one var to inform the errors to user > DIM txtErrorString AS String > > 'if txtError start with word "ERROR" dont show message > 'if we dont write these "if" lines the executable file raises an > error when we execute a "su" command > 'the error is "ERROR:ld.so: object 'libqt-mt.so.3' from LD_PRELOAD > cannot be preloaded: ignored" > IF Mid(txtError, 1, 5) = "ERROR" THEN > RETURN > ELSE > txtErrorString = "The process raised the following error:\n" > message.Error(txtErrorString & txtError) > END IF > > END > > Does anybody know something about that? > > Preloading is a thing done by the interpreter at startup to workaround some bugs in the compilation of QT and KDE libraries on some systems like OpenSUSE. So, when a project uses gb.qt or gb.qt.kde, some libraries are put in LD_PRELOAD at startup, and the interpreter is run again, so that these libraries are loaded before anything is run by the interpreter. Otherwise, it crashes in the dynamic libraries loader. At the moment it is done by default for everyone. But, for example, on Mandriva, it is not necessary at all. You are not clear anyway: can you explain precisely how you run the program to get the error message? Which distribution do you use? Can you send your project? Regards, -- Benoit Minisini From demosthenesk at ...626... Mon Mar 24 19:49:26 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 24 Mar 2008 20:49:26 +0200 Subject: [Gambas-user] ERROR:ld.so: object 'libqt-mt.so.3 In-Reply-To: <200803241753.21595.gambas@...1...> References: <200803241753.21595.gambas@...1...> Message-ID: On 3/24/08, Benoit Minisini wrote: > On lundi 24 mars 2008, Demosthenes Koptsis wrote: > > Hi, i have a procces with SHELL executing a "su" command. > > When the project runs in GAMBAS IDE everything is fine. No error > > message box appeared > > But when i run the executable i get the following error > > "ERROR:ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be > > preloaded: ignored" > > So i have to write something like that in Procces_Error Sub to avoid > > the error messagebox in executable > > > > PUBLIC SUB Process_Error(txtError AS String) > > > > 'we use one var to inform the errors to user > > DIM txtErrorString AS String > > > > 'if txtError start with word "ERROR" dont show message > > 'if we dont write these "if" lines the executable file raises an > > error when we execute a "su" command > > 'the error is "ERROR:ld.so: object 'libqt-mt.so.3' from LD_PRELOAD > > cannot be preloaded: ignored" > > IF Mid(txtError, 1, 5) = "ERROR" THEN > > RETURN > > ELSE > > txtErrorString = "The process raised the following error:\n" > > message.Error(txtErrorString & txtError) > > END IF > > > > END > > > > Does anybody know something about that? > > > > > > Preloading is a thing done by the interpreter at startup to workaround some > bugs in the compilation of QT and KDE libraries on some systems like > OpenSUSE. > > So, when a project uses gb.qt or gb.qt.kde, some libraries are put in > LD_PRELOAD at startup, and the interpreter is run again, so that these > libraries are loaded before anything is run by the interpreter. Otherwise, > it > crashes in the dynamic libraries loader. > > At the moment it is done by default for everyone. But, for example, on > Mandriva, it is not necessary at all. > > You are not clear anyway: can you explain precisely how you run the program > to > get the error message? When i run the program inside the GAMBAS IDE there is no error. But when i click the executable, or when i run it with command line writing like ./executable i get the error. >Which distribution do you use? i use openSuse 10.2 >Can you send your project? The project can be downloaded from http://sourceforge.net/project/showfiles.php?group_id=221957 > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From rterry at ...1822... Mon Mar 24 22:20:27 2008 From: rterry at ...1822... (richard terry) Date: Tue, 25 Mar 2008 08:20:27 +1100 Subject: [Gambas-user] Listview.movenext question Message-ID: <200803250820.27595.rterry@...1822...> Below is from the docs: ListView.MoveNext (gb.qt) Syntax FUNCTION MoveNext ( ) AS Boolean Moves the internal cursor to the next child item. Returns TRUE if there is no child item left. How does one implement this in code, if one does a movement, I'd normally put: listview.movement on a line, but how does one 'get back' the result here ie the flag. I tried bresult=listview.movenext but get error message. Thanks. Richard From rterry at ...1822... Mon Mar 24 22:20:50 2008 From: rterry at ...1822... (richard terry) Date: Tue, 25 Mar 2008 08:20:50 +1100 Subject: [Gambas-user] Stupid question about gb.Null Message-ID: <200803250820.50246.rterry@...1822...> If gb.null is a number (15) , what's Null? if I wanted to set a variable/variant to nothing at all (ie not a number) what do I do, or is that a stupid question? Humble apologies for my blinding ignorance. regards Richard From rterry at ...1822... Mon Mar 24 22:20:36 2008 From: rterry at ...1822... (richard terry) Date: Tue, 25 Mar 2008 08:20:36 +1100 Subject: [Gambas-user] Any way of excluding a control from the tab order? Message-ID: <200803250820.37007.rterry@...1822...> Wondered, as I've controls I want skipped if user tabs/ or shift tabs. Regards Richard From rterry at ...1822... Mon Mar 24 22:20:40 2008 From: rterry at ...1822... (richard terry) Date: Tue, 25 Mar 2008 08:20:40 +1100 Subject: [Gambas-user] Message.info feature request Idea. Message-ID: <200803250820.40871.rterry@...1822...> Not high on priority list but: Would be handy to have a check box returning a value with a "Don't show this message again", instead of having to make ones own popup dialog box with this feature. This seems pretty standard in most operating systems now. Regards Richard From rterry at ...1822... Mon Mar 24 22:41:08 2008 From: rterry at ...1822... (richard terry) Date: Tue, 25 Mar 2008 08:41:08 +1100 Subject: [Gambas-user] Gears example freezes computer (2.99) Message-ID: <200803250841.08638.rterry@...1822...> Hi, Forgot to mention that a few days ago I tried the gears example and it totally froze my computer - no key responses, couldn't even open a terminal using Ctrl-Alt (Function key). Regards Richard From gambas at ...1... Mon Mar 24 22:52:14 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Mar 2008 22:52:14 +0100 Subject: [Gambas-user] Gears example freezes computer (2.99) In-Reply-To: <200803250841.08638.rterry@...1822...> References: <200803250841.08638.rterry@...1822...> Message-ID: <200803242252.14143.gambas@...1...> On lundi 24 mars 2008, richard terry wrote: > Hi, > > Forgot to mention that a few days ago I tried the gears example and it > totally froze my computer - no key responses, couldn't even open a terminal > using Ctrl-Alt (Function key). > > Regards > > Richard > What happens if you run "/usr/bin/glxgears" in a console? -- Benoit Minisini From rterry at ...1822... Mon Mar 24 22:54:03 2008 From: rterry at ...1822... (richard terry) Date: Tue, 25 Mar 2008 08:54:03 +1100 Subject: [Gambas-user] Hey the split editor is really cool Message-ID: <200803250854.03621.rterry@...1822...> Works great rob, thanks (2.99 build 1247). I know Ive whinged about this before and benoit says it must be my trusty old laptop, but is there any any way there could be a config option for the fonts on the tabs in the editor, as the text is so so tiny I cannot read it in my IDE which is a major pain developing. Regards Richard T From sbungay at ...981... Tue Mar 25 03:26:58 2008 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 24 Mar 2008 22:26:58 -0400 Subject: [Gambas-user] Listview.movenext question In-Reply-To: <200803250820.27595.rterry@...1822...> References: <200803250820.27595.rterry@...1822...> Message-ID: <47E862F2.8030400@...981...> OK, not sure what it is you are having trouble with... but to iterate down through a listview and pull back each item is a simple matter. Try this.. Create a test program with just FMain, put a button on it and two listview boxes. Leave the names of these things as their defaults (i.e. ListView1, ListView2, Button1). Now paste this code into your form. PUBLIC SUB Form_Open() WITH ListView1 .Add("A", "Item A") .Add("B", "Item B") .Add("C", "Item C") .Add("D", "Item D") .Add("E", "Item E") END WITH END PUBLIC SUB Button1_Click() DIM X AS Integer WITH Listview1 .MoveFirst FOR X = 1 TO Listview1.Count Listview2.Add(Listview1.Item.Key, Listview1.Item.Text) .MoveNext NEXT END WITH END Hope this helps you out. Steve. When you click on the button it will copy the contents of Listview1 to Listview2. richard terry wrote: > Below is from the docs: > > ListView.MoveNext (gb.qt) > Syntax > FUNCTION MoveNext ( ) AS Boolean > Moves the internal cursor to the next child item. > Returns TRUE if there is no child item left. > > How does one implement this in code, if one does a movement, I'd normally put: > > listview.movement on a line, but how does one 'get back' the result here ie > the flag. > > I tried bresult=listview.movenext but get error message. > > Thanks. > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Tue Mar 25 03:30:43 2008 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 24 Mar 2008 22:30:43 -0400 Subject: [Gambas-user] Any way of excluding a control from the tab order? In-Reply-To: <200803250820.37007.rterry@...1822...> References: <200803250820.37007.rterry@...1822...> Message-ID: <47E863D3.4030409@...981...> I gotta ask.. why you would want to do this? I mean, if the control is enabled then the user can click on it to use it so why prevent them from using the tab key to select it? richard terry wrote: > Wondered, as I've controls I want skipped if user tabs/ or shift tabs. > > Regards > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Tue Mar 25 03:33:57 2008 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 24 Mar 2008 22:33:57 -0400 Subject: [Gambas-user] Stupid question about gb.Null In-Reply-To: <200803250820.50246.rterry@...1822...> References: <200803250820.50246.rterry@...1822...> Message-ID: <47E86495.9060206@...981...> VarName = NULL richard terry wrote: > If gb.null is a number (15) , what's Null? > > if I wanted to set a variable/variant to nothing at all (ie not a number) what > do I do, or is that a stupid question? > > Humble apologies for my blinding ignorance. > > regards > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1822... Tue Mar 25 05:46:54 2008 From: rterry at ...1822... (richard terry) Date: Tue, 25 Mar 2008 15:46:54 +1100 Subject: [Gambas-user] Any way of excluding a control from the tab order? In-Reply-To: <47E863D3.4030409@...981...> References: <200803250820.37007.rterry@...1822...> <47E863D3.4030409@...981...> Message-ID: <200803251546.54189.rterry@...1822...> On Tue, 25 Mar 2008 01:30:43 pm you wrote: > I gotta ask.. why you would want to do this? I mean, if the control > is enabled then the user can click on it to use it so why prevent them > from using the tab key to select it? Its all around speed of data entry. There may be a control (say a checkbox) which is rarely used (or perhaps several), excluding it from the tab order means yet another key press saved, and quicker progression down a form, not to mention saving the user the head/facial movements that go along with it - maybe a bit subtle if your not used to this sort of thing. May mean nothing in your environment, but in a data-intensive environment can add up to many hundreds of saved key movements per day. Regards Richard > > richard terry wrote: > > Wondered, as I've controls I want skipped if user tabs/ or shift tabs. > > > > Regards > > > > Richard > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From demosthenesk at ...626... Tue Mar 25 09:01:56 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 25 Mar 2008 10:01:56 +0200 Subject: [Gambas-user] Window (gb.qt) form's events Message-ID: Why Form's events implemented by the word Form and not by the form's name? For example PUBLIC SUB Form_DblClick 'is valid but PUBLIC SUB FMain_DblClick 'is not valid if the form's name is FMain But for the controls the events implemented by the the name For example PUBLIC SUB Button1_Click 'is valid. -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From demosthenesk at ...626... Tue Mar 25 09:53:15 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 25 Mar 2008 10:53:15 +0200 Subject: [Gambas-user] Hey the split editor is really cool In-Reply-To: <200803250854.03621.rterry@...1822...> References: <200803250854.03621.rterry@...1822...> Message-ID: I had the same problem with the IDE of Gambas2. I had to edit the source code of GAMBAS for that. I made some changes in some files (in my untared version) because I thought it is better. Just open the gambas2 app with installed gambas2, after the changes reinstall. These changes are: 1) File FMain.form The font of tabProperty was very small 8 and I changed it to value 10 The same I did to wrkProject. I found a small bug to font property. When I click to change its value I had to open the dialog window, I couldn't change the value from 8 to 10 directly. 2) File FToolBox.form I also change the font value from 8 to 10 to tabTool. 3) FCompletetion.form font size from 8 to 10 After these changes run make install to re-install gambas from command line. I hope to help you. On 3/24/08, richard terry wrote: > Works great rob, thanks (2.99 build 1247). > > I know Ive whinged about this before and benoit says it must be my trusty > old > laptop, but is there any any way there could be a config option for the > fonts > on the tabs in the editor, as the text is so so tiny I cannot read it in my > IDE which is a major pain developing. > > Regards > > Richard T > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From charles at ...1784... Tue Mar 25 09:51:11 2008 From: charles at ...1784... (charlesg) Date: Tue, 25 Mar 2008 01:51:11 -0700 (PDT) Subject: [Gambas-user] Any way of excluding a control from the tab order? In-Reply-To: <200803250820.37007.rterry@...1822...> References: <200803250820.37007.rterry@...1822...> Message-ID: <16271228.post@...1379...> Wow! Somebody who thinks like me about data entry. I can?t answer the question but I am good at tangents! I have always used the key (in VB and now GB) to control flow. That key is a useless key in a useless position and you have to have three hands to make decent use of a mouse under data entry conditions. PUBLIC SUB txtName_keyRelease() IF key.Code = key.Return OR key.Code = 65421 THEN txtDate.SetFocus ENDIF I should be able to use key.Enter for the numeric pad Enter key but last time I tried under GTK it did not work. -- View this message in context: http://www.nabble.com/Any-way-of-excluding-a-control-from-the-tab-order--tp16261830p16271228.html Sent from the gambas-user mailing list archive at Nabble.com. From demosthenesk at ...626... Tue Mar 25 10:17:11 2008 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 25 Mar 2008 11:17:11 +0200 Subject: [Gambas-user] Hey the split editor is really cool In-Reply-To: <200803250854.03621.rterry@...1822...> References: <200803250854.03621.rterry@...1822...> Message-ID: More details, Some small modifications in gambas2 project install Gambas2 normally run gambas2 ide open project /app/src/gambas2 for example /home/user/gambas2-2.4.0/app/src/gambas2 make changes to the following files -FMain.form tabProperty wrkProject font size from 8 to 10 -FToolBox.form font size from 8 to 10 -FCompletetion.form font size from 8 to 10 save project cd to gambas2 untared directory run make install as root from command line finish! On 3/24/08, richard terry wrote: > Works great rob, thanks (2.99 build 1247). > > I know Ive whinged about this before and benoit says it must be my trusty > old > laptop, but is there any any way there could be a config option for the > fonts > on the tabs in the editor, as the text is so so tiny I cannot read it in my > IDE which is a major pain developing. > > Regards > > Richard T > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From gambas at ...1... Tue Mar 25 10:47:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Mar 2008 10:47:30 +0100 Subject: [Gambas-user] Any way of excluding a control from the tab order? In-Reply-To: <16271228.post@...1379...> References: <200803250820.37007.rterry@...1822...> <16271228.post@...1379...> Message-ID: <200803251047.30317.gambas@...1...> On mardi 25 mars 2008, charlesg wrote: > Wow! Somebody who thinks like me about data entry. > > I can?t answer the question but I am good at tangents! I have always used > the key (in VB and now GB) to control flow. That key is a > useless key in a useless position and you have to have three hands to make > decent use of a mouse under data entry conditions. > > PUBLIC SUB txtName_keyRelease() > IF key.Code = key.Return OR key.Code = 65421 THEN > txtDate.SetFocus > ENDIF > > I should be able to use key.Enter for the numeric pad Enter key but last > time I tried under GTK it did not work. Maybe you should have told that before! Some keyboard constants in the gb.gtk component seem to not be the right ones. Only Daniel knows why he used them... :-) Regards, -- Benoit Minisini From gambas at ...1... Tue Mar 25 10:50:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Mar 2008 10:50:50 +0100 Subject: [Gambas-user] Window (gb.qt) form's events In-Reply-To: References: Message-ID: <200803251050.50736.gambas@...1...> On mardi 25 mars 2008, Demosthenes Koptsis wrote: > Why Form's events implemented by the word Form and not by the form's name? > > For example > PUBLIC SUB Form_DblClick 'is valid but > PUBLIC SUB FMain_DblClick 'is not valid if the form's name is FMain > > But for the controls the events implemented by the the name > > For example > PUBLIC SUB Button1_Click 'is valid. > Because of old VB users... -- Benoit Minisini From gambas at ...1... Tue Mar 25 11:14:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Mar 2008 11:14:02 +0100 Subject: [Gambas-user] Hey the split editor is really cool In-Reply-To: <200803250854.03621.rterry@...1822...> References: <200803250854.03621.rterry@...1822...> Message-ID: <200803251114.02413.gambas@...1...> On lundi 24 mars 2008, richard terry wrote: > Works great rob, thanks (2.99 build 1247). > > I know Ive whinged about this before and benoit says it must be my trusty > old laptop, but is there any any way there could be a config option for the > fonts on the tabs in the editor, as the text is so so tiny I cannot read it > in my IDE which is a major pain developing. > > Regards > > Richard T > There are some solutions to this problem: - Use a relative font size instead of a fix one. I will commit such a change soon. - Force your screen DPI to 96 in the KDE/Gnome font configuration dialog, so that a 8 points font has a visible height in pixels. Note that TrueType fonts have usually incorrect dimensions at small font sizes, i.e. their pixel height is not proportional to their point size specified in the code, whereas, normally, pixel height = point size * screen DPI / 72. So even using a relative font size may not give good results, but it should be readable. Please tell me if things are better, when I have committed the change. Regards, -- Benoit Minisini From richard.j.walker at ...247... Tue Mar 25 14:01:12 2008 From: richard.j.walker at ...247... (Richard) Date: Tue, 25 Mar 2008 13:01:12 +0000 Subject: [Gambas-user] Any way of excluding a control from the tab order? In-Reply-To: <16271228.post@...1379...> References: <200803250820.37007.rterry@...1822...> <16271228.post@...1379...> Message-ID: <200803251301.12256.richard.j.walker@...247...> On Tuesday 25 Mar 2008 08:51, charlesg wrote: > Wow! Somebody who thinks like me about data entry. > > I can?t answer the question but I am good at tangents! I have always used > the key (in VB and now GB) to control flow. That key is a > useless key in a useless position and you have to have three hands to make > decent use of a mouse under data entry conditions. > > PUBLIC SUB txtName_keyRelease() > IF key.Code = key.Return OR key.Code = 65421 THEN > txtDate.SetFocus > ENDIF > > I should be able to use key.Enter for the numeric pad Enter key but last > time I tried under GTK it did not work. As Benoit said above you can easily use the wrong constant for checking the enter key. The Key.ENTER constant appears on the help page well before Key.RETURN. It took me over a year to realise that Key.RETURN exists, but that is exactly what my keyboards provide when I press ENTER. Now I always check for Key.ENTER a n d Key.RETURN SELECT keycode CASE Key.ENTER, Key.RETURN 'Enter was pressed .... END SELECT From gambas at ...1... Tue Mar 25 14:10:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Mar 2008 14:10:31 +0100 Subject: [Gambas-user] Any way of excluding a control from the tab order? In-Reply-To: <200803251301.12256.richard.j.walker@...247...> References: <200803250820.37007.rterry@...1822...> <16271228.post@...1379...> <200803251301.12256.richard.j.walker@...247...> Message-ID: <200803251410.31712.gambas@...1...> On mardi 25 mars 2008, Richard wrote: > On Tuesday 25 Mar 2008 08:51, charlesg wrote: > > Wow! Somebody who thinks like me about data entry. > > > > I can?t answer the question but I am good at tangents! I have always used > > the key (in VB and now GB) to control flow. That key is a > > useless key in a useless position and you have to have three hands to > > make decent use of a mouse under data entry conditions. > > > > PUBLIC SUB txtName_keyRelease() > > IF key.Code = key.Return OR key.Code = 65421 THEN > > txtDate.SetFocus > > ENDIF > > > > I should be able to use key.Enter for the numeric pad Enter key but last > > time I tried under GTK it did not work. > > As Benoit said above you can easily use the wrong constant for checking the > enter key. The Key.ENTER constant appears on the help page well before > Key.RETURN. It took me over a year to realise that Key.RETURN exists, but > that is exactly what my keyboards provide when I press ENTER. > > Now I always check for Key.ENTER a n d Key.RETURN > > SELECT keycode > CASE Key.ENTER, Key.RETURN > 'Enter was pressed > .... > END SELECT > You do the right way. Keyboard makers like to play with the name they write on the key. On X-Window, the RETURN key is the big key usually just on top of the right SHIFT key, whereas the ENTER key is the key that should have the same behaviour that is in the numeric pad. I fixed the Key.Enter constant value in gb.gtk this morning, so people can now use the constant (and not the absolute values). Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Tue Mar 25 15:25:31 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 25 Mar 2008 10:25:31 -0400 Subject: [Gambas-user] Any way of excluding a control from the tab order? In-Reply-To: <200803250820.37007.rterry@...1822...> References: <200803250820.37007.rterry@...1822...> Message-ID: <200803251025.31914.sourceforge-raindog2@...94...> On Monday 24 March 2008 17:20, richard terry wrote: > Wondered, as I've controls I want skipped if user tabs/ or shift > tabs. The way I've done this in both Gambas and web apps (for normal tabs, not shift tabs) is to set the lost focus event on the last control of the desired tab sequence to set the focus to the first control in that sequence. Then you can even have multiple sets of controls, each with their own tab order (as perceived by the user.) I have also had an enabled but hidden (through being 1x1 pixels or whatever) control at the end of the desired tab order whose GotFocus event was to set the focus back to the beginning of the tab order. You should be able to adapt that to work with shift-tab as well. Rob From m0e.lnx at ...626... Tue Mar 25 17:06:31 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 25 Mar 2008 11:06:31 -0500 Subject: [Gambas-user] Window size problems gb.gui Message-ID: <1f1e8c1b0803250906x63ece4fdr22acebc8a2382930@...627...> I use gb.gui for my GUI apps. I have created windows drawn the objects into these windows... I notice several anomalies in the window behaviour. I have created an 800x600 window, yet, when I run the code, this window is not 800x600. Instead it is 1138x853. I have another smaller window (400x600). In this window, there is a couple of buttons at the far right-bottom corner. On my screen I can see the buttons ok... but other users can only see 1/2 of the buttons. The bottom half of both buttons appear to be out of the window border. The other user is running the exact same environment as mine. Using gambas2-2.3.0 on XFCE Please help! From gambas at ...1... Tue Mar 25 17:10:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Mar 2008 17:10:24 +0100 Subject: [Gambas-user] Window size problems gb.gui In-Reply-To: <1f1e8c1b0803250906x63ece4fdr22acebc8a2382930@...627...> References: <1f1e8c1b0803250906x63ece4fdr22acebc8a2382930@...627...> Message-ID: <200803251710.24851.gambas@...1...> On mardi 25 mars 2008, M0E Lnx wrote: > I use gb.gui for my GUI apps. I have created windows drawn the objects > into these windows... I notice several anomalies in the window > behaviour. > I have created an 800x600 window, yet, when I run the code, this > window is not 800x600. Instead it is 1138x853. > I have another smaller window (400x600). In this window, there is a > couple of buttons at the far right-bottom corner. On my screen I can > see the buttons ok... but other users can only see 1/2 of the buttons. > The bottom half of both buttons appear to be out of the window border. > The other user is running the exact same environment as mine. > > Using gambas2-2.3.0 on XFCE > > Please help! > Please send the project! I recall that windows and controls dimensions are proportional to the application font height by default. If you really need a fixed size window, set the (Scaled) property of the form to TRUE in the property sheet. Regards, -- Benoit Minisini From m0e.lnx at ...626... Tue Mar 25 17:16:05 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 25 Mar 2008 11:16:05 -0500 Subject: [Gambas-user] Window size problems gb.gui In-Reply-To: <200803251710.24851.gambas@...1...> References: <1f1e8c1b0803250906x63ece4fdr22acebc8a2382930@...627...> <200803251710.24851.gambas@...1...> Message-ID: <1f1e8c1b0803250916g72930dd0s2408863bf87bcbe6@...627...> I will try the scaled property on the windows intended to be fixed. But this project includes some windows that need to be resizable I will send the project so you can have a better look. On Tue, Mar 25, 2008 at 11:10 AM, Benoit Minisini wrote: > > On mardi 25 mars 2008, M0E Lnx wrote: > > I use gb.gui for my GUI apps. I have created windows drawn the objects > > into these windows... I notice several anomalies in the window > > behaviour. > > I have created an 800x600 window, yet, when I run the code, this > > window is not 800x600. Instead it is 1138x853. > > I have another smaller window (400x600). In this window, there is a > > couple of buttons at the far right-bottom corner. On my screen I can > > see the buttons ok... but other users can only see 1/2 of the buttons. > > The bottom half of both buttons appear to be out of the window border. > > The other user is running the exact same environment as mine. > > > > Using gambas2-2.3.0 on XFCE > > > > Please help! > > > > Please send the project! > > I recall that windows and controls dimensions are proportional to the > application font height by default. > > If you really need a fixed size window, set the (Scaled) property of the form > to TRUE in the property sheet. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Mar 25 18:20:38 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Mar 2008 18:20:38 +0100 Subject: [Gambas-user] Procedure folding Message-ID: <200803251820.38395.gambas@...1...> For the courageous, I finally implemented procedure folding in Gambas 3 IDE. That is something interesting to test, as this is the first time I implement such a feature, so I'm not sure it is rock solid! Regards, -- Benoit Minisini From gambas at ...1... Tue Mar 25 18:25:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Mar 2008 18:25:06 +0100 Subject: [Gambas-user] Procedure folding In-Reply-To: <200803251820.38395.gambas@...1...> References: <200803251820.38395.gambas@...1...> Message-ID: <200803251825.06318.gambas@...1...> On mardi 25 mars 2008, Benoit Minisini wrote: > For the courageous, I finally implemented procedure folding in Gambas 3 > IDE. > > That is something interesting to test, as this is the first time I > implement such a feature, so I'm not sure it is rock solid! > > Regards, Finally I'm starting to find this feature cool. It reminds me of Atari GFA-Basic. :-) -- Benoit Minisini From m0e.lnx at ...626... Tue Mar 25 20:33:34 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 25 Mar 2008 14:33:34 -0500 Subject: [Gambas-user] Populating a tree view from code ... Please help Message-ID: <1f1e8c1b0803251233g6fd09b1elc0e79514ef8eb2b8@...627...> I'm trying to populate a treeview object with code, but I'm having a hard time getting the desired results. The tree view should contain the contents of a directory on the system Here is what my code looks like PUBLIC SUB LOAD_ALL_REPOS() DIM sDirPic AS Picture DIM sPortPic AS Picture DIM sRepList AS String DIM sRepoarr AS String[] DIM sPortList AS String DIM sPortArr AS String[] DIM sRepo AS String DIM sPort AS String DIM i AS Integer DIM ii AS Integer sDirPic = Picture["Icons/nuoveXT-1.6/16x16/gtk/gtk-open.png"] sPortpic = Picture["Icons/nuoveXT-1.6/16x16/gtk/gtk-dnd.png"] SHELL "ls -m /usr/ports " TO sRepList sRepList = Trim(sRepList) ' Trim out excess spaces sRepoarr = Split(sRepList, ",") FOR i = 0 TO sRepoarr.count - 1 sRepo = Trim(Left(sRepoarr[i], InStr(sRepoarr[i], "/"))) frmPorts.tvPorts.Add(sRepoarr[i], sRepo, sDirPic) ' Add the repo to the list SHELL "ls -m /usr/ports" &/ sRepoarr[i] TO sPortList sPortArr = Split(sPortList, ",") FOR ii = 0 TO sPortArr.Count - 1 sPort = Trim(sPortArr[ii]) FrmPorts.tvPorts.Add(sPort & i & ii, sPort, sPortPic, sRepo) ' The the port NEXT NEXT END I get the first entry right... It adds a Parent, then it adds all the other (child) objects inside that parent... that's how it's supposed to work But on the rest of the entries, instead of getting each parent's child objects, I get a list of all the parent objects... Can someone point out where the problem is, or suggest a better way of doing this? I tried rDir, but seems harder to control the output in this case, so I thought I'd try some arrays Thanks From rterry at ...1822... Tue Mar 25 21:52:47 2008 From: rterry at ...1822... (richard terry) Date: Wed, 26 Mar 2008 07:52:47 +1100 Subject: [Gambas-user] Impression of new editor (2.99 build 1249) - Collapsable Subroutines. Message-ID: <200803260752.47278.rterry@...1822...> Firstly, great work, amazing how quickly this is being developed my people of immense talent. I've spent 4-5 hours using this tonight. ok - Love the collapsable subroutines, makes it infinately easier to quickly zap through ones code, however a couple of problems. 1) Need a little button to be able to collapse/uncollapse (could use a single button on toolbar and just cycle it) 2)Problems with this using Find. You really need to expand the subroutine automatically when the word is found. 3) Try this (a little bug of sorts): - with a fully collapsed code listing, go to the end of the line and hit the key, a blank line appears underneath the subroutine, user thinks?mm... wheres the code. The try clicking on the little arrow on the left margin (which normally would expand the subroutine out, but now it dosn't, however double clicking does. 4) In this build with them all collapsed, clicking on a particular line showing the collapsed subroutine name, changes the name in the combobox on the top bar to **** the subroutine ABOVE the one you have clicked on. (see separate posting re strange behaviour of the splitting). Regards Richard From gambas at ...1... Tue Mar 25 22:04:15 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Mar 2008 22:04:15 +0100 Subject: [Gambas-user] Impression of new editor (2.99 build 1249) - Collapsable Subroutines. In-Reply-To: <200803260752.47278.rterry@...1822...> References: <200803260752.47278.rterry@...1822...> Message-ID: <200803252204.15990.gambas@...1...> On mardi 25 mars 2008, richard terry wrote: > Firstly, great work, amazing how quickly this is being developed my people > of immense talent. I've spent 4-5 hours using this tonight. > > ok - Love the collapsable subroutines, makes it infinately easier to > quickly zap through ones code, however a couple of problems. > > 1) Need a little button to be able to collapse/uncollapse (could use a > single button on toolbar and just cycle it) You have shortcuts: CTRL+ENTER and CTRL+SHIFT+ENTER. The more buttons I get on a toolbar, the more worried I am. > > 2)Problems with this using Find. You really need to expand the subroutine > automatically when the word is found. Yes. > > 3) Try this (a little bug of sorts): > - with a fully collapsed code listing, go to the end of the line and hit > the key, a blank line appears underneath the subroutine, user > thinks?mm... wheres the code. The try clicking on the little arrow on the > left margin (which normally would expand the subroutine out, but now it > dosn't, however double clicking does. There is a problem in the editor internal logic when inserting a new line. It is not directly related to the folding support. I must investigate... > > 4) In this build with them all collapsed, clicking on a particular line > showing the collapsed subroutine name, changes the name in the combobox on > the top bar to **** the subroutine ABOVE the one you have clicked on. > (see separate posting re strange behaviour of the splitting). There is another bug in the procedure combo-box: sometimes the line numbers associated with the procedure names are one line too high... Strange! Regards, -- Benoit Minisini From gambas at ...1... Tue Mar 25 22:07:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Mar 2008 22:07:05 +0100 Subject: [Gambas-user] Impression of new editor (2.99 build 1249) - Collapsable Subroutines. In-Reply-To: <200803260752.47278.rterry@...1822...> References: <200803260752.47278.rterry@...1822...> Message-ID: <200803252207.05619.gambas@...1...> On mardi 25 mars 2008, richard terry wrote: > Firstly, great work, amazing how quickly this is being developed my people > of immense talent. I've spent 4-5 hours using this tonight. > > ... Please try the very last version otherwise! -- Benoit Minisini From rterry at ...1822... Tue Mar 25 22:05:16 2008 From: rterry at ...1822... (richard terry) Date: Wed, 26 Mar 2008 08:05:16 +1100 Subject: [Gambas-user] Any way of excluding a control from the tab order? In-Reply-To: <16271228.post@...1379...> References: <200803250820.37007.rterry@...1822...> <16271228.post@...1379...> Message-ID: <200803260805.16547.rterry@...1822...> On Tue, 25 Mar 2008 07:51:11 pm you wrote: > Wow! Somebody who thinks like me about data entry. > > I can?t answer the question but I am good at tangents! I have always used > the key (in VB and now GB) to control flow. Great minds think alike. Agree wholeheartedly what a useless position the tab key is, all my old vb code (and my new gambas code) uses the key for all movement through the form. One can literally whizz through a form containing dozens of data fields in microseconds. Regards Richard > That key is a > useless key in a useless position and you have to have three hands to make > decent use of a mouse under data entry conditions. > > PUBLIC SUB txtName_keyRelease() > IF key.Code = key.Return OR key.Code = 65421 THEN > txtDate.SetFocus > ENDIF > > I should be able to use key.Enter for the numeric pad Enter key but last > time I tried under GTK it did not work. From rterry at ...1822... Tue Mar 25 22:41:27 2008 From: rterry at ...1822... (richard terry) Date: Wed, 26 Mar 2008 08:41:27 +1100 Subject: [Gambas-user] Impression of new editor (2.99 build 1249) - SplitEditor Message-ID: <200803260841.27670.rterry@...1822...> Well, at first glance its great, but it dosn't really function as I would have hoped. Firstly you have to think of the reason to split the code editor - for me, it is to be able to view different parts of your code simultaneously, hopefully to make the task of writing/debugging easier - ie via copying, pasting, looking at the logic in the top pane, to see how it may be affecting what could be happening in the bottom pane. This can often involve looking at two files at once. Have a look at a screen dump I just did of WingIDE, ok, its python code, and hence contains defs for each main def and is more complicated, but forgetting that, see how the tabs at the top of the split tell you where you are. At the moment also, the code put into the subseqently split window, dosn't seem to bear much relationship to the code you actually click on to split, either in the collapse mode or expanded mode, ie you don't end up being able to work on the code you thought you could ie you are a little lost. Checkout the behaviour of this feature in say Kate, which in itself is also a bit inconsistant. When you first split a newly opened file, it puts identical views in the splits (as does the gambas one),but not at subsequent splits either. Anyway, have built 1254 just now, and will play with that today, workload permitting. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: for_benoit_wingide_side_by_side_files.png Type: image/png Size: 143173 bytes Desc: not available URL: From jbskaggs at ...1871... Wed Mar 26 00:15:38 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Tue, 25 Mar 2008 16:15:38 -0700 (PDT) Subject: [Gambas-user] 2 easy questions Message-ID: <16290836.post@...1379...> 1. In dirchooser how do I set the width of the view window? When it starts the component titlebar is twice the width of the window. The screenshot below shows how the window is too small for the component area- I know I can grab it and resize while the program is running, but I want the window to appear big. http://www.nabble.com/file/p16290836/Screenshot2.png 2. I cannot figure out how to copy a directory from inside of Gambas. What is the code to recursively copy a directory to a new directory? jb skaggs -- View this message in context: http://www.nabble.com/2-easy-questions-tp16290836p16290836.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Mar 26 00:22:17 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Mar 2008 00:22:17 +0100 Subject: [Gambas-user] 2 easy questions In-Reply-To: <16290836.post@...1379...> References: <16290836.post@...1379...> Message-ID: <200803260022.17145.gambas@...1...> On mercredi 26 mars 2008, jbskaggs wrote: > 1. In dirchooser how do I set the width of the view window? When it starts > the component titlebar is twice the width of the window. The screenshot > below shows how the window is too small for the component area- I know I > can grab it and resize while the program is running, but I want the window > to appear big. > > http://www.nabble.com/file/p16290836/Screenshot2.png > The second part of the component is missing! Which version of Gambas do you use, and which version of GTK+? > > > 2. I cannot figure out how to copy a directory from inside of Gambas. What > is the code to recursively copy a directory to a new directory? Something like that? SHELL "cp -R " & Quote.Shell(Source) & " " & Quote.Shell(Dest) WAIT Or if you want only Gambas code: DIM sFile AS String FOR EACH sFile IN RDir(Source) IF IsDir(Source &/ sFile) THEN MKDIR Dest &/ sFile ELSE COPY Source &/ sFile TO Dest &/ sFile ENDIF NEXT ...there are integrists sometimes :-) Regards, -- Benoit Minisini From robert.c.rowe at ...626... Wed Mar 26 00:40:22 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 25 Mar 2008 19:40:22 -0400 Subject: [Gambas-user] Code Folding Message-ID: <47E98D66.9030101@...626...> I think the new code folding feature is absolutely wonderful. I think a button for it would be nice but I agree that the toolbar is getting crowded. Robert Rowe From robert.c.rowe at ...626... Wed Mar 26 00:49:17 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 25 Mar 2008 19:49:17 -0400 Subject: [Gambas-user] Any way of excluding a control from the tab order? In-Reply-To: <200803260805.16547.rterry@...1822...> References: <200803250820.37007.rterry@...1822...> <16271228.post@...1379...> <200803260805.16547.rterry@...1822...> Message-ID: <47E98F7D.3090103@...626...> I'd like to add my vote for a tabstop property. I almost exclusively write data entry programs at work in VB. I often have controls that are little used that I remove from the tabstop. I've also had a lot of requests from my users for navigation via the enter key. The real problem with the enter key is that multi-line controls throw a wrench in the works. I wrote a kludge at work that eats the enter key and does a sendkeys("TAB"). The users love it. I think that you could do the same Richard. Set up an observer for your controls, catch the enter key and eat it then issue a sendkeys. My VB version is a class that automatically hooks into all the controls on a form so all I have to do is init an instance of my class and turn it on. Robert Rowe richard terry wrote: > On Tue, 25 Mar 2008 07:51:11 pm you wrote: > >> Wow! Somebody who thinks like me about data entry. >> >> I can?t answer the question but I am good at tangents! I have always used >> the key (in VB and now GB) to control flow. >> > > Great minds think alike. Agree wholeheartedly what a useless position the tab > key is, all my old vb code (and my new gambas code) uses the key for > all movement through the form. > > One can literally whizz through a form containing dozens of data fields in > microseconds. > > Regards > > Richard > > > >> That key is a >> useless key in a useless position and you have to have three hands to make >> decent use of a mouse under data entry conditions. >> >> PUBLIC SUB txtName_keyRelease() >> IF key.Code = key.Return OR key.Code = 65421 THEN >> txtDate.SetFocus >> ENDIF >> >> I should be able to use key.Enter for the numeric pad Enter key but last >> time I tried under GTK it did not work. >> > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From robert.c.rowe at ...626... Wed Mar 26 00:51:42 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Tue, 25 Mar 2008 19:51:42 -0400 Subject: [Gambas-user] 2 easy questions In-Reply-To: <200803260022.17145.gambas@...1...> References: <16290836.post@...1379...> <200803260022.17145.gambas@...1...> Message-ID: <47E9900E.8070808@...626...> Sweet. This is quite hard to do in VB. I'm starting to love Gambas more every day. Especially after fighting with VB.Net for 10 hours. :( Robert Rowe Benoit Minisini wrote: > On mercredi 26 mars 2008, jbskaggs wrote: > > Or if you want only Gambas code: > > DIM sFile AS String > > FOR EACH sFile IN RDir(Source) > IF IsDir(Source &/ sFile) THEN > MKDIR Dest &/ sFile > ELSE > COPY Source &/ sFile TO Dest &/ sFile > ENDIF > NEXT > > ...there are integrists sometimes :-) > > Regards, > > From leemcpherson at ...626... Wed Mar 26 00:49:19 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Tue, 25 Mar 2008 19:49:19 -0400 Subject: [Gambas-user] Embedding VLC movie window immediately... without a 2 second pause Message-ID: <47E98F7F.8060203@...626...> I have the basic code to embed a VLC movie window into a gambas app, however, there is an annoying 2 second pause before the window finally becomes embedded. The movie will actually start playing for a couple of seconds in a separate window before it gets embedded. I'm not sure if it's a limitation of VLC or something else but I'm trying to figure out how to stop this. Here is the basic code I'm using (borrowed from another user) : PUBLIC SUB Presence_Embed(windowTitle AS String) DIM key AS Integer key = WindowClasses.getWindowID(windowTitle) IF key > 0 THEN Embedder1.Embed(key) Embedder1.SetFocus ENDIF Embedder1.Visible = TRUE END PUBLIC SUB Form_Open() DIM iWindowInfoArray AS Integer $MplayerProc = EXEC ["/usr/bin/vlc", "-I", "rc"] FOR INPUT OUTPUT AS "$mplayerproc" 'starts vlc command line in a process PRINT #$mplayerproc, "add /home/lee/nip.avi" 'adds a sample movie to the playlist and starts it Presence_Embed("VLC (X11 output)") END From jbskaggs at ...1871... Wed Mar 26 00:57:10 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Tue, 25 Mar 2008 16:57:10 -0700 (PDT) Subject: [Gambas-user] 2 easy questions In-Reply-To: <200803260022.17145.gambas@...1...> References: <16290836.post@...1379...> <200803260022.17145.gambas@...1...> Message-ID: <16292033.post@...1379...> Uh I am using 2.21- I have not found a ubuntu package for anything newer and I dont know how to find the version for the gtk component. I looked in project properties about components but it didn't have any version info. If there is a ubuntu newer version installation package but it has to be easyto install, I tried to manually install 2.23 and got nowhere but a headache. JB Benoit Minisini wrote: > > On mercredi 26 mars 2008, jbskaggs wrote: >> 1. In dirchooser how do I set the width of the view window? When it >> starts >> the component titlebar is twice the width of the window. The screenshot >> below shows how the window is too small for the component area- I know I >> can grab it and resize while the program is running, but I want the >> window >> to appear big. >> >> http://www.nabble.com/file/p16290836/Screenshot2.png >> > > The second part of the component is missing! Which version of Gambas do > you > use, and which version of GTK+? > >> >> >> 2. I cannot figure out how to copy a directory from inside of Gambas. >> What >> is the code to recursively copy a directory to a new directory? > > Something like that? > > SHELL "cp -R " & Quote.Shell(Source) & " " & Quote.Shell(Dest) WAIT > > Or if you want only Gambas code: > > DIM sFile AS String > > FOR EACH sFile IN RDir(Source) > IF IsDir(Source &/ sFile) THEN > MKDIR Dest &/ sFile > ELSE > COPY Source &/ sFile TO Dest &/ sFile > ENDIF > NEXT > > ...there are integrists sometimes :-) > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/2-easy-questions-tp16290836p16292033.html Sent from the gambas-user mailing list archive at Nabble.com. From jaap_cramer at ...67... Wed Mar 26 01:05:35 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Wed, 26 Mar 2008 01:05:35 +0100 Subject: [Gambas-user] Embedding VLC movie window immediately... without a 2 second pause In-Reply-To: <47E98F7F.8060203@...626...> References: <47E98F7F.8060203@...626...> Message-ID: Hi I think the delay comes from using the shell. When I use a simple shell line to readout that prg, it usualy take a little time. I dont know why Jaap ---------------------------------------- > Date: Tue, 25 Mar 2008 19:49:19 -0400 > From: leemcpherson at ...626... > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Embedding VLC movie window immediately... without a 2 second pause > > I have the basic code to embed a VLC movie window into a gambas app, > however, there is an annoying 2 second pause before the window finally > becomes embedded. The movie will actually start playing for a couple of > seconds in a separate window before it gets embedded. I'm not sure if > it's a limitation of VLC or something else but I'm trying to figure out > how to stop this. Here is the basic code I'm using (borrowed from > another user) : > > PUBLIC SUB Presence_Embed(windowTitle AS String) > DIM key AS Integer > key = WindowClasses.getWindowID(windowTitle) > IF key> 0 THEN > Embedder1.Embed(key) > Embedder1.SetFocus > ENDIF > Embedder1.Visible = TRUE > END > > PUBLIC SUB Form_Open() > > DIM iWindowInfoArray AS Integer > $MplayerProc = EXEC ["/usr/bin/vlc", "-I", "rc"] FOR INPUT OUTPUT AS > "$mplayerproc" 'starts vlc command line in a process > PRINT #$mplayerproc, "add /home/lee/nip.avi" 'adds a sample movie > to the playlist and starts it > Presence_Embed("VLC (X11 output)") > > END > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Probeer Live Search: de zoekmachine van de makers van MSN! http://www.live.com/?searchOnly=true From leemcpherson at ...626... Wed Mar 26 01:08:44 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Tue, 25 Mar 2008 20:08:44 -0400 Subject: [Gambas-user] Embedding VLC movie window immediately... without a 2 second pause In-Reply-To: References: <47E98F7F.8060203@...626...> Message-ID: <47E9940C.1090601@...626...> I can understand that, but there's a wierd quirk in VLC that when I use EXEC to run it, even with the command line only parameters, the GUI launches itself. I've tried to compile it without the GUI, but have failed so far :( Using shell works perfectly... just that it creates that delay in embedding the window. Thanks -Lee Jaap Cramer wrote: > Hi > I think the delay comes from using the shell. When I use a simple shell line to readout that prg, it usualy take a little time. I dont know why > Jaap > > ---------------------------------------- > >> Date: Tue, 25 Mar 2008 19:49:19 -0400 >> From: leemcpherson at ...626... >> To: gambas-user at lists.sourceforge.net >> Subject: [Gambas-user] Embedding VLC movie window immediately... without a 2 second pause >> >> I have the basic code to embed a VLC movie window into a gambas app, >> however, there is an annoying 2 second pause before the window finally >> becomes embedded. The movie will actually start playing for a couple of >> seconds in a separate window before it gets embedded. I'm not sure if >> it's a limitation of VLC or something else but I'm trying to figure out >> how to stop this. Here is the basic code I'm using (borrowed from >> another user) : >> >> PUBLIC SUB Presence_Embed(windowTitle AS String) >> DIM key AS Integer >> key = WindowClasses.getWindowID(windowTitle) >> IF key> 0 THEN >> Embedder1.Embed(key) >> Embedder1.SetFocus >> ENDIF >> Embedder1.Visible = TRUE >> END >> >> PUBLIC SUB Form_Open() >> >> DIM iWindowInfoArray AS Integer >> $MplayerProc = EXEC ["/usr/bin/vlc", "-I", "rc"] FOR INPUT OUTPUT AS >> "$mplayerproc" 'starts vlc command line in a process >> PRINT #$mplayerproc, "add /home/lee/nip.avi" 'adds a sample movie >> to the playlist and starts it >> Presence_Embed("VLC (X11 output)") >> >> END >> >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > _________________________________________________________________ > Probeer Live Search: de zoekmachine van de makers van MSN! > http://www.live.com/?searchOnly=true > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leemcpherson at ...626... Wed Mar 26 01:11:31 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Tue, 25 Mar 2008 20:11:31 -0400 Subject: [Gambas-user] Embedding VLC movie window immediately... without a 2 second pause In-Reply-To: References: <47E98F7F.8060203@...626...> Message-ID: <47E994B3.2030800@...626...> Oops... i don't know what I was talking about. It was using the SHELL that did that... here I am using EXEC anyways. Is there another way to run VLC within gambas that I don't know about? I'm somewhat of a newbie to this. I've only used vb6 for basic stuff before and am not that proficient with linux yet. Jaap Cramer wrote: > Hi > I think the delay comes from using the shell. When I use a simple shell line to readout that prg, it usualy take a little time. I dont know why > Jaap > > ---------------------------------------- > >> Date: Tue, 25 Mar 2008 19:49:19 -0400 >> From: leemcpherson at ...626... >> To: gambas-user at lists.sourceforge.net >> Subject: [Gambas-user] Embedding VLC movie window immediately... without a 2 second pause >> >> I have the basic code to embed a VLC movie window into a gambas app, >> however, there is an annoying 2 second pause before the window finally >> becomes embedded. The movie will actually start playing for a couple of >> seconds in a separate window before it gets embedded. I'm not sure if >> it's a limitation of VLC or something else but I'm trying to figure out >> how to stop this. Here is the basic code I'm using (borrowed from >> another user) : >> >> PUBLIC SUB Presence_Embed(windowTitle AS String) >> DIM key AS Integer >> key = WindowClasses.getWindowID(windowTitle) >> IF key> 0 THEN >> Embedder1.Embed(key) >> Embedder1.SetFocus >> ENDIF >> Embedder1.Visible = TRUE >> END >> >> PUBLIC SUB Form_Open() >> >> DIM iWindowInfoArray AS Integer >> $MplayerProc = EXEC ["/usr/bin/vlc", "-I", "rc"] FOR INPUT OUTPUT AS >> "$mplayerproc" 'starts vlc command line in a process >> PRINT #$mplayerproc, "add /home/lee/nip.avi" 'adds a sample movie >> to the playlist and starts it >> Presence_Embed("VLC (X11 output)") >> >> END >> >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > _________________________________________________________________ > Probeer Live Search: de zoekmachine van de makers van MSN! > http://www.live.com/?searchOnly=true > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Mar 26 01:16:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Mar 2008 01:16:57 +0100 Subject: [Gambas-user] 2 easy questions In-Reply-To: <16292033.post@...1379...> References: <16290836.post@...1379...> <200803260022.17145.gambas@...1...> <16292033.post@...1379...> Message-ID: <200803260116.57549.gambas@...1...> On mercredi 26 mars 2008, jbskaggs wrote: > Uh I am using 2.21- I have not found a ubuntu package for anything newer > and I dont know how to find the version for the gtk component. I looked in > project properties about components but it didn't have any version info. > > If there is a ubuntu newer version installation package but it has to be > easyto install, I tried to manually install 2.23 and got nowhere but a > headache. > > JB > There are no 2.21 nor 2.23 versions of Gambas. But there are a 2.2.1 version and a 2.3. I think you can use Debian Gambas packages on Ubuntu. Regards, -- Benoit Minisini From jaap_cramer at ...67... Wed Mar 26 01:25:05 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Wed, 26 Mar 2008 01:25:05 +0100 Subject: [Gambas-user] Embedding VLC movie window immediately... without a 2 second pause In-Reply-To: <47E994B3.2030800@...626...> References: <47E98F7F.8060203@...626...> <47E994B3.2030800@...626...> Message-ID: I thought SHELL and EXEC are more or less the same, because both run external processes... Jaap ---------------------------------------- > Date: Tue, 25 Mar 2008 20:11:31 -0400 > From: leemcpherson at ...626... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Embedding VLC movie window immediately... without a 2 second pause > > Oops... i don't know what I was talking about. It was using the SHELL > that did that... here I am using EXEC anyways. Is there another way to > run VLC within gambas that I don't know about? I'm somewhat of a newbie > to this. I've only used vb6 for basic stuff before and am not that > proficient with linux yet. > > Jaap Cramer wrote: >> Hi >> I think the delay comes from using the shell. When I use a simple shell line to readout that prg, it usualy take a little time. I dont know why >> Jaap >> >> ---------------------------------------- >> >>> Date: Tue, 25 Mar 2008 19:49:19 -0400 >>> From: leemcpherson at ...626... >>> To: gambas-user at lists.sourceforge.net >>> Subject: [Gambas-user] Embedding VLC movie window immediately... without a 2 second pause >>> >>> I have the basic code to embed a VLC movie window into a gambas app, >>> however, there is an annoying 2 second pause before the window finally >>> becomes embedded. The movie will actually start playing for a couple of >>> seconds in a separate window before it gets embedded. I'm not sure if >>> it's a limitation of VLC or something else but I'm trying to figure out >>> how to stop this. Here is the basic code I'm using (borrowed from >>> another user) : >>> >>> PUBLIC SUB Presence_Embed(windowTitle AS String) >>> DIM key AS Integer >>> key = WindowClasses.getWindowID(windowTitle) >>> IF key> 0 THEN >>> Embedder1.Embed(key) >>> Embedder1.SetFocus >>> ENDIF >>> Embedder1.Visible = TRUE >>> END >>> >>> PUBLIC SUB Form_Open() >>> >>> DIM iWindowInfoArray AS Integer >>> $MplayerProc = EXEC ["/usr/bin/vlc", "-I", "rc"] FOR INPUT OUTPUT AS >>> "$mplayerproc" 'starts vlc command line in a process >>> PRINT #$mplayerproc, "add /home/lee/nip.avi" 'adds a sample movie >>> to the playlist and starts it >>> Presence_Embed("VLC (X11 output)") >>> >>> END >>> >>> >>> ------------------------------------------------------------------------- >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services for >>> just about anything Open Source. >>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> _________________________________________________________________ >> Probeer Live Search: de zoekmachine van de makers van MSN! >> http://www.live.com/?searchOnly=true >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Check je Hotmail nu ook op je mobiel! http://windowslivemobile.msn.com/BrowserServiceHotmail.aspx?lang=nl-nl From gambas at ...1... Wed Mar 26 01:34:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Mar 2008 01:34:44 +0100 Subject: [Gambas-user] Embedding VLC movie window immediately... without a 2 second pause In-Reply-To: <47E98F7F.8060203@...626...> References: <47E98F7F.8060203@...626...> Message-ID: <200803260134.44433.gambas@...1...> On mercredi 26 mars 2008, Lee McPherson wrote: > I have the basic code to embed a VLC movie window into a gambas app, > however, there is an annoying 2 second pause before the window finally > becomes embedded. The movie will actually start playing for a couple of > seconds in a separate window before it gets embedded. I'm not sure if > it's a limitation of VLC or something else but I'm trying to figure out > how to stop this. Here is the basic code I'm using (borrowed from > another user) : > > PUBLIC SUB Presence_Embed(windowTitle AS String) > DIM key AS Integer > key = WindowClasses.getWindowID(windowTitle) > IF key > 0 THEN > Embedder1.Embed(key) > Embedder1.SetFocus > ENDIF > Embedder1.Visible = TRUE > END > > PUBLIC SUB Form_Open() > > DIM iWindowInfoArray AS Integer > $MplayerProc = EXEC ["/usr/bin/vlc", "-I", "rc"] FOR INPUT OUTPUT AS > "$mplayerproc" 'starts vlc command line in a process > PRINT #$mplayerproc, "add /home/lee/nip.avi" 'adds a sample movie > to the playlist and starts it > Presence_Embed("VLC (X11 output)") > > END > Can you try to know where this time is lost exactly? Jjust add "DEBUG Timer" lines everywhere for that. Regards, -- Benoit Minisini From jbskaggs at ...1871... Wed Mar 26 02:32:48 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Tue, 25 Mar 2008 18:32:48 -0700 (PDT) Subject: [Gambas-user] 2 easy questions In-Reply-To: <200803260116.57549.gambas@...1...> References: <16290836.post@...1379...> <200803260022.17145.gambas@...1...> <16292033.post@...1379...> <200803260116.57549.gambas@...1...> Message-ID: <16293685.post@...1379...> Ok I just ran update on ubuntu and it upgraded me to ver 2.2.4. But gtk dirchooser is still doing the same thing. Do I need to find the component itself? If so how do I do that and install it? JB Benoit Minisini wrote: > > On mercredi 26 mars 2008, jbskaggs wrote: >> Uh I am using 2.21- I have not found a ubuntu package for anything newer >> and I dont know how to find the version for the gtk component. I looked >> in >> project properties about components but it didn't have any version info. >> >> If there is a ubuntu newer version installation package but it has to be >> easyto install, I tried to manually install 2.23 and got nowhere but a >> headache. >> >> JB >> > > There are no 2.21 nor 2.23 versions of Gambas. But there are a 2.2.1 > version > and a 2.3. > > I think you can use Debian Gambas packages on Ubuntu. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/2-easy-questions-tp16290836p16293685.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Mar 26 02:43:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Mar 2008 02:43:31 +0100 Subject: [Gambas-user] 2 easy questions In-Reply-To: <16293685.post@...1379...> References: <16290836.post@...1379...> <200803260116.57549.gambas@...1...> <16293685.post@...1379...> Message-ID: <200803260243.31523.gambas@...1...> On mercredi 26 mars 2008, jbskaggs wrote: > Ok I just ran update on ubuntu and it upgraded me to ver 2.2.4. But gtk > dirchooser is still doing the same thing. Do I need to find the component > itself? There is no 2.2.4 version too. But there is a 2.4.0 version (the last one). Please send me your project, so that I can see if it works on my computer. Regards, -- Benoit Minisini From gambas at ...1... Wed Mar 26 03:00:17 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Mar 2008 03:00:17 +0100 Subject: [Gambas-user] Gambas 3 on Windows Message-ID: <200803260300.17432.gambas@...1...> Gambas 3 was compiled with CygWin. This needed a lot of hacks, as some things do not work: libffi cannot be compiled as a shared library, running external processes with SHELL or EXEC fail, gb.qt always crash at the very end of program with no apparent reason... But it was interesting to do that! -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas-on-Windows-1.png Type: image/png Size: 136012 bytes Desc: not available URL: From gambas at ...1... Wed Mar 26 03:00:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Mar 2008 03:00:50 +0100 Subject: [Gambas-user] Gambas on Windows (2) Message-ID: <200803260300.50814.gambas@...1...> Just another screenshot... -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas-on-Windows-2.png Type: image/png Size: 92751 bytes Desc: not available URL: From jcvivian at ...626... Wed Mar 26 04:08:02 2008 From: jcvivian at ...626... (Julio Vivian) Date: Wed, 26 Mar 2008 00:08:02 -0300 Subject: [Gambas-user] problems with sdl programming in gambas 1 and 2 In-Reply-To: <200803232007.22144.gambas@...1...> References: <200803232007.22144.gambas@...1...> Message-ID: Well, I checked to see if it was installed and the answer is yes! But i don't know if its working properly or if its corrupted. How can I test this? 2008/3/23, Benoit Minisini : > > On dimanche 23 mars 2008, Julio Vivian wrote: > > Hi, > > I'm using Gambas 1.0.15 and gambas 2.2.0 in Debian Etch and Ubuntu Gutsy > > Gibbon and everytime i declare PUBLIC Screen AS NEW Window AS "Screen" > in > > the source code (generaly i put it in the first lines of the code just > > after the ' Gambas class file statement) it returns Unkown identifier: > > Window at line... in both distros and gambas versions > > I believe this happens because the examples distributed with gambas are > > coded the wrong way. Could it be? > > If so, wich is the proper syntax for the SDL component in gambas? > > If don't, wich is the problem? > > Thanks > > > > Julio Vivian > > > Did you check the gb.sdl component? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rohnny at ...1248... Wed Mar 26 07:07:46 2008 From: rohnny at ...1248... (R. Stormo) Date: Tue, 25 Mar 2008 23:07:46 -0700 (PDT) Subject: [Gambas-user] Gambas on Windows (2) In-Reply-To: <200803260300.50814.gambas@...1...> References: <200803260300.50814.gambas@...1...> Message-ID: <16296193.post@...1379...> Benoit Minisini wrote: > > Just another screenshot... > > -- > Benoit Minisini > > Just wonder how to get the collaps of subs like you have on this screenshoot. -- View this message in context: http://www.nabble.com/Gambas-on-Windows-%282%29-tp16294045p16296193.html Sent from the gambas-user mailing list archive at Nabble.com. From kaoticus60 at ...151... Wed Mar 26 07:41:19 2008 From: kaoticus60 at ...151... (andy2) Date: Wed, 26 Mar 2008 07:41:19 +0100 Subject: [Gambas-user] Function for easy exporting to Open Office In-Reply-To: References: Message-ID: <47E9F00F.4040109@...151...> Dear Users, IMHO it would be very interesting to have a function to easy exporting a result (recordset table) to Open Office Calc spreadsheet. Andy From jbskaggs at ...1871... Wed Mar 26 08:12:18 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 26 Mar 2008 00:12:18 -0700 (PDT) Subject: [Gambas-user] dirchooser runtime refresh button how to reference in code Message-ID: <16296679.post@...1379...> Thanks to the helpful people here I am nearing completion of the working model of my program- all functions are basically running and I need to just smooth things out. Improve the graphics and usabilty etc. One thing I put in the other post that Benoit said he would look at. The second should be simple: in ver 2.4 on the dirchooser there is a refresh button that appears at runtime. How can I run that refresh button automatically via code? IE after I create a new directory or delete one etc how do I automatically get dirchooser to update or refresh it's display? I tried using the .refresh and that did not do anything. It is irritating after you delete a directory and it is still in the dirchooser list until you press refresh. JB SKaggs -- View this message in context: http://www.nabble.com/dirchooser-runtime-refresh-button-how-to-reference-in-code-tp16296679p16296679.html Sent from the gambas-user mailing list archive at Nabble.com. From dcamposf at ...626... Wed Mar 26 09:23:17 2008 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 26 Mar 2008 09:23:17 +0100 Subject: [Gambas-user] Gambas on Windows (2) In-Reply-To: <16296193.post@...1379...> References: <200803260300.50814.gambas@...1...> <16296193.post@...1379...> Message-ID: <7259b5ae0803260123w4c680720qfe475f106ee0b470@...627...> May be next step is using MinGW and native libraries, that would allow to use SHELL, External calls, etc 2008/3/26, R. Stormo : > > > > Benoit Minisini wrote: > > > > Just another screenshot... > > > > -- > > Benoit Minisini > > > > > > Just wonder how to get the collaps of subs like you have on this > screenshoot. > -- > View this message in context: http://www.nabble.com/Gambas-on-Windows-%282%29-tp16294045p16296193.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rohnny at ...1248... Wed Mar 26 10:30:53 2008 From: rohnny at ...1248... (R. Stormo) Date: Wed, 26 Mar 2008 02:30:53 -0700 (PDT) Subject: [Gambas-user] Gambas on Windows (2) In-Reply-To: <16296193.post@...1379...> References: <200803260300.50814.gambas@...1...> <16296193.post@...1379...> Message-ID: <16297925.post@...1379...> R. Stormo wrote: > > > > Benoit Minisini wrote: >> >> Just another screenshot... >> >> -- >> Benoit Minisini >> >> > Just wonder how to get the collaps of subs like you have on this > screenshoot. > Hi. After closer look I found that it stand gambas3 in the windows, so when I downloaded latest trunk it was ok. Nice. Regards Rohnny My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/Gambas-on-Windows-%282%29-tp16294045p16297925.html Sent from the gambas-user mailing list archive at Nabble.com. From maximvonk at ...626... Wed Mar 26 13:19:21 2008 From: maximvonk at ...626... (MaxVK) Date: Wed, 26 Mar 2008 05:19:21 -0700 (PDT) Subject: [Gambas-user] Calling Perl module Message-ID: <16300778.post@...1379...> Hi, Iv been playing about for a while trying to write a spell-check routine, and although Iv had some success, its limited and quite slow. Therefore.. Is there any way to call the Gtk2::Spell Perl module from within Gambas? Iv seen this used as a plugin but can it be 'plugged in' to a Gambas application? Cheers Max -- View this message in context: http://www.nabble.com/Calling-Perl-module-tp16300778p16300778.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Mar 26 13:47:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Mar 2008 13:47:06 +0100 Subject: [Gambas-user] problems with sdl programming in gambas 1 and 2 In-Reply-To: References: <200803232007.22144.gambas@...1...> Message-ID: <200803261347.06839.gambas@...1...> On mercredi 26 mars 2008, Julio Vivian wrote: > Well, I checked to see if it was installed and the answer is yes! But i > don't know if its working properly or if its corrupted. How can I test > this? > I meant did you select it in the project property dialog? -- Benoit Minisini From gambas at ...1... Wed Mar 26 13:56:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Mar 2008 13:56:55 +0100 Subject: [Gambas-user] dirchooser runtime refresh button how to reference in code In-Reply-To: <16296679.post@...1379...> References: <16296679.post@...1379...> Message-ID: <200803261356.55776.gambas@...1...> On mercredi 26 mars 2008, jbskaggs wrote: > Thanks to the helpful people here I am nearing completion of the working > model of my program- all functions are basically running and I need to just > smooth things out. Improve the graphics and usabilty etc. One thing I put > in the other post that Benoit said he would look at. > > The second should be simple: > in ver 2.4 on the dirchooser there is a refresh button that appears at > runtime. > How can I run that refresh button automatically via code? > > IE after I create a new directory or delete one etc how do I automatically > get dirchooser to update or refresh it's display? > > I tried using the .refresh and that did not do anything. > > It is irritating after you delete a directory and it is still in the > dirchooser list until you press refresh. > > JB SKaggs There is no method for that in DirChooser and FileChooser, whereas there are in DirView and FileView. This is something I forgot, sorry! But you can try the following hack: --8<--------------------------------- DIM hObject AS Object hObject = MyDirChooser.Children[0] hObject.btnRefresh_Click() --8<--------------------------------- Regards, -- Benoit Minisini From ron at ...1740... Wed Mar 26 14:13:36 2008 From: ron at ...1740... (Ron) Date: Wed, 26 Mar 2008 14:13:36 +0100 Subject: [Gambas-user] gb.web (was Database manager) In-Reply-To: <200803231919.16062.gambas@...1...> References: <47E4E058.6000900@...1740...> <200803222140.56005.gambas@...1...> <47E5767F.7050607@...1740...> <200803231919.16062.gambas@...1...> Message-ID: <47EA4C00.8020308@...1740...> >> btw, im stunned as how fast a gambas cgi program is, i'm building one to >> run my website on , with doc.cgi as example, it's great! >> > > 'doc.cgi' is just a big awful quick & dirty hack. You should based your CGI > script on the gb.web component instead. It has an ASP-like interface. > > And I like the speed of CGI scripts written in Gambas too. :-) After all, I > earn my life with the gb.web component now. > > And if you replace your apache http server by something like thttpd, it will > faster again! > > I plan to enhance the web support in the IDE. Now users wants web > applications. Mainly windows users, because local applications that you must > install on each computer is a real nightmare on this OS. > > Ok, I have looked at gb.web before I began to make a gambas cgi program, but I didn't find enough example code to understand all the document references. Anything available now? How much effort would it take to adapt doc.cgi to use gb.web? I'm using apache because i'm familiar with it's virtual host settings etc, the speed is good enough for now, I'm even scanning a dir tree and parse files on the fly to generate my web contents, in fact i'm building a bloxsom (perl file based blogging) alike program in Gambas. I will try again with gb.web since I now have more clear what I want my CGI script to do, maybe that helps a bit ;-) Later I need some gb.image functionality like resize etc, would be nice for creating a photogallery. But it depends on gui components, which I don't use ofcourse... Regards, Ron. From sbungay at ...981... Wed Mar 26 14:20:10 2008 From: sbungay at ...981... (Stephen Bungay) Date: Wed, 26 Mar 2008 09:20:10 -0400 Subject: [Gambas-user] Function for easy exporting to Open Office In-Reply-To: <47E9F00F.4040109@...151...> References: <47E9F00F.4040109@...151...> Message-ID: <47EA4D8A.8040904@...981...> No need for a special addition to GAMBAS for this, a sub that should take all of a 5 minutes (probably less) to write. andy2 wrote: > Dear Users, IMHO it would be very interesting to have a function to easy > exporting a result (recordset table) to Open Office Calc spreadsheet. > > > Andy > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Wed Mar 26 14:21:00 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 26 Mar 2008 09:21:00 -0400 Subject: [Gambas-user] Calling Perl module In-Reply-To: <16300778.post@...1379...> References: <16300778.post@...1379...> Message-ID: <200803260921.00768.sourceforge-raindog2@...94...> On Wednesday 26 March 2008 08:19, MaxVK wrote: > Is there any way to call the Gtk2::Spell Perl module from within > Gambas? Iv seen this used as a plugin but can it be 'plugged in' to > a Gambas application? The way I've used Perl modules from within Gambas in the past (most often with Expect to emulate a TTY) has been to write a Perl script using it, and run that script with EXEC, sending it input and receiving output from it. It'd probably be possible to write a gb.perl component to use Perl modules directly, but I don't really know where to begin with that. If we were going the other way we'd probably use the XS Perl module, but I think to access Perl modules you'd basically have to include a Perl interpreter as a component. This is probably doable (I think exim, the mail server does this to allow perl regular expressions in its config files or something) but I think at that point you might as well just shell out to a Perl script. For this particular case, I think an aspell (or hunspell or enchant) Gambas component would be more appropriate, but I don't know what you plan to do with your spellchecker. Rob From gambas at ...1... Wed Mar 26 14:24:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Mar 2008 14:24:58 +0100 Subject: [Gambas-user] gb.web (was Database manager) In-Reply-To: <47EA4C00.8020308@...1740...> References: <47E4E058.6000900@...1740...> <200803231919.16062.gambas@...1...> <47EA4C00.8020308@...1740...> Message-ID: <200803261424.58552.gambas@...1...> On mercredi 26 mars 2008, Ron wrote: > >> btw, im stunned as how fast a gambas cgi program is, i'm building one to > >> run my website on , with doc.cgi as example, it's great! > > > > 'doc.cgi' is just a big awful quick & dirty hack. You should based your > > CGI script on the gb.web component instead. It has an ASP-like interface. > > > > And I like the speed of CGI scripts written in Gambas too. :-) After all, > > I earn my life with the gb.web component now. > > > > And if you replace your apache http server by something like thttpd, it > > will faster again! > > > > I plan to enhance the web support in the IDE. Now users wants web > > applications. Mainly windows users, because local applications that you > > must install on each computer is a real nightmare on this OS. > > Ok, > > I have looked at gb.web before I began to make a gambas cgi program, but > I didn't find enough example code to understand all the document > references. Anything available now? gb.web is very inspired from ASP, so if you know ASP, you will not be lost. If not, you must first start to learn how CGI works, i.e. how it receives its data (Request class), and how it sends its web page back (Response class). You must learn what an URI is, and how to encode/decode it. The only missing feature is the ability to put Gambas code inside HTML pages, like ASP or PHP or others do. But I'm not sure this is necessarily a good idea... > How much effort would it take to adapt > doc.cgi to use gb.web? A lot. As I said, doc.cgi is a quick hack written before gb.web. > > I'm using apache because i'm familiar with it's virtual host settings > etc, the speed is good enough for now, I'm even scanning a dir tree and > parse files on the fly to generate my web contents, in fact i'm building > a bloxsom (perl file based blogging) alike program in Gambas. You will use thttpd if you really need speed. It is a less then 100K http server. > > I will try again with gb.web since I now have more clear what I want my > CGI script to do, maybe that helps a bit ;-) > > Later I need some gb.image functionality like resize etc, would be nice > for creating a photogallery. > But it depends on gui components, which I don't use ofcourse... I agree, an non-gui image manipulation component would be great. Regards, -- Benoit Minisini From rohnny at ...1248... Wed Mar 26 14:53:01 2008 From: rohnny at ...1248... (R. Stormo) Date: Wed, 26 Mar 2008 06:53:01 -0700 (PDT) Subject: [Gambas-user] Installing on webserver Message-ID: <16301165.post@...1379...> Is there a way I can use gambas on my isp's webserver without installing it on the main system.? They say I was welcome to install new components but they could not guarantee that it would work. So I wonder if I could place gambas files someplace on my path to make it work. Regards Rohnny My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/Installing-on-webserver-tp16301165p16301165.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Mar 26 15:02:00 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Mar 2008 15:02:00 +0100 Subject: [Gambas-user] Installing on webserver In-Reply-To: <16301165.post@...1379...> References: <16301165.post@...1379...> Message-ID: <200803261502.00598.gambas@...1...> On mercredi 26 mars 2008, R. Stormo wrote: > Is there a way I can use gambas on my isp's webserver without installing it > on the main system.? > They say I was welcome to install new components but they could not > guarantee that it would work. > So I wonder if I could place gambas files someplace on my path to make it > work. > > > Regards Rohnny > > My Gambas Community http://gambasforum.tk Theoretically, you can compile gambas by specifying the installation prefix to configure: $ ./configure --prefix=/home/rohnny/gambas Then, the only requirement is that the gbx2 (or gbx3) executable must be accessible from the PATH environmental variable. Try, and tell me if it works for you! :-) Regards, -- Benoit Minisini From jbskaggs at ...1871... Wed Mar 26 18:19:31 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 26 Mar 2008 10:19:31 -0700 (PDT) Subject: [Gambas-user] dirchooser runtime refresh button how to reference in code In-Reply-To: <200803261356.55776.gambas@...1...> References: <16296679.post@...1379...> <200803261356.55776.gambas@...1...> Message-ID: <16307115.post@...1379...> It worked like a charm! JB Benoit Minisini wrote: > > On mercredi 26 mars 2008, jbskaggs wrote: >> Thanks to the helpful people here I am nearing completion of the working >> model of my program- all functions are basically running and I need to >> just >> smooth things out. Improve the graphics and usabilty etc. One thing I >> put >> in the other post that Benoit said he would look at. >> >> The second should be simple: >> in ver 2.4 on the dirchooser there is a refresh button that appears at >> runtime. >> How can I run that refresh button automatically via code? >> >> IE after I create a new directory or delete one etc how do I >> automatically >> get dirchooser to update or refresh it's display? >> >> I tried using the .refresh and that did not do anything. >> >> It is irritating after you delete a directory and it is still in the >> dirchooser list until you press refresh. >> >> JB SKaggs > > There is no method for that in DirChooser and FileChooser, whereas there > are > in DirView and FileView. This is something I forgot, sorry! > > But you can try the following hack: > > --8<--------------------------------- > DIM hObject AS Object > > hObject = MyDirChooser.Children[0] > hObject.btnRefresh_Click() > --8<--------------------------------- > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/dirchooser-runtime-refresh-button-how-to-reference-in-code-tp16296679p16307115.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Wed Mar 26 18:22:30 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 26 Mar 2008 10:22:30 -0700 (PDT) Subject: [Gambas-user] 2 easy questions In-Reply-To: <200803260243.31523.gambas@...1...> References: <16290836.post@...1379...> <200803260022.17145.gambas@...1...> <16292033.post@...1379...> <200803260116.57549.gambas@...1...> <16293685.post@...1379...> <200803260243.31523.gambas@...1...> Message-ID: <16307116.post@...1379...> I emailed you the link to the to my project did you get it? JB SKaggs Benoit Minisini wrote: > > On mercredi 26 mars 2008, jbskaggs wrote: >> Ok I just ran update on ubuntu and it upgraded me to ver 2.2.4. But gtk >> dirchooser is still doing the same thing. Do I need to find the >> component >> itself? > > There is no 2.2.4 version too. But there is a 2.4.0 version (the last > one). > > Please send me your project, so that I can see if it works on my computer. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/2-easy-questions-tp16290836p16307116.html Sent from the gambas-user mailing list archive at Nabble.com. From jcvivian at ...626... Wed Mar 26 18:30:09 2008 From: jcvivian at ...626... (Julio Vivian) Date: Wed, 26 Mar 2008 14:30:09 -0300 Subject: [Gambas-user] problems with sdl programming in gambas 1 and 2 In-Reply-To: <200803261347.06839.gambas@...1...> References: <200803232007.22144.gambas@...1...> <200803261347.06839.gambas@...1...> Message-ID: Yes, I did it! I though u were suposing that could be some problem in the component. I began to consider that I was doing som mistake, and then I tryed running the exemples distributed wiht Gambas 1 and 2 and keep returning ``Unkown identifier: Window at line...`` in all exemples 2008/3/26, Benoit Minisini : > > On mercredi 26 mars 2008, Julio Vivian wrote: > > Well, I checked to see if it was installed and the answer is yes! But i > > don't know if its working properly or if its corrupted. How can I test > > this? > > > > I meant did you select it in the project property dialog? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From maximvonk at ...626... Wed Mar 26 18:55:36 2008 From: maximvonk at ...626... (MaxVK) Date: Wed, 26 Mar 2008 10:55:36 -0700 (PDT) Subject: [Gambas-user] Calling Perl module In-Reply-To: <200803260921.00768.sourceforge-raindog2@...94...> References: <16300778.post@...1379...> <200803260921.00768.sourceforge-raindog2@...94...> Message-ID: <16309242.post@...1379...> Rob Kudla wrote: > > The way I've used Perl modules from within Gambas in the past (most > often with Expect to emulate a TTY) has been to write a Perl script > using it, and run that script with EXEC, sending it input and > receiving output from it. > > It'd probably be possible to write a gb.perl component to use Perl > modules directly, but I don't really know where to begin with that. > If we were going the other way we'd probably use the XS Perl module, > but I think to access Perl modules you'd basically have to include a > Perl interpreter as a component. This is probably doable (I think > exim, the mail server does this to allow perl regular expressions in > its config files or something) but I think at that point you might as > well just shell out to a Perl script. > > For this particular case, I think an aspell (or hunspell or enchant) > Gambas component would be more appropriate, but I don't know what you > plan to do with your spellchecker. > > Rob > Hi Rob, thanks for the reply. The spell checker will be just that - Id like to be able to click a button and start a spell check that will take each word in turn and check it. Naturally Id like to implement something to get those nice little wavy red lines underneath badly spelled words, but one step at a time I think! Iv taken your suggestion but since I have no Perl at all Iv used Python (My second Python script!). I used some code I found, and called that from a Python script using SHELL. Problem: I can get the return result (From Process_Read), which is a suggestion for the word if it is incorrect, or is the word itself if it is spelled correctly. Thats one thing, but I cant actually do anything with it at the moment. I can go one word at a time, and I can get (remarkably) good suggestions back, but there is only the option for a single word, and only the one suggestion. This was my reasoning behind trying to use Gtk2::Spell - It can open a window of its own and is (apparently) much faster. Iv seen this behavior in (for example) Zim, the desktop wiki style editor. However, Iv yet to find anything that could explain how to call Gtk2::Spell, from a Perl script or anything else for that matter. So I'm still in need of some kind of spell checking mechanism, if anyone has any ideas. Cheers Max -- View this message in context: http://www.nabble.com/Calling-Perl-module-tp16300778p16309242.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Mar 26 19:05:54 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Mar 2008 19:05:54 +0100 Subject: [Gambas-user] problems with sdl programming in gambas 1 and 2 In-Reply-To: References: <200803261347.06839.gambas@...1...> Message-ID: <200803261905.54333.gambas@...1...> On mercredi 26 mars 2008, Julio Vivian wrote: > Yes, I did it! > I though u were suposing that could be some problem in the component. > I began to consider that I was doing som mistake, and then I tryed running > the exemples distributed wiht Gambas 1 and 2 and keep returning ``Unkown > identifier: Window at line...`` in all exemples > Then you have a problem with your gambas installation. The compiler raises this error if it cannot find the information file for the gb.sdl component. Search on your system where the gb.sdl.info and the gb.sdl.list files are installed. -- Benoit Minisini From m0e.lnx at ...626... Wed Mar 26 19:10:50 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 26 Mar 2008 13:09:50 -0501 Subject: [Gambas-user] How to search for an item in a treeview Message-ID: <1f1e8c1b0803261110o53ed2e00rcd5ef5b9f86fb201@...627...> I have a treeview populated with lots of entries... I'm trying to provide a function that would search within the contents of that treeview for a specific string. Can anyone think of a way to do that? I've been trying the FIND method in the treeview, but it's quite different from other find methods... From dcamposf at ...626... Wed Mar 26 19:27:09 2008 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 26 Mar 2008 19:27:09 +0100 Subject: [Gambas-user] Ubuntu packages updated Message-ID: <7259b5ae0803261127w338d7216r3ca018ed73f7e246@...627...> Hi: I've updated Ubuntu packages at gnuLinEx site to 2.4.1: Gutsy -> amd64 and i386 Feisty -> amd64 and i386 Edgy -> i386 I'll soon abandon Edgy support, there are quite few downloads for that version in the logs, I made them mainly for Guadalinex spanish distribution but soon they will upgrade to Ubuntu 8. For sources.list file: deb http://azores.linex.org/gambas-other gutsy main or deb http://azores.linex.org/gambas-other feisty main or deb http://azores.linex.org/gambas-other edgy main Regards, Daniel From rohnny at ...1248... Wed Mar 26 19:33:24 2008 From: rohnny at ...1248... (R. Stormo) Date: Wed, 26 Mar 2008 11:33:24 -0700 (PDT) Subject: [Gambas-user] Installing on webserver In-Reply-To: <200803261502.00598.gambas@...1...> References: <16301165.post@...1379...> <200803261502.00598.gambas@...1...> Message-ID: <16311626.post@...1379...> Benoit Minisini wrote: > > On mercredi 26 mars 2008, R. Stormo wrote: >> Is there a way I can use gambas on my isp's webserver without installing >> it >> on the main system.? >> They say I was welcome to install new components but they could not >> guarantee that it would work. >> So I wonder if I could place gambas files someplace on my path to make it >> work. >> >> >> Regards Rohnny >> >> My Gambas Community http://gambasforum.tk > > Theoretically, you can compile gambas by specifying the installation > prefix to > configure: > > $ ./configure --prefix=/home/rohnny/gambas > > Then, the only requirement is that the gbx2 (or gbx3) executable must be > accessible from the PATH environmental variable. > > Try, and tell me if it works for you! :-) > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Well it was not so lucky. But I hope you may have another solution for me ;) Moved the bin folder to root of my domain . Moved the gambas folder to root of my domain also. copy my file called mem.gambas (found on this list some time ago.) By running the gambas file I got server error. But by modify a test file so I can run some command I got further. I called it test. #!/bin/sh # disable filename globbing #set -f echo Content-type: text/plain echo #echo CGI/1.0 test script report: #echo PATH=$PATH:$HOME/bin:/hsphere/local/home/rstormo/bin export PATH echo $PATH ./mem.gambas echo "Gambas program was executed" echo "Running programs" ps -A I got alot of output but not from the gambas software,. --snip /usr/local/bin:/usr/bin:/bin:/bin:/hsphere/xxxxxxxxxxxxxx/bin Gambas program was executed Running programs PID TTY TIME CMD 1 ? 00:00:00 init 2 ? 00:00:00 kthreadd 3 ? 00:00:00 mig....... -snap My Mem program --snip ' This script returns the memory really used by the system, the cache 'AND SWAP being excluded. FUNCTION GetUsedMemory() AS Integer DIM sRes AS String DIM aRes AS String[] DIM cVal AS NEW Collection DIM sVal AS String EXEC ["cat", "/proc/meminfo"] TO sRes FOR EACH sVal IN Split(sRes, "\n", "", TRUE) aRes = Split(sVal, " ", "", TRUE) cVal[Left$(aRes[0], -1)] = CInt(aRes[1]) NEXT RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + cVal!SwapTotal - cVal!SwapFree - cVal!SwapCached END PUBLIC SUB Main() PRINT Subst("Used memory: &1 bytes", GetUsedMemory()) END -snap -- View this message in context: http://www.nabble.com/Installing-on-webserver-tp16301165p16311626.html Sent from the gambas-user mailing list archive at Nabble.com. From rohnny at ...1248... Wed Mar 26 19:33:40 2008 From: rohnny at ...1248... (R. Stormo) Date: Wed, 26 Mar 2008 11:33:40 -0700 (PDT) Subject: [Gambas-user] Installing on webserver In-Reply-To: <200803261502.00598.gambas@...1...> References: <16301165.post@...1379...> <200803261502.00598.gambas@...1...> Message-ID: <16311631.post@...1379...> Benoit Minisini wrote: > > On mercredi 26 mars 2008, R. Stormo wrote: >> Is there a way I can use gambas on my isp's webserver without installing >> it >> on the main system.? >> They say I was welcome to install new components but they could not >> guarantee that it would work. >> So I wonder if I could place gambas files someplace on my path to make it >> work. >> >> >> Regards Rohnny >> >> My Gambas Community http://gambasforum.tk > > Theoretically, you can compile gambas by specifying the installation > prefix to > configure: > > $ ./configure --prefix=/home/rohnny/gambas > > Then, the only requirement is that the gbx2 (or gbx3) executable must be > accessible from the PATH environmental variable. > > Try, and tell me if it works for you! :-) > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Well it was not so lucky. But I hope you may have another solution for me ;) Moved the bin folder to root of my domain . Moved the gambas folder to root of my domain also. copy my file called mem.gambas (found on this list some time ago.) By running the gambas file I got server error. But by modify a test file so I can run some command I got further. I called it test. #!/bin/sh # disable filename globbing #set -f echo Content-type: text/plain echo #echo CGI/1.0 test script report: #echo PATH=$PATH:$HOME/bin:/hsphere/local/home/rstormo/bin export PATH echo $PATH ./mem.gambas echo "Gambas program was executed" echo "Running programs" ps -A I got alot of output but not from the gambas software,. --snip /usr/local/bin:/usr/bin:/bin:/bin:/hsphere/xxxxxxxxxxxxxx/bin Gambas program was executed Running programs PID TTY TIME CMD 1 ? 00:00:00 init 2 ? 00:00:00 kthreadd 3 ? 00:00:00 mig....... -snap My Mem program --snip ' This script returns the memory really used by the system, the cache 'AND SWAP being excluded. FUNCTION GetUsedMemory() AS Integer DIM sRes AS String DIM aRes AS String[] DIM cVal AS NEW Collection DIM sVal AS String EXEC ["cat", "/proc/meminfo"] TO sRes FOR EACH sVal IN Split(sRes, "\n", "", TRUE) aRes = Split(sVal, " ", "", TRUE) cVal[Left$(aRes[0], -1)] = CInt(aRes[1]) NEXT RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + cVal!SwapTotal - cVal!SwapFree - cVal!SwapCached END PUBLIC SUB Main() PRINT Subst("Used memory: &1 bytes", GetUsedMemory()) END -snap Regards Rohnny My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/Installing-on-webserver-tp16301165p16311631.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Wed Mar 26 20:02:58 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 26 Mar 2008 12:02:58 -0700 (PDT) Subject: [Gambas-user] How to search for an item in a treeview In-Reply-To: <1f1e8c1b0803261110o53ed2e00rcd5ef5b9f86fb201@...627...> References: <1f1e8c1b0803261110o53ed2e00rcd5ef5b9f86fb201@...627...> Message-ID: <16313314.post@...1379...> I would have the program movenext thru each item starting at movefirst and run the instr function on each string for each treeview.item until you get a hit. I do this to search for specific key words in text, keys, images in my treeview. Im newbie so this may not work exactly right but this worked for me. sample: dim j as string dim i as integer j="yoursearchstring" yourtreeview.movefirst for i = 1 to yourtreeview.count yourtreeview.item.selected=true if instr(yourtreeview.item.text, j)>0 do your code here endif yourtreeview.movenext next JB SKaggs M0E Lnx wrote: > > I have a treeview populated with lots of entries... I'm trying to > provide a function that would search within the contents of that > treeview for a specific string. > Can anyone think of a way to do that? > > I've been trying the FIND method in the treeview, but it's quite > different from other find methods... > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/How-to-search-for-an-item-in-a-treeview-tp16311949p16313314.html Sent from the gambas-user mailing list archive at Nabble.com. From mcinquino at ...1875... Wed Mar 26 20:12:15 2008 From: mcinquino at ...1875... (Mike Cinquino) Date: Wed, 26 Mar 2008 15:12:15 -0400 Subject: [Gambas-user] Ubuntu packages updated In-Reply-To: <7259b5ae0803261127w338d7216r3ca018ed73f7e246@...627...> References: <7259b5ae0803261127w338d7216r3ca018ed73f7e246@...627...> Message-ID: <1206558736.16415.105.camel@...37...> How does a novice using Ubuntu Gusty, update to Gambas 2.4.1? I currently have 1.0.18 and 1.9.49 on my system. Sorry for the beginner question. Thanks, Mike On Wed, 2008-03-26 at 19:27 +0100, Daniel Campos wrote: > Hi: > > I've updated Ubuntu packages at gnuLinEx site to 2.4.1: > > Gutsy -> amd64 and i386 > Feisty -> amd64 and i386 > Edgy -> i386 > > I'll soon abandon Edgy support, there are quite few downloads for that > version in the logs, I made them mainly for Guadalinex spanish > distribution but soon they will upgrade to Ubuntu 8. > > For sources.list file: > > deb http://azores.linex.org/gambas-other gutsy main > > or > > deb http://azores.linex.org/gambas-other feisty main > > or > > deb http://azores.linex.org/gambas-other edgy main > > Regards, > > Daniel > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jbskaggs at ...1871... Wed Mar 26 20:24:29 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 26 Mar 2008 12:24:29 -0700 (PDT) Subject: [Gambas-user] Ubuntu packages updated In-Reply-To: <1206558736.16415.105.camel@...37...> References: <7259b5ae0803261127w338d7216r3ca018ed73f7e246@...627...> <1206558736.16415.105.camel@...37...> Message-ID: <16314080.post@...1379...> On my ubuntu I went to applications add/remove and selected gambas2. Which installed 2.2.1 then I clicked system upgrade and it upgraded to 2.4.1 Maybe add/remove will point to 2.4.1 automatically. JB SKaggs Mike Cinquino wrote: > > How does a novice using Ubuntu Gusty, update to Gambas 2.4.1? I > currently have 1.0.18 and 1.9.49 on my system. > > Sorry for the beginner question. > > Thanks, > Mike > > > On Wed, 2008-03-26 at 19:27 +0100, Daniel Campos wrote: >> Hi: >> >> I've updated Ubuntu packages at gnuLinEx site to 2.4.1: >> >> Gutsy -> amd64 and i386 >> Feisty -> amd64 and i386 >> Edgy -> i386 >> >> I'll soon abandon Edgy support, there are quite few downloads for that >> version in the logs, I made them mainly for Guadalinex spanish >> distribution but soon they will upgrade to Ubuntu 8. >> >> For sources.list file: >> >> deb http://azores.linex.org/gambas-other gutsy main >> >> or >> >> deb http://azores.linex.org/gambas-other feisty main >> >> or >> >> deb http://azores.linex.org/gambas-other edgy main >> >> Regards, >> >> Daniel >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Ubuntu-packages-updated-tp16312463p16314080.html Sent from the gambas-user mailing list archive at Nabble.com. From mcinquino at ...1875... Wed Mar 26 20:37:57 2008 From: mcinquino at ...1875... (Mike Cinquino) Date: Wed, 26 Mar 2008 15:37:57 -0400 Subject: [Gambas-user] Ubuntu packages updated In-Reply-To: <16314080.post@...1379...> References: <7259b5ae0803261127w338d7216r3ca018ed73f7e246@...627...> <1206558736.16415.105.camel@...37...> <16314080.post@...1379...> Message-ID: <1206560277.16415.109.camel@...37...> For some reason when I install using add/remove it installs ver 1.9.49 not 2.2.1? I removed it and tried again and it did the same thing. Thanks, Mike On Wed, 2008-03-26 at 12:24 -0700, jbskaggs wrote: > On my ubuntu I went to applications add/remove and selected gambas2. > > Which installed 2.2.1 then I clicked system upgrade and it upgraded to 2.4.1 > > Maybe add/remove will point to 2.4.1 automatically. > > JB SKaggs > > > > Mike Cinquino wrote: > > > > How does a novice using Ubuntu Gusty, update to Gambas 2.4.1? I > > currently have 1.0.18 and 1.9.49 on my system. > > > > Sorry for the beginner question. > > > > Thanks, > > Mike > > > > > > On Wed, 2008-03-26 at 19:27 +0100, Daniel Campos wrote: > >> Hi: > >> > >> I've updated Ubuntu packages at gnuLinEx site to 2.4.1: > >> > >> Gutsy -> amd64 and i386 > >> Feisty -> amd64 and i386 > >> Edgy -> i386 > >> > >> I'll soon abandon Edgy support, there are quite few downloads for that > >> version in the logs, I made them mainly for Guadalinex spanish > >> distribution but soon they will upgrade to Ubuntu 8. > >> > >> For sources.list file: > >> > >> deb http://azores.linex.org/gambas-other gutsy main > >> > >> or > >> > >> deb http://azores.linex.org/gambas-other feisty main > >> > >> or > >> > >> deb http://azores.linex.org/gambas-other edgy main > >> > >> Regards, > >> > >> Daniel > >> > >> ------------------------------------------------------------------------- > >> Check out the new SourceForge.net Marketplace. > >> It's the best place to buy or sell services for > >> just about anything Open Source. > >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > From jbskaggs at ...1871... Wed Mar 26 20:48:25 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 26 Mar 2008 12:48:25 -0700 (PDT) Subject: [Gambas-user] Ubuntu packages updated In-Reply-To: <1206560277.16415.109.camel@...37...> References: <7259b5ae0803261127w338d7216r3ca018ed73f7e246@...627...> <1206558736.16415.105.camel@...37...> <16314080.post@...1379...> <1206560277.16415.109.camel@...37...> Message-ID: <16314582.post@...1379...> Do a search on google or nabbles on how to update the sites your updater / installer on ubuntu, looks to for latest software. Also after you installed did you go to system adminstration and system upgrade? You might want to try that first. JB Mike Cinquino wrote: > > For some reason when I install using add/remove it installs ver 1.9.49 > not 2.2.1? I removed it and tried again and it did the same thing. > > Thanks, > Mike > > > > On Wed, 2008-03-26 at 12:24 -0700, jbskaggs wrote: >> On my ubuntu I went to applications add/remove and selected gambas2. >> >> Which installed 2.2.1 then I clicked system upgrade and it upgraded to >> 2.4.1 >> >> Maybe add/remove will point to 2.4.1 automatically. >> >> JB SKaggs >> >> >> >> Mike Cinquino wrote: >> > >> > How does a novice using Ubuntu Gusty, update to Gambas 2.4.1? I >> > currently have 1.0.18 and 1.9.49 on my system. >> > >> > Sorry for the beginner question. >> > >> > Thanks, >> > Mike >> > >> > >> > On Wed, 2008-03-26 at 19:27 +0100, Daniel Campos wrote: >> >> Hi: >> >> >> >> I've updated Ubuntu packages at gnuLinEx site to 2.4.1: >> >> >> >> Gutsy -> amd64 and i386 >> >> Feisty -> amd64 and i386 >> >> Edgy -> i386 >> >> >> >> I'll soon abandon Edgy support, there are quite few downloads for that >> >> version in the logs, I made them mainly for Guadalinex spanish >> >> distribution but soon they will upgrade to Ubuntu 8. >> >> >> >> For sources.list file: >> >> >> >> deb http://azores.linex.org/gambas-other gutsy main >> >> >> >> or >> >> >> >> deb http://azores.linex.org/gambas-other feisty main >> >> >> >> or >> >> >> >> deb http://azores.linex.org/gambas-other edgy main >> >> >> >> Regards, >> >> >> >> Daniel >> >> >> >> >> ------------------------------------------------------------------------- >> >> Check out the new SourceForge.net Marketplace. >> >> It's the best place to buy or sell services for >> >> just about anything Open Source. >> >> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> > >> > >> ------------------------------------------------------------------------- >> > Check out the new SourceForge.net Marketplace. >> > It's the best place to buy or sell services for >> > just about anything Open Source. >> > >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Ubuntu-packages-updated-tp16312463p16314582.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Mar 26 21:00:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Mar 2008 21:00:03 +0100 Subject: [Gambas-user] How to search for an item in a treeview In-Reply-To: <16313314.post@...1379...> References: <1f1e8c1b0803261110o53ed2e00rcd5ef5b9f86fb201@...627...> <16313314.post@...1379...> Message-ID: <200803262100.03868.gambas@...1...> On mercredi 26 mars 2008, jbskaggs wrote: > I would have the program movenext thru each item starting at movefirst and > run the instr function on each string for each treeview.item until you get > a hit. > > I do this to search for specific key words in text, keys, images in my > treeview. Im newbie so this may not work exactly right but this worked > for me. > > sample: > > dim j as string > dim i as integer > j="yoursearchstring" > yourtreeview.movefirst > for i = 1 to yourtreeview.count > yourtreeview.item.selected=true > if instr(yourtreeview.item.text, j)>0 > do your code here > endif > yourtreeview.movenext > next > > JB SKaggs > It does not work if any item has child item. You must replace MoveNext by MoveBelow, and use the next 2.5 version. :-) Regards, -- Benoit Minisini From mcinquino at ...1875... Wed Mar 26 21:42:15 2008 From: mcinquino at ...1875... (Mike Cinquino) Date: Wed, 26 Mar 2008 16:42:15 -0400 Subject: [Gambas-user] Ubuntu packages updated In-Reply-To: <16314582.post@...1379...> References: <7259b5ae0803261127w338d7216r3ca018ed73f7e246@...627...> <1206558736.16415.105.camel@...37...> <16314080.post@...1379...> <1206560277.16415.109.camel@...37...> <16314582.post@...1379...> Message-ID: <1206564135.16415.118.camel@...37...> I had to add the links provided into Software Sources Third-Party Software and everything looks good now. Thank you for all for the help, I can't wait to try the new version. Mike On Wed, 2008-03-26 at 12:48 -0700, jbskaggs wrote: > Do a search on google or nabbles on how to update the sites your updater / > installer on ubuntu, looks to for latest software. > > Also after you installed did you go to system adminstration and system > upgrade? > > You might want to try that first. > > JB > > > Mike Cinquino wrote: > > > > For some reason when I install using add/remove it installs ver 1.9.49 > > not 2.2.1? I removed it and tried again and it did the same thing. > > > > Thanks, > > Mike > > > > > > > > On Wed, 2008-03-26 at 12:24 -0700, jbskaggs wrote: > >> On my ubuntu I went to applications add/remove and selected gambas2. > >> > >> Which installed 2.2.1 then I clicked system upgrade and it upgraded to > >> 2.4.1 > >> > >> Maybe add/remove will point to 2.4.1 automatically. > >> > >> JB SKaggs > >> > >> > >> > >> Mike Cinquino wrote: > >> > > >> > How does a novice using Ubuntu Gusty, update to Gambas 2.4.1? I > >> > currently have 1.0.18 and 1.9.49 on my system. > >> > > >> > Sorry for the beginner question. > >> > > >> > Thanks, > >> > Mike > >> > > >> > > >> > On Wed, 2008-03-26 at 19:27 +0100, Daniel Campos wrote: > >> >> Hi: > >> >> > >> >> I've updated Ubuntu packages at gnuLinEx site to 2.4.1: > >> >> > >> >> Gutsy -> amd64 and i386 > >> >> Feisty -> amd64 and i386 > >> >> Edgy -> i386 > >> >> > >> >> I'll soon abandon Edgy support, there are quite few downloads for that > >> >> version in the logs, I made them mainly for Guadalinex spanish > >> >> distribution but soon they will upgrade to Ubuntu 8. > >> >> > >> >> For sources.list file: > >> >> > >> >> deb http://azores.linex.org/gambas-other gutsy main > >> >> > >> >> or > >> >> > >> >> deb http://azores.linex.org/gambas-other feisty main > >> >> > >> >> or > >> >> > >> >> deb http://azores.linex.org/gambas-other edgy main > >> >> > >> >> Regards, > >> >> > >> >> Daniel > >> >> > >> >> > >> ------------------------------------------------------------------------- > >> >> Check out the new SourceForge.net Marketplace. > >> >> It's the best place to buy or sell services for > >> >> just about anything Open Source. > >> >> > >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> > > >> > > >> > > >> ------------------------------------------------------------------------- > >> > Check out the new SourceForge.net Marketplace. > >> > It's the best place to buy or sell services for > >> > just about anything Open Source. > >> > > >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > > >> > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > From nando_f at ...951... Wed Mar 26 21:43:49 2008 From: nando_f at ...951... (nando) Date: Wed, 26 Mar 2008 15:43:49 -0500 Subject: [Gambas-user] Procedure folding In-Reply-To: <200803251820.38395.gambas@...1...> References: <200803251820.38395.gambas@...1...> Message-ID: <20080326204232.M63247@...951...> Since I do not know, what is procedure folding? ---------- Original Message ----------- From: Benoit Minisini To: gambas-user at lists.sourceforge.net Sent: Tue, 25 Mar 2008 18:20:38 +0100 Subject: [Gambas-user] Procedure folding > For the courageous, I finally implemented procedure folding in Gambas 3 IDE. > > That is something interesting to test, as this is the first time I implement > such a feature, so I'm not sure it is rock solid! > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From m0e.lnx at ...626... Wed Mar 26 21:51:11 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 26 Mar 2008 15:51:11 -0500 Subject: [Gambas-user] How to search for an item in a treeview In-Reply-To: <200803262100.03868.gambas@...1...> References: <1f1e8c1b0803261110o53ed2e00rcd5ef5b9f86fb201@...627...> <16313314.post@...1379...> <200803262100.03868.gambas@...1...> Message-ID: <1f1e8c1b0803261351j2ffe4669v4a9d4d51f2c08a3f@...627...> :( How about this... this may be another viable approach to getting the same results What if at the time the treeview is populated, I store it's contents in an array somewhere? When the search is ran, I'd be looking in the array instead of the treeview, and simply re-populate the treeview with the hits at that time. Could this work? Anyone have an idea how to accomplish this???... I'm not very good with arrays. On Wed, Mar 26, 2008 at 3:00 PM, Benoit Minisini wrote: > On mercredi 26 mars 2008, jbskaggs wrote: > > I would have the program movenext thru each item starting at movefirst and > > run the instr function on each string for each treeview.item until you get > > a hit. > > > > I do this to search for specific key words in text, keys, images in my > > treeview. Im newbie so this may not work exactly right but this worked > > for me. > > > > sample: > > > > dim j as string > > dim i as integer > > j="yoursearchstring" > > yourtreeview.movefirst > > for i = 1 to yourtreeview.count > > yourtreeview.item.selected=true > > if instr(yourtreeview.item.text, j)>0 > > do your code here > > endif > > yourtreeview.movenext > > next > > > > JB SKaggs > > > > It does not work if any item has child item. You must replace MoveNext by > MoveBelow, and use the next 2.5 version. :-) > > Regards, > > -- > Benoit Minisini > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1822... Wed Mar 26 11:21:09 2008 From: rterry at ...1822... (richard terry) Date: Wed, 26 Mar 2008 21:21:09 +1100 Subject: [Gambas-user] Connection.Subst crashing with Signal #11 (2.99 1154) Message-ID: <200803262121.10086.rterry@...1822...> This started happening on my machine with 2.99 build 1147, Some of my code uses .Subst . I quickly knocked up this simple example which causes the same problem. However running this file under 2.4, works with no problem at all. This has bought my programming to a frustrating grinding halt. I'd like to continue in 3.0, but can I re-compile in 2.4 and not have lost anything? Regards Richard ============================================== ' Gambas class file PUBLIC $hconn AS Connection PUBLIC $result AS Result 'simple table for postgresql - make in postgres environment ' CREATE TABLE test ' ( ' test text ') PUBLIC SUB form_Open() test END SUB PUBLIC SUB test() DIM bConnect AS Boolean DIM sql AS String bConnect = dbConnect() 'This line crashes with signal 11 PRINT $hconn.Subst("WHERE Name = &1 AND Date = &2", "Benoit", Now) 'but this dosn't sql = "Insert into public.test (test) values ('Help, nothing works any more')" PRINT sql TRY $Result = $hConn.Exec(sql) IF ERROR THEN message.Error(error.Text) END IF END SUB PUBLIC FUNCTION dbConnect() AS Integer DIM sName AS String DIM bConnected AS Boolean bConnected = 0 $hConn = NEW Connection sName = "MyDB" 'database name TRY $hConn.Close WITH $hConn .Type = "postgresql" .Host = "localhost" .Login = "yourlogin" .Password = "your password here" END WITH $hConn.Name = sName $hConn.Open bConnected = 1 RETURN bConnected CATCH Message.Error(DConv(Error.Text)) bConnected = FALSE RETURN bConnected END ================================ From rterry at ...1822... Wed Mar 26 11:30:01 2008 From: rterry at ...1822... (richard terry) Date: Wed, 26 Mar 2008 21:30:01 +1100 Subject: [Gambas-user] Cut/Paste highlighting in 3.0 vs 2.0 Message-ID: <200803262130.01861.rterry@...1822...> Just noticed that my comment text seems to have developed a gray background which I can't remember setting. However now if I try and copy a bit of the highlighted text, there is no colour under the swiped area to see what I've swiped. I enclose a piccie to show what I mean. What am I setting wrong? Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: editor_3_cf_2.png Type: image/png Size: 137167 bytes Desc: not available URL: From gambas at ...1... Wed Mar 26 21:59:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Mar 2008 21:59:05 +0100 Subject: [Gambas-user] Connection.Subst crashing with Signal #11 (2.99 1154) In-Reply-To: <200803262121.10086.rterry@...1822...> References: <200803262121.10086.rterry@...1822...> Message-ID: <200803262159.05821.gambas@...1...> On mercredi 26 mars 2008, richard terry wrote: > This started happening on my machine with 2.99 build 1147, Some of my code > uses .Subst . I quickly knocked up this simple example which causes the > same problem. > > However running this file under 2.4, works with no problem at all. > > This has bought my programming to a frustrating grinding halt. I'd like to > continue in 3.0, but can I re-compile in 2.4 and not have lost anything? > > Regards > > Richard > > ============================================== > ' Gambas class file > PUBLIC $hconn AS Connection > PUBLIC $result AS Result > 'simple table for postgresql - make in postgres environment > ' CREATE TABLE test > ' ( > ' test text > ') > > > PUBLIC SUB form_Open() > test > END SUB > > PUBLIC SUB test() > DIM bConnect AS Boolean > DIM sql AS String > bConnect = dbConnect() > 'This line crashes with signal 11 > PRINT $hconn.Subst("WHERE Name = &1 AND Date = &2", "Benoit", Now) > > 'but this dosn't > sql = "Insert into public.test (test) values ('Help, nothing works any > more')" > PRINT sql > TRY $Result = $hConn.Exec(sql) > IF ERROR THEN > message.Error(error.Text) > END IF > > > END SUB > > PUBLIC FUNCTION dbConnect() AS Integer > DIM sName AS String > DIM bConnected AS Boolean > bConnected = 0 > > $hConn = NEW Connection > sName = "MyDB" 'database name > TRY $hConn.Close > WITH $hConn > .Type = "postgresql" > .Host = "localhost" > .Login = "yourlogin" > .Password = "your password here" > END WITH > $hConn.Name = sName > $hConn.Open > bConnected = 1 > RETURN bConnected > CATCH > > > Message.Error(DConv(Error.Text)) > bConnected = FALSE > RETURN bConnected > END > ================================ > The bug has been fixed (normally) in revison 1261. Otherwise you can install gambas2 and gambas3 on the same system. This is the reason of having the version sticked to the name! Regards, -- Benoit Minisini From gambas at ...1... Wed Mar 26 22:00:00 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Mar 2008 22:00:00 +0100 Subject: [Gambas-user] Cut/Paste highlighting in 3.0 vs 2.0 In-Reply-To: <200803262130.01861.rterry@...1822...> References: <200803262130.01861.rterry@...1822...> Message-ID: <200803262200.00400.gambas@...1...> On mercredi 26 mars 2008, richard terry wrote: > Just noticed that my comment text seems to have developed a gray background > which I can't remember setting. > > However now if I try and copy a bit of the highlighted text, there is no > colour under the swiped area to see what I've swiped. I enclose a piccie to > show what I mean. > > What am I setting wrong? > > Regards > > Richard Nothing, you are using a development version. So, sometimes, you get some of my unfinished tries. Regards, -- Benoit Minisini From ronstk at ...239... Wed Mar 26 22:18:45 2008 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 26 Mar 2008 22:18:45 +0100 Subject: [Gambas-user] Cut/Paste highlighting in 3.0 vs 2.0 In-Reply-To: <200803262200.00400.gambas@...1...> References: <200803262130.01861.rterry@...1822...> <200803262200.00400.gambas@...1...> Message-ID: <200803262218.45338.ronstk@...239...> On Wednesday 26 March 2008 22:00, Benoit Minisini wrote: > > Richard > > Nothing, you are using a development version. So, sometimes, you get some of > my unfinished tries. > > Regards, > You may let it in. I like it but as I'm not alone a option for it in the colot tab would be nice. Ron (the First ;=) ) From henrique.ulbrich at ...626... Wed Mar 26 22:29:47 2008 From: henrique.ulbrich at ...626... (Henrique Cesar Ulbrich) Date: Wed, 26 Mar 2008 18:29:47 -0300 Subject: [Gambas-user] Ubuntu packages updated In-Reply-To: <1206560277.16415.109.camel@...37...> References: <7259b5ae0803261127w338d7216r3ca018ed73f7e246@...627...> <16314080.post@...1379...> <1206560277.16415.109.camel@...37...> Message-ID: <200803261829.48031.henrique.ulbrich@...626...> Historiadores acreditam que, em Quarta 26 Mar 2008, Mike Cinquino disse: > For some reason when I install using add/remove it installs ver 1.9.49 > not 2.2.1? I removed it and tried again and it did the same thing. 1. Keep the 1.9.40 installed. 2. Then add these lines to the end of your /etc/apt/sources.list: ############# # Gambas 2 # Linex Repo deb http://azores.linex.org/gambas-other/ gutsy main 3. Now update your system: $ sudo apt-get update $ sudo apt-get upgrade 4. Be happy From dcamposf at ...626... Wed Mar 26 23:50:01 2008 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 26 Mar 2008 23:50:01 +0100 Subject: [Gambas-user] Ubuntu packages updated In-Reply-To: <200803261829.48031.henrique.ulbrich@...626...> References: <7259b5ae0803261127w338d7216r3ca018ed73f7e246@...627...> <16314080.post@...1379...> <1206560277.16415.109.camel@...37...> <200803261829.48031.henrique.ulbrich@...626...> Message-ID: <7259b5ae0803261550v312fd94md46de824f8be235c@...627...> That "Historiadores acreditam que" is really cool :-))) 2008/3/26, Henrique Cesar Ulbrich : > Historiadores acreditam que, > em Quarta 26 Mar 2008, Mike Cinquino disse: > > > For some reason when I install using add/remove it installs ver 1.9.49 > > not 2.2.1? I removed it and tried again and it did the same thing. > > > 1. Keep the 1.9.40 installed. > > > > 2. Then add these lines to the > end of your /etc/apt/sources.list: > > ############# > # Gambas 2 > # Linex Repo > > deb http://azores.linex.org/gambas-other/ gutsy main > > > > > 3. Now update your system: > > $ sudo apt-get update > $ sudo apt-get upgrade > > > > 4. Be happy > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From henrique.ulbrich at ...626... Thu Mar 27 00:48:38 2008 From: henrique.ulbrich at ...626... (Henrique Cesar Ulbrich) Date: Wed, 26 Mar 2008 20:48:38 -0300 Subject: [Gambas-user] Ubuntu packages updated In-Reply-To: <7259b5ae0803261550v312fd94md46de824f8be235c@...627...> References: <7259b5ae0803261127w338d7216r3ca018ed73f7e246@...627...> <200803261829.48031.henrique.ulbrich@...626...> <7259b5ae0803261550v312fd94md46de824f8be235c@...627...> Message-ID: <200803262048.39233.henrique.ulbrich@...626...> Historiadores acreditam que, em Quarta 26 Mar 2008, Daniel Campos disse: > That "Historiadores acreditam que" is really cool :-))) :) Thanks. I've been using it for more than twelve years now. -- Henrique Cesar Ulbrich henrique.ulbrich at ...626... From rterry at ...1822... Thu Mar 27 03:53:45 2008 From: rterry at ...1822... (richard terry) Date: Thu, 27 Mar 2008 13:53:45 +1100 Subject: [Gambas-user] Er... I can suddenly read my tabs in the IDE Message-ID: <200803271353.45677.rterry@...1822...> 2.99 build 1164. Did something change, or has my system suddenly decided to come good by itself? Gremlins or a code change? Whatever, whoever responsible (Benoit?) thanks heaps - first time ever I can read which form I'm operating on without using a magnifier. Regards Richard From jcvivian at ...626... Thu Mar 27 04:00:37 2008 From: jcvivian at ...626... (Julio Vivian) Date: Thu, 27 Mar 2008 00:00:37 -0300 Subject: [Gambas-user] problems with sdl programming in gambas 1 and 2 In-Reply-To: <200803261905.54333.gambas@...1...> References: <200803261347.06839.gambas@...1...> <200803261905.54333.gambas@...1...> Message-ID: It should be in /usr/share/gambas2/info, right? I believe thats the problem. There is no gb.sdl.info nor gb.sdl.listanywhere im my ubuntu nor in my deian. I' tryed to re-install gambas entirely and juste th gb.sdl deb package from the repos indicated in www.gambasforge.net but the problem persists. It would be a good idea to manualy place the files from another person in the info directory? Could you e-mail me the files? 2008/3/26, Benoit Minisini : > > On mercredi 26 mars 2008, Julio Vivian wrote: > > > Yes, I did it! > > I though u were suposing that could be some problem in the component. > > I began to consider that I was doing som mistake, and then I tryed > running > > the exemples distributed wiht Gambas 1 and 2 and keep returning ``Unkown > > identifier: Window at line...`` in all exemples > > > > > Then you have a problem with your gambas installation. The compiler raises > this error if it cannot find the information file for the gb.sdlcomponent. > Search on your system where the gb.sdl.info and the gb.sdl.list files are > installed. > > > -- > > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Thu Mar 27 04:27:37 2008 From: sbungay at ...981... (Stephen Bungay) Date: Wed, 26 Mar 2008 23:27:37 -0400 Subject: [Gambas-user] How to search for an item in a treeview In-Reply-To: <1f1e8c1b0803261110o53ed2e00rcd5ef5b9f86fb201@...627...> References: <1f1e8c1b0803261110o53ed2e00rcd5ef5b9f86fb201@...627...> Message-ID: <47EB1429.7060204@...981...> Ok try this. It is based on a save routine that I used in an edutainment application I developed about a year ago... I pulled my hair out trying to come up with a good recursive routine to do walk the tree, and failed miserably at it. This treeview did not lend itself well to a recursive walk through... but there is another SIMPLER way, Benoit pointed me in the right direction (Thanks Benoit), and now lets pay it forward. Create a test project with three controls on it. Don't rename the controls, just use the default names. The controls to put on FMAIN are a button, a treeview and a TextArea. Now copy and paste this code into FMain PUBLIC Y AS String PUBLIC SUB Form_Open() WITH TreeView1 .Add("A", "Item A") .Add("A1", "Item A1",, "A") .Add("B", "Item B") .Add("B1", "Item B1",, "B") .Add("B1.1", "Item B1.1",, "B1") .Add("C", "Item C") .Add("D", "Item D") .Add("D1", "Item D1",, "D") .Add("E", "Item E") END WITH END PUBLIC SUB Button1_Click() WalkTree(TreeView1) END PRIVATE SUB WalkTree(pTreeView AS TreeView) DIM sText AS String pTreeView.MoveFirst() REPEAT sText = sText & pTreeView.Item.Key & ", " & "'" & pTreeView.Item.Text & "'" & "\n" pTreeView.Item.Expanded = TRUE UNTIL pTreeView.MoveBelow() TextArea1.Text = sText END When you push the button it will iterate down through the tree and push the text of each node (and it's key) to a string, After the tree has been 'walked' the string will be dumped to the Text area. Use this to do a search on each ode as you come to it. Job done. Steve. M0E Lnx wrote: > I have a treeview populated with lots of entries... I'm trying to > provide a function that would search within the contents of that > treeview for a specific string. > Can anyone think of a way to do that? > > I've been trying the FIND method in the treeview, but it's quite > different from other find methods... > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jbskaggs at ...1871... Thu Mar 27 05:45:30 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 26 Mar 2008 21:45:30 -0700 (PDT) Subject: [Gambas-user] Gambas-user posting question:Ok to ask for beta tester? Message-ID: <16321431.post@...1379...> My gambas project is in a state it can be tested for very rough operations and to see if my installation package works. Is it appropriate to ask for testers here to see how this works on their linux's? Thanks JB SKaggs -- View this message in context: http://www.nabble.com/Gambas-user-posting-question%3AOk-to-ask-for-beta-tester--tp16321431p16321431.html Sent from the gambas-user mailing list archive at Nabble.com. From leemcpherson at ...626... Thu Mar 27 18:16:57 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Thu, 27 Mar 2008 13:16:57 -0400 Subject: [Gambas-user] Embedding VLC movie window immediately... without a 2 second pause In-Reply-To: <200803260134.44433.gambas@...1...> References: <47E98F7F.8060203@...626...> <200803260134.44433.gambas@...1...> Message-ID: <47EBD689.8070102@...626...> Benoit Minisini wrote: > Can you try to know where this time is lost exactly? Jjust add "DEBUG Timer" > lines everywhere for that. > > Regards, > > Haven't had a chance to try this to extensively, but I'm at a loss as to how to use the debugger. I get some messages which might be a time stamp in the IDE only when I use breakpoints... but doesn't that defeat the purpose of capturing the timing? From leemcpherson at ...626... Thu Mar 27 18:28:19 2008 From: leemcpherson at ...626... (Lee McPherson) Date: Thu, 27 Mar 2008 13:28:19 -0400 Subject: [Gambas-user] Embedding VLC movie window immediately... without a 2 second pause In-Reply-To: <200803260134.44433.gambas@...1...> References: <47E98F7F.8060203@...626...> <200803260134.44433.gambas@...1...> Message-ID: <47EBD933.5080501@...626...> Ok, well, I set a timer in the form and enabled it for 100ms right at the end of form_open. I then set a breakpoint at the first line of the timer control. So I have the Debug Timer results for open a VLC movie using the command line embedded within a GAMBAS form. Debug timer is a VERY useful tool! I found out I'm an idiot and didn't read the class I was using to get the movie player window's key. There was a 2 second delay built in if it couldn't find it immediately. I made it much smaller and now it takes only about 0.4 seconds for the VLC window to open and get embedded into the file. That is perfectly acceptable now... i'm probably limited by how quickly VLC runs now. Thanks so much to everyone on this list! -Lee From jbskaggs at ...1871... Thu Mar 27 18:54:10 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Thu, 27 Mar 2008 10:54:10 -0700 (PDT) Subject: [Gambas-user] I have an error [45] File or directory does not exist. Form1.?.0 Message-ID: <16329490.post@...1379...> I had a friend try and run my project and this is what he gets. How can I run this on my own system to find out what file is missing? My own compile works fine. A thought does the installation package add all the subdirectories and files of the project into the installation package or do I have to do that someotherway? JB SKaggs -- View this message in context: http://www.nabble.com/I-have-an-error--45--File-or-directory-does-not-exist.-Form1.-.0-tp16329490p16329490.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Thu Mar 27 19:58:39 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Thu, 27 Mar 2008 11:58:39 -0700 (PDT) Subject: [Gambas-user] I have an error [45] File or directory does not exist. Form1.?.0 In-Reply-To: <16329490.post@...1379...> References: <16329490.post@...1379...> Message-ID: <16331259.post@...1379...> Okay I got the installation to install on my system. Here is the problem: my program has the following directory structure: ../wwmkr ../wwmkr/themes with subdirectoies ../wwmkr/project with subdirectories when it installs it has this directory under the src tar. But it is never installed as the working directory for the program. How do I get the installation package maker to create this directory and file structure with my project? My program uses the application.path a lot, which does not exist as installation did not create the folders. Please help! JB SKaggs jbskaggs wrote: > > I had a friend try and run my project and this is what he gets. How can I > run this on my own system to find out what file is missing? > > My own compile works fine. > > A thought does the installation package add all the subdirectories and > files of the project into the installation package or do I have to do that > someotherway? > > JB SKaggs > -- View this message in context: http://www.nabble.com/I-have-an-error--45--File-or-directory-does-not-exist.-Form1.-.0-tp16329490p16331259.html Sent from the gambas-user mailing list archive at Nabble.com. From m0e.lnx at ...626... Thu Mar 27 20:53:09 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 27 Mar 2008 14:53:09 -0500 Subject: [Gambas-user] How to search for an item in a treeview In-Reply-To: <47EB1429.7060204@...981...> References: <1f1e8c1b0803261110o53ed2e00rcd5ef5b9f86fb201@...627...> <47EB1429.7060204@...981...> Message-ID: <1f1e8c1b0803271253n2745063fnea3e4779b89701bb@...627...> OK... I can see how that will find the hits... but I dont see how it will re-populate it using only the items that were found. I guess I must have misphrased that in the first place On 3/26/08, Stephen Bungay wrote: > Ok try this. It is based on a save routine that I used in an > edutainment application I developed about a year ago... I pulled my hair > out trying to come up with a good recursive routine to do walk the tree, > and failed miserably at it. This treeview did not lend itself well to a > recursive walk through... but there is another SIMPLER way, Benoit > pointed me in the right direction (Thanks Benoit), and now lets pay it > forward. > > Create a test project with three controls on it. Don't rename the > controls, just use the default names. The controls to put on FMAIN are a > button, a treeview and a TextArea. > Now copy and paste this code into FMain > > PUBLIC Y AS String > > PUBLIC SUB Form_Open() > > WITH TreeView1 > .Add("A", "Item A") > .Add("A1", "Item A1",, "A") > .Add("B", "Item B") > .Add("B1", "Item B1",, "B") > .Add("B1.1", "Item B1.1",, "B1") > .Add("C", "Item C") > .Add("D", "Item D") > .Add("D1", "Item D1",, "D") > .Add("E", "Item E") > END WITH > > END > > PUBLIC SUB Button1_Click() > WalkTree(TreeView1) > END > > > PRIVATE SUB WalkTree(pTreeView AS TreeView) > DIM sText AS String > > pTreeView.MoveFirst() > > REPEAT > sText = sText & pTreeView.Item.Key & ", " & "'" & > pTreeView.Item.Text & "'" & "\n" > pTreeView.Item.Expanded = TRUE > UNTIL pTreeView.MoveBelow() > > TextArea1.Text = sText > > END > > > When you push the button it will iterate down through the tree and > push the text of each node (and it's key) to a string, After the tree > has been 'walked' the string will be dumped to the Text area. > Use this to do a search on each ode as you come to it. > Job done. > > Steve. > > > M0E Lnx wrote: > > I have a treeview populated with lots of entries... I'm trying to > > provide a function that would search within the contents of that > > treeview for a specific string. > > Can anyone think of a way to do that? > > > > I've been trying the FIND method in the treeview, but it's quite > > different from other find methods... > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jbskaggs at ...1871... Thu Mar 27 21:06:46 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Thu, 27 Mar 2008 13:06:46 -0700 (PDT) Subject: [Gambas-user] I have an error [45] File or directory does not exist. Form1.?.0 Message-ID: <16331259.post@...1379...> Okay I got the installation to install on my system. Here is the problem: my program has the following directory structure: ../wwmkr ../wwmkr/themes with subdirectoies ../wwmkr/project with subdirectories when it installs it has this directory under the src tar. But it is never installed as the working directory for the program. How do I get the installation package maker to create this directory and file structure with my project? My program uses the application.path a lot, which does not exist as installation did not create the folders. So if I manually create the directory and manually start the project from that directory rather than the menu it works. Please help! JB SKaggs jbskaggs wrote: > > I had a friend try and run my project and this is what he gets. How can I > run this on my own system to find out what file is missing? > > My own compile works fine. > > A thought does the installation package add all the subdirectories and > files of the project into the installation package or do I have to do that > someotherway? > > JB SKaggs > -- View this message in context: http://www.nabble.com/I-have-an-error--45--File-or-directory-does-not-exist.-Form1.-.0-tp16329490p16331259.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Thu Mar 27 13:18:10 2008 From: rterry at ...1822... (richard terry) Date: Thu, 27 Mar 2008 23:18:10 +1100 Subject: [Gambas-user] Comment backgrounding in 2.99 (build 1164) Message-ID: <200803272318.10402.rterry@...1822...> Have used this for several hours tonight, and whilst at first sight it seemed apealing, I find it very distracting - one's eyes are drawn to the comments, and not to the code. Personally I'd make it a user-defined option if it has to be there. Regards Richard From rterry at ...1822... Thu Mar 27 13:22:44 2008 From: rterry at ...1822... (richard terry) Date: Thu, 27 Mar 2008 23:22:44 +1100 Subject: [Gambas-user] Comment on split editor 2.99 (build 1164) Message-ID: <200803272322.44510.rterry@...1822...> Again, used this build for a number of hours tonight, and found some occasions where having this fully functional (even in its limited form) would have been really useful, even in its limited form I found it a big improvement over a single pane. Being able to put one routine above, and another below, and cut./paste and shift code around is really good. At the moment however, the two panes are not independant. ie if you cut, paste or hit the enter key to create blank line, it shuffles the code in the top pane as well, which in a true split it shouldn't. IMHO this feature reall2 separate files in each pane. With all the other recent changes in the editor such as code folding, this would really speed up ones learning/developing. Regards Richard T From rterry at ...1822... Thu Mar 27 13:47:41 2008 From: rterry at ...1822... (richard terry) Date: Thu, 27 Mar 2008 23:47:41 +1100 Subject: [Gambas-user] IDE Replace Function - A thought for improvement. Message-ID: <200803272347.41790.rterry@...1822...> Had a situation tonight where I needed to do a fair bit of global replacing, but wanted a little control over it - rather than just zapping the whole file. Noticed there wasn't (or didn't seem to be an option to like Kate has where you can select to be prompted for each replace and then be able to skip over one if you don't want it replaced. Regards Richard From gambas at ...1... Thu Mar 27 23:45:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 27 Mar 2008 23:45:41 +0100 Subject: [Gambas-user] Comment on split editor 2.99 (build 1164) In-Reply-To: <200803272322.44510.rterry@...1822...> References: <200803272322.44510.rterry@...1822...> Message-ID: <200803272345.41139.gambas@...1...> On jeudi 27 mars 2008, richard terry wrote: > Again, used this build for a number of hours tonight, and found some > occasions where having this fully functional (even in its limited form) > would have been really useful, even in its limited form I found it a big > improvement over a single pane. > > Being able to put one routine above, and another below, and cut./paste and > shift code around is really good. > > At the moment however, the two panes are not independant. ie if you cut, > paste or hit the enter key to create blank line, it shuffles the code in > the top pane as well, which in a true split it shouldn't. > > IMHO this feature reall2 separate files in each pane. With all the other > recent changes in the editor such as code folding, this would really speed > up ones learning/developing. > > Regards > > Richard T > Please always use the latest trunk (svn update) as much as possible, otherwise your comments may become useless. For the panes, I can't do anything at the moment... The guy who wanted it this way certainly had a good reason. Personally, I have never used splitted panes at all. Regards, -- Benoit Minisini From gambas at ...1... Thu Mar 27 23:46:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 27 Mar 2008 23:46:31 +0100 Subject: [Gambas-user] IDE Replace Function - A thought for improvement. In-Reply-To: <200803272347.41790.rterry@...1822...> References: <200803272347.41790.rterry@...1822...> Message-ID: <200803272346.31656.gambas@...1...> On jeudi 27 mars 2008, richard terry wrote: > Had a situation tonight where I needed to do a fair bit of global > replacing, but wanted a little control over it - rather than just zapping > the whole file. > > Noticed there wasn't (or didn't seem to be an option to like Kate has where > you can select to be prompted for each replace and then be able to skip > over one if you don't want it replaced. > > Regards > > Richard > You must play with the "find next" button and "replace" button to choose what to replace exactly. -- Benoit Minisini From gambas at ...1... Thu Mar 27 23:50:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 27 Mar 2008 23:50:56 +0100 Subject: [Gambas-user] I have an error [45] File or directory does not exist. Form1.?.0 In-Reply-To: <16331259.post@...1379...> References: <16331259.post@...1379...> Message-ID: <200803272350.56459.gambas@...1...> On jeudi 27 mars 2008, jbskaggs wrote: > Okay I got the installation to install on my system. > > Here is the problem: > my program has the following directory structure: > > ../wwmkr > ../wwmkr/themes with subdirectoies > > ../wwmkr/project with subdirectories > > when it installs it has this directory under the src tar. > > But it is never installed as the working directory for the program. > > How do I get the installation package maker to create this directory and > file structure with my project? > > My program uses the application.path a lot, which does not exist as > installation did not create the folders. > > So if I manually create the directory and manually start the project from > that directory rather than the menu it works. > > Please help! > > JB SKaggs > I don't understand what you are talking about. Maybe you didn't know that files located inside your project directory are read-only? -- Benoit Minisini From jbskaggs at ...1871... Fri Mar 28 00:07:29 2008 From: jbskaggs at ...1871... (skaggs) Date: Thu, 27 Mar 2008 18:07:29 -0500 Subject: [Gambas-user] I have an error [45] File or directory does not exist. Form1.?.0 In-Reply-To: <200803272350.56459.gambas@...1...> References: <16331259.post@...1379...> <200803272350.56459.gambas@...1...> Message-ID: <1206659249.10897.8.camel@...1876...> NO I understand my project directory is read only. My program runs fine. If I make an ubuntu installation package. It installs my application and runtime libraries. But to run my application the end user right now has to manually install the wwmkr directory with all of its subdirectories and data files. Then the project executable wwmkr.gambas must be ran from inside of that directory. Thats becuase the program is using application.path/themes or application.path/project to find it's needed files. Of course I could rewrite the program to use user.path&/"wwmkr" but I would still need to know how to get the package maker to install the directory and data files. Or do I need to have that done as second step in the installation process. I am sorry if my explanation is confusing. JB SKaggs On Thu, 2008-03-27 at 23:50 +0100, Benoit Minisini wrote: > On jeudi 27 mars 2008, jbskaggs wrote: > > Okay I got the installation to install on my system. > > > > Here is the problem: > > my program has the following directory structure: > > > > ../wwmkr > > ../wwmkr/themes with subdirectoies > > > > ../wwmkr/project with subdirectories > > > > when it installs it has this directory under the src tar. > > > > But it is never installed as the working directory for the program. > > > > How do I get the installation package maker to create this directory and > > file structure with my project? > > > > My program uses the application.path a lot, which does not exist as > > installation did not create the folders. > > > > So if I manually create the directory and manually start the project from > > that directory rather than the menu it works. > > > > Please help! > > > > JB SKaggs > > > > I don't understand what you are talking about. > > Maybe you didn't know that files located inside your project directory are > read-only? > From gambas at ...1... Fri Mar 28 00:14:04 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Mar 2008 00:14:04 +0100 Subject: [Gambas-user] =?iso-8859-1?q?I_have_an_error_=5B45=5D_File_or_dir?= =?iso-8859-1?q?ectory_does_not=09exist=2E_Form1=2E=3F=2E0?= In-Reply-To: <1206659249.10897.8.camel@...1876...> References: <16331259.post@...1379...> <200803272350.56459.gambas@...1...> <1206659249.10897.8.camel@...1876...> Message-ID: <200803280014.04541.gambas@...1...> On vendredi 28 mars 2008, skaggs wrote: > NO I understand my project directory is read only. > > My program runs fine. > > If I make an ubuntu installation package. It installs my application > and runtime libraries. > > But to run my application the end user right now has to manually install > the wwmkr directory with all of its subdirectories and data files. Then > the project executable wwmkr.gambas must be ran from inside of that > directory. Thats becuase the program is using application.path/themes > or application.path/project to find it's needed files. Of course I could > rewrite the program to use user.path&/"wwmkr" but I would still need to > know how to get the package maker to install the directory and data > files. Or do I need to have that done as second step in the > installation process. > > I am sorry if my explanation is confusing. > > JB SKaggs > > On Thu, 2008-03-27 at 23:50 +0100, Benoit Minisini wrote: > > On jeudi 27 mars 2008, jbskaggs wrote: > > > Okay I got the installation to install on my system. > > > > > > Here is the problem: > > > my program has the following directory structure: > > > > > > ../wwmkr > > > ../wwmkr/themes with subdirectoies > > > > > > ../wwmkr/project with subdirectories > > > > > > when it installs it has this directory under the src tar. > > > > > > But it is never installed as the working directory for the program. > > > > > > How do I get the installation package maker to create this directory > > > and file structure with my project? > > > > > > My program uses the application.path a lot, which does not exist as > > > installation did not create the folders. > > > > > > So if I manually create the directory and manually start the project > > > from that directory rather than the menu it works. > > > > > > Please help! > > > > > > JB SKaggs If you want to access the files located in the project directory, you must use relative paths: "themes/xxx" for accessing a file named "xxx" in the themes directory, for example. You must not use Application.Path &/ "themes/xxx", as these files does not exist anymore once the executable is made. They are in the executable file. Regards, -- Benoit Minisini From sbungay at ...981... Fri Mar 28 00:19:14 2008 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 27 Mar 2008 19:19:14 -0400 Subject: [Gambas-user] How to search for an item in a treeview In-Reply-To: <1f1e8c1b0803271253n2745063fnea3e4779b89701bb@...627...> References: <1f1e8c1b0803261110o53ed2e00rcd5ef5b9f86fb201@...627...> <47EB1429.7060204@...981...> <1f1e8c1b0803271253n2745063fnea3e4779b89701bb@...627...> Message-ID: <47EC2B72.8030906@...981...> Yes, your original post did not ask for anything to be repopulated.. indeed, nothing has been removed from the treeview so you don;t have to repopulate it using this method. Could you be a little more clear on what it is you are trying to accomplish? We have the find done.. whats with the repopulate? M0E Lnx wrote: > OK... I can see how that will find the hits... but I dont see how it > will re-populate it using only the items that were found. > > I guess I must have misphrased that in the first place > > > On 3/26/08, Stephen Bungay wrote: >> Ok try this. It is based on a save routine that I used in an >> edutainment application I developed about a year ago... I pulled my hair >> out trying to come up with a good recursive routine to do walk the tree, >> and failed miserably at it. This treeview did not lend itself well to a >> recursive walk through... but there is another SIMPLER way, Benoit >> pointed me in the right direction (Thanks Benoit), and now lets pay it >> forward. >> >> Create a test project with three controls on it. Don't rename the >> controls, just use the default names. The controls to put on FMAIN are a >> button, a treeview and a TextArea. >> Now copy and paste this code into FMain >> >> PUBLIC Y AS String >> >> PUBLIC SUB Form_Open() >> >> WITH TreeView1 >> .Add("A", "Item A") >> .Add("A1", "Item A1",, "A") >> .Add("B", "Item B") >> .Add("B1", "Item B1",, "B") >> .Add("B1.1", "Item B1.1",, "B1") >> .Add("C", "Item C") >> .Add("D", "Item D") >> .Add("D1", "Item D1",, "D") >> .Add("E", "Item E") >> END WITH >> >> END >> >> PUBLIC SUB Button1_Click() >> WalkTree(TreeView1) >> END >> >> >> PRIVATE SUB WalkTree(pTreeView AS TreeView) >> DIM sText AS String >> >> pTreeView.MoveFirst() >> >> REPEAT >> sText = sText & pTreeView.Item.Key & ", " & "'" & >> pTreeView.Item.Text & "'" & "\n" >> pTreeView.Item.Expanded = TRUE >> UNTIL pTreeView.MoveBelow() >> >> TextArea1.Text = sText >> >> END >> >> >> When you push the button it will iterate down through the tree and >> push the text of each node (and it's key) to a string, After the tree >> has been 'walked' the string will be dumped to the Text area. >> Use this to do a search on each ode as you come to it. >> Job done. >> >> Steve. >> >> >> M0E Lnx wrote: >> > I have a treeview populated with lots of entries... I'm trying to >> > provide a function that would search within the contents of that >> > treeview for a specific string. >> > Can anyone think of a way to do that? >> > >> > I've been trying the FIND method in the treeview, but it's quite >> > different from other find methods... >> > >> >>> ------------------------------------------------------------------------- >> > Check out the new SourceForge.net Marketplace. >> > It's the best place to buy or sell services for >> > just about anything Open Source. >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jbskaggs at ...1871... Fri Mar 28 00:20:19 2008 From: jbskaggs at ...1871... (skaggs) Date: Thu, 27 Mar 2008 18:20:19 -0500 Subject: [Gambas-user] I have an error [45] File or directory does not exist. Form1.?.0 In-Reply-To: <200803280014.04541.gambas@...1...> References: <16331259.post@...1379...> <200803272350.56459.gambas@...1...> <1206659249.10897.8.camel@...1876...> <200803280014.04541.gambas@...1...> Message-ID: <1206660019.10897.15.camel@...1876...> We (or maybe I should) write a wiki entry on the installation package explaining this. If I could have located this information I would not have spent six hours trying to make it work. I knew the files would be read only- but I did not know they vanished into the executable! Some of us have never programmed in VB or for LInux before. I learned a gamemaker language GML and when you compiled it, it created an exe with all the library files built in and you only needed the data files to be in the same directory. SO my previous experience was confusing me. But you solved the problem again. JB SKaggs On Fri, 2008-03-28 at 00:14 +0100, Benoit Minisini wrote: > On vendredi 28 mars 2008, skaggs wrote: > > NO I understand my project directory is read only. > > > > My program runs fine. > > > > If I make an ubuntu installation package. It installs my application > > and runtime libraries. > > > > But to run my application the end user right now has to manually install > > the wwmkr directory with all of its subdirectories and data files. Then > > the project executable wwmkr.gambas must be ran from inside of that > > directory. Thats becuase the program is using application.path/themes > > or application.path/project to find it's needed files. Of course I could > > rewrite the program to use user.path&/"wwmkr" but I would still need to > > know how to get the package maker to install the directory and data > > files. Or do I need to have that done as second step in the > > installation process. > > > > I am sorry if my explanation is confusing. > > > > JB SKaggs > > > > On Thu, 2008-03-27 at 23:50 +0100, Benoit Minisini wrote: > > > On jeudi 27 mars 2008, jbskaggs wrote: > > > > Okay I got the installation to install on my system. > > > > > > > > Here is the problem: > > > > my program has the following directory structure: > > > > > > > > ../wwmkr > > > > ../wwmkr/themes with subdirectoies > > > > > > > > ../wwmkr/project with subdirectories > > > > > > > > when it installs it has this directory under the src tar. > > > > > > > > But it is never installed as the working directory for the program. > > > > > > > > How do I get the installation package maker to create this directory > > > > and file structure with my project? > > > > > > > > My program uses the application.path a lot, which does not exist as > > > > installation did not create the folders. > > > > > > > > So if I manually create the directory and manually start the project > > > > from that directory rather than the menu it works. > > > > > > > > Please help! > > > > > > > > JB SKaggs > > If you want to access the files located in the project directory, you must use > relative paths: "themes/xxx" for accessing a file named "xxx" in the themes > directory, for example. You must not use Application.Path &/ "themes/xxx", as > these files does not exist anymore once the executable is made. They are in > the executable file. > > Regards, > From gambas at ...1... Fri Mar 28 00:26:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Mar 2008 00:26:20 +0100 Subject: [Gambas-user] =?iso-8859-1?q?I_have_an_error_=5B45=5D_File_or_dir?= =?iso-8859-1?q?ectory_does=09not=09exist=2E_Form1=2E=3F=2E0?= In-Reply-To: <1206660019.10897.15.camel@...1876...> References: <16331259.post@...1379...> <200803280014.04541.gambas@...1...> <1206660019.10897.15.camel@...1876...> Message-ID: <200803280026.20240.gambas@...1...> On vendredi 28 mars 2008, skaggs wrote: > We (or maybe I should) write a wiki entry on the installation package > explaining this. If I could have located this information I would not > have spent six hours trying to make it work. > > I knew the files would be read only- but I did not know they vanished > into the executable! > > Some of us have never programmed in VB or for LInux before. I learned a > gamemaker language GML and when you compiled it, it created an exe with > all the library files built in and you only needed the data files to be > in the same directory. SO my previous experience was confusing me. > > But you solved the problem again. > JB SKaggs > I'm sorry for you. But maybe you should have read the tips of the days #6? -- Benoit Minisini From rterry at ...1822... Fri Mar 28 00:59:48 2008 From: rterry at ...1822... (richard terry) Date: Fri, 28 Mar 2008 10:59:48 +1100 Subject: [Gambas-user] always use the latest trunk (svn update) In-Reply-To: <200803272345.41139.gambas@...1...> References: <200803272322.44510.rterry@...1822...> <200803272345.41139.gambas@...1...> Message-ID: <200803281059.49223.rterry@...1822...> Benoit, Sorry, my bad numbering, it was 1264 I meant, (which yesterday was the latest build that I could see, today I'm using 1266. Am I downloading the wrong branch?, or somehow building it wrong? Regards Richard. On Fri, 28 Mar 2008 09:45:41 am Benoit Minisini wrote: > On jeudi 27 mars 2008, richard terry wrote: > > Again, used this build for a number of hours tonight, and found some > > occasions where having this fully functional (even in its limited form) > > would have been really useful, even in its limited form I found it a big > > improvement over a single pane. > > > > Being able to put one routine above, and another below, and cut./paste > > and shift code around is really good. > > > > At the moment however, the two panes are not independant. ie if you cut, > > paste or hit the enter key to create blank line, it shuffles the code in > > the top pane as well, which in a true split it shouldn't. > > > > IMHO this feature reall2 separate files in each pane. With all the other > > recent changes in the editor such as code folding, this would really > > speed up ones learning/developing. > > > > Regards > > > > Richard T > > Please always use the latest trunk (svn update) as much as possible, > otherwise your comments may become useless. > > For the panes, I can't do anything at the moment... The guy who wanted it > this way certainly had a good reason. Personally, I have never used > splitted panes at all. > > Regards, From robert.c.rowe at ...626... Fri Mar 28 02:42:19 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Thu, 27 Mar 2008 21:42:19 -0400 Subject: [Gambas-user] Comment on split editor 2.99 (build 1164) In-Reply-To: <200803272345.41139.gambas@...1...> References: <200803272322.44510.rterry@...1822...> <200803272345.41139.gambas@...1...> Message-ID: <47EC4CFB.5000309@...626...> Actually Richard is the one that requested it, I just implemented it. I believe that the misunderstanding was due to the word "split". I think that he is asking for "Tile Horizontal" and Tile Vertical". These are old MDI layout styles that were popular on Windows. Everything seems to be moving away from this layout style to the more modern Tab Strip layout (which is what Gambas uses, VB.Net does too). The confusion came from a VB feature. Each editor can be split horizontally in VB with both split editors sharing the same file. The gambas feature does this but it also has vertical splitting too. Unless I'm missing something, implementing "Tile Horizontal" and Tile Vertical" in the workspace component would be a big job. These do come in handy sometimes though. Robert Rowe Benoit Minisini wrote: > On jeudi 27 mars 2008, richard terry wrote: > >> Again, used this build for a number of hours tonight, and found some >> occasions where having this fully functional (even in its limited form) >> would have been really useful, even in its limited form I found it a big >> improvement over a single pane. >> >> Being able to put one routine above, and another below, and cut./paste and >> shift code around is really good. >> >> At the moment however, the two panes are not independant. ie if you cut, >> paste or hit the enter key to create blank line, it shuffles the code in >> the top pane as well, which in a true split it shouldn't. >> >> IMHO this feature reall2 separate files in each pane. With all the other >> recent changes in the editor such as code folding, this would really speed >> up ones learning/developing. >> >> Regards >> >> Richard T >> >> > > Please always use the latest trunk (svn update) as much as possible, otherwise > your comments may become useless. > > For the panes, I can't do anything at the moment... The guy who wanted it this > way certainly had a good reason. Personally, I have never used splitted panes > at all. > > Regards, > > From robert.c.rowe at ...626... Fri Mar 28 02:54:33 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Thu, 27 Mar 2008 21:54:33 -0400 Subject: [Gambas-user] IDE Replace Function - A thought for improvement. In-Reply-To: <200803272347.41790.rterry@...1822...> References: <200803272347.41790.rterry@...1822...> Message-ID: <47EC4FD9.4090200@...626...> The Gambas style of find/replace seems to be rather inspired by firefox. It is nice and unobtrusive. Most applications (kate, openoffice, etc) use a much more intrusive "on top" window. It can get in the way but it is easier to work with. A poster a while back showed a screenshot of a find/replace window like this that he made for Gambas. I asked him to share it with us but he never responded. It might be nice to have a window like this as an option. Robert Rowe richard terry wrote: > Had a situation tonight where I needed to do a fair bit of global replacing, > but wanted a little control over it - rather than just zapping the whole > file. > > Noticed there wasn't (or didn't seem to be an option to like Kate has where > you can select to be prompted for each replace and then be able to skip over > one if you don't want it replaced. > > Regards > > Richard > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From robert.c.rowe at ...626... Fri Mar 28 03:08:34 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Thu, 27 Mar 2008 22:08:34 -0400 Subject: [Gambas-user] Recent IDE changes Message-ID: <47EC5322.2090108@...626...> The recent IDE changes are marvelous. I especially like setting background colors. Thanks Benoit. Robert Rowe From rterry at ...1822... Fri Mar 28 03:18:03 2008 From: rterry at ...1822... (richard terry) Date: Fri, 28 Mar 2008 13:18:03 +1100 Subject: [Gambas-user] Comment on split editor 2.99 (build 1164) In-Reply-To: <47EC4CFB.5000309@...626...> References: <200803272322.44510.rterry@...1822...> <200803272345.41139.gambas@...1...> <47EC4CFB.5000309@...626...> Message-ID: <200803281318.03257.rterry@...1822...> On Fri, 28 Mar 2008 12:42:19 pm Robert Rowe wrote: I think it is a great feature - what's the point of having files on two different tabs when you want to be able to see both at the same time. - yet another example of making life harder I don't think the world is moving away from splits - take a look at any of the linux editor programs or file managers . The split feature (which Rob implemented) is very useful even in its embryonic form and in my opinion a necessary improvement. Regards Richard > Actually Richard is the one that requested it, I just implemented it. I > believe that the misunderstanding was due to the word "split". I think > that he is asking for "Tile Horizontal" and Tile Vertical". These are > old MDI layout styles that were popular on Windows. Everything seems to > be moving away from this layout style to the more modern Tab Strip > layout (which is what Gambas uses, VB.Net does too). The confusion came > from a VB feature. Each editor can be split horizontally in VB with both > split editors sharing the same file. The gambas feature does this but it > also has vertical splitting too. Unless I'm missing something, > implementing "Tile Horizontal" and Tile Vertical" in the workspace > component would be a big job. These do come in handy sometimes though. > > Robert Rowe > > Benoit Minisini wrote: > > On jeudi 27 mars 2008, richard terry wrote: > >> Again, used this build for a number of hours tonight, and found some > >> occasions where having this fully functional (even in its limited form) > >> would have been really useful, even in its limited form I found it a big > >> improvement over a single pane. > >> > >> Being able to put one routine above, and another below, and cut./paste > >> and shift code around is really good. > >> > >> At the moment however, the two panes are not independant. ie if you cut, > >> paste or hit the enter key to create blank line, it shuffles the code in > >> the top pane as well, which in a true split it shouldn't. > >> > >> IMHO this feature reall2 separate files in each pane. With all the other > >> recent changes in the editor such as code folding, this would really > >> speed up ones learning/developing. > >> > >> Regards > >> > >> Richard T > > > > Please always use the latest trunk (svn update) as much as possible, > > otherwise your comments may become useless. > > > > For the panes, I can't do anything at the moment... The guy who wanted it > > this way certainly had a good reason. Personally, I have never used > > splitted panes at all. > > > > Regards, > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Mar 28 08:04:08 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Mar 2008 08:04:08 +0100 Subject: [Gambas-user] Comment on split editor 2.99 (build 1164) In-Reply-To: <200803281318.03257.rterry@...1822...> References: <200803272322.44510.rterry@...1822...> <47EC4CFB.5000309@...626...> <200803281318.03257.rterry@...1822...> Message-ID: <200803280804.08571.gambas@...1...> On vendredi 28 mars 2008, richard terry wrote: > On Fri, 28 Mar 2008 12:42:19 pm Robert Rowe wrote: > I think it is a great feature - what's the point of having files on two > different tabs when you want to be able to see both at the same time. - yet > another example of making life harder > > I don't think the world is moving away from splits - take a look at any of > the linux editor programs or file managers . > > The split feature (which Rob implemented) is very useful even in its > embryonic form and in my opinion a necessary improvement. > > Regards > > Richard > If we add a button for just putting a read-only copy of the current editor to the right of the workspace, would it be enough? This way is fast to implement, and I don't have to enhance the gb.form.mdi component! -- Benoit Minisini From m0e.lnx at ...626... Fri Mar 28 12:52:07 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 28 Mar 2008 06:52:07 -0500 Subject: [Gambas-user] How to search for an item in a treeview In-Reply-To: <47EC2B72.8030906@...981...> References: <1f1e8c1b0803261110o53ed2e00rcd5ef5b9f86fb201@...627...> <47EB1429.7060204@...981...> <1f1e8c1b0803271253n2745063fnea3e4779b89701bb@...627...> <47EC2B72.8030906@...981...> Message-ID: <1f1e8c1b0803280452l7489f8a7y77718ad7129b0468@...627...> Sorry for not being too specifc. I'm trying to allow the user to search for specific items (initially listed in the treeview) so First, I want to populate the treeview with a massive collection (already done) Need to offer a search feature (this needs to find stuff in the treeview (you already did)) Need to display ONLY the results of the search in the treeview. There will be a button that the user can hit to restore the treeview to the original content (full list) On 3/27/08, Stephen Bungay wrote: > Yes, your original post did not ask for anything to be repopulated.. > indeed, nothing has been removed from the treeview so you don;t have to > repopulate it using this method. > Could you be a little more clear on what it is you are trying to > accomplish? We have the find done.. whats with the repopulate? > > > M0E Lnx wrote: > > OK... I can see how that will find the hits... but I dont see how it > > will re-populate it using only the items that were found. > > > > I guess I must have misphrased that in the first place > > > > > > On 3/26/08, Stephen Bungay wrote: > >> Ok try this. It is based on a save routine that I used in an > >> edutainment application I developed about a year ago... I pulled my hair > >> out trying to come up with a good recursive routine to do walk the tree, > >> and failed miserably at it. This treeview did not lend itself well to a > >> recursive walk through... but there is another SIMPLER way, Benoit > >> pointed me in the right direction (Thanks Benoit), and now lets pay it > >> forward. > >> > >> Create a test project with three controls on it. Don't rename the > >> controls, just use the default names. The controls to put on FMAIN are a > >> button, a treeview and a TextArea. > >> Now copy and paste this code into FMain > >> > >> PUBLIC Y AS String > >> > >> PUBLIC SUB Form_Open() > >> > >> WITH TreeView1 > >> .Add("A", "Item A") > >> .Add("A1", "Item A1",, "A") > >> .Add("B", "Item B") > >> .Add("B1", "Item B1",, "B") > >> .Add("B1.1", "Item B1.1",, "B1") > >> .Add("C", "Item C") > >> .Add("D", "Item D") > >> .Add("D1", "Item D1",, "D") > >> .Add("E", "Item E") > >> END WITH > >> > >> END > >> > >> PUBLIC SUB Button1_Click() > >> WalkTree(TreeView1) > >> END > >> > >> > >> PRIVATE SUB WalkTree(pTreeView AS TreeView) > >> DIM sText AS String > >> > >> pTreeView.MoveFirst() > >> > >> REPEAT > >> sText = sText & pTreeView.Item.Key & ", " & "'" & > >> pTreeView.Item.Text & "'" & "\n" > >> pTreeView.Item.Expanded = TRUE > >> UNTIL pTreeView.MoveBelow() > >> > >> TextArea1.Text = sText > >> > >> END > >> > >> > >> When you push the button it will iterate down through the tree and > >> push the text of each node (and it's key) to a string, After the tree > >> has been 'walked' the string will be dumped to the Text area. > >> Use this to do a search on each ode as you come to it. > >> Job done. > >> > >> Steve. > >> > >> > >> M0E Lnx wrote: > >> > I have a treeview populated with lots of entries... I'm trying to > >> > provide a function that would search within the contents of that > >> > treeview for a specific string. > >> > Can anyone think of a way to do that? > >> > > >> > I've been trying the FIND method in the treeview, but it's quite > >> > different from other find methods... > >> > > >> > >>> ------------------------------------------------------------------------- > >> > Check out the new SourceForge.net Marketplace. > >> > It's the best place to buy or sell services for > >> > just about anything Open Source. > >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > >> > >> ------------------------------------------------------------------------- > >> Check out the new SourceForge.net Marketplace. > >> It's the best place to buy or sell services for > >> just about anything Open Source. > >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From robert.c.rowe at ...626... Fri Mar 28 13:41:29 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Fri, 28 Mar 2008 08:41:29 -0400 Subject: [Gambas-user] How to search for an item in a treeview In-Reply-To: <1f1e8c1b0803280452l7489f8a7y77718ad7129b0468@...627...> References: <1f1e8c1b0803261110o53ed2e00rcd5ef5b9f86fb201@...627...> <47EB1429.7060204@...981...> <1f1e8c1b0803271253n2745063fnea3e4779b89701bb@...627...> <47EC2B72.8030906@...981...> <1f1e8c1b0803280452l7489f8a7y77718ad7129b0468@...627...> Message-ID: <47ECE779.4040809@...626...> Why don't you add a second treeview that is initially hidden. As you find your results add them to the hidden treeview. When the search completes, show the hidden treeview and hide the original one. Robert Rowe M0E Lnx wrote: > Sorry for not being too specifc. > > I'm trying to allow the user to search for specific items (initially > listed in the treeview) > > so First, I want to populate the treeview with a massive collection > (already done) > Need to offer a search feature (this needs to find stuff in the > treeview (you already did)) > Need to display ONLY the results of the search in the treeview. > > There will be a button that the user can hit to restore the treeview > to the original content (full list) > > > > On 3/27/08, Stephen Bungay wrote: > >> Yes, your original post did not ask for anything to be repopulated.. >> indeed, nothing has been removed from the treeview so you don;t have to >> repopulate it using this method. >> Could you be a little more clear on what it is you are trying to >> accomplish? We have the find done.. whats with the repopulate? >> >> >> M0E Lnx wrote: >> > OK... I can see how that will find the hits... but I dont see how it >> > will re-populate it using only the items that were found. >> > >> > I guess I must have misphrased that in the first place >> > >> > >> > On 3/26/08, Stephen Bungay wrote: >> >> Ok try this. It is based on a save routine that I used in an >> >> edutainment application I developed about a year ago... I pulled my hair >> >> out trying to come up with a good recursive routine to do walk the tree, >> >> and failed miserably at it. This treeview did not lend itself well to a >> >> recursive walk through... but there is another SIMPLER way, Benoit >> >> pointed me in the right direction (Thanks Benoit), and now lets pay it >> >> forward. >> >> >> >> Create a test project with three controls on it. Don't rename the >> >> controls, just use the default names. The controls to put on FMAIN are a >> >> button, a treeview and a TextArea. >> >> Now copy and paste this code into FMain >> >> >> >> PUBLIC Y AS String >> >> >> >> PUBLIC SUB Form_Open() >> >> >> >> WITH TreeView1 >> >> .Add("A", "Item A") >> >> .Add("A1", "Item A1",, "A") >> >> .Add("B", "Item B") >> >> .Add("B1", "Item B1",, "B") >> >> .Add("B1.1", "Item B1.1",, "B1") >> >> .Add("C", "Item C") >> >> .Add("D", "Item D") >> >> .Add("D1", "Item D1",, "D") >> >> .Add("E", "Item E") >> >> END WITH >> >> >> >> END >> >> >> >> PUBLIC SUB Button1_Click() >> >> WalkTree(TreeView1) >> >> END >> >> >> >> >> >> PRIVATE SUB WalkTree(pTreeView AS TreeView) >> >> DIM sText AS String >> >> >> >> pTreeView.MoveFirst() >> >> >> >> REPEAT >> >> sText = sText & pTreeView.Item.Key & ", " & "'" & >> >> pTreeView.Item.Text & "'" & "\n" >> >> pTreeView.Item.Expanded = TRUE >> >> UNTIL pTreeView.MoveBelow() >> >> >> >> TextArea1.Text = sText >> >> >> >> END >> >> >> >> >> >> When you push the button it will iterate down through the tree and >> >> push the text of each node (and it's key) to a string, After the tree >> >> has been 'walked' the string will be dumped to the Text area. >> >> Use this to do a search on each ode as you come to it. >> >> Job done. >> >> >> >> Steve. >> >> >> >> >> >> M0E Lnx wrote: >> >> > I have a treeview populated with lots of entries... I'm trying to >> >> > provide a function that would search within the contents of that >> >> > treeview for a specific string. >> >> > Can anyone think of a way to do that? >> >> > >> >> > I've been trying the FIND method in the treeview, but it's quite >> >> > different from other find methods... >> >> > >> >> >> >>> ------------------------------------------------------------------------- >> >> > Check out the new SourceForge.net Marketplace. >> >> > It's the best place to buy or sell services for >> >> > just about anything Open Source. >> >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > >> >> >> >> >> >> ------------------------------------------------------------------------- >> >> Check out the new SourceForge.net Marketplace. >> >> It's the best place to buy or sell services for >> >> just about anything Open Source. >> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> > ------------------------------------------------------------------------- >> > Check out the new SourceForge.net Marketplace. >> > It's the best place to buy or sell services for >> > just about anything Open Source. >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From sbungay at ...981... Fri Mar 28 13:36:03 2008 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 28 Mar 2008 08:36:03 -0400 Subject: [Gambas-user] Problem with GAMBAS 3.0. Message-ID: <47ECE633.3030800@...981...> I have found an inconsistency which might need looking into. Now the hard part, describing the possible problem.... here goes. FMain is a form that has a TABStrip container on it with nothing initially inside. Form1 and Form2 are the forms that will be hosted in the tabstrip. To do this the Form_Open of FMain looks like this... Dim hForm1 As Form1 Dim hForm2 As Form2 TabStrip1.Index = 0 hForm1 = New Form1(TabStrip1) As "X" TabStrip1.Index = 1 hForm2 = New Form2(TabStrip1) As "Y" And this works, Form1 and Form2 are instantiated in the TabStrip container, BUT, the Form_Open event for Form1 and Form2 do not fire. I set a breakpoint on the first executable line of code the Form_Open event in Form1 and ran the program, it fails to halt execution at the set breakpoint. This code works perfectly well in earlier versions. I don't recall the build number, sorry, I fetched the from the SVN on March 27th 2008 @ 21:00 hrs Eastern Standard Time, so that should give an approximate idea to Benoit of what build it is. Steve. From sbungay at ...981... Fri Mar 28 14:02:20 2008 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 28 Mar 2008 09:02:20 -0400 Subject: [Gambas-user] Comment on split editor 2.99 (build 1164) In-Reply-To: <200803280804.08571.gambas@...1...> References: <200803272322.44510.rterry@...1822...> <47EC4CFB.5000309@...626...> <200803281318.03257.rterry@...1822...> <200803280804.08571.gambas@...1...> Message-ID: <47ECEC5C.5040609@...981...> Benoit Minisini wrote: > On vendredi 28 mars 2008, richard terry wrote: >> On Fri, 28 Mar 2008 12:42:19 pm Robert Rowe wrote: >> I think it is a great feature - what's the point of having files on two >> different tabs when you want to be able to see both at the same time. - yet >> another example of making life harder >> >> I don't think the world is moving away from splits - take a look at any of >> the linux editor programs or file managers . >> >> The split feature (which Rob implemented) is very useful even in its >> embryonic form and in my opinion a necessary improvement. >> >> Regards >> >> Richard >> > If we add a button for just putting a read-only copy of the current editor to > the right of the workspace, would it be enough? > > This way is fast to implement, and I don't have to enhance the gb.form.mdi > component! > Tabs and splits are different, they ultimately don't serve the same purpose. Take Konqueror for example, I can split and sub-divide a konqueror window many times in both the horizontal and vertical.. have a large frame on one side and two smaller frames stacked on the other THEN I can add a new tab. The split editor will be very handy when walking through code, having one sub or function on one side with the calling sub or function on the other so you're not constantly scrolling back to the calling routine. I like it. Excellent work on the folding procedures too BTW. One small suggestion for useablity improvement. When a Gambas application halts with an error and displays a dialogue box to the programmer, it presents only one button "OK". Pressing this the program suspends, which is a quite often (for me anyway) a fairly useless thing for it to do because the programmer can't edit the code to fix the problem. How about replacing the "OK" button with "Suspend" and "Halt" buttons? Why two? Because I realize that there are times when a 'suspend' is desirable, to test values in variables and the like, and there are times when a 'halt' is required to fix the code. Until we can edit code on the fly when the application is suspended (ala VB) we need to halt execution. Having the choice presented to the programmer upon encountering a problem reduces the amount of mousing around, creates one point at which the decision is made and one action to implement it. From m0e.lnx at ...626... Fri Mar 28 14:23:06 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 28 Mar 2008 08:23:06 -0500 Subject: [Gambas-user] How to search for an item in a treeview In-Reply-To: <47ECE779.4040809@...626...> References: <1f1e8c1b0803261110o53ed2e00rcd5ef5b9f86fb201@...627...> <47EB1429.7060204@...981...> <1f1e8c1b0803271253n2745063fnea3e4779b89701bb@...627...> <47EC2B72.8030906@...981...> <1f1e8c1b0803280452l7489f8a7y77718ad7129b0468@...627...> <47ECE779.4040809@...626...> Message-ID: <1f1e8c1b0803280623kcf7be2av90e09d4a860cbbe4@...627...> mmm.. I'm not sure what's what I want to do.. I've done this before using a listview.. but the listview component I can understand more easily the problem is that it doesn't offer collapsable parent entries. that's why I'd rather wipe out the treeview, and repopulate it. On 3/28/08, Robert Rowe wrote: > Why don't you add a second treeview that is initially hidden. As you > find your results add them to the hidden treeview. When the search > completes, show the hidden treeview and hide the original one. > > > Robert Rowe > > > M0E Lnx wrote: > > Sorry for not being too specifc. > > > > I'm trying to allow the user to search for specific items (initially > > listed in the treeview) > > > > so First, I want to populate the treeview with a massive collection > > (already done) > > Need to offer a search feature (this needs to find stuff in the > > treeview (you already did)) > > Need to display ONLY the results of the search in the treeview. > > > > There will be a button that the user can hit to restore the treeview > > to the original content (full list) > > > > > > > > On 3/27/08, Stephen Bungay wrote: > > > >> Yes, your original post did not ask for anything to be repopulated.. > >> indeed, nothing has been removed from the treeview so you don;t have to > >> repopulate it using this method. > >> Could you be a little more clear on what it is you are trying to > >> accomplish? We have the find done.. whats with the repopulate? > >> > >> > >> M0E Lnx wrote: > >> > OK... I can see how that will find the hits... but I dont see how it > >> > will re-populate it using only the items that were found. > >> > > >> > I guess I must have misphrased that in the first place > >> > > >> > > >> > On 3/26/08, Stephen Bungay wrote: > >> >> Ok try this. It is based on a save routine that I used in an > >> >> edutainment application I developed about a year ago... I pulled my hair > >> >> out trying to come up with a good recursive routine to do walk the tree, > >> >> and failed miserably at it. This treeview did not lend itself well to a > >> >> recursive walk through... but there is another SIMPLER way, Benoit > >> >> pointed me in the right direction (Thanks Benoit), and now lets pay it > >> >> forward. > >> >> > >> >> Create a test project with three controls on it. Don't rename the > >> >> controls, just use the default names. The controls to put on FMAIN are a > >> >> button, a treeview and a TextArea. > >> >> Now copy and paste this code into FMain > >> >> > >> >> PUBLIC Y AS String > >> >> > >> >> PUBLIC SUB Form_Open() > >> >> > >> >> WITH TreeView1 > >> >> .Add("A", "Item A") > >> >> .Add("A1", "Item A1",, "A") > >> >> .Add("B", "Item B") > >> >> .Add("B1", "Item B1",, "B") > >> >> .Add("B1.1", "Item B1.1",, "B1") > >> >> .Add("C", "Item C") > >> >> .Add("D", "Item D") > >> >> .Add("D1", "Item D1",, "D") > >> >> .Add("E", "Item E") > >> >> END WITH > >> >> > >> >> END > >> >> > >> >> PUBLIC SUB Button1_Click() > >> >> WalkTree(TreeView1) > >> >> END > >> >> > >> >> > >> >> PRIVATE SUB WalkTree(pTreeView AS TreeView) > >> >> DIM sText AS String > >> >> > >> >> pTreeView.MoveFirst() > >> >> > >> >> REPEAT > >> >> sText = sText & pTreeView.Item.Key & ", " & "'" & > >> >> pTreeView.Item.Text & "'" & "\n" > >> >> pTreeView.Item.Expanded = TRUE > >> >> UNTIL pTreeView.MoveBelow() > >> >> > >> >> TextArea1.Text = sText > >> >> > >> >> END > >> >> > >> >> > >> >> When you push the button it will iterate down through the tree and > >> >> push the text of each node (and it's key) to a string, After the tree > >> >> has been 'walked' the string will be dumped to the Text area. > >> >> Use this to do a search on each ode as you come to it. > >> >> Job done. > >> >> > >> >> Steve. > >> >> > >> >> > >> >> M0E Lnx wrote: > >> >> > I have a treeview populated with lots of entries... I'm trying to > >> >> > provide a function that would search within the contents of that > >> >> > treeview for a specific string. > >> >> > Can anyone think of a way to do that? > >> >> > > >> >> > I've been trying the FIND method in the treeview, but it's quite > >> >> > different from other find methods... > >> >> > > >> >> > >> >>> ------------------------------------------------------------------------- > >> >> > Check out the new SourceForge.net Marketplace. > >> >> > It's the best place to buy or sell services for > >> >> > just about anything Open Source. > >> >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > >> >> > _______________________________________________ > >> >> > Gambas-user mailing list > >> >> > Gambas-user at lists.sourceforge.net > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > > >> >> > >> >> > >> >> ------------------------------------------------------------------------- > >> >> Check out the new SourceForge.net Marketplace. > >> >> It's the best place to buy or sell services for > >> >> just about anything Open Source. > >> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> > > >> > ------------------------------------------------------------------------- > >> > Check out the new SourceForge.net Marketplace. > >> > It's the best place to buy or sell services for > >> > just about anything Open Source. > >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > >> > >> ------------------------------------------------------------------------- > >> Check out the new SourceForge.net Marketplace. > >> It's the best place to buy or sell services for > >> just about anything Open Source. > >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Mar 28 16:06:19 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Mar 2008 16:06:19 +0100 Subject: [Gambas-user] 2 easy questions In-Reply-To: <16307116.post@...1379...> References: <16290836.post@...1379...> <200803260243.31523.gambas@...1...> <16307116.post@...1379...> Message-ID: <200803281606.19862.gambas@...1...> On mercredi 26 mars 2008, jbskaggs wrote: > I emailed you the link to the to my project did you get it? > > JB SKaggs > I got it. You didn't see the file part of the DirChooser because you didn't ask for it by setting the "ShowFile" and/or the "ShowFilter" property. There is a bug in gb.gtk because when there is no the file part, you should not see a splitter with the right part void. Regards, -- Benoit Minisini From m0e.lnx at ...626... Fri Mar 28 18:20:36 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 28 Mar 2008 12:20:36 -0500 Subject: [Gambas-user] How to search for an item in a treeview In-Reply-To: <1f1e8c1b0803280623kcf7be2av90e09d4a860cbbe4@...627...> References: <1f1e8c1b0803261110o53ed2e00rcd5ef5b9f86fb201@...627...> <47EB1429.7060204@...981...> <1f1e8c1b0803271253n2745063fnea3e4779b89701bb@...627...> <47EC2B72.8030906@...981...> <1f1e8c1b0803280452l7489f8a7y77718ad7129b0468@...627...> <47ECE779.4040809@...626...> <1f1e8c1b0803280623kcf7be2av90e09d4a860cbbe4@...627...> Message-ID: <1f1e8c1b0803281020k14fbc85ie1aeb5b646c88b3@...627...> I have managed to get the results from the search within the array I did this by adding a line of code that stores each entry as it is thrown into the treeview for the first time I can retreive results by doing something like this PUBLIC SUB RUN_SEARCH(sQuery as string) DIM sListarr as string[] DIM i as Integer DIM sItem as string DIM sResults as string sListarr = SPLIT(sRawList, "@") ' sRawList is the massive string that contains the treeview's entries separated by a "@" FOR i = 0 to sListArr.Count - 1 sItem = sListarr[i] IF Instr(sItem, sQuery, 1, gb.case) > 0 then sResults = sResults & sItem & gb.newline ' will separate these by new lines END IF NEXT END This produces a string variable filled with hits from the search. These hits are formatted like this ! ! That is how they get added to the massive list in the first place So now, out of that list, I need to create entries on the treeview And of course this is where I'm running into trouble A hit can be found on more than one parent in which case, I need to add each parent (without double entries) and populate each parent with whatever is after the "!" Please help :( On Fri, Mar 28, 2008 at 8:23 AM, M0E Lnx wrote: > mmm.. I'm not sure what's what I want to do.. > > I've done this before using a listview.. but the listview component I > can understand more easily the problem is that it doesn't offer > collapsable parent entries. > > that's why I'd rather wipe out the treeview, and repopulate it. > > > > > On 3/28/08, Robert Rowe wrote: > > Why don't you add a second treeview that is initially hidden. As you > > find your results add them to the hidden treeview. When the search > > completes, show the hidden treeview and hide the original one. > > > > > > Robert Rowe > > > > > > M0E Lnx wrote: > > > Sorry for not being too specifc. > > > > > > I'm trying to allow the user to search for specific items (initially > > > listed in the treeview) > > > > > > so First, I want to populate the treeview with a massive collection > > > (already done) > > > Need to offer a search feature (this needs to find stuff in the > > > treeview (you already did)) > > > Need to display ONLY the results of the search in the treeview. > > > > > > There will be a button that the user can hit to restore the treeview > > > to the original content (full list) > > > > > > > > > > > > On 3/27/08, Stephen Bungay wrote: > > > > > >> Yes, your original post did not ask for anything to be repopulated.. > > >> indeed, nothing has been removed from the treeview so you don;t have to > > >> repopulate it using this method. > > >> Could you be a little more clear on what it is you are trying to > > >> accomplish? We have the find done.. whats with the repopulate? > > >> > > >> > > >> M0E Lnx wrote: > > >> > OK... I can see how that will find the hits... but I dont see how it > > >> > will re-populate it using only the items that were found. > > >> > > > >> > I guess I must have misphrased that in the first place > > >> > > > >> > > > >> > On 3/26/08, Stephen Bungay wrote: > > >> >> Ok try this. It is based on a save routine that I used in an > > >> >> edutainment application I developed about a year ago... I pulled my hair > > >> >> out trying to come up with a good recursive routine to do walk the tree, > > >> >> and failed miserably at it. This treeview did not lend itself well to a > > >> >> recursive walk through... but there is another SIMPLER way, Benoit > > >> >> pointed me in the right direction (Thanks Benoit), and now lets pay it > > >> >> forward. > > >> >> > > >> >> Create a test project with three controls on it. Don't rename the > > >> >> controls, just use the default names. The controls to put on FMAIN are a > > >> >> button, a treeview and a TextArea. > > >> >> Now copy and paste this code into FMain > > >> >> > > >> >> PUBLIC Y AS String > > >> >> > > >> >> PUBLIC SUB Form_Open() > > >> >> > > >> >> WITH TreeView1 > > >> >> .Add("A", "Item A") > > >> >> .Add("A1", "Item A1",, "A") > > >> >> .Add("B", "Item B") > > >> >> .Add("B1", "Item B1",, "B") > > >> >> .Add("B1.1", "Item B1.1",, "B1") > > >> >> .Add("C", "Item C") > > >> >> .Add("D", "Item D") > > >> >> .Add("D1", "Item D1",, "D") > > >> >> .Add("E", "Item E") > > >> >> END WITH > > >> >> > > >> >> END > > >> >> > > >> >> PUBLIC SUB Button1_Click() > > >> >> WalkTree(TreeView1) > > >> >> END > > >> >> > > >> >> > > >> >> PRIVATE SUB WalkTree(pTreeView AS TreeView) > > >> >> DIM sText AS String > > >> >> > > >> >> pTreeView.MoveFirst() > > >> >> > > >> >> REPEAT > > >> >> sText = sText & pTreeView.Item.Key & ", " & "'" & > > >> >> pTreeView.Item.Text & "'" & "\n" > > >> >> pTreeView.Item.Expanded = TRUE > > >> >> UNTIL pTreeView.MoveBelow() > > >> >> > > >> >> TextArea1.Text = sText > > >> >> > > >> >> END > > >> >> > > >> >> > > >> >> When you push the button it will iterate down through the tree and > > >> >> push the text of each node (and it's key) to a string, After the tree > > >> >> has been 'walked' the string will be dumped to the Text area. > > >> >> Use this to do a search on each ode as you come to it. > > >> >> Job done. > > >> >> > > >> >> Steve. > > >> >> > > >> >> > > >> >> M0E Lnx wrote: > > >> >> > I have a treeview populated with lots of entries... I'm trying to > > >> >> > provide a function that would search within the contents of that > > >> >> > treeview for a specific string. > > >> >> > Can anyone think of a way to do that? > > >> >> > > > >> >> > I've been trying the FIND method in the treeview, but it's quite > > >> >> > different from other find methods... > > >> >> > > > >> >> > > >> >>> ------------------------------------------------------------------------- > > >> >> > Check out the new SourceForge.net Marketplace. > > >> >> > It's the best place to buy or sell services for > > >> >> > just about anything Open Source. > > >> >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > >> >> > _______________________________________________ > > >> >> > Gambas-user mailing list > > >> >> > Gambas-user at lists.sourceforge.net > > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> > > > >> >> > > >> >> > > >> >> ------------------------------------------------------------------------- > > >> >> Check out the new SourceForge.net Marketplace. > > >> >> It's the best place to buy or sell services for > > >> >> just about anything Open Source. > > >> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > >> >> _______________________________________________ > > >> >> Gambas-user mailing list > > >> >> Gambas-user at lists.sourceforge.net > > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> > > >> > > > >> > ------------------------------------------------------------------------- > > >> > Check out the new SourceForge.net Marketplace. > > >> > It's the best place to buy or sell services for > > >> > just about anything Open Source. > > >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > >> > _______________________________________________ > > >> > Gambas-user mailing list > > >> > Gambas-user at lists.sourceforge.net > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > >> > > >> > > >> ------------------------------------------------------------------------- > > >> Check out the new SourceForge.net Marketplace. > > >> It's the best place to buy or sell services for > > >> just about anything Open Source. > > >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > >> > > > > > > ------------------------------------------------------------------------- > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From pinozollo at ...626... Fri Mar 28 19:04:02 2008 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 28 Mar 2008 14:04:02 -0400 Subject: [Gambas-user] Crssed interexchange between forms Message-ID: <200803281404.04770.pinozollo@...626...> I am developing a program in GAMBAS2 2.0 How can I pass information between one form and another ? In my program there are 3 forms....FMain, FrmCW e FCluster. From maximvonk at ...626... Fri Mar 28 20:02:30 2008 From: maximvonk at ...626... (MaxVK) Date: Fri, 28 Mar 2008 12:02:30 -0700 (PDT) Subject: [Gambas-user] Textedit and Spell checking Message-ID: <16359797.post@...1379...> Hi there. I'm going in circles trying to do this and Id appreciate any advice. I'm using the Textedit control and I need to spell check whatever is being typed. I managed to write some code for this myself, but its *very* slow, and only gets slower as words are added to the dictionary. In other words its useless. My next attempt was to plug in the Gtk2::Spell Perl module, and although I got some advice about how to do it, I cant seem to get any further, mainly because I cant find any documentation for the Spell module itself, and also because I know absolutely no Perl at all. Can anyone steer me in the right direction please? I'm at a point now where its "No spell checker means no Program" and Id hate to just drop it here and a spell checker is a worth item of code to have. Regards Max -- View this message in context: http://www.nabble.com/Textedit-and-Spell-checking-tp16359797p16359797.html Sent from the gambas-user mailing list archive at Nabble.com. From sourceforge-raindog2 at ...94... Fri Mar 28 21:04:10 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 28 Mar 2008 16:04:10 -0400 Subject: [Gambas-user] Crssed interexchange between forms In-Reply-To: <200803281404.04770.pinozollo@...626...> References: <200803281404.04770.pinozollo@...626...> Message-ID: <200803281604.10353.sourceforge-raindog2@...94...> On Friday 28 March 2008 14:04, Pino Zollo wrote: > IF cw_on THEN FrmCW.CWCall.text = Call.Text > Simply does nothing...nither gives error. If it gives no error and does nothing at all, I would guess cw_on evaluates to False. Regardless, you should ensure that "Form controls are public" is checked in the project properties dialog. Rob From sourceforge-raindog2 at ...94... Fri Mar 28 21:37:45 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 28 Mar 2008 16:37:45 -0400 Subject: [Gambas-user] Textedit and Spell checking In-Reply-To: <16359797.post@...1379...> References: <16359797.post@...1379...> Message-ID: <200803281637.46019.sourceforge-raindog2@...94...> On Friday 28 March 2008 15:02, MaxVK wrote: > Can anyone steer me in the right direction please? I'm at a point > now where its "No spell checker means no Program" and Id hate to > just drop it here and a spell checker is a worth item of code to > have. There's no reason to try to use a perl module or integrate some other GUI toolkit's spellchecker. Try something like this: dim aspell as process spellcheckresults = "" aspell = shell "aspell pipe" for read write as "aspell" print #aspell, textedit1.text ' if it is HTML, include -H in command ... public sub aspell_Read DIM sLine AS String READ #LAST, sLine ' maybe line input instead? ' parse out aspell output and deal with it here ' it looks like this, one line per word: ' * - indicates word found in dictionary, and if not: ' & : ' followed by space separated guesses end You can just keep the process running and print more words to it when needed, to save the overhead of starting it. If you don't like the asynchronous way of doing things, you could shell out to aspell one word at a time like so: shell "echo word | aspell pipe | grep word" to spellcheckresults wait with the caveat that you would have to remove non-word characters from the source text to prevent the user from running arbitrary shell commands. Aspell was installed by default on my machine running Mandriva, don't know about other Linuxes. Rob From m0e.lnx at ...626... Fri Mar 28 21:43:55 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 28 Mar 2008 15:43:55 -0500 Subject: [Gambas-user] How to search for an item in a treeview In-Reply-To: <1f1e8c1b0803281020k14fbc85ie1aeb5b646c88b3@...627...> References: <1f1e8c1b0803261110o53ed2e00rcd5ef5b9f86fb201@...627...> <47EB1429.7060204@...981...> <1f1e8c1b0803271253n2745063fnea3e4779b89701bb@...627...> <47EC2B72.8030906@...981...> <1f1e8c1b0803280452l7489f8a7y77718ad7129b0468@...627...> <47ECE779.4040809@...626...> <1f1e8c1b0803280623kcf7be2av90e09d4a860cbbe4@...627...> <1f1e8c1b0803281020k14fbc85ie1aeb5b646c88b3@...627...> Message-ID: <1f1e8c1b0803281343u42d29670p7a505ea4ff15c6ba@...627...> Mission accomplished! I managed to do it from the array the way I planned it... The main problem was getting around the double parent entires but that can be solved by adding yet another array and analyzing each parent.. then check for it's existance, and if false, then add it treeview = great object. On Fri, Mar 28, 2008 at 12:20 PM, M0E Lnx wrote: > I have managed to get the results from the search within the array > I did this by adding a line of code that stores each entry as it is > thrown into the treeview for the first time > > I can retreive results by doing something like this > > PUBLIC SUB RUN_SEARCH(sQuery as string) > > DIM sListarr as string[] > DIM i as Integer > DIM sItem as string > DIM sResults as string > > sListarr = SPLIT(sRawList, "@") ' sRawList is the massive string that > contains the treeview's entries separated by a "@" > FOR i = 0 to sListArr.Count - 1 > sItem = sListarr[i] > IF Instr(sItem, sQuery, 1, gb.case) > 0 then > sResults = sResults & sItem & gb.newline ' will separate these by new lines > END IF > NEXT > END > > This produces a string variable filled with hits from the search. > These hits are formatted like this > ! > ! > That is how they get added to the massive list in the first place > > So now, out of that list, I need to create entries on the treeview > And of course this is where I'm running into trouble > > A hit can be found on more than one parent > in which case, I need to add each parent (without double entries) > and populate each parent with whatever is after the "!" > > Please help :( > > > > > On Fri, Mar 28, 2008 at 8:23 AM, M0E Lnx wrote: > > mmm.. I'm not sure what's what I want to do.. > > > > I've done this before using a listview.. but the listview component I > > can understand more easily the problem is that it doesn't offer > > collapsable parent entries. > > > > that's why I'd rather wipe out the treeview, and repopulate it. > > > > > > > > > > On 3/28/08, Robert Rowe wrote: > > > Why don't you add a second treeview that is initially hidden. As you > > > find your results add them to the hidden treeview. When the search > > > completes, show the hidden treeview and hide the original one. > > > > > > > > > Robert Rowe > > > > > > > > > M0E Lnx wrote: > > > > Sorry for not being too specifc. > > > > > > > > I'm trying to allow the user to search for specific items (initially > > > > listed in the treeview) > > > > > > > > so First, I want to populate the treeview with a massive collection > > > > (already done) > > > > Need to offer a search feature (this needs to find stuff in the > > > > treeview (you already did)) > > > > Need to display ONLY the results of the search in the treeview. > > > > > > > > There will be a button that the user can hit to restore the treeview > > > > to the original content (full list) > > > > > > > > > > > > > > > > On 3/27/08, Stephen Bungay wrote: > > > > > > > >> Yes, your original post did not ask for anything to be repopulated.. > > > >> indeed, nothing has been removed from the treeview so you don;t have to > > > >> repopulate it using this method. > > > >> Could you be a little more clear on what it is you are trying to > > > >> accomplish? We have the find done.. whats with the repopulate? > > > >> > > > >> > > > >> M0E Lnx wrote: > > > >> > OK... I can see how that will find the hits... but I dont see how it > > > >> > will re-populate it using only the items that were found. > > > >> > > > > >> > I guess I must have misphrased that in the first place > > > >> > > > > >> > > > > >> > On 3/26/08, Stephen Bungay wrote: > > > >> >> Ok try this. It is based on a save routine that I used in an > > > >> >> edutainment application I developed about a year ago... I pulled my hair > > > >> >> out trying to come up with a good recursive routine to do walk the tree, > > > >> >> and failed miserably at it. This treeview did not lend itself well to a > > > >> >> recursive walk through... but there is another SIMPLER way, Benoit > > > >> >> pointed me in the right direction (Thanks Benoit), and now lets pay it > > > >> >> forward. > > > >> >> > > > >> >> Create a test project with three controls on it. Don't rename the > > > >> >> controls, just use the default names. The controls to put on FMAIN are a > > > >> >> button, a treeview and a TextArea. > > > >> >> Now copy and paste this code into FMain > > > >> >> > > > >> >> PUBLIC Y AS String > > > >> >> > > > >> >> PUBLIC SUB Form_Open() > > > >> >> > > > >> >> WITH TreeView1 > > > >> >> .Add("A", "Item A") > > > >> >> .Add("A1", "Item A1",, "A") > > > >> >> .Add("B", "Item B") > > > >> >> .Add("B1", "Item B1",, "B") > > > >> >> .Add("B1.1", "Item B1.1",, "B1") > > > >> >> .Add("C", "Item C") > > > >> >> .Add("D", "Item D") > > > >> >> .Add("D1", "Item D1",, "D") > > > >> >> .Add("E", "Item E") > > > >> >> END WITH > > > >> >> > > > >> >> END > > > >> >> > > > >> >> PUBLIC SUB Button1_Click() > > > >> >> WalkTree(TreeView1) > > > >> >> END > > > >> >> > > > >> >> > > > >> >> PRIVATE SUB WalkTree(pTreeView AS TreeView) > > > >> >> DIM sText AS String > > > >> >> > > > >> >> pTreeView.MoveFirst() > > > >> >> > > > >> >> REPEAT > > > >> >> sText = sText & pTreeView.Item.Key & ", " & "'" & > > > >> >> pTreeView.Item.Text & "'" & "\n" > > > >> >> pTreeView.Item.Expanded = TRUE > > > >> >> UNTIL pTreeView.MoveBelow() > > > >> >> > > > >> >> TextArea1.Text = sText > > > >> >> > > > >> >> END > > > >> >> > > > >> >> > > > >> >> When you push the button it will iterate down through the tree and > > > >> >> push the text of each node (and it's key) to a string, After the tree > > > >> >> has been 'walked' the string will be dumped to the Text area. > > > >> >> Use this to do a search on each ode as you come to it. > > > >> >> Job done. > > > >> >> > > > >> >> Steve. > > > >> >> > > > >> >> > > > >> >> M0E Lnx wrote: > > > >> >> > I have a treeview populated with lots of entries... I'm trying to > > > >> >> > provide a function that would search within the contents of that > > > >> >> > treeview for a specific string. > > > >> >> > Can anyone think of a way to do that? > > > >> >> > > > > >> >> > I've been trying the FIND method in the treeview, but it's quite > > > >> >> > different from other find methods... > > > >> >> > > > > >> >> > > > >> >>> ------------------------------------------------------------------------- > > > >> >> > Check out the new SourceForge.net Marketplace. > > > >> >> > It's the best place to buy or sell services for > > > >> >> > just about anything Open Source. > > > >> >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > >> >> > _______________________________________________ > > > >> >> > Gambas-user mailing list > > > >> >> > Gambas-user at lists.sourceforge.net > > > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> >> > > > > >> >> > > > >> >> > > > >> >> ------------------------------------------------------------------------- > > > >> >> Check out the new SourceForge.net Marketplace. > > > >> >> It's the best place to buy or sell services for > > > >> >> just about anything Open Source. > > > >> >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > >> >> _______________________________________________ > > > >> >> Gambas-user mailing list > > > >> >> Gambas-user at lists.sourceforge.net > > > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> >> > > > >> > > > > >> > ------------------------------------------------------------------------- > > > >> > Check out the new SourceForge.net Marketplace. > > > >> > It's the best place to buy or sell services for > > > >> > just about anything Open Source. > > > >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > >> > _______________________________________________ > > > >> > Gambas-user mailing list > > > >> > Gambas-user at lists.sourceforge.net > > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > >> > > > >> > > > >> ------------------------------------------------------------------------- > > > >> Check out the new SourceForge.net Marketplace. > > > >> It's the best place to buy or sell services for > > > >> just about anything Open Source. > > > >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > >> _______________________________________________ > > > >> Gambas-user mailing list > > > >> Gambas-user at lists.sourceforge.net > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > >> > > > > > > > > ------------------------------------------------------------------------- > > > > Check out the new SourceForge.net Marketplace. > > > > It's the best place to buy or sell services for > > > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > From maximvonk at ...626... Sat Mar 29 00:05:58 2008 From: maximvonk at ...626... (MaxVK) Date: Fri, 28 Mar 2008 16:05:58 -0700 (PDT) Subject: [Gambas-user] Textedit and Spell checking In-Reply-To: <200803281637.46019.sourceforge-raindog2@...94...> References: <16359797.post@...1379...> <200803281637.46019.sourceforge-raindog2@...94...> Message-ID: <16364042.post@...1379...> Rob Kudla wrote: > > There's no reason to try to use a perl module or integrate some other > GUI toolkit's spellchecker. Try something like this: > > dim aspell as process > spellcheckresults = "" > aspell = shell "aspell pipe" for read write as "aspell" > print #aspell, textedit1.text ' if it is HTML, include -H in command > > ... > > public sub aspell_Read > DIM sLine AS String > READ #LAST, sLine ' maybe line input instead? > ' parse out aspell output and deal with it here > ' it looks like this, one line per word: > ' * - indicates word found in dictionary, and if not: > ' & : > ' followed by space separated guesses > end > Ah, you're a sanity saver Rob! This works pretty well, but I'm having trouble because in the aspell_read routine I can collect the lines that return showing an error into an array or a list, and I can parse the lines as they come, however, there are a few problems: Firstly I am trying to pop open a modal window that will show a list of the suggested words, and give options to replace etc. However, I cant seem to work out where to put the code for this, because if I show the modal window during the aspell_read routine everything else is finished by the time I return to it. This means I only get a chance to change one error word. Secondly, the program never quits properly, so something is hanging on when I exit, and I'm not sure what. Presumably I need to close the link with aspell when the spelling routine has finished, but I'm unsure how to do this. Many thanks for your help so far. I'm so close to getting this working that I can almost taste it! Regards Max -- View this message in context: http://www.nabble.com/Textedit-and-Spell-checking-tp16359797p16364042.html Sent from the gambas-user mailing list archive at Nabble.com. From sourceforge-raindog2 at ...94... Sat Mar 29 00:36:04 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 28 Mar 2008 19:36:04 -0400 Subject: [Gambas-user] Textedit and Spell checking In-Reply-To: <16364042.post@...1379...> References: <16359797.post@...1379...> <200803281637.46019.sourceforge-raindog2@...94...> <16364042.post@...1379...> Message-ID: <200803281936.05361.sourceforge-raindog2@...94...> On Friday 28 March 2008 19:05, MaxVK wrote: > Firstly I am trying to pop open a modal window that will show a > list of the suggested words, and give options to replace etc. > However, I cant seem to work out where to put the code for this, > because if I show the modal window during the aspell_read routine > everything else is finished by the time I return to it. This means > I only get a chance to change one error word. Yeah, that's the bummer with asynchronous processing. You could always write a temporary file with the text you want to check, then shell "aspell pipe anotherfile" and read anotherfile synchronously to display your modal dialog a bunch of times. > Secondly, the program never quits properly, so something is hanging > on when I exit, and I'm not sure what. Presumably I need to close > the link with aspell when the spelling routine has finished, but > I'm unsure how to do this. That's true, aspell will just sit there until you send it an end-of-file. I don't know how to send an EOF to a process without closing it (which I assume closes it for input, not just output.) The temporary file approach would solve this too, awkward though it is. Rob From gambas at ...1... Sat Mar 29 00:46:17 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 29 Mar 2008 00:46:17 +0100 Subject: [Gambas-user] Textedit and Spell checking In-Reply-To: <200803281936.05361.sourceforge-raindog2@...94...> References: <16359797.post@...1379...> <16364042.post@...1379...> <200803281936.05361.sourceforge-raindog2@...94...> Message-ID: <200803290046.17241.gambas@...1...> On samedi 29 mars 2008, Rob wrote: > On Friday 28 March 2008 19:05, MaxVK wrote: > > Firstly I am trying to pop open a modal window that will show a > > list of the suggested words, and give options to replace etc. > > However, I cant seem to work out where to put the code for this, > > because if I show the modal window during the aspell_read routine > > everything else is finished by the time I return to it. This means > > I only get a chance to change one error word. > > Yeah, that's the bummer with asynchronous processing. You could > always write a temporary file with the text you want to check, then > shell "aspell pipe anotherfile" and read anotherfile > synchronously to display your modal dialog a bunch of times. > > > Secondly, the program never quits properly, so something is hanging > > on when I exit, and I'm not sure what. Presumably I need to close > > the link with aspell when the spelling routine has finished, but > > I'm unsure how to do this. > > That's true, aspell will just sit there until you send it an > end-of-file. I don't know how to send an EOF to a process without > closing it (which I assume closes it for input, not just output.) > The temporary file approach would solve this too, awkward though it > is. > > Rob > Just CLOSE it to send the EOF, as written in the documentation of the CLOSE instruction. Regards, -- Benoit Minisini From maximvonk at ...626... Sat Mar 29 01:40:42 2008 From: maximvonk at ...626... (MaxVK) Date: Fri, 28 Mar 2008 17:40:42 -0700 (PDT) Subject: [Gambas-user] Textedit and Spell checking In-Reply-To: <200803281936.05361.sourceforge-raindog2@...94...> References: <16359797.post@...1379...> <200803281637.46019.sourceforge-raindog2@...94...> <16364042.post@...1379...> <200803281936.05361.sourceforge-raindog2@...94...> Message-ID: <16365083.post@...1379...> Rob Kudla wrote: > > Yeah, that's the bummer with asynchronous processing. You could > always write a temporary file with the text you want to check, then > shell "aspell pipe anotherfile" and read anotherfile > synchronously to display your modal dialog a bunch of times. > Aha! Nice idea. It might not be pretty but it works! The only problem now is that if a word is corrected, and the correction contains more or less characters than the original word, from that moment on all other positions are broken (I'm using the position of the word as returned by aspell, and the length of the original to select it in the textedit). Tomorrow Ill try and keep track of the positions and update them according to the number of characters <> than the original word. Thanks again for all your help (And thanks to Benoit for pointing out about using CLOSE) Regards Max -- View this message in context: http://www.nabble.com/Textedit-and-Spell-checking-tp16359797p16365083.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Sat Mar 29 03:13:34 2008 From: rterry at ...1822... (richard terry) Date: Sat, 29 Mar 2008 13:13:34 +1100 Subject: [Gambas-user] Textedit and Spell checking In-Reply-To: <16365083.post@...1379...> References: <16359797.post@...1379...> <200803281936.05361.sourceforge-raindog2@...94...> <16365083.post@...1379...> Message-ID: <200803291313.34889.rterry@...1822...> On Sat, 29 Mar 2008 11:40:42 am MaxVK wrote: > Rob Kudla wrote: > > Yeah, that's the bummer with asynchronous processing. You could > > always write a temporary file with the text you want to check, then > > shell "aspell pipe anotherfile" and read anotherfile > > synchronously to display your modal dialog a bunch of times. > > Aha! Nice idea. It might not be pretty but it works! The only problem now > is that if a word is corrected, and the correction contains more or less > characters than the original word, from that moment on all other positions > are broken (I'm using the position of the word as returned by aspell, and > the length of the original to select it in the textedit). > > Tomorrow Ill try and keep track of the positions and update them according > to the number of characters <> than the original word. I'd be interested in hearing more about your project using the text editor. I'm using the same control in my program and had intended at some stage to try and implement spell checking and word suggestion. I think its a bit this control generates a

when the enter key is pressed and not a
. I seem to vaguely remember benoit saying there was no way to intercept and change this. Anyway, if you've time to correspond with me off list so as not to clag up the list with non-relevant traffic I'd appreciate it. Regards Richard > > Thanks again for all your help (And thanks to Benoit for pointing out about > using CLOSE) > > Regards > > Max From sourceforge-raindog2 at ...94... Sat Mar 29 03:32:35 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 28 Mar 2008 22:32:35 -0400 Subject: [Gambas-user] Textedit and Spell checking In-Reply-To: <200803291313.34889.rterry@...1822...> References: <16359797.post@...1379...> <16365083.post@...1379...> <200803291313.34889.rterry@...1822...> Message-ID: <200803282232.35226.sourceforge-raindog2@...94...> On Friday 28 March 2008 22:13, richard terry wrote: > I think its a bit this control generates a

when the enter key > is pressed and not a
. I seem to vaguely remember benoit saying > there was no way to intercept and change this. Most rich text editors (like word processors) seem to do this, probably because styles are usually applied paragraph by paragraph and not line by line, but it ought to be possible to insert a line break (which does not create a new paragraph, logically speaking, even if you insert two of them) using control-enter or shift-enter. Rob From rterry at ...1822... Sat Mar 29 04:47:00 2008 From: rterry at ...1822... (richard terry) Date: Sat, 29 Mar 2008 14:47:00 +1100 Subject: [Gambas-user] Textedit and Spell checking In-Reply-To: <200803282232.35226.sourceforge-raindog2@...94...> References: <16359797.post@...1379...> <200803291313.34889.rterry@...1822...> <200803282232.35226.sourceforge-raindog2@...94...> Message-ID: <200803291447.00397.rterry@...1822...> On Sat, 29 Mar 2008 01:32:35 pm Rob wrote: > On Friday 28 March 2008 22:13, richard terry wrote: > > I think its a bit this control generates a

when the enter key > > is pressed and not a
. I seem to vaguely remember benoit saying > > there was no way to intercept and change this. > > Most rich text editors (like word processors) seem to do this, > probably because styles are usually applied paragraph by paragraph > and not line by line, but it ought to be possible to insert a line > break (which does not create a new paragraph, logically speaking, > even if you insert two of them) using control-enter or shift-enter. Using ctrl is pain because of the key positioning. In medical notes we more often than not write short notes, rather than paragraphs, and hitting the enter key like in a plain text editor is the logical and quick thing to do eg. C/0 headache, sore throat O/E: tonsils pus +++ Rx: penV tabs Rv: if needed in that control this ends up like this: C/0 headache, sore throat O/E: tonsils pus +++ Rx: penV tabs Rv: if needed Which is a major pain when you save the html for re-presentation in (my case) a person's progress notes. I wonder if the code of the underlying control could be modified to send a
instead of a

REgards Richard > > Rob > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From sourceforge-raindog2 at ...94... Sat Mar 29 05:29:21 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 29 Mar 2008 00:29:21 -0400 Subject: [Gambas-user] Textedit and Spell checking In-Reply-To: <200803291447.00397.rterry@...1822...> References: <16359797.post@...1379...> <200803282232.35226.sourceforge-raindog2@...94...> <200803291447.00397.rterry@...1822...> Message-ID: <200803290029.21996.sourceforge-raindog2@...94...> On Friday 28 March 2008 23:47, richard terry wrote: > Using ctrl is pain because of the key positioning. In Maybe you could use the Keypress event to intercept Enter and Control-Enter (which does insert a
, I just tried it) and swap them like terminal emulators often swap backspace and delete. Since you can't rewrite the key code in the Key class, maybe you can manually insert whichever markup you need at the current position and then use STOP EVENT to prevent the

from going in. Rob From rterry at ...1822... Sat Mar 29 05:36:45 2008 From: rterry at ...1822... (richard terry) Date: Sat, 29 Mar 2008 15:36:45 +1100 Subject: [Gambas-user] Textedit and Spell checking In-Reply-To: <200803290029.21996.sourceforge-raindog2@...94...> References: <16359797.post@...1379...> <200803291447.00397.rterry@...1822...> <200803290029.21996.sourceforge-raindog2@...94...> Message-ID: <200803291536.45616.rterry@...1822...> On Sat, 29 Mar 2008 03:29:21 pm Rob wrote: > On Friday 28 March 2008 23:47, richard terry wrote: > > Using ctrl is pain because of the key positioning. In > > Maybe you could use the Keypress event to intercept Enter and > Control-Enter (which does insert a
, I just tried it) and swap > them like terminal emulators often swap backspace and delete. > > Since you can't rewrite the key code in the Key class, maybe you can > manually insert whichever markup you need at the current position and > then use STOP EVENT to prevent the

from going in. Will have a look tonight. Thanks Richard > Rob > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From kaoticus60 at ...151... Sat Mar 29 08:02:17 2008 From: kaoticus60 at ...151... (andy2) Date: Sat, 29 Mar 2008 08:02:17 +0100 Subject: [Gambas-user] Google Api for generate charts In-Reply-To: References: Message-ID: <47EDE979.4040707@...151...> I can't use in Gambas component WebBrowser the google api for generate charts. Please try these api at page http://code.google.com/apis/chart/... Example of url: http://chart.apis.google.com/chart?cht=lc&chs=200x125&chd=s:aaaabbbbbccccfffff From jbskaggs at ...1871... Sat Mar 29 08:17:36 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sat, 29 Mar 2008 00:17:36 -0700 (PDT) Subject: [Gambas-user] gambas2-gb-form-dialog dependency problem Message-ID: <16367328.post@...1379...> When I tried to install my program on a brand new installation of ubuntu I got this error. Dependency is not satifiable: gambas2-gb-form-dialogue. I have installed all the libraries listed and the only way I could get the program to install was to remove that component. But does this compenent require a special library or does it have a bug? Or as usual am I overlooking something obvious. JB SKaggs -- View this message in context: http://www.nabble.com/gambas2-gb-form-dialog-dependency-problem-tp16367328p16367328.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Sat Mar 29 08:38:49 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sat, 29 Mar 2008 00:38:49 -0700 (PDT) Subject: [Gambas-user] Interpreter too old: Form1 Message-ID: <16367329.post@...1379...> http://www.nabble.com/file/p16367329/Screenshot.png Screenshot.png This is the error I am gettin when I try and run the project on this new computer. I am thinking it is the gtk libraries. Anyhelp? JB -- View this message in context: http://www.nabble.com/Interpreter-too-old%3A-Form1-tp16367329p16367329.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Mar 29 13:12:38 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 29 Mar 2008 13:12:38 +0100 Subject: [Gambas-user] Textedit and Spell checking In-Reply-To: <200803291536.45616.rterry@...1822...> References: <16359797.post@...1379...> <200803290029.21996.sourceforge-raindog2@...94...> <200803291536.45616.rterry@...1822...> Message-ID: <200803291312.38329.gambas@...1...> On samedi 29 mars 2008, richard terry wrote: > On Sat, 29 Mar 2008 03:29:21 pm Rob wrote: > > On Friday 28 March 2008 23:47, richard terry wrote: > > > Using ctrl is pain because of the key positioning. In > > > > Maybe you could use the Keypress event to intercept Enter and > > Control-Enter (which does insert a
, I just tried it) and swap > > them like terminal emulators often swap backspace and delete. > > > > Since you can't rewrite the key code in the Key class, maybe you can > > manually insert whichever markup you need at the current position and > > then use STOP EVENT to prevent the

from going in. > > Will have a look tonight. > > Thanks > > Richard > As you cannot rewrite the event, you can use Desktop.SendKeys for reemit the "CTRL+ENTER" while cancelling the "ENTER" key event. Regards, -- Benoit Minisini From gambas at ...1... Sat Mar 29 13:12:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 29 Mar 2008 13:12:57 +0100 Subject: [Gambas-user] Google Api for generate charts In-Reply-To: <47EDE979.4040707@...151...> References: <47EDE979.4040707@...151...> Message-ID: <200803291312.57448.gambas@...1...> On samedi 29 mars 2008, andy2 wrote: > I can't use in Gambas component WebBrowser the google api for generate > charts. > Please try these api at page http://code.google.com/apis/chart/... > > Example of url: > > http://chart.apis.google.com/chart?cht=lc&chs=200x125&chd=s:aaaabbbbbccccff >fff > Did you enable JavaScript? -- Benoit Minisini From gambas at ...1... Sat Mar 29 13:13:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 29 Mar 2008 13:13:45 +0100 Subject: [Gambas-user] gambas2-gb-form-dialog dependency problem In-Reply-To: <16367328.post@...1379...> References: <16367328.post@...1379...> Message-ID: <200803291313.45979.gambas@...1...> On samedi 29 mars 2008, jbskaggs wrote: > When I tried to install my program on a brand new installation of ubuntu I > got this error. > > Dependency is not satifiable: gambas2-gb-form-dialogue. > > I have installed all the libraries listed and the only way I could get the > program to install was to remove that component. > > But does this compenent require a special library or does it have a bug? Or > as usual am I overlooking something obvious. > > > > JB SKaggs The packages may be broken somewhere. The dependency should be "gambas2-gb-form-dialog", not "...dialogue". -- Benoit Minisini From gambas at ...1... Sat Mar 29 13:15:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 29 Mar 2008 13:15:20 +0100 Subject: [Gambas-user] Interpreter too old: Form1 In-Reply-To: <16367329.post@...1379...> References: <16367329.post@...1379...> Message-ID: <200803291315.20622.gambas@...1...> On samedi 29 mars 2008, jbskaggs wrote: > http://www.nabble.com/file/p16367329/Screenshot.png Screenshot.png > > This is the error I am gettin when I try and run the project on this new > computer. I am thinking it is the gtk libraries. > > Anyhelp? > > JB Absolutely not. You are trying to run a project compiled with Gambas 1 on Gambas 2, or a project compiled with Gambas 2 on the development version. Regards, -- Benoit Minisini From maximvonk at ...626... Sat Mar 29 13:30:28 2008 From: maximvonk at ...626... (MaxVK) Date: Sat, 29 Mar 2008 05:30:28 -0700 (PDT) Subject: [Gambas-user] Textedit and Spell checking In-Reply-To: <200803281936.05361.sourceforge-raindog2@...94...> References: <16359797.post@...1379...> <200803281637.46019.sourceforge-raindog2@...94...> <16364042.post@...1379...> <200803281936.05361.sourceforge-raindog2@...94...> Message-ID: <16369482.post@...1379...> Rob Kudla wrote: > > Yeah, that's the bummer with asynchronous processing. You could > always write a temporary file with the text you want to check, then > shell "aspell pipe anotherfile" and read anotherfile > synchronously to display your modal dialog a bunch of times. > This is all working quite well, but there is a bit of a problem with the way that aspell handles the positions of the words it finds as errors. It takes its position from the start of each paragraph as opposed to the start of the text. I played with the idea of swapping

for
etc, just in case this was the problem, but this has no effect, and on further investigation the same problem arises when using a standard textarea as well. I don't seem to be able to relate the actual position of the misspelled words in the editor, to the positions reported by aspell; I know HOW they are being worked out, but I cant seem to replicate it in my editor so that I can change the words. This is currently the only thing left (so far) thats preventing this method from being a great spell checking option. -- View this message in context: http://www.nabble.com/Textedit-and-Spell-checking-tp16359797p16369482.html Sent from the gambas-user mailing list archive at Nabble.com. From sourceforge-raindog2 at ...94... Sat Mar 29 14:10:08 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 29 Mar 2008 09:10:08 -0400 Subject: [Gambas-user] Textedit and Spell checking In-Reply-To: <16369482.post@...1379...> References: <16359797.post@...1379...> <200803281936.05361.sourceforge-raindog2@...94...> <16369482.post@...1379...> Message-ID: <200803290910.09107.sourceforge-raindog2@...94...> On Saturday 29 March 2008 08:30, MaxVK wrote: > I don't seem to be able to relate the actual position of the > misspelled words in the editor, to the positions reported by > aspell; I know HOW they are being worked out, but I cant seem to > replicate it in my editor so that I can change the words. This is > currently the only thing left (so far) thats preventing this method > from being a great spell checking option. If you were using a regular textarea, I'd suggest replacing all the linefeeds with spaces in a temporary variable, using Replace(textarea1.text, "\n", " "), before shelling out to aspell. Then the offsets would be preserved, but aspell should see it as one long paragraph. Aspell handles input on a line by line basis and I can't find a flag to change that. I don't know whether that would work in a textedit, but I did notice that the textedit includes br tags inline with no linefeed, while inserting a linefeed after each paragraph. So I don't think it's br vs. p, but linefeed vs. no linefeed. Rob From richard.j.walker at ...247... Sat Mar 29 14:18:02 2008 From: richard.j.walker at ...247... (Richard) Date: Sat, 29 Mar 2008 13:18:02 +0000 Subject: [Gambas-user] Crssed interexchange between forms In-Reply-To: <200803281404.04770.pinozollo@...626...> References: <200803281404.04770.pinozollo@...626...> Message-ID: <200803291318.02962.richard.j.walker@...247...> As an alternative to Rob's suggestion that you make all form controls public (which should work) you might prefer to create public methods on your forms which will take a parameter from the calling form code and store the value in a now local form control property. For example; if on frmCW you have PUBLIC SUB Write_CWcall_text(calltext as string) CWCall.text = calltext END SUB then on FMain you would write IF cw_on THEN FrmCW.Write_CWcall_text(Call.Text) That should also do the trick and preserve flexibility. If form controls are public then you can write directly to them from ANYWHERE. What if you decide to change the control from a text box to a value box? You would have to go through all your code and change all the writes and reads involving the changed control. If instead you do it as I suggest, then you only need to change the access methods for READ and WRITE in one place. Much easier, yes? Richard On Friday 28 Mar 2008 18:04, Pino Zollo wrote: > I am developing a program in GAMBAS2 2.0 > > How can I pass information between one form and another ? > > In my program there are 3 forms....FMain, FrmCW e FCluster. > > >From the class of FrmCW (or of Fcluster) I can write a value in > > FMain.variabile.... > But nither from FMain and from FCluster can write variabes in > FrmCW.somevariable. > > It means that the class of FMain can not send values to the variables of > other classes , nither a class (not FMain) can send values to other classes > which are not FMain ...Why this ? > > It seems a big limitation. > For instance...in FMain the instruction: > > IF cw_on THEN FrmCW.CWCall.text = Call.Text > > Simply does nothing...nither gives error. > > In the class of FCluster > FMain.Call.Text = GridSpot[GridSpot.row, 0].Text ' <-- this is ok > IF FMain.cw_on THEN FrmCW.CWCall.text = GridSpot[GridSpot.row, 0].Text ' > <-- > > The first instruction works, but the second does nothing. > > Why ? > > Is there some trick or workaround ? > > For the same reason, I guess, it does not even work the example in > suggestion #11. > > the instruction > > hSuperControl.Move(8, 8, 128, 64) > > if given into the FMain class gives error..."Not enough parameters" > > >From a class not-FMain I can call SUBs of FMain, but not viceversa > > Equally from a class not-FMain I can not call SUBs of not-FMain > > Thanks for any help > > Pino pinozollo at ...626... > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From maximvonk at ...626... Sat Mar 29 14:51:33 2008 From: maximvonk at ...626... (MaxVK) Date: Sat, 29 Mar 2008 06:51:33 -0700 (PDT) Subject: [Gambas-user] Textedit and Spell checking In-Reply-To: <200803290910.09107.sourceforge-raindog2@...94...> References: <16359797.post@...1379...> <200803281637.46019.sourceforge-raindog2@...94...> <16364042.post@...1379...> <200803281936.05361.sourceforge-raindog2@...94...> <16369482.post@...1379...> <200803290910.09107.sourceforge-raindog2@...94...> Message-ID: <16370219.post@...1379...> Rob Kudla wrote: > > If you were using a regular textarea, I'd suggest replacing all the > linefeeds with spaces in a temporary variable, using > Replace(textarea1.text, "\n", " "), before shelling out to aspell. > Then the offsets would be preserved, but aspell should see it as one > long paragraph. Aspell handles input on a line by line basis and I > can't find a flag to change that. > > I don't know whether that would work in a textedit, but I did notice > that the textedit includes br tags inline with no linefeed, while > inserting a linefeed after each paragraph. So I don't think it's br > vs. p, but linefeed vs. no linefeed. > > Rob > Quite right. Replacing the linefeeds with spaces works very well, but (for some reason) it makes it even harder to keep track of the pos when words are replaced with more or less characters than the original. The quickest way around this is to reverse the order in which the items found by aspell are handled, which means you don't need to keep track of pos at all anymore, its just a bit odd doing a spell check from the end of the document to the beginning! I'm going to play about a bit with tracking the pos when replacing words, to see if I can get the spell check working in the right direction. Max -- View this message in context: http://www.nabble.com/Textedit-and-Spell-checking-tp16359797p16370219.html Sent from the gambas-user mailing list archive at Nabble.com. From pinozollo at ...626... Sat Mar 29 18:56:22 2008 From: pinozollo at ...626... (Pino Zollo) Date: Sat, 29 Mar 2008 13:56:22 -0400 Subject: [Gambas-user] Crssed interexchange between forms In-Reply-To: <200803291318.02962.richard.j.walker@...247...> References: <200803281404.04770.pinozollo@...626...> <200803291318.02962.richard.j.walker@...247...> Message-ID: <200803291356.26812.pinozollo@...626...> Alle 09:18, sabato 29 marzo 2008, hai scritto: Hi Richard and Rob Thanks for your answers and suggestion.... Both of your solutions do not work....I do not know why. So I made an example program to show you the double problem. You can download it form http://www.qsl.net/zp4kfx/xcross-0.0.1.tar.gz This program opens 3 forms: Fmain, FormA and FormB. On my computer FormA can send a value to Fmain end execute a PULIC SUB of FMain too, but not on FormB. The symetric for FormB FMain can not send values to FormA or FormB and nither execute PUBLIC SUBs in both. No errors are displayed. I did set public both module symbols and control forms. Maybe there is something else that I do not have understood. Thanks for your help Regards Pino > As an alternative to Rob's suggestion that you make all form controls > public (which should work) you might prefer to create public methods on > your forms which will take a parameter from the calling form code and store > the value in a now local form control property. > > For example; if on frmCW you have > > PUBLIC SUB Write_CWcall_text(calltext as string) > CWCall.text = calltext > END SUB > > then on FMain you would write > > IF cw_on THEN FrmCW.Write_CWcall_text(Call.Text) > > That should also do the trick and preserve flexibility. If form controls > are public then you can write directly to them from ANYWHERE. What if you > decide to change the control from a text box to a value box? You would have > to go through all your code and change all the writes and reads involving > the changed control. > > If instead you do it as I suggest, then you only need to change the access > methods for READ and WRITE in one place. Much easier, yes? > > Richard > > On Friday 28 Mar 2008 18:04, Pino Zollo wrote: > > I am developing a program in GAMBAS2 2.0 > > > > How can I pass information between one form and another ? > > > > In my program there are 3 forms....FMain, FrmCW e FCluster. > > > > >From the class of FrmCW (or of Fcluster) I can write a value in > > > > FMain.variabile.... > > But nither from FMain and from FCluster can write variabes in > > FrmCW.somevariable. > > > > It means that the class of FMain can not send values to the variables of > > other classes , nither a class (not FMain) can send values to other > > classes which are not FMain ...Why this ? > > > > It seems a big limitation. > > For instance...in FMain the instruction: > > > > IF cw_on THEN FrmCW.CWCall.text = Call.Text > > > > Simply does nothing...nither gives error. > > > > In the class of FCluster > > FMain.Call.Text = GridSpot[GridSpot.row, 0].Text ' <-- this is ok > > IF FMain.cw_on THEN FrmCW.CWCall.text = GridSpot[GridSpot.row, 0].Text > > ' <-- > > > > The first instruction works, but the second does nothing. > > > > Why ? > > > > Is there some trick or workaround ? > > > > For the same reason, I guess, it does not even work the example in > > suggestion #11. > > > > the instruction > > > > hSuperControl.Move(8, 8, 128, 64) > > > > if given into the FMain class gives error..."Not enough parameters" > > > > >From a class not-FMain I can call SUBs of FMain, but not viceversa > > > > Equally from a class not-FMain I can not call SUBs of not-FMain > > > > Thanks for any help > > > > Pino pinozollo at ...626... > > > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > >ac e _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From kaoticus60 at ...151... Sat Mar 29 19:07:07 2008 From: kaoticus60 at ...151... (andy2) Date: Sat, 29 Mar 2008 19:07:07 +0100 Subject: [Gambas-user] Google Api for generate charts In-Reply-To: References: Message-ID: <47EE854B.5020201@...151...> yes, javascript enabled. I am working on a class for chart with Google on Gambas From rospolosco at ...152... Sat Mar 29 19:22:37 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 29 Mar 2008 19:22:37 +0100 Subject: [Gambas-user] Crssed interexchange between forms In-Reply-To: <200803291356.26812.pinozollo@...626...> References: <200803281404.04770.pinozollo@...626...> <200803291318.02962.richard.j.walker@...247...> <200803291356.26812.pinozollo@...626...> Message-ID: <200803291922.37359.rospolosco@...152...> Alle 18:56, sabato 29 marzo 2008, Pino Zollo ha scritto: > Alle 09:18, sabato 29 marzo 2008, hai scritto: > Hi Richard and Rob > Thanks for your answers and suggestion.... > Both of your solutions do not work....I do not know why. > > So I made an example program to show you the double problem. > You can download it form http://www.qsl.net/zp4kfx/xcross-0.0.1.tar.gz > > This program opens 3 forms: Fmain, FormA and FormB. > On my computer FormA can send a value to Fmain end execute a PULIC SUB of > FMain too, but not on FormB. > The symetric for FormB > FMain can not send values to FormA or FormB and nither execute PUBLIC SUBs > in both. > No errors are displayed. > > I did set public both module symbols and control forms. > > Maybe there is something else that I do not have understood. > > Thanks for your help > Regards > Pino > > > As an alternative to Rob's suggestion that you make all form controls > > public (which should work) you might prefer to create public methods on > > your forms which will take a parameter from the calling form code and > > store the value in a now local form control property. > > > > For example; if on frmCW you have > > > > PUBLIC SUB Write_CWcall_text(calltext as string) > > CWCall.text = calltext > > END SUB > > > > then on FMain you would write > > > > IF cw_on THEN FrmCW.Write_CWcall_text(Call.Text) > > > > That should also do the trick and preserve flexibility. If form controls > > are public then you can write directly to them from ANYWHERE. What if you > > decide to change the control from a text box to a value box? You would > > have to go through all your code and change all the writes and reads > > involving the changed control. > > > > If instead you do it as I suggest, then you only need to change the > > access methods for READ and WRITE in one place. Much easier, yes? > > > > Richard > > > > On Friday 28 Mar 2008 18:04, Pino Zollo wrote: > > > I am developing a program in GAMBAS2 2.0 > > > > > > How can I pass information between one form and another ? > > > > > > In my program there are 3 forms....FMain, FrmCW e FCluster. > > > > > > >From the class of FrmCW (or of Fcluster) I can write a value in > > > > > > FMain.variabile.... > > > But nither from FMain and from FCluster can write variabes in > > > FrmCW.somevariable. > > > > > > It means that the class of FMain can not send values to the variables > > > of other classes , nither a class (not FMain) can send values to other > > > classes which are not FMain ...Why this ? > > > > > > It seems a big limitation. > > > For instance...in FMain the instruction: > > > > > > IF cw_on THEN FrmCW.CWCall.text = Call.Text > > > > > > Simply does nothing...nither gives error. > > > > > > In the class of FCluster > > > FMain.Call.Text = GridSpot[GridSpot.row, 0].Text ' <-- this is ok > > > IF FMain.cw_on THEN FrmCW.CWCall.text = GridSpot[GridSpot.row, > > > 0].Text ' <-- > > > > > > The first instruction works, but the second does nothing. > > > > > > Why ? > > > > > > Is there some trick or workaround ? > > > > > > For the same reason, I guess, it does not even work the example in > > > suggestion #11. > > > > > > the instruction > > > > > > hSuperControl.Move(8, 8, 128, 64) > > > > > > if given into the FMain class gives error..."Not enough parameters" > > > > > > >From a class not-FMain I can call SUBs of FMain, but not viceversa > > > > > > Equally from a class not-FMain I can not call SUBs of not-FMain > > > > > > Thanks for any help > > > > > > Pino pinozollo at ...626... I opened your project. The FMain Form_Open() function is wrong: Here it is the right way: PUBLIC SUB Form_Open() ' DIM Frma AS FormA ' DIM FrmB AS FormB ME.Center ME.Show ' Frma = NEW FormA ' Frma.Visible = TRUE ' ' FrmB = NEW FormB ' FrmB.Visible = TRUE FormA.Show Formb.Show END I commented out the wrong code. Bye, Stefano > > > > > > > > > > > > ----------------------------------------------------------------------- > > >-- Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/market > > >pl ac e _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From richard.j.walker at ...247... Sat Mar 29 19:29:19 2008 From: richard.j.walker at ...247... (Richard) Date: Sat, 29 Mar 2008 18:29:19 +0000 Subject: [Gambas-user] Crssed interexchange between forms In-Reply-To: <200803291922.37359.rospolosco@...152...> References: <200803281404.04770.pinozollo@...626...> <200803291356.26812.pinozollo@...626...> <200803291922.37359.rospolosco@...152...> Message-ID: <200803291829.19465.richard.j.walker@...247...> Hi Stefano, The interesting thing is that Pino's code works too. Is there a reason why it is "wrong" to instantiate a form created in the GUI? (Apart from the fact that at first sight it looks to be unneccessary) Richard On Saturday 29 Mar 2008 18:22, Stefano Palmeri wrote: > Alle 18:56, sabato 29 marzo 2008, Pino Zollo ha scritto: > > Alle 09:18, sabato 29 marzo 2008, hai scritto: > > Hi Richard and Rob > > Thanks for your answers and suggestion.... > > Both of your solutions do not work....I do not know why. > > > > So I made an example program to show you the double problem. > > You can download it form http://www.qsl.net/zp4kfx/xcross-0.0.1.tar.gz > > > > This program opens 3 forms: Fmain, FormA and FormB. > > On my computer FormA can send a value to Fmain end execute a PULIC SUB of > > FMain too, but not on FormB. > > The symetric for FormB > > FMain can not send values to FormA or FormB and nither execute PUBLIC > > SUBs in both. > > No errors are displayed. > > > > I did set public both module symbols and control forms. > > > > Maybe there is something else that I do not have understood. > > > > Thanks for your help > > Regards > > Pino > > > > > As an alternative to Rob's suggestion that you make all form controls > > > public (which should work) you might prefer to create public methods on > > > your forms which will take a parameter from the calling form code and > > > store the value in a now local form control property. > > > > > > For example; if on frmCW you have > > > > > > PUBLIC SUB Write_CWcall_text(calltext as string) > > > CWCall.text = calltext > > > END SUB > > > > > > then on FMain you would write > > > > > > IF cw_on THEN FrmCW.Write_CWcall_text(Call.Text) > > > > > > That should also do the trick and preserve flexibility. If form > > > controls are public then you can write directly to them from ANYWHERE. > > > What if you decide to change the control from a text box to a value > > > box? You would have to go through all your code and change all the > > > writes and reads involving the changed control. > > > > > > If instead you do it as I suggest, then you only need to change the > > > access methods for READ and WRITE in one place. Much easier, yes? > > > > > > Richard > > > > > > On Friday 28 Mar 2008 18:04, Pino Zollo wrote: > > > > I am developing a program in GAMBAS2 2.0 > > > > > > > > How can I pass information between one form and another ? > > > > > > > > In my program there are 3 forms....FMain, FrmCW e FCluster. > > > > > > > > >From the class of FrmCW (or of Fcluster) I can write a value in > > > > > > > > FMain.variabile.... > > > > But nither from FMain and from FCluster can write variabes in > > > > FrmCW.somevariable. > > > > > > > > It means that the class of FMain can not send values to the > > > > variables of other classes , nither a class (not FMain) can send > > > > values to other classes which are not FMain ...Why this ? > > > > > > > > It seems a big limitation. > > > > For instance...in FMain the instruction: > > > > > > > > IF cw_on THEN FrmCW.CWCall.text = Call.Text > > > > > > > > Simply does nothing...nither gives error. > > > > > > > > In the class of FCluster > > > > FMain.Call.Text = GridSpot[GridSpot.row, 0].Text ' <-- this is ok > > > > IF FMain.cw_on THEN FrmCW.CWCall.text = GridSpot[GridSpot.row, > > > > 0].Text ' <-- > > > > > > > > The first instruction works, but the second does nothing. > > > > > > > > Why ? > > > > > > > > Is there some trick or workaround ? > > > > > > > > For the same reason, I guess, it does not even work the example in > > > > suggestion #11. > > > > > > > > the instruction > > > > > > > > hSuperControl.Move(8, 8, 128, 64) > > > > > > > > if given into the FMain class gives error..."Not enough parameters" > > > > > > > > >From a class not-FMain I can call SUBs of FMain, but not viceversa > > > > > > > > Equally from a class not-FMain I can not call SUBs of not-FMain > > > > > > > > Thanks for any help > > > > > > > > Pino pinozollo at ...626... > > I opened your project. The FMain Form_Open() function is wrong: > Here it is the right way: > > PUBLIC SUB Form_Open() > > ' DIM Frma AS FormA > ' DIM FrmB AS FormB > ME.Center > ME.Show > ' Frma = NEW FormA > ' Frma.Visible = TRUE > ' > ' FrmB = NEW FormB > ' FrmB.Visible = TRUE > > FormA.Show > Formb.Show > > END > > I commented out the wrong code. > > Bye, > > Stefano > > > > > --------------------------------------------------------------------- > > > >-- -- Check out the new SourceForge.net Marketplace. > > > > It's the best place to buy or sell services for > > > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/mark > > > >et pl ac e _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > >ac e _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jbskaggs at ...1871... Sat Mar 29 19:48:53 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sat, 29 Mar 2008 11:48:53 -0700 (PDT) Subject: [Gambas-user] Interpreter too old: Form1 In-Reply-To: <200803291315.20622.gambas@...1...> References: <16367329.post@...1379...> <200803291315.20622.gambas@...1...> Message-ID: <16373188.post@...1379...> >>Absolutely not. You are trying to run a project compiled with Gambas 1 on Gambas 2, or a project compiled with Gambas 2 on the development version.<< How is that possible? I wrote this program on 2.4.1 installed it to a clean ubuntu system with no gambas on that system. and it gave me this error? This program runs on every other ubuntu machine its been on so far until this one. BTW the GTK+ package would not install properly on this machine becuase it could find all of the image handling dependencies. Of Which I am still looking for them. That was why I thought this a GTK issue. I will go back and clean up my source, recompile all on 2.4.1 and make new executable and make new installation package and see what happens. I assume that is what you mean. If not then what should I do? JB SKaggs Benoit Minisini wrote: > > On samedi 29 mars 2008, jbskaggs wrote: >> http://www.nabble.com/file/p16367329/Screenshot.png Screenshot.png >> >> This is the error I am gettin when I try and run the project on this new >> computer. I am thinking it is the gtk libraries. >> >> Anyhelp? >> >> JB > > Absolutely not. You are trying to run a project compiled with Gambas 1 on > Gambas 2, or a project compiled with Gambas 2 on the development version. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Interpreter-too-old%3A-Form1-tp16367329p16373188.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Sat Mar 29 21:00:34 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sat, 29 Mar 2008 13:00:34 -0700 (PDT) Subject: [Gambas-user] Interpreter too old: Form1 In-Reply-To: <16373188.post@...1379...> References: <16367329.post@...1379...> <200803291315.20622.gambas@...1...> <16373188.post@...1379...> Message-ID: <16373896.post@...1379...> To get this to work I had to go and install gambas2.4.1 onto the new machine- then my executable and installation worked. I dont want sound snippy- but what is the purpose of the installation package if you have to install the entire gambas to a new machine? Shouldn't the installation package include all the runtime files and interpretor needed? I thought that was the purpose of a installer package? Seriously installing a program should not be this hard, the majority of computer users I know are less knowledgable than me and there is no way they would ever go thru fourteen hours of frustration to get a single app installed. There needs to be a better way of getting newbs (like myself up to speed)- most of the examples assume the new user knows how to do things. In the faq under compilation libraries required: Why can't there be links to a package combatible with installer? That would install all these libraries? Seriously the number one reason why Windows maintains it's strangle on linux- is linux is hard to setup. Most people come home from work and they want to install a prog and run it- without hours and hours of searching forums and faq's to learn how to install a library for something that should be included in the program. I mean if you get home at six and want to be in bed by eleven. You eat dinner then that gives you maybe two or three hours of time to use for whatever, and if that whole time is spent trying to get a prog to work creates deep frustration and eventually they quit. Gambas sells itself as being the easiest and fastest way to build applications for Linux. And it is- if you know linux. For a new user used to gui environments, one click installations, and easy yes and no questions it is frustrating and daunting. The programs I write are geared towards non-techs, I know they will not work through hours of sys configs and dependency problems. It is not Gambas's or it's creator's fault, linux as a whole is this way. It is tech friendly, but not intuituve friendly. I need in open plain English a way to distribute my programs for the non technical end user. IN my opinion if you are installing a program it should check for a dependency and if it is not there, then the program should recurse outwards find the dependency download and install it, for each part of an application. So that the end user can easily install their software. My vent is over. I am sorry but I had some frustration to burn off. Gambas is great and immensly impressive to me. I know the years that went in to it, and I am not trying to cheapen the labor and dedication the people put into it. Gambas and dist's like Ubuntu are getting big enough the majority of users from here out will be technically ignorant of linux and programming. SO I am trying to voice from the newb's point of view, what damages an otherwise wonderful experience. JB Skaggs jbskaggs wrote: > >>>Absolutely not. You are trying to run a project compiled with Gambas 1 on > Gambas 2, or a project compiled with Gambas 2 on the development > version.<< > > How is that possible? > > I wrote this program on 2.4.1 installed it to a clean ubuntu system with > no gambas on that system. > > and it gave me this error? > > > > This program runs on every other ubuntu machine its been on so far until > this one. > > BTW the GTK+ package would not install properly on this machine becuase it > could find all of the image handling dependencies. Of Which I am still > looking for them. That was why I thought this a GTK issue. > > > I will go back and clean up my source, recompile all on 2.4.1 and make new > executable and make new installation package and see what happens. > > I assume that is what you mean. If not then what should I do? > > JB SKaggs > > > > Benoit Minisini wrote: >> >> On samedi 29 mars 2008, jbskaggs wrote: >>> http://www.nabble.com/file/p16367329/Screenshot.png Screenshot.png >>> >>> This is the error I am gettin when I try and run the project on this new >>> computer. I am thinking it is the gtk libraries. >>> >>> Anyhelp? >>> >>> JB >> >> Absolutely not. You are trying to run a project compiled with Gambas 1 on >> Gambas 2, or a project compiled with Gambas 2 on the development version. >> >> Regards, >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > -- View this message in context: http://www.nabble.com/Interpreter-too-old%3A-Form1-tp16367329p16373896.html Sent from the gambas-user mailing list archive at Nabble.com. From pinozollo at ...626... Sat Mar 29 21:58:46 2008 From: pinozollo at ...626... (Pino Zollo) Date: Sat, 29 Mar 2008 16:58:46 -0400 Subject: [Gambas-user] Crssed interexchange between forms In-Reply-To: <200803291825.32945.richard.j.walker@...247...> References: <200803281404.04770.pinozollo@...626...> <200803291356.26812.pinozollo@...626...> <200803291825.32945.richard.j.walker@...247...> Message-ID: <200803291658.50071.pinozollo@...626...> Alle 14:25, sabato 29 marzo 2008, hai scritto: > The problem is not in your technique but in the size of the "Caption" font > you are using in your text boxes. Choose another font, like Liberation > Sans, and at a bit more conservative size (eg. +0) and try again. > > Richard > PS > > you might also try this on each form > > PUBLIC SUB WriteS(sText as String) > > TextBox1.Text=sText > > END SUB > > Then you can set the string to be printed in each form's button action > routine > Hi Richard...I am seeing some light ! I did put the following: PUBLIC SUB WriteS2(sText AS String) DEBUG sText TextBox1.Text = sText END SUB and actually the SUB is called as DEBUG prints the right string, but nothing happens into the TextBox. Please where do I change the "Caption" font ? as The TextBox font is already +4. In the properties of the TextBox there is no other font. All the 3 forms are just the same....why the text appear in Fmain but not in the other two? Thanks in advance Pino From sourceforge-raindog2 at ...94... Sat Mar 29 22:05:27 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 29 Mar 2008 17:05:27 -0400 Subject: [Gambas-user] Interpreter too old: Form1 In-Reply-To: <16373896.post@...1379...> References: <16367329.post@...1379...> <16373188.post@...1379...> <16373896.post@...1379...> Message-ID: <200803291705.27392.sourceforge-raindog2@...94...> On Saturday 29 March 2008 16:00, jbskaggs wrote: > I dont want sound snippy- but what is the purpose of the > installation package if you have to install the entire gambas to a > new machine? Shouldn't the installation package include all the If the packages are made correctly, they will have the necessary version of Gambas as a dependency, and any modern Linux will automatically install it. You as an application developer need to be aware of which versions of your chosen language are available to the most users, and target that version. I'm only just starting to deploy Gambas 2 applications now myself, and I've been writing in Gambas for my clients since about version 0.70. Now, if you're generating packages directly from Gambas 2, and the version of Gambas they require is too old, that's a bug with the Gambas package generator. > runtime files and interpretor needed? I thought that was the > purpose of a installer package? Well, no, that's the purpose of a Windows installer package, which is why they have that thing called "DLL hell". Every program comes with its own copies of dependencies, and sometimes a newer one is overwritten with an older one with the same name, or a newer one installed with one program breaks an older program. If your program needs a newer version of Gambas than Ubuntu provides, you should either make your own repository containing your programs' dependencies, or have your users add Daniel's Gambas repository at http://azores.linex.org/gambas-other to their list of sources. I agree that Linux as a desktop OS needs a unified packaging scheme, but egos (both personal and corporate) are far too strong to allow the different distros to agree on one. But Ubuntu's popularity simplifies things the way Red Hat's once did before they abandoned the desktop market. So personally I would just target Ubuntu plus whatever is your personal choice (mine is Mandriva but I have one Ubuntu server.) There is a "Smart" package manager ( http://labix.org/smart ) that works on most major distributions and claims to support packages of different kinds, and was meant to be the lingua franca we've all been waiting for. But none of the distributions has adopted it that I know of, making it just an extra step in getting your software on the machines of non-technical users. > I need in open plain English a way to distribute my programs for > the non technical end user. Maybe you should look into "klik", which is a "single-click all dependencies included and installed into your home directory on any distro" packaging system, but I don't know if it's still being developed. At one point, Gambas had been added to klik, but I don't know if it's possible to deploy Gambas applications that way or if the klik-able version has been kept up to date. I also don't know how well it works, because I've never tried it, just read good reviews and complaints about it. Mandriva's packaging system works fine for me, but that's largely because I've been building my own packages for it for about 8 years. Rob From pinozollo at ...626... Sat Mar 29 23:20:02 2008 From: pinozollo at ...626... (Pino Zollo) Date: Sat, 29 Mar 2008 18:20:02 -0400 Subject: [Gambas-user] Crossed interexchange between forms Message-ID: <200803291820.06743.pinozollo@...626...> Thanks Stefano, Now all works fine ! Also my first big program in Gambas2 Ciao Pino --------------------------------------------------------------------------- I opened your project. The FMain Form_Open() function is wrong: Here it is the right way: PUBLIC SUB Form_Open() ? ? ' DIM Frma AS FormA ? ' DIM FrmB AS FormB ? ? ME.Center ? ? ME.Show ? ? ' Frma = NEW FormA ? ? ' Frma.Visible = TRUE ? ? ' ? ? ' FrmB = NEW FormB ? ? ' FrmB.Visible = TRUE ? ? ? ? FormA.Show ? ? Formb.Show ? ? END I commented out the wrong code. Bye, Stefano From rterry at ...1822... Sun Mar 30 04:26:39 2008 From: rterry at ...1822... (richard terry) Date: Sun, 30 Mar 2008 13:26:39 +1100 Subject: [Gambas-user] Iterating through a class Message-ID: <200803301326.39899.rterry@...1822...> Is it possible to interact through a class in code eg cMyclass public sWhatever as string public sNextThing as string public bSomething as boolean. ie can you somehow printout the values contained in a class without specifically addressing them by name. Maybe a stupid question. Regards Richard T From rterry at ...1822... Sat Mar 29 13:41:28 2008 From: rterry at ...1822... (richard terry) Date: Sat, 29 Mar 2008 23:41:28 +1100 Subject: [Gambas-user] How to remove the marquee of a list (ie the highlighted line color) Message-ID: <200803292341.28305.rterry@...1822...> I've two lists one above the other. When the second list is clicked on, I want to remove the marquee from the first one. I've tried. list.item.selected = False and it dosn't seem to do anything. Any help appreciated. From rterry at ...1822... Sat Mar 29 13:41:12 2008 From: rterry at ...1822... (richard terry) Date: Sat, 29 Mar 2008 23:41:12 +1100 Subject: [Gambas-user] I just noticed some nifty editor behaviour Message-ID: <200803292341.13202.rterry@...1822...> Not sure how long this has been a feature of the editor, but I've only just noticed it, so just in case other dummies like me havn't picked up on this, I'll describe the behaviour. I've been picking up my mouse to move around and found in this case I don't have to If your doing a case statement and type: CASE " Then the editor puts the next set of quotation marks in for you. Also I just noticed that even when the cursor is inside of the brackets, that hitting dosn't split the line - and additionally , puts the next set of "" marks, ahead of the cursor position on the next line. I guess this utility could be extended to things like; Type Case (then the editor puts an End Case a couple of lines down. Case Select Case "whatever" and hit and the editor could put the Case " " there automatically. In any case, what exists at the moment is great. Ive started to write down a list of these editor features as I stumble on them. Perhaps if anyone wanted to contribute some How to use the editor tips, they could mail them to me and I could put them into some sort of HTML file for general use. Regards Richard From rterry at ...1822... Sun Mar 30 04:50:54 2008 From: rterry at ...1822... (richard terry) Date: Sun, 30 Mar 2008 13:50:54 +1100 Subject: [Gambas-user] textbox.lost focus not triggering (2.4 or 2.99 build 1266) Message-ID: <200803301350.54123.rterry@...1822...> When moving form textbox to textbox on a form the lost focus triggers. However when moving from textbox to a checkbox it seems not to. Sample enclosed. (tried it in 2.4 and 2.99) At first glance it seems like as soon as you click on the checkbox that the focus gets put back onto the previous control (here a checkbox), because the cursor flashes again in the textbox, so I assumed that this was the problem and that the got_focus event was just re-setting the color. However I put a printout in the console and incremented the value of the statement and tried again, and it dosn't increment the value when you move from the textbox to the next none- textbox control. Now interestingly I explored this further on my project form with dozens of controls and found that some controls and not others triggered the event, so I've added a bunch of these to demonstrate. I'm using this technique to highlight a textbox on a form with many controls, (not using this garish colour!!!!), to ensure the user knows exactly where they are, because my forms are like a sheet of paper (no borders on the textboxes), and don't want the last textbox filled in still hightlighted as the user (me) moves on to the next section. Hopefully Its just something I'm doing wrong in code. Any help appreciated. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: lostfocus-0.0.1.tar.gz Type: application/x-tgz Size: 8562 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lostfocus_event.png Type: image/png Size: 41550 bytes Desc: not available URL: From rterry at ...1822... Sun Mar 30 04:54:31 2008 From: rterry at ...1822... (richard terry) Date: Sun, 30 Mar 2008 13:54:31 +1100 Subject: [Gambas-user] Popups are blocking view of text I'm typing (2.99 Build 1266) Message-ID: <200803301354.31921.rterry@...1822...> I've noticed over the weekend I'm having trouble with the auto-complete feature, which as I type seems to overlie what I'm typing, and where there are muliple similar or longish names, I can't see what I'm typing underneath. Sometimes, ok its' easier to use the auto-complete, sometimes its quicker to keep typing a couple of character rather than take your hands off the keyboard, arrow down, select the one you want and hit enter. Wondered if it could be positioned a line higher/lower or something, so as not to block the view. Piccie enclosed. regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: popup_blocking_textUnderneath.png Type: image/png Size: 20730 bytes Desc: not available URL: From rterry at ...1822... Sun Mar 30 08:49:37 2008 From: rterry at ...1822... (richard terry) Date: Sun, 30 Mar 2008 17:49:37 +1100 Subject: [Gambas-user] Trying to copy a collection with problems Message-ID: <200803301749.37595.rterry@...1822...> I'm working on the past history in my program. I've a collection of these for aperson ie person.pasthistory = the collection. I can add to this, iterate through it etc, no problem. I want to copy this to keep a 'backup copy' to later check if any of the original data has been changed, and have tried this In my frmPastHistory I have this: Public PH_Copy As cPastHistory When the form loads I use the data from the calling form (frmClinical) and do this: public sub form_open() PH_Copy = New Collection H_Copy = frmClinical.currentPatient.past_history Now what happens is if I change anything in frmClinical.currentPatient.past_history collection after that - it automatically changes in the Backup collection, so it seems that I'm just pointing to a memory address somehow, not creating an independant collection. Any help appreciated. Hope this makes sense. Regards Richard. From ariefbayu at ...626... Sun Mar 30 11:20:15 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Sun, 30 Mar 2008 16:20:15 +0700 Subject: [Gambas-user] How to remove the marquee of a list (ie the highlighted line color) In-Reply-To: <200803292341.28305.rterry@...1822...> References: <200803292341.28305.rterry@...1822...> Message-ID: <976ad9050803300220i3e673c1evcc7f0afb0183b496@...627...> On 3/29/08, richard terry wrote: > > I've two lists one above the other. When the second list is clicked on, I > want > to remove the marquee from the first one. > > I've tried. list.item.selected = False and it dosn't seem to do anything. > > Any help appreciated. Hi, I assume you use ListView. you can use ListViewObject.SelectAll(False) NB: I'm using gambas3 svn, retrieved 2 days ago. -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From kaoticus60 at ...151... Sun Mar 30 14:17:32 2008 From: kaoticus60 at ...151... (andy2) Date: Sun, 30 Mar 2008 14:17:32 +0200 Subject: [Gambas-user] Howto create a new istance of webbrowser component? In-Reply-To: References: Message-ID: <47EF84DC.5000905@...151...> the following code gives me an error: PUBLIC SUB newweb() DIM mybrowser AS NEW WebBrowser .......... END From gambas at ...1... Sun Mar 30 15:09:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Mar 2008 15:09:53 +0200 Subject: [Gambas-user] Google Api for generate charts In-Reply-To: <47EE854B.5020201@...151...> References: <47EE854B.5020201@...151...> Message-ID: <200803301509.53086.gambas@...1...> On samedi 29 mars 2008, andy2 wrote: > yes, javascript enabled. I am working on a class for chart with Google > on Gambas > Well, maybe Google chart does not work with Konqueror? -- Benoit Minisini From gambas at ...1... Sun Mar 30 15:21:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Mar 2008 15:21:33 +0200 Subject: [Gambas-user] Interpreter too old: Form1 In-Reply-To: <16373188.post@...1379...> References: <16367329.post@...1379...> <200803291315.20622.gambas@...1...> <16373188.post@...1379...> Message-ID: <200803301521.33438.gambas@...1...> On samedi 29 mars 2008, jbskaggs wrote: > >>Absolutely not. You are trying to run a project compiled with Gambas 1 on > > Gambas 2, or a project compiled with Gambas 2 on the development version.<< > > How is that possible? > Sorry, this was the contrary: you are running a Gambas 2 program on Gambas 1, so it tells you to upgrade the interpreter. The message you get is the Gambs 1 message, it has changed in Gambas 2. I don't know what you exactly did, but I can tell you what I think it happened (please correct me!): - You made a Gambas 2 program on the computer A with gambas 2.4.1 installed on it. - You installed Gambas on a computer B with Ubuntu on it. Alas the Gambas packaged on Ubuntu is still an old version (< 2.0). - You run the program on it, and gets the message. Normally, you should use the IDE to make binary packages on A, and install these binary packages on B. In these binary packages, the IDE has explicitely written in it that Gambas 2 is needed (actually >= 1.9.48 and < 2.90), so that the Ubuntu installer tells you that, or automatically install Gambas 2 when the needed package sources have been set. I hope all is clear now! Regards, -- Benoit Minisini From gambas at ...1... Sun Mar 30 15:24:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Mar 2008 15:24:34 +0200 Subject: [Gambas-user] I just noticed some nifty editor behaviour In-Reply-To: <200803292341.13202.rterry@...1822...> References: <200803292341.13202.rterry@...1822...> Message-ID: <200803301524.34082.gambas@...1...> On samedi 29 mars 2008, richard terry wrote: > Not sure how long this has been a feature of the editor, but I've only > just noticed it, so just in case other dummies like me havn't picked up on > this, I'll describe the behaviour. I've been picking up my mouse to move > around and found in this case I don't have to > > If your doing a case statement and type: > CASE " > > Then the editor puts the next set of quotation marks in for you. > > Also I just noticed that even when the cursor is inside of the brackets, > that hitting dosn't split the line - and additionally , puts the > next set of "" marks, ahead of the cursor position on the next line. > > I guess this utility could be extended to things like; > > Type Case (then the editor puts an End Case a couple of lines down. > Case Select Case "whatever" and hit and the editor could put the > Case " " there automatically. ?? > > In any case, what exists at the moment is great. > > Ive started to write down a list of these editor features as I stumble on > them. Perhaps if anyone wanted to contribute some How to use the editor > tips, they could mail them to me and I could put them into some sort of > HTML file for general use. > > Regards > > Richard > I don't understand what you want to add, but the " is automatically added just because the parser got a beginning quote, starts to parse a string token by waiting for the ending one, didn't get it, but adds the string token anyway in its internal tree. When the parser rewrites the line of code for the editor, it automatically adds the ending quote when rewriting the string. Regards, -- Benoit Minisini From jaap_cramer at ...67... Sun Mar 30 15:29:18 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Sun, 30 Mar 2008 15:29:18 +0200 Subject: [Gambas-user] SidePanel Use In-Reply-To: <200803301524.34082.gambas@...1...> References: <200803292341.13202.rterry@...1822...> <200803301524.34082.gambas@...1...> Message-ID: Hello I use the SidePanel, and it seams to create en new, unknown FSidepanel as its parent. What is it? Why is it there? Can I shut it down, because it causes me circular reference (i think...), and I want to get rid of them... Jaap _________________________________________________________________ Check je Hotmail nu ook op je mobiel! http://windowslivemobile.msn.com/BrowserServiceHotmail.aspx?lang=nl-nl From gambas at ...1... Sun Mar 30 15:32:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Mar 2008 15:32:48 +0200 Subject: [Gambas-user] Iterating through a class In-Reply-To: <200803301326.39899.rterry@...1822...> References: <200803301326.39899.rterry@...1822...> Message-ID: <200803301532.48623.gambas@...1...> On dimanche 30 mars 2008, richard terry wrote: > Is it possible to interact through a class in code > eg cMyclass > public sWhatever as string > public sNextThing as string > public bSomething as boolean. > > ie can you somehow printout the values contained in a class without > specifically addressing them by name. > > Maybe a stupid question. > > Regards > > Richard T > You can browse the public symbols of a class. Not the private ones, as they do not exist anymore once the program is compiled, except for the debugger. To do that: DIM hObject AS Object = ... ' <- Your cMyClass instance DIM hClass AS Class = Class["cMyClass"] FOR EACH SymbolName IN hClass.Symbols WITH hClass[SymbolName] IF .Kind = Class.Variable THEN PRINT .Name;; Object.GetProperty(hObject, .Name) ENDIF END WITH NEXT I think that works. Otherwise you will tell me... -- Benoit Minisini From gambas at ...1... Sun Mar 30 15:34:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Mar 2008 15:34:34 +0200 Subject: [Gambas-user] SidePanel Use In-Reply-To: References: <200803292341.13202.rterry@...1822...> <200803301524.34082.gambas@...1...> Message-ID: <200803301534.34628.gambas@...1...> On dimanche 30 mars 2008, Jaap Cramer wrote: > Hello > > I use the SidePanel, and it seams to create en new, unknown FSidepanel as > its parent. Not its parent, but its first child. > What is it? Why is it there? You can know that by reading the source code of the gb.form component, everything is written in Gambas. > Can I shut it down, No. > because it > causes me circular reference (i think...), and I want to get rid of them... The circular references comes from another place, unless I made a bug of course. But I don't think so as now SidePanel has been used for a long time now. Regards, -- Benoit Minisini From gambas at ...1... Sun Mar 30 15:36:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Mar 2008 15:36:18 +0200 Subject: [Gambas-user] Howto create a new istance of webbrowser component? In-Reply-To: <47EF84DC.5000905@...151...> References: <47EF84DC.5000905@...151...> Message-ID: <200803301536.18525.gambas@...1...> On dimanche 30 mars 2008, andy2 wrote: > the following code gives me an error: > > PUBLIC SUB newweb() > DIM mybrowser AS NEW WebBrowser > .......... > > END > You must specify the parent container of the WebBrowser (see the documentation). Regards, -- Benoit Minisini From gambas at ...1... Sun Mar 30 15:37:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Mar 2008 15:37:39 +0200 Subject: [Gambas-user] Trying to copy a collection with problems In-Reply-To: <200803301749.37595.rterry@...1822...> References: <200803301749.37595.rterry@...1822...> Message-ID: <200803301537.39999.gambas@...1...> On dimanche 30 mars 2008, richard terry wrote: > I'm working on the past history in my program. > > I've a collection of these for aperson > > ie person.pasthistory = the collection. I can add to this, iterate through > it etc, no problem. > > I want to copy this to keep a 'backup copy' to later check if any of the > original data has been changed, and have tried this > > In my frmPastHistory I have this: > > Public PH_Copy As cPastHistory > > When the form loads I use the data from the calling form (frmClinical) and > do this: > > public sub form_open() > > PH_Copy = New Collection > H_Copy = frmClinical.currentPatient.past_history > > > Now what happens is if I change anything in > frmClinical.currentPatient.past_history collection after that - it > automatically changes in the Backup collection, so it seems that I'm just > pointing to a memory address somehow, not creating an independant > collection. > > Any help appreciated. Hope this makes sense. > > Regards > > Richard. > Collection.Copy() does not exist: I am lazy, so I didn't write it, so you must do it yourself: DIM cSource AS Collection DIM cDest AS NEW Collection DIM vVal AS Variant FOR EACH vVal IN cSource cDest[cSource.Key] = vVal NEXT Regards, -- Benoit Minisini From gambas at ...1... Sun Mar 30 15:38:51 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Mar 2008 15:38:51 +0200 Subject: [Gambas-user] Popups are blocking view of text I'm typing (2.99 Build 1266) In-Reply-To: <200803301354.31921.rterry@...1822...> References: <200803301354.31921.rterry@...1822...> Message-ID: <200803301538.51555.gambas@...1...> On dimanche 30 mars 2008, richard terry wrote: > I've noticed over the weekend I'm having trouble with the auto-complete > feature, which as I type seems to overlie what I'm typing, and where there > are muliple similar or longish names, I can't see what I'm typing > underneath. ??? Normally, the popup stays under the cursor, not somewhere in the middle of the screen below it! I'm not sure to understand the situation... -- Benoit Minisini From gambas at ...1... Sun Mar 30 15:55:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Mar 2008 15:55:33 +0200 Subject: [Gambas-user] textbox.lost focus not triggering (2.4 or 2.99 build 1266) In-Reply-To: <200803301350.54123.rterry@...1822...> References: <200803301350.54123.rterry@...1822...> Message-ID: <200803301555.33801.gambas@...1...> On dimanche 30 mars 2008, richard terry wrote: > When moving form textbox to textbox on a form the lost focus triggers. > > However when moving from textbox to a checkbox it seems not to. > > Sample enclosed. (tried it in 2.4 and 2.99) > > At first glance it seems like as soon as you click on the checkbox that the > focus gets put back onto the previous control (here a checkbox), because > the cursor flashes again in the textbox, so I assumed that this was the > problem and that the got_focus event was just re-setting the color. > > However I put a printout in the console and incremented the value of the > statement and tried again, and it dosn't increment the value when you move > from the textbox to the next none- textbox control. > > Now interestingly I explored this further on my project form with dozens of > controls and found that some controls and not others triggered the event, > so I've added a bunch of these to demonstrate. > > I'm using this technique to highlight a textbox on a form with many > controls, (not using this garish colour!!!!), to ensure the user knows > exactly where they are, because my forms are like a sheet of paper (no > borders on the textboxes), and don't want the last textbox filled in still > hightlighted as the user (me) moves on to the next section. > > > Hopefully Its just something I'm doing wrong in code. > > Any help appreciated. > > Regards > > Richard You are not doing anything wrong. It is just that the textbox does not lose its focus. This is a QT behaviour: using the mouse on a control that does not edit text does not necessarily change the focus. Regards, -- Benoit Minisini From jaap_cramer at ...67... Sun Mar 30 16:05:19 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Sun, 30 Mar 2008 16:05:19 +0200 Subject: [Gambas-user] SidePanel Use In-Reply-To: <200803301534.34628.gambas@...1...> References: <200803292341.13202.rterry@...1822...> <200803301524.34082.gambas@...1...> <200803301534.34628.gambas@...1...> Message-ID: Ok, thanks... I am trying to reduce my circular references, and I found something I didn't understand, so i thought they caused it. I stopped with the use of my sidepanel and 1 circular reference disapeared. Jaap ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Sun, 30 Mar 2008 15:34:34 +0200 > Subject: Re: [Gambas-user] SidePanel Use > > On dimanche 30 mars 2008, Jaap Cramer wrote: >> Hello >> >> I use the SidePanel, and it seams to create en new, unknown FSidepanel as >> its parent. > > Not its parent, but its first child. > >> What is it? Why is it there? > > You can know that by reading the source code of the gb.form component, > everything is written in Gambas. > >> Can I shut it down, > > No. > >> because it >> causes me circular reference (i think...), and I want to get rid of them... > > The circular references comes from another place, unless I made a bug of > course. But I don't think so as now SidePanel has been used for a long time > now. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Jouw nieuws en entertainment, vind je op MSN.nl! http://nl.msn.com/ From robert.c.rowe at ...626... Sun Mar 30 18:14:42 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Sun, 30 Mar 2008 12:14:42 -0400 Subject: [Gambas-user] Interpreter too old: Form1 In-Reply-To: <200803301521.33438.gambas@...1...> References: <16367329.post@...1379...> <200803291315.20622.gambas@...1...> <16373188.post@...1379...> <200803301521.33438.gambas@...1...> Message-ID: <47EFBC72.4040805@...626...> The Ubuntu repository has entries for both gambas and gambas2. It sounds like you selected the gambas entry and got gambas1. Try uninstalling it and installing gambas2. Robert Rowe Benoit Minisini wrote: > On samedi 29 mars 2008, jbskaggs wrote: > >>>> Absolutely not. You are trying to run a project compiled with Gambas 1 on >>>> >> Gambas 2, or a project compiled with Gambas 2 on the development version.<< >> >> How is that possible? >> >> > > Sorry, this was the contrary: you are running a Gambas 2 program on Gambas 1, > so it tells you to upgrade the interpreter. The message you get is the Gambs > 1 message, it has changed in Gambas 2. > > I don't know what you exactly did, but I can tell you what I think it happened > (please correct me!): > > - You made a Gambas 2 program on the computer A with gambas 2.4.1 installed on > it. > > - You installed Gambas on a computer B with Ubuntu on it. Alas the Gambas > packaged on Ubuntu is still an old version (< 2.0). > > - You run the program on it, and gets the message. > > Normally, you should use the IDE to make binary packages on A, and install > these binary packages on B. > > In these binary packages, the IDE has explicitely written in it that Gambas 2 > is needed (actually >= 1.9.48 and < 2.90), so that the Ubuntu installer tells > you that, or automatically install Gambas 2 when the needed package sources > have been set. > > I hope all is clear now! > > Regards, > > From robert.c.rowe at ...626... Sun Mar 30 18:26:25 2008 From: robert.c.rowe at ...626... (Robert Rowe) Date: Sun, 30 Mar 2008 12:26:25 -0400 Subject: [Gambas-user] Popups are blocking view of text I'm typing (2.99 Build 1266) In-Reply-To: <200803301538.51555.gambas@...1...> References: <200803301354.31921.rterry@...1822...> <200803301538.51555.gambas@...1...> Message-ID: <47EFBF31.6010603@...626...> I can verify this. You have to be in split mode. It looks like the split mode is confusing the completion window about where to appear. It seems to be one line too high. Robert Rowe Benoit Minisini wrote: > On dimanche 30 mars 2008, richard terry wrote: > >> I've noticed over the weekend I'm having trouble with the auto-complete >> feature, which as I type seems to overlie what I'm typing, and where there >> are muliple similar or longish names, I can't see what I'm typing >> underneath. >> > > ??? Normally, the popup stays under the cursor, not somewhere in the middle of > the screen below it! I'm not sure to understand the situation... > > From Karl.Reinl at ...9... Sun Mar 30 18:29:22 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 30 Mar 2008 18:29:22 +0200 Subject: [Gambas-user] Crssed interexchange between forms In-Reply-To: <200803291829.19465.richard.j.walker@...247...> References: <200803281404.04770.pinozollo@...626...> <200803291356.26812.pinozollo@...626...> <200803291922.37359.rospolosco@...152...> <200803291829.19465.richard.j.walker@...247...> Message-ID: <1206894563.5499.5.camel@...40...> Salut, PUBLIC SUB Form_Open() DIM Frma AS FormA DIM FrmB AS FormB are declared in Form_Open and so they are known only there . Amicalement Charlie > Am Samstag, den 29.03.2008, 18:29 +0000 schrieb Richard: > Hi Stefano, > > The interesting thing is that Pino's code works too. Is there a reason why it > is "wrong" to instantiate a form created in the GUI? (Apart from the fact > that at first sight it looks to be unneccessary) > > Richard > > On Saturday 29 Mar 2008 18:22, Stefano Palmeri wrote: > > Alle 18:56, sabato 29 marzo 2008, Pino Zollo ha scritto: > > > Alle 09:18, sabato 29 marzo 2008, hai scritto: > > > Hi Richard and Rob > > > Thanks for your answers and suggestion.... > > > Both of your solutions do not work....I do not know why. > > > > > > So I made an example program to show you the double problem. > > > You can download it form http://www.qsl.net/zp4kfx/xcross-0.0.1.tar.gz > > > > > > This program opens 3 forms: Fmain, FormA and FormB. > > > On my computer FormA can send a value to Fmain end execute a PULIC SUB of > > > FMain too, but not on FormB. > > > The symetric for FormB > > > FMain can not send values to FormA or FormB and nither execute PUBLIC > > > SUBs in both. > > > No errors are displayed. > > > > > > I did set public both module symbols and control forms. > > > > > > Maybe there is something else that I do not have understood. > > > > > > Thanks for your help > > > Regards > > > Pino > > > > > > > As an alternative to Rob's suggestion that you make all form controls > > > > public (which should work) you might prefer to create public methods on > > > > your forms which will take a parameter from the calling form code and > > > > store the value in a now local form control property. > > > > > > > > For example; if on frmCW you have > > > > > > > > PUBLIC SUB Write_CWcall_text(calltext as string) > > > > CWCall.text = calltext > > > > END SUB > > > > > > > > then on FMain you would write > > > > > > > > IF cw_on THEN FrmCW.Write_CWcall_text(Call.Text) > > > > > > > > That should also do the trick and preserve flexibility. If form > > > > controls are public then you can write directly to them from ANYWHERE. > > > > What if you decide to change the control from a text box to a value > > > > box? You would have to go through all your code and change all the > > > > writes and reads involving the changed control. > > > > > > > > If instead you do it as I suggest, then you only need to change the > > > > access methods for READ and WRITE in one place. Much easier, yes? > > > > > > > > Richard > > > > > > > > On Friday 28 Mar 2008 18:04, Pino Zollo wrote: > > > > > I am developing a program in GAMBAS2 2.0 > > > > > > > > > > How can I pass information between one form and another ? > > > > > > > > > > In my program there are 3 forms....FMain, FrmCW e FCluster. > > > > > > > > > > >From the class of FrmCW (or of Fcluster) I can write a value in > > > > > > > > > > FMain.variabile.... > > > > > But nither from FMain and from FCluster can write variabes in > > > > > FrmCW.somevariable. > > > > > > > > > > It means that the class of FMain can not send values to the > > > > > variables of other classes , nither a class (not FMain) can send > > > > > values to other classes which are not FMain ...Why this ? > > > > > > > > > > It seems a big limitation. > > > > > For instance...in FMain the instruction: > > > > > > > > > > IF cw_on THEN FrmCW.CWCall.text = Call.Text > > > > > > > > > > Simply does nothing...nither gives error. > > > > > > > > > > In the class of FCluster > > > > > FMain.Call.Text = GridSpot[GridSpot.row, 0].Text ' <-- this is ok > > > > > IF FMain.cw_on THEN FrmCW.CWCall.text = GridSpot[GridSpot.row, > > > > > 0].Text ' <-- > > > > > > > > > > The first instruction works, but the second does nothing. > > > > > > > > > > Why ? > > > > > > > > > > Is there some trick or workaround ? > > > > > > > > > > For the same reason, I guess, it does not even work the example in > > > > > suggestion #11. > > > > > > > > > > the instruction > > > > > > > > > > hSuperControl.Move(8, 8, 128, 64) > > > > > > > > > > if given into the FMain class gives error..."Not enough parameters" > > > > > > > > > > >From a class not-FMain I can call SUBs of FMain, but not viceversa > > > > > > > > > > Equally from a class not-FMain I can not call SUBs of not-FMain > > > > > > > > > > Thanks for any help > > > > > > > > > > Pino pinozollo at ...626... > > > > I opened your project. The FMain Form_Open() function is wrong: > > Here it is the right way: > > > > PUBLIC SUB Form_Open() > > > > ' DIM Frma AS FormA > > ' DIM FrmB AS FormB > > ME.Center > > ME.Show > > ' Frma = NEW FormA > > ' Frma.Visible = TRUE > > ' > > ' FrmB = NEW FormB > > ' FrmB.Visible = TRUE > > > > FormA.Show > > Formb.Show > > > > END > > > > I commented out the wrong code. > > > > Bye, > > > > Stefano > > > > > > > --------------------------------------------------------------------- > > > > >-- -- Check out the new SourceForge.net Marketplace. > > > > > It's the best place to buy or sell services for > > > > > just about anything Open Source. > > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/mark > > > > >et pl ac e _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------- > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > > >ac e _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac > >e _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jbskaggs at ...1871... Sun Mar 30 21:54:20 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sun, 30 Mar 2008 12:54:20 -0700 (PDT) Subject: [Gambas-user] Interpreter too old: Form1 In-Reply-To: <47EFBC72.4040805@...626...> References: <16367329.post@...1379...> <200803291315.20622.gambas@...1...> <16373188.post@...1379...> <200803301521.33438.gambas@...1...> <47EFBC72.4040805@...626...> Message-ID: <16386509.post@...1379...> After reading you two guys responses I know what happened! (BTW thank you for not getting upset at my rant:) ) I made my binary in the 2.4.1 Gambas IDE- then installed it on a brand new ubuntu system with only CD-Rom upgrade setting. It installed version 1 or either 1.9 and that is why it said the interpretor was too old. So when I went and installed version 2,4,1 it also installed a missing library file! Libffi or something like that I'm going by memory. Anyway I understand what happened now! When I distribute my program I have to provide the warning that they need to install the 2.4.1 version on their system to make sure they have the library and interpretor files because a new Ubuntu most likely has ver 2 and version 1. (that is if I am writing the program in 2.4.1) Do I have that correct now? JB Skaggs Robert Rowe wrote: > > The Ubuntu repository has entries for both gambas and gambas2. It sounds > like you selected the gambas entry and got gambas1. Try uninstalling it > and installing gambas2. > > Robert Rowe > > Benoit Minisini wrote: >> On samedi 29 mars 2008, jbskaggs wrote: >> >>>>> Absolutely not. You are trying to run a project compiled with Gambas 1 >>>>> on >>>>> >>> Gambas 2, or a project compiled with Gambas 2 on the development >>> version.<< >>> >>> How is that possible? >>> >>> >> >> Sorry, this was the contrary: you are running a Gambas 2 program on >> Gambas 1, >> so it tells you to upgrade the interpreter. The message you get is the >> Gambs >> 1 message, it has changed in Gambas 2. >> >> I don't know what you exactly did, but I can tell you what I think it >> happened >> (please correct me!): >> >> - You made a Gambas 2 program on the computer A with gambas 2.4.1 >> installed on >> it. >> >> - You installed Gambas on a computer B with Ubuntu on it. Alas the Gambas >> packaged on Ubuntu is still an old version (< 2.0). >> >> - You run the program on it, and gets the message. >> >> Normally, you should use the IDE to make binary packages on A, and >> install >> these binary packages on B. >> >> In these binary packages, the IDE has explicitely written in it that >> Gambas 2 >> is needed (actually >= 1.9.48 and < 2.90), so that the Ubuntu installer >> tells >> you that, or automatically install Gambas 2 when the needed package >> sources >> have been set. >> >> I hope all is clear now! >> >> Regards, >> >> > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Interpreter-too-old%3A-Form1-tp16367329p16386509.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Sun Mar 30 13:22:38 2008 From: rterry at ...1822... (richard terry) Date: Sun, 30 Mar 2008 22:22:38 +1100 Subject: [Gambas-user] Funny behaviour of IDE editor inserting unwanted blanks (1268 build) Message-ID: <200803302222.39053.rterry@...1822...> Piccie will explain. A couple of things - inserting hard to get rid of double quotes sometimes - backspace or delete won't remove and have to swipe it to remove it. Secondly in this example trying to type THEN after pushes the t back onto the last bracket and puts a space after the t. (Yes I know there is a syntax error here - forget the .text after txtAgeOnset!!!) but I'd already taken the piccie. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: funny_insertion_of_space.png Type: image/png Size: 9890 bytes Desc: not available URL: From rterry at ...1822... Sun Mar 30 23:13:33 2008 From: rterry at ...1822... (richard terry) Date: Mon, 31 Mar 2008 08:13:33 +1100 Subject: [Gambas-user] Howto create a new istance of webbrowser component? In-Reply-To: <47EF84DC.5000905@...151...> References: <47EF84DC.5000905@...151...> Message-ID: <200803310813.34023.rterry@...1822...> Andy try this: PUBLIC SUB Form_Open() DIM myWebBrowser AS WebBrowser myWebBrowser = NEW WebBrowser(ME) END Me can be any control/panel/split or whatever you wish to stick your contorl on Richard PUblic New On Sun, 30 Mar 2008 11:17:32 pm you wrote: > the following code gives me an error: > > PUBLIC SUB newweb() > DIM mybrowser AS NEW WebBrowser > .......... > END > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: stickonacontrol-0.0.1.tar.gz Type: application/x-tgz Size: 7534 bytes Desc: not available URL: From rterry at ...1822... Sun Mar 30 23:26:12 2008 From: rterry at ...1822... (richard terry) Date: Mon, 31 Mar 2008 08:26:12 +1100 Subject: [Gambas-user] Putting up my hand to do something usefull Message-ID: <200803310826.12516.rterry@...1822...> Should have been doing this for last few months, but better later than never. I've started a file where i'm copying all the useful hints/solutions to many of the problems posed on the list where they are relevant to beginners or intermediates. Once I've got a fair collection if someone advises me what format to put them in I'll post them wherever users want them (after of course someone else checks them). So, if you could all trawl through your code and post me some hints and tips I'll add them to the list (+/- a small sample program). A good example would be Andy's request where he couldn't instantiate a web browser, so i knocked up a little program showing how to add a control to the form. However more complex examples such as Benoit's answer to some of my questions over the weekend such as iteracting through a collection etc, would be good as well. There must be myriads of these things in the archives languishing and hard to find. Hope we can all get together on this one, or if it is already done/started or someone else is working on it I could help with that. Regards Richard From rterry at ...1822... Sun Mar 30 23:29:17 2008 From: rterry at ...1822... (richard terry) Date: Mon, 31 Mar 2008 08:29:17 +1100 Subject: [Gambas-user] Popups are blocking view of text I'm typing (2.99 Build 1266) In-Reply-To: <200803301538.51555.gambas@...1...> References: <200803301354.31921.rterry@...1822...> <200803301538.51555.gambas@...1...> Message-ID: <200803310829.17313.rterry@...1822...> On Mon, 31 Mar 2008 12:38:51 am Benoit Minisini wrote: > On dimanche 30 mars 2008, richard terry wrote: > > I've noticed over the weekend I'm having trouble with the auto-complete > > feature, which as I type seems to overlie what I'm typing, and where > > there are muliple similar or longish names, I can't see what I'm typing > > underneath. > > ??? Normally, the popup stays under the cursor, not somewhere in the middle > of the screen below it! I'm not sure to understand the situation... If you look at the picture it is self explanatory - the popups totally obliterate what you are typing so if as youve typed you've say progressed on one key and mis-spelt something, you don't know where you are, ie you are lost underneath the popup. Regards Richard T From rterry at ...1822... Sun Mar 30 23:40:33 2008 From: rterry at ...1822... (richard terry) Date: Mon, 31 Mar 2008 08:40:33 +1100 Subject: [Gambas-user] Howto create a new istance of webbrowser component? In-Reply-To: <47EF84DC.5000905@...151...> References: <47EF84DC.5000905@...151...> Message-ID: <200803310840.33959.rterry@...1822...> On Sun, 30 Mar 2008 11:17:32 pm andy2 wrote: > the following code gives me an error: > > PUBLIC SUB newweb() > DIM mybrowser AS NEW WebBrowser I"m assuming you ran the project I sent you. Go to Project/Properties/Components and make sure you've selected the gb.gt and gb.gt.kde.html otherwise it won't work. Report back. Richard > .......... > > END > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jbskaggs at ...1871... Sun Mar 30 23:58:39 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sun, 30 Mar 2008 14:58:39 -0700 (PDT) Subject: [Gambas-user] Why is Gambas so frowned upon in the Linux programming community Message-ID: <16388127.post@...1379...> I have been looking for people to help me alpha / beta test my program by going to the ubuntu forums and asking for volunteers. One of the responses was this snippy response that People in the Ubuntu community do not use a vb clone and they would not like to either. That I should use Python or C++. SO I searched the web for other forums looking for people to help or volunteer and I saw the same comments over and over. What is the deal with these people? Not everybody wants to learn a hardcore language and just wants to create apps, why is that so frowned upon? Is it because VB was used in windows? or that Gambas is tearing down a wall of superiority of linux programmers. It reminds me of firebuilding in the boy scouts: The hardcore guys would spend three or four hours building a fire with flint and steel, or wood and bow. While the kids with common sense used a match. Yeah if you can start a fire with flint you can build a fire anywhere, but 99% of the time a match is superior. Is there a better reason than well you NEED to know how to program without crutches like gui generation, why I should learn harder languages if Gambas does everything I want? JB -- View this message in context: http://www.nabble.com/Why-is-Gambas-so-frowned-upon-in-the-Linux-programming-community-tp16388127p16388127.html Sent from the gambas-user mailing list archive at Nabble.com. From maximvonk at ...626... Mon Mar 31 00:07:10 2008 From: maximvonk at ...626... (Maximillian Von Kloisterheim) Date: Sun, 30 Mar 2008 23:07:10 +0100 Subject: [Gambas-user] Why is Gambas so frowned upon in the Linux programming community In-Reply-To: <16388127.post@...1379...> References: <16388127.post@...1379...> Message-ID: <47F00F0E.3040006@...626...> jbskaggs wrote: > I have been looking for people to help me alpha / beta test my program by > going to the ubuntu forums and asking for volunteers. > > One of the responses was this snippy response that People in the Ubuntu > community do not use a vb clone and they would not like to either. That I > should use Python or C++. > > SO I searched the web for other forums looking for people to help or > volunteer and I saw the same comments over and over. > > What is the deal with these people? Not everybody wants to learn a hardcore > language and just wants to create apps, why is that so frowned upon? > > Is it because VB was used in windows? or that Gambas is tearing down a wall > of superiority of linux programmers. > > > It reminds me of firebuilding in the boy scouts: > > The hardcore guys would spend three or four hours building a fire with flint > and steel, or wood and bow. While the kids with common sense used a match. > Yeah if you can start a fire with flint you can build a fire anywhere, but > 99% of the time a match is superior. > > Is there a better reason than well you NEED to know how to program without > crutches like gui generation, why I should learn harder languages if Gambas > does everything I want? > > JB Its just elitism. Some people don't have enough self esteem and they will say and do almost anything to make themselves appear 'better' than others. Max From gambas at ...1... Mon Mar 31 00:14:35 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 Mar 2008 00:14:35 +0200 Subject: [Gambas-user] Why is Gambas so frowned upon in the Linux programming community In-Reply-To: <16388127.post@...1379...> References: <16388127.post@...1379...> Message-ID: <200803310014.35508.gambas@...1...> On dimanche 30 mars 2008, jbskaggs wrote: > I have been looking for people to help me alpha / beta test my program by > going to the ubuntu forums and asking for volunteers. > > One of the responses was this snippy response that People in the Ubuntu > community do not use a vb clone and they would not like to either. That I > should use Python or C++. > > SO I searched the web for other forums looking for people to help or > volunteer and I saw the same comments over and over. > > What is the deal with these people? Not everybody wants to learn a > hardcore language and just wants to create apps, why is that so frowned > upon? > > Is it because VB was used in windows? or that Gambas is tearing down a > wall of superiority of linux programmers. > > > It reminds me of firebuilding in the boy scouts: > > The hardcore guys would spend three or four hours building a fire with > flint and steel, or wood and bow. While the kids with common sense used a > match. Yeah if you can start a fire with flint you can build a fire > anywhere, but 99% of the time a match is superior. > > Is there a better reason than well you NEED to know how to program without > crutches like gui generation, why I should learn harder languages if Gambas > does everything I want? > > JB I heart the same comments and have exactly the same question. I made Gambas for this reason: why spending four hours to do something that could be done in a few minutes? VB is a bad language not because is Basic and Visual, but because it is incoherent and full of bugs. I try to avoid that with Gambas. Otherwise, as soon as your programming skills are sufficient, you won't see a lot of difference between languages, you will see that a language is not good or bad in essence, and you will use the right tool for the right job, according to your needs: speed, memory consumption... In other words, Python and C++ are powerful enough to write quick and dirty unreadable programs. And you can make beautiful programs in Gambas if you want. -- Benoit Minisini From gambas at ...1... Mon Mar 31 00:24:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 Mar 2008 00:24:06 +0200 Subject: [Gambas-user] Why is Gambas so frowned upon in the Linux programming community In-Reply-To: <200803310014.35508.gambas@...1...> References: <16388127.post@...1379...> <200803310014.35508.gambas@...1...> Message-ID: <200803310024.06182.gambas@...1...> On lundi 31 mars 2008, Benoit Minisini wrote: > > I heart the same comments and have exactly the same question. --->heard > > I made Gambas for this reason: why spending four hours to do something that > could be done in a few minutes? > > VB is a bad language not because is Basic and Visual, but because it is --------------------------------->it is Basic or Visual -- Benoit Minisini From sourceforge-raindog2 at ...94... Mon Mar 31 00:27:58 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 30 Mar 2008 18:27:58 -0400 Subject: [Gambas-user] Why is Gambas so frowned upon in the Linux programming community In-Reply-To: <16388127.post@...1379...> References: <16388127.post@...1379...> Message-ID: <200803301827.58883.sourceforge-raindog2@...94...> On Sunday 30 March 2008 17:58, jbskaggs wrote: > One of the responses was this snippy response that People in the > Ubuntu community do not use a vb clone and they would not like to > either. That I should use Python or C++. Well, you only got one response in the hour since you posted it, and that guy seems to be a Python fanatic (he didn't mention C++ and most of his other posts are about Python). His screen name works out to "MS Sever". So, consider the source. On other Gambas threads in the Ubuntu forums there hasn't been the same level of negativity, and I've generally found those forums to be helpful and friendly though I've never looked for Gambas help there. > Is it because VB was used in windows? or that Gambas is tearing > down a wall of superiority of linux programmers. Yes, and yes. Linux coders see an IDE with a BASIC-like language and immediately (1) think of corporate wage slaves, (2) think of what a horrific language VB was (and BASIC itself was), and (3) feel threatened because it puts less experienced coders on almost equal footing with them. Users of high-level languages with less mature or less integrated IDEs, like Python, will feel especially threatened because they can imagine a world where everyone but them has switched to BASIC. I don't know if you were around when VB first came out, but all the Turbo Pascal users laughed and pointed fingers, and then howled about how horrible it was. Then they all ended up coding in it anyway, because Delphi (TP for Windows) turned out to be kind of a niche language. They're probably all .NET programmers now. Python, however, is not going to fall flat on its face, so you can expect the "get a real language" line to continue to be thrown at you by ignorant people who think Gambas is a VB clone. > without crutches like gui generation, why I should learn harder > languages if Gambas does everything I want? I'm with you; I'm pretty comfortable in C/C++, and have rolled my own GUIs with it, and have done the same in Perl, Tcl and other languages as well. But I would rather use whatever gets the job done quickest so that I can get more jobs. I'm doing this mostly for business, not jerking around in my mom's basement or something to show my Internet buddies how elite I am. Rob From gambas at ...1... Mon Mar 31 00:36:26 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 Mar 2008 00:36:26 +0200 Subject: [Gambas-user] Popups are blocking view of text I'm typing (2.99 Build 1266) In-Reply-To: <47EFBF31.6010603@...626...> References: <200803301354.31921.rterry@...1822...> <200803301538.51555.gambas@...1...> <47EFBF31.6010603@...626...> Message-ID: <200803310036.26987.gambas@...1...> On dimanche 30 mars 2008, Robert Rowe wrote: > I can verify this. You have to be in split mode. It looks like the split > mode is confusing the completion window about where to appear. It seems > to be one line too high. > > Robert Rowe > I fixed it in the revision 1272 (for Gambas 2). Regards, -- Benoit Minisini From nando_f at ...951... Mon Mar 31 00:36:11 2008 From: nando_f at ...951... (nando) Date: Sun, 30 Mar 2008 17:36:11 -0500 Subject: [Gambas-user] Why is Gambas so frowned upon in the Linux programming community In-Reply-To: <200803301827.58883.sourceforge-raindog2@...94...> References: <16388127.post@...1379...> <200803301827.58883.sourceforge-raindog2@...94...> Message-ID: <20080330223426.M81936@...951...> Gambas gets the job done the easiest in many, many ways. As 'new-thinking' as many Linux programmers are, sometimes something like Gambas is good thing - and it is!! They just don't believe it (yet) ---------- Original Message ----------- From: Rob To: gambas-user at lists.sourceforge.net Sent: Sun, 30 Mar 2008 18:27:58 -0400 Subject: Re: [Gambas-user] Why is Gambas so frowned upon in the Linux programming community > On Sunday 30 March 2008 17:58, jbskaggs wrote: > > One of the responses was this snippy response that People in the > > Ubuntu community do not use a vb clone and they would not like to > > either. That I should use Python or C++. > > Well, you only got one response in the hour since you posted it, and > that guy seems to be a Python fanatic (he didn't mention C++ and most > of his other posts are about Python). His screen name works out > to "MS Sever". So, consider the source. > > On other Gambas threads in the Ubuntu forums there hasn't been the > same level of negativity, and I've generally found those forums to be > helpful and friendly though I've never looked for Gambas help there. > > > Is it because VB was used in windows? or that Gambas is tearing > > down a wall of superiority of linux programmers. > > Yes, and yes. Linux coders see an IDE with a BASIC-like language and > immediately (1) think of corporate wage slaves, (2) think of what a > horrific language VB was (and BASIC itself was), and (3) feel > threatened because it puts less experienced coders on almost equal > footing with them. Users of high-level languages with less mature or > less integrated IDEs, like Python, will feel especially threatened > because they can imagine a world where everyone but them has switched > to BASIC. > > I don't know if you were around when VB first came out, but all the > Turbo Pascal users laughed and pointed fingers, and then howled about > how horrible it was. Then they all ended up coding in it anyway, > because Delphi (TP for Windows) turned out to be kind of a niche > language. They're probably all .NET programmers now. > > Python, however, is not going to fall flat on its face, so you can > expect the "get a real language" line to continue to be thrown at you > by ignorant people who think Gambas is a VB clone. > > > without crutches like gui generation, why I should learn harder > > languages if Gambas does everything I want? > > I'm with you; I'm pretty comfortable in C/C++, and have rolled my own > GUIs with it, and have done the same in Perl, Tcl and other languages > as well. But I would rather use whatever gets the job done quickest > so that I can get more jobs. I'm doing this mostly for business, not > jerking around in my mom's basement or something to show my Internet > buddies how elite I am. > > Rob > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From rterry at ...1822... Mon Mar 31 00:43:25 2008 From: rterry at ...1822... (richard terry) Date: Mon, 31 Mar 2008 09:43:25 +1100 Subject: [Gambas-user] Why is Gambas so frowned upon in the Linux programming community In-Reply-To: <16388127.post@...1379...> References: <16388127.post@...1379...> Message-ID: <200803310943.25314.rterry@...1822...> On Mon, 31 Mar 2008 08:58:39 am jbskaggs wrote: > I have been looking for people to help me alpha / beta test my program by > going to the ubuntu forums and asking for volunteers. > > One of the responses was this snippy response that People in the Ubuntu > community do not use a vb clone and they would not like to either. That I > should use Python or C++. Beats me, I loved python, but boy, wxPython sucks big time, and its millions of times quicker developing in Gambas - once your learning curve improves you discover more and more to like, and things just seem to work. > > SO I searched the web for other forums looking for people to help or > volunteer and I saw the same comments over and over. I did volunteer - you sent no reply, so if you want a tester, mail me. Richard > > What is the deal with these people? Not everybody wants to learn a > hardcore language and just wants to create apps, why is that so frowned > upon? > > Is it because VB was used in windows? or that Gambas is tearing down a > wall of superiority of linux programmers. > > > It reminds me of firebuilding in the boy scouts: > > The hardcore guys would spend three or four hours building a fire with > flint and steel, or wood and bow. While the kids with common sense used a > match. Yeah if you can start a fire with flint you can build a fire > anywhere, but 99% of the time a match is superior. > > Is there a better reason than well you NEED to know how to program without > crutches like gui generation, why I should learn harder languages if Gambas > does everything I want? > > JB From jbskaggs at ...1871... Mon Mar 31 01:01:30 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sun, 30 Mar 2008 16:01:30 -0700 (PDT) Subject: [Gambas-user] Simple list view check question Message-ID: <16388895.post@...1379...> I have two list views listview1 and listview2 I need a snippet of code to show me exactly how to make sure the listview items are on the one clicked by the mouse. I have tried: ListView1.MoveCurrent but if there is listview1.count<2 then I get a NULL error So I altred my code to : IF ListView1.Count > 1 ListView1.MoveCurrent ENDIF listview1.Item.Selected = TRUE Now I get a stack overflow error. What I am doing is this: Listview1 holds the chapters Listview2 holds the scenes So if I edit a scene text it would be t1 = file.Load(projectpath &/ listview1.Item.Text & listview2.Item.Text) and so on and so forth- but when the program loses the focus on the listview items then I get either NULL object or File not found depending on the code. So How do I code to check the listview items properly? JB Skaggs -- View this message in context: http://www.nabble.com/Simple-list-view-check-question-tp16388895p16388895.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Mon Mar 31 01:16:34 2008 From: rterry at ...1822... (richard terry) Date: Mon, 31 Mar 2008 10:16:34 +1100 Subject: [Gambas-user] Simple list view check question In-Reply-To: <16388895.post@...1379...> References: <16388895.post@...1379...> Message-ID: <200803311016.34524.rterry@...1822...> On Mon, 31 Mar 2008 10:01:30 am jbskaggs wrote: > I have two list views > > listview1 and listview2 > > I need a snippet of code to show me exactly how to make sure the listview > items are on the one clicked by the mouse. > > I have tried: > ListView1.MoveCurrent > > but if there is listview1.count<2 then I get a NULL error > > So I altred my code to : > > IF ListView1.Count > 1 > ListView1.MoveCurrent > ENDIF > listview1.Item.Selected = TRUE > > Now I get a stack overflow error. > > What I am doing is this: > > Listview1 holds the chapters > Listview2 holds the scenes > > So if I edit a scene text it would be > > t1 = file.Load(projectpath &/ listview1.Item.Text & listview2.Item.Text) > > and so on and so forth- but when the program loses the focus on the > listview items then I get either NULL object or File not found depending on > the code. > > So How do I code to check the listview items properly? > > JB Skaggs You must move the internal cursor to the currently selected item, then read its key, and set it to selected to make the marquee appear on that row, as per below. I then use the click event to do whatever I want. Put print statements in this routine to make sure your key is correct Hope this is correct/helps/was what you meant Public Sub ProblemLists_Select() Select Case Last.tag Case "active problems" cvwProblemsActive.MoveCurrent cvwProblemsActive.Item.Selected = True sProblemKey = cvwProblemsActive.Item.key Print "my key was:", cvwProblemsActive.Item.key Case "inactive problems" cvwProblemsInActive.MoveCurrent cvwProblemsInActive.Item.Selected = True sProblemKey = cvwProblemsInActive.Item.key End Select End Public Sub ProblemLists_Click() '----------------------------------------------------------- 'The user has clicked on either the active or inactive lists 'so display this problem in the editing area '------------------------------------------------------------ EditArea_Problem_Display End From jbskaggs at ...1871... Mon Mar 31 02:02:57 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Sun, 30 Mar 2008 17:02:57 -0700 (PDT) Subject: [Gambas-user] Simple list view check question In-Reply-To: <200803311016.34524.rterry@...1822...> References: <16388895.post@...1379...> <200803311016.34524.rterry@...1822...> Message-ID: <16389485.post@...1379...> Thank you- I will study this and see if it works for me. JB Skaggs richard terry-2 wrote: > > On Mon, 31 Mar 2008 10:01:30 am jbskaggs wrote: >> I have two list views >> >> listview1 and listview2 >> >> I need a snippet of code to show me exactly how to make sure the listview >> items are on the one clicked by the mouse. >> >> I have tried: >> ListView1.MoveCurrent >> >> but if there is listview1.count<2 then I get a NULL error >> >> So I altred my code to : >> >> IF ListView1.Count > 1 >> ListView1.MoveCurrent >> ENDIF >> listview1.Item.Selected = TRUE >> >> Now I get a stack overflow error. >> >> What I am doing is this: >> >> Listview1 holds the chapters >> Listview2 holds the scenes >> >> So if I edit a scene text it would be >> >> t1 = file.Load(projectpath &/ listview1.Item.Text & listview2.Item.Text) >> >> and so on and so forth- but when the program loses the focus on the >> listview items then I get either NULL object or File not found depending >> on >> the code. >> >> So How do I code to check the listview items properly? >> >> JB Skaggs > > You must move the internal cursor to the currently selected item, then > read > its key, and set it to selected to make the marquee appear on that row, as > per below. > > I then use the click event to do whatever I want. > Put print statements in this routine to make sure your key is correct > Hope this is correct/helps/was what you meant > > > Public Sub ProblemLists_Select() > > Select Case Last.tag > Case "active problems" > cvwProblemsActive.MoveCurrent > cvwProblemsActive.Item.Selected = True > sProblemKey = cvwProblemsActive.Item.key > Print "my key was:", cvwProblemsActive.Item.key > > Case "inactive problems" > cvwProblemsInActive.MoveCurrent > cvwProblemsInActive.Item.Selected = True > sProblemKey = cvwProblemsInActive.Item.key > End Select > End > > > Public Sub ProblemLists_Click() > '----------------------------------------------------------- > 'The user has clicked on either the active or inactive lists > 'so display this problem in the editing area > '------------------------------------------------------------ > EditArea_Problem_Display > End > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Simple-list-view-check-question-tp16388895p16389485.html Sent from the gambas-user mailing list archive at Nabble.com. From robertsonhamish at ...626... Mon Mar 31 04:42:20 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Mon, 31 Mar 2008 09:42:20 +0700 Subject: [Gambas-user] Why is Gambas so frowned upon in the Linux programming community In-Reply-To: <200803310943.25314.rterry@...1822...> References: <16388127.post@...1379...> <200803310943.25314.rterry@...1822...> Message-ID: Hah! What a cool thread! I'm a COMPLETE newbie to programming, and only settled on GAMBAS after checking everything else out. This is why I settled on GAMBAS, and why thousands of other people will too; I didn't have to learn about GUI bindings, linking glade (Or the KDE equiv) to the code. I didn't have to worry about memory management (Well a little, but not the hardcore C++ stuff) I didn't have to worry about make files I didn't have to learn how to package my program for 300 different distros when it's finished. I don't have to think about libraries All this lops a few YEARS off the learning curve. I'm serious. GAMBAS was the only FOSS language that I could find that integrated the RAD, IDE and Language together in one tightly knit and stable package. I couldn't care less that it's not an elitist language. It gets the job done well and QUICKLY, and allows a complete dufus like me to contribute to FOSS, whereas before I could not. H. On 31/03/2008, richard terry wrote: > > On Mon, 31 Mar 2008 08:58:39 am jbskaggs wrote: > > I have been looking for people to help me alpha / beta test my program > by > > going to the ubuntu forums and asking for volunteers. > > > > One of the responses was this snippy response that People in the Ubuntu > > community do not use a vb clone and they would not like to either. That > I > > should use Python or C++. > > > Beats me, I loved python, but boy, wxPython sucks big time, and its > millions > of times quicker developing in Gambas - once your learning curve improves > you > discover more and more to like, and things just seem to work. > > > > > > SO I searched the web for other forums looking for people to help or > > volunteer and I saw the same comments over and over. > > > I did volunteer - you sent no reply, so if you want a tester, mail me. > > > Richard > > > > > > What is the deal with these people? Not everybody wants to learn a > > hardcore language and just wants to create apps, why is that so frowned > > upon? > > > > Is it because VB was used in windows? or that Gambas is tearing down a > > wall of superiority of linux programmers. > > > > > > It reminds me of firebuilding in the boy scouts: > > > > The hardcore guys would spend three or four hours building a fire with > > flint and steel, or wood and bow. While the kids with common sense used > a > > match. Yeah if you can start a fire with flint you can build a fire > > anywhere, but 99% of the time a match is superior. > > > > Is there a better reason than well you NEED to know how to program > without > > crutches like gui generation, why I should learn harder languages if > Gambas > > does everything I want? > > > > JB > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kaoticus60 at ...151... Mon Mar 31 07:49:42 2008 From: kaoticus60 at ...151... (andy2) Date: Mon, 31 Mar 2008 07:49:42 +0200 Subject: [Gambas-user] Gb.chart In-Reply-To: References: Message-ID: <47F07B76.7000203@...151...> Little question: do u know if exist an howto about gb.chart component? I dont' see anything about ths component in gambas help. Thank.u ps. i need code to make linechart with result's data. andy(rome) From dcamposf at ...626... Mon Mar 31 12:22:10 2008 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 31 Mar 2008 12:22:10 +0200 Subject: [Gambas-user] Why is Gambas so frowned upon in the Linux programming community In-Reply-To: References: <16388127.post@...1379...> <200803310943.25314.rterry@...1822...> Message-ID: <7259b5ae0803310322i50424b18jb863e5c6cc22011f@...627...> Hi: I think there's something related with bad sex experiences in those fanatic freak "hackers" that hate Basic and everything that sounds like "Visual" or "Graphical". They probably think making things easy and clear is part of the female intrinsics on a Freudian context. They fear to loose their male genitals if they stop using ugly incomprehensible expressions, and their love to the "Python" word seems to confirm my theory. Bah, I wouldn't mind very much about those people, just program using Gambas if you find it interesting. Daniel From gambas.fr at ...626... Mon Mar 31 14:27:03 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 31 Mar 2008 14:27:03 +0200 Subject: [Gambas-user] Gb.chart In-Reply-To: <47F07B76.7000203@...151...> References: <47F07B76.7000203@...151...> Message-ID: <6324a42a0803310527v49f7e482y4235b01fcdb2825d@...627...> hi, andy I'm going to work on it ... the problem is that component is not finished .... and will evoluate but only in the svn version. Nevertheless i will send you a simple exemple that could work in gambas2 2008/3/31, andy2 : > > Little question: do u know if exist an howto about gb.chart component? I > dont' see anything about ths component in gambas help. Thank.u > > ps. i need code to make linechart with result's data. > > > andy(rome) > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From epileg at ...626... Mon Mar 31 14:44:57 2008 From: epileg at ...626... (=?UTF-8?B?RXDDrWxlZw==?=) Date: Mon, 31 Mar 2008 14:44:57 +0200 Subject: [Gambas-user] Gambas GTK IDE Message-ID: <47F0DCC9.2070804@...626...> Hello, As Gambas2/3 IDE is a Gambas project, Can it be compiled with GTK module instead of QT one? If yes, how. Will be possible to compile it whit GTK module in the near future? Best regards, Ep?leg. From gambas at ...1... Mon Mar 31 14:55:49 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 Mar 2008 14:55:49 +0200 Subject: [Gambas-user] Gambas GTK IDE In-Reply-To: <47F0DCC9.2070804@...626...> References: <47F0DCC9.2070804@...626...> Message-ID: <200803311455.49419.gambas@...1...> On lundi 31 mars 2008, Ep?leg wrote: > Hello, > > As Gambas2/3 IDE is a Gambas project, Can it be compiled with GTK module > instead of QT one? If yes, how. Will be possible to compile it whit GTK > module in the near future? > > Best regards, > Ep?leg. > It is not possible at the moment, as the IDE needs a QT-only control (Editor). Regards, -- Benoit Minisini From m0e.lnx at ...626... Mon Mar 31 17:00:37 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 31 Mar 2008 10:00:37 -0500 Subject: [Gambas-user] Gambas GTK IDE In-Reply-To: <200803311455.49419.gambas@...1...> References: <47F0DCC9.2070804@...626...> <200803311455.49419.gambas@...1...> Message-ID: <1f1e8c1b0803310800s4e70ae3q6eeb243d0919003@...627...> Yeah... I found that out... I tried to modify the project, but it needs some QT exclusive components..; Is there any chance of changing this in the future? On Mon, Mar 31, 2008 at 7:55 AM, Benoit Minisini wrote: > On lundi 31 mars 2008, Ep?leg wrote: > > Hello, > > > > As Gambas2/3 IDE is a Gambas project, Can it be compiled with GTK module > > instead of QT one? If yes, how. Will be possible to compile it whit GTK > > module in the near future? > > > > Best regards, > > Ep?leg. > > > > It is not possible at the moment, as the IDE needs a QT-only control (Editor). > > Regards, > > -- > Benoit Minisini > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Mar 31 17:03:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 Mar 2008 17:03:46 +0200 Subject: [Gambas-user] Gambas GTK IDE In-Reply-To: <1f1e8c1b0803310800s4e70ae3q6eeb243d0919003@...627...> References: <47F0DCC9.2070804@...626...> <200803311455.49419.gambas@...1...> <1f1e8c1b0803310800s4e70ae3q6eeb243d0919003@...627...> Message-ID: <200803311703.46700.gambas@...1...> On lundi 31 mars 2008, M0E Lnx wrote: > Yeah... I found that out... I tried to modify the project, but it > needs some QT exclusive components..; > > Is there any chance of changing this in the future? > Maybe yes, maybe no. -- Benoit Minisini From cheguebeara at ...626... Mon Mar 31 18:07:30 2008 From: cheguebeara at ...626... (Che Guebeara) Date: Mon, 31 Mar 2008 12:07:30 -0400 Subject: [Gambas-user] gambas2-gb-pdf and libpoppler1 issue In-Reply-To: <47F0DCC9.2070804@...626...> References: <47F0DCC9.2070804@...626...> Message-ID: <20080331120730.446a169d@...1835...> Hi, I saw something about this on the ubuntu forums but no resolution. I upgraded to 2.4.1 and all went well until my upgrade manager flagged gb-pdf and gb-gtk-ext and would not upgrade them or clear. Tried everything including punting gambas2 and reinstalling it. At that point I cant reinstall Gambas2 as it says there are unresolved dependencies on gb-pdf related to libpoppler1 which is obsoleted. Is there a workaround (I searched the list here and nadas that I can see)? As of right now I am sans-Gambas and in the middle of some new app ideas. Thanks, Mark From rterry at ...1822... Mon Mar 31 23:15:27 2008 From: rterry at ...1822... (richard terry) Date: Tue, 1 Apr 2008 08:15:27 +1100 Subject: [Gambas-user] gambas2-gb-pdf and libpoppler1 issue In-Reply-To: <20080331120730.446a169d@...1835...> References: <47F0DCC9.2070804@...626...> <20080331120730.446a169d@...1835...> Message-ID: <200804010815.27137.rterry@...1822...> On Tue, 1 Apr 2008 03:07:30 am Che Guebeara wrote: > Hi, > > I saw something about this on the ubuntu forums but no resolution. > > I upgraded to 2.4.1 and all went well until my upgrade manager flagged > gb-pdf and gb-gtk-ext and would not upgrade them or clear. Tried > everything including punting gambas2 and reinstalling it. > > At that point I cant reinstall Gambas2 as it says there are unresolved > dependencies on gb-pdf related to libpoppler1 which is obsoleted. > > Is there a workaround (I searched the list here and nadas that I can > see)? As of right now I am sans-Gambas and in the middle of some new > app ideas. > Pretty easy work around. If you've been in linux for any number of years you'd know there are two disto package formats that suck big time. Firstly (as anyone knows so it goes almost without saying) rpm based systems. Secondly as your eventually finding out .deb based systems. Both these invariably get tangled up in dependancy messes if your trying to stay on a cutting edge. Do yourself a favour and try ARCH linux (www.archlinux.org) and you'll never look back... mind you you'll have to get your hands alittle dirty, but hey, the days of that sort of dependancy hell are gone forever. Regards Richard > Thanks, > Mark > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1822... Mon Mar 31 23:47:01 2008 From: rterry at ...1822... (richard terry) Date: Tue, 1 Apr 2008 08:47:01 +1100 Subject: [Gambas-user] IDE ERROR : Type mismatch error (2.99 Build 1276) Message-ID: <200804010847.01753.rterry@...1822...> This is reproducable and came up suddenly as I mistyped. The key sequence was: s The cursor was at the left margin of the editor I hit the tab key (and then the space bar to line up the text with that on the line above above as I'd obviously not tabbed the line above correctly). I then typed this: DIM sTempY and accidently bumped the space bar so the text would have been Dim STempy I then hit the backspace key to go backwards and up came the error. Doing the same thing in a 2.4 editor after you hit the backspace up pops a prompt [step] as per the piccies below. -------------- next part -------------- A non-text attachment was scrubbed... Name: funny_backspace_error_2.99BUILD1276.png Type: image/png Size: 45635 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: funny_Backspace_error_2.4_OK.png Type: image/png Size: 4246 bytes Desc: not available URL: