From lbaudio at ...172... Tue Feb 1 00:05:18 2005 From: lbaudio at ...172... (LB Audio) Date: Mon, 31 Jan 2005 21:05:18 -0200 (Horário brasileiro de verão) Subject: [Gambas-user] fakebas strikes again (0.0.6) References: <200501311046.02753.sourceforge-raindog2@...94...> Message-ID: <41FEB9AE.000001.00336@...745...> Im using Mandrake 10.1 Gambas 1.0.2 Fake 0.0.7 -------Original Message------- From: gambas-user at lists.sourceforge.net Date: 31/1/2005 14:00:46 To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] fakebas strikes again (0.0.6) On Monday 31 January 2005 10:37, LB Audio wrote: > Problem in execution of gambas fakebas > Error message: > "unknown symbol ToolBox Box" I can't duplicate your problem. What Linux distribution and version are you using? What version of Gambas do you have installed? What version of fakebas? Does anyone else have this error? Toolboxbox is just a vbox (or hbox, I forget which) into which I put the toolbox window, so for it to not be working I'd think you were missing the Qt component or something. Rob ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...94... Tue Feb 1 00:50:18 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 31 Jan 2005 18:50:18 -0500 Subject: [Gambas-user] Why i'm not for the MDI gambas IDE In-Reply-To: <200501312307.46551.gambasfr@...11...> References: <200501312307.46551.gambasfr@...11...> Message-ID: <200501311850.18115.sourceforge-raindog2@...94...> I didn't think you and Benoit would like the MDI thing too much, but I'm curious as to why you think the features you've added to FEditor wouldn't work with the MDI IDE. Too busy-looking? From sourceforge-raindog2 at ...94... Tue Feb 1 00:53:37 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 31 Jan 2005 18:53:37 -0500 Subject: [Gambas-user] fakebas strikes again (0.0.6) In-Reply-To: <41FEB9AE.000001.00336@...745...> References: <200501311046.02753.sourceforge-raindog2@...94...> <41FEB9AE.000001.00336@...745...> Message-ID: <200501311853.37146.sourceforge-raindog2@...94...> On Monday 31 January 2005 18:05, LB Audio wrote: > Im using > Mandrake 10.1 > Gambas 1.0.2 > Fake 0.0.7 You know, I posted some bad RPM's for 1.0.2 originally. That's why I never announced they were available. Let me check when I get home that the current ones are okay, and then I'll email you privately to download them again just in case. Rob From eeller at ...826... Tue Feb 1 02:08:52 2005 From: eeller at ...826... (Eldon Eller) Date: Mon, 31 Jan 2005 17:08:52 -0800 Subject: [Gambas-user] cannot start new project In-Reply-To: <41FE98C5.5060804@...830...> References: <41FE98C5.5060804@...830...> Message-ID: <41FED6A4.5040104@...826...> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: C:\Documents and Settings\EEE\My Documents\Forms\sig.jpg Type: image/jpeg Size: 1436 bytes Desc: not available URL: From lbaudio at ...172... Tue Feb 1 03:15:38 2005 From: lbaudio at ...172... (LB Audio) Date: Tue, 1 Feb 2005 00:15:38 -0200 (Horário brasileiro de verão) Subject: [Gambas-user] fakebas strikes again (0.0.6) References: <200501311853.37146.sourceforge-raindog2@...94...> Message-ID: <41FEE64A.000003.00336@...745...> I made download of the file http://www.kudla.org/fakebas-0.0.7.tar.gz to compile with the Gambas. -------Original Message------- From: gambas-user at lists.sourceforge.net Date: 31/1/2005 22:04:04 To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] fakebas strikes again (0.0.6) On Monday 31 January 2005 18:05, LB Audio wrote: > Im using > Mandrake 10.1 > Gambas 1.0.2 > Fake 0.0.7 You know, I posted some bad RPM's for 1.0.2 originally. That's why I never announced they were available. Let me check when I get home that the current ones are okay, and then I'll email you privately to download them again just in case. Rob ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue Feb 1 11:00:18 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 11:00:18 +0100 Subject: [Gambas-user] I am back... Message-ID: <200502011100.18241.gambas@...1...> ...and I have more than one hundred mails related to Gambas to read. So evrybody should be patient :-) If you need help about your Gambas projects, please ask first on the mailing-list before sending me the mail directly, or I will sink! Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 1 12:04:14 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 12:04:14 +0100 Subject: [Gambas-user] Some usage questions In-Reply-To: <870c8dd2050122075721dc69b0@...627...> References: <870c8dd2050122075721dc69b0@...627...> Message-ID: <200502011204.14110.gambas@...1...> On Saturday 22 January 2005 16:57, Laurent Duperval wrote: > Hello, Hello, > > I'm a new Gambas user and these are my first impressions. There are > certain things that I don't know how to do and I'd like a bit of help. > Some may be impossible right now, so you can take the questions as > suggestions instead. > > - How do you group elements? For example, I want many of my > label/entry combinations to be considered as a single item. I can't > figure out how to do this. Could you be more precise ? > > - How do I distribute items that are grouped together? For example, if > I select four buttons and align them in a row, how do I get them to be > evenly spaced horizontally? It is not possible yet. > > - How do I insert multiple widgets of the same kind without clicking > on the toolbox between each insertion? For example, I want to insert > 12 check boxes. How do I do that? You can paste (CTRL-V) many times. But can you be more precise on what you want to do exactly ? > > Thanks, > > L > > Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 1 12:11:52 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 12:11:52 +0100 Subject: [Gambas-user] Arrange containers In-Reply-To: <41F82904.5020009@...402...> References: <41F82904.5020009@...402...> Message-ID: <200502011211.52372.gambas@...1...> On Thursday 27 January 2005 00:34, Olivier THIERY wrote: > Hello all, > > This is my first post here, so hi everyone :-) > > I've been playing a bit with Gambas since version 1.0 is out, just to > learn how to use the different components. And I do have a question now. > > Let's imagine I drop a Frame (which inherits Container) on a Form (which > inherits Window), and then a Button on the Frame. I can set the > Arrangement property of the Form to "Fill", which will cause the Frame > to automatically fill the whole available space even if I resize the Form. > > Yet there is no Arrangement property to the Frame that I could set to > "Fill" to have the Button fill the Frame space. Do I have to resize the > button manually ? Or can I link the frame with a Box just like I can use > a wxStaticBoxSizer with wxPython (that is mostly like a box with a Frame > around) ? The Frame does not arrange its children (maybe it is missing...). But you can use the Panel for that. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 1 12:12:25 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 12:12:25 +0100 Subject: [Gambas-user] little Bug in Gambas ? In-Reply-To: <200501271809.55797.scatman_@...17...> References: <200501271809.55797.scatman_@...17...> Message-ID: <200502011212.25475.gambas@...1...> On Thursday 27 January 2005 18:09, scatman wrote: > Hello, > > if i make a Executable with the Project Name is allready fine. > > But, if i rename the Executable to Compile, the Exe will bigger and bigger > from Compile to Compile. Wow. THAT is a big bug... I will try to fix it... -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 1 12:14:08 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 12:14:08 +0100 Subject: [Gambas-user] little Bug in Gambas ? In-Reply-To: <200501271809.55797.scatman_@...17...> References: <200501271809.55797.scatman_@...17...> Message-ID: <200502011214.08741.gambas@...1...> On Thursday 27 January 2005 18:09, scatman wrote: > Hello, > > if i make a Executable with the Project Name is allready fine. > > But, if i rename the Executable to Compile, the Exe will bigger and bigger > from Compile to Compile. I understand... If the executable has not the same name as the project, then the file is included into the executable. And so it becomes bigger and bigger... No idea yet to fix that... -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 1 12:14:58 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 12:14:58 +0100 Subject: [Gambas-user] to Benoit Minisini - silly message Unexpected null receiver In-Reply-To: <200501272323.30983.fidojones@...805...> References: <200501272323.30983.fidojones@...805...> Message-ID: <200502011214.58598.gambas@...1...> On Thursday 27 January 2005 23:23, Lorenzo Tejera wrote: > I think you know, if you use TableView in a form when form close it print > this message in console, I don't know if it could break anything along > time. > > QApplication::postEvent: Unexpected null receiver > Yes. I didn't find where this message comes from. I didn't get it in previous versions of qt, and I didn't change the TableView code since. So it's strange... -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 1 12:16:31 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 12:16:31 +0100 Subject: [Gambas-user] Here you go: ImportVBProject In-Reply-To: <200501272303.07669.sourceforge-raindog2@...94...> References: <200501272303.07669.sourceforge-raindog2@...94...> Message-ID: <200502011216.31689.gambas@...1...> On Friday 28 January 2005 05:03, Rob wrote: > OK, I always said once gambas had a pcre component I could port > frm2form over to Gambas. I have now done that, and while I was > at it, I made it so you can import an entire project (.vbp file > plus .frm files) all at once into a new Gambas project, and > integrated a little bit of .frx decoding. > > You need the last version of my pcre component, which I posted on > Tuesday on gambas-devel. Also... > > IT WILL NOT TRANSLATE ANY CODE, JUST THE FORM DESIGNS. > > Once more for my fellow Americans: > > NO CODE WILL BE TRANSLATED. YOU HAVE TO DO THAT YOURSELF. > > Here's the changelog, to give you an idea of what it does.... > > 0.0.7 - 2005-01-27 > - First public release. > - Imports forms into existing projects. > - Also imports entire projects. > - Converts NO CODE, only form designs. Code is copied over > and commented out. > - Not all properties of all controls are supported. > - Unknown controls are converted to PictureBox as in VB. > - Attempts to convert user-created controls (.ctl) as forms. > - Generates code in Form_Open to fake VB's control array feature. > - Attempts to extract graphics from .frx files. > - If netpbm and ImageMagick are installed, converts extracted > .ico files to .png files. > - If you have trouble compiling the resulting project, open each > converted form, move it a little to mark it as dirty, and save > it again. Trust me on this :-) > > > Bug reports please! > > Rob Is it possible to have a version to include in the IDE. Or to add it as a external program like the database manager. It will receive the project path as argument. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 1 12:22:02 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 12:22:02 +0100 Subject: [Gambas-user] Float 4 byte size in bin mode In-Reply-To: References: Message-ID: <200502011222.02674.gambas@...1...> On Friday 28 January 2005 15:29, csorda at ...69... wrote: > Greetings and saluti da Carlo. > Gambas is a great software. Congratulation. > I have some question for you: > 1) I have a binary file like that C struct mapping: > typedef struct myRecord{ > char sync[2]; > char type[4]; > char quality; > char time[9]; > char source[2]; > float x; //4 byte > float y; > } DOMessage; > Can you give me a sample to convert this in GAMBAS? and when I read a float > (4 byte) value from binary file in GAMBAS I have problem becouse float is 8 > byte len. What can i do for read float len 4 byte? This is a problem... Gambas can't read 4 bytes float at the moment. I will try to find a syntax for the READ and WRITE command to be able to do that... > 2) I evaluating a tool for develop a GUI and a Mathematical engine for a > critical application in Space Engeneer sector. > Do you thing GAMBAS is > enough stable to develop critical application for read information from > serial port, calculate vector operation, display information and send > command to another serial port? If you want to launch missiles, then the interpreter will makes the processor becoming crazy, and the missiles will fly back to the launcher :-) Otherwise, you must test yourself... Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 1 12:23:27 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 12:23:27 +0100 Subject: [Gambas-user] Inserting data into a tableview In-Reply-To: <41fbcd05.1c04.0@...9...> References: <41fbcd05.1c04.0@...9...> Message-ID: <200502011223.28046.gambas@...1...> On Saturday 29 January 2005 19:51, Charlie Reinl wrote: > >How do I insert data into a tableview....? I tried using syntax like the > >gridview but I hit a read only problem. > > > >example code > > > >tblView[1,1].Text = "test" > > > > > > > >Results in .TableViewCell.Text is read only. > > > >Thanks! > >Kevin > > Salut Kevin, > > I attached you an example for TableView, other you find in > the gambas-database-manager. > > Amicalment > Charlie > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * Can I take your code and put it with gambas examples as the TableView example ? -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 1 12:24:07 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 12:24:07 +0100 Subject: [Gambas-user] bug in packaging wizard of 1.0.2 In-Reply-To: <200501291524.27082.sourceforge-raindog2@...94...> References: <200501291524.27082.sourceforge-raindog2@...94...> Message-ID: <200502011224.07840.gambas@...1...> On Saturday 29 January 2005 21:24, Rob wrote: > When you make a package of a Gambas project in 1.0.2, it adds the > following dependencies to your package: > > gambas-runtime >= 0.95 > gambas-runtime <= 1.0 > gambas-gb-debug >= 0.95 > gambas-gb-debug <= 1.0 > gambas-gb-qt >= 0.95 > gambas-gb-qt <= 1.0 > gambas-gb-qt-editor >= 0.95 > gambas-gb-qt-editor <= 1.0 > gambas-gb-qt-ext >= 0.95 > gambas-gb-qt-ext <= 1.0 > > which of course means that the package can't be installed under > gambas 1.0.2. Oops... > > Rob > Horrible bug... I will release a 1.0.3 as soon as possible with a fix! -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...338... Tue Feb 1 12:28:36 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Tue, 01 Feb 2005 12:28:36 +0100 Subject: [Gambas-user] little Bug in Gambas ? In-Reply-To: <200502011214.08741.gambas@...1...> References: <200501271809.55797.scatman_@...17...> <200502011214.08741.gambas@...1...> Message-ID: <41FF67E4.1070608@...338...> > >I understand... If the executable has not the same name as the project, then >the file is included into the executable. And so it becomes bigger and >bigger... > >No idea yet to fix that... > > Self-contained-embeed executables! this could be a feature more than a bug :-)))) Regards, D. Campos From gambas at ...1... Tue Feb 1 12:30:49 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 12:30:49 +0100 Subject: [Gambas-user] UI improvement In-Reply-To: <870c8dd205013008526ed8b091@...627...> References: <870c8dd205013008526ed8b091@...627...> Message-ID: <200502011230.49363.gambas@...1...> On Sunday 30 January 2005 17:52, Laurent Duperval wrote: > Hi, > > When I press Enter after choosing a value from a drop down list for > completion (for example, in a DIM command, if I type Inte) a > newline is inserted in my code. I find this counter-intuitive and > doesn't match what other IDEs do. I would expect that pressing Enter > would complete the word then place the cursor after the end of the > word. > > Can this behaviour be modified? > > L > OK. I will fix it in the stable release too. -- Benoit Minisini mailto:gambas at ...1... From nigel at ...38... Tue Feb 1 12:36:27 2005 From: nigel at ...38... (nigel at ...38...) Date: Tue, 1 Feb 2005 12:36:27 +0100 (CET) Subject: [Gambas-user] fakebas strikes again (0.0.6) Message-ID: <15217405.1107257787800.JavaMail.www@...796...> I have the same problem with the same congi, except I am using Gambas 1.9.2. I will investigate more. Nigel > Message date : Jan 31 2005, 11:43 PM > From : "LB Audio" > To : gambas-user at lists.sourceforge.net > Copy to : > Subject : Re: [Gambas-user] fakebas strikes again (0.0.6) > Im using Mandrake 10.1 Gambas 1.0.2 Fake 0.0.7 -------Original Message------- From: gambas-user at lists.sourceforge.net Date: 31/1/2005 14:00:46 To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] fakebas strikes again (0.0.6) On Monday 31 January 2005 10:37, LB Audio wrote: > Problem in execution of gambas fakebas > Error message: > "unknown symbol ToolBox Box" I can't duplicate your problem. What Linux distribution and version are you using? What version of Gambas do you have installed? What version of fakebas? Does anyone else have this error? Toolboxbox is just a vbox (or hbox, I forget which) into which I put the toolbox window, so for it to not be working I'd think you were missing the Qt component or something. Rob ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -------------- next part -------------- An HTML attachment was scrubbed... URL: From na2492 at ...9... Tue Feb 1 13:58:50 2005 From: na2492 at ...9... (Charlie Reinl) Date: Tue, 1 Feb 2005 13:58:50 00100 Subject: [Gambas-user] Inserting data into a tableview Message-ID: <41ff7d0a.88d.0@...9...> >On Saturday 29 January 2005 19:51, Charlie Reinl wrote: >> >How do I insert data into a tableview....? I tried using syntax like the >> >gridview but I hit a read only problem. >> > >> >example code >> > >> >tblView[1,1].Text = "test" >> > >> > >> > >> >Results in .TableViewCell.Text is read only. >> > >> >Thanks! >> >Kevin >> >> Salut Kevin, >> >> I attached you an example for TableView, other you find in >> the gambas-database-manager. >> >> Amicalment >> Charlie >> * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > >Can I take your code and put it with gambas examples as the TableView >example ? > >-- >Benoit Minisini >mailto:gambas at ...1... Salut, if you mean my Tableview Example YES Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From gambas at ...1... Tue Feb 1 14:22:49 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 14:22:49 +0100 Subject: [Gambas-user] gambas 1.0.3 Message-ID: <200502011422.49819.gambas@...1...> Hi everybody, I have just release gambas 1.0.3. This release fixes the following bugs: - The version numbers used by the packages generated by the IDE are correct now. ** YOU MUST USE THIS VERSION IF YOU NEED TO USE THE PACKAGER WIZARD! ** - Pressing ENTER when the autocompletion is displayed does not insert a new line anymore. - Qt dialogs are now translated! (Thanks to Laurent) - No memory leak anymore when using user-defined cursors. - Setting Dialog.Font to NULL does not crash the interpreter anymore. Enjoy it! -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 1 15:16:07 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Feb 2005 15:16:07 +0100 Subject: [Gambas-user] About donations Message-ID: <200502011516.08062.gambas@...1...> I'd like to make a world map on the web site, with a flag for each people that made a gift - the bigger the gift, the bigger the flag :-) This way, giver will be seen more easily than on the moving label of the about dialog in the IDE. So I'm looking for a vectorized world map. Does anyone know how I can find that ? Thanks in advance, -- Benoit Minisini mailto:gambas at ...1... From lduperval at ...626... Tue Feb 1 15:37:32 2005 From: lduperval at ...626... (Laurent Duperval) Date: Tue, 1 Feb 2005 09:37:32 -0500 Subject: [Gambas-user] Some usage questions In-Reply-To: <200502011204.14110.gambas@...1...> References: <870c8dd2050122075721dc69b0@...627...> <200502011204.14110.gambas@...1...> Message-ID: <870c8dd205020106372d9daf20@...627...> On Tue, 1 Feb 2005 12:04:14 +0100, Benoit Minisini wrote: > > - How do you group elements? For example, I want many of my > > label/entry combinations to be considered as a single item. I can't > > figure out how to do this. > > Could you be more precise ? > Sure. Say I want a label with an entry to be a "group". For example: Name: _____________________ Above, there are two elements but I want to treat them as one. That way, whether I click on the label or on the entry, when I drag, both are moved. In drawing packages, this is called grouping. > > - How do I distribute items that are grouped together? > > It is not possible yet. > Ok. > > - How do I insert multiple widgets of the same kind without clicking > > on the toolbox between each insertion? > > You can paste (CTRL-V) many times. But can you be more precise on what you > want to do exactly ? > Sure. I want to, for example, double-click on the Button tool. Then I want to click on the form and a button is inserted where I clicked. Then I want to click elsewhere and another button is added there, etc. until I'm down inserting buttons. Then I want to do the same for labels or entries or whatever. The problem with the cut'n'paste approach is that you constantly have to go back to the upper left corner and drag your elements where you want them. L From lduperval at ...626... Tue Feb 1 15:42:23 2005 From: lduperval at ...626... (Laurent Duperval) Date: Tue, 1 Feb 2005 09:42:23 -0500 Subject: [Gambas-user] About donations In-Reply-To: <200502011516.08062.gambas@...1...> References: <200502011516.08062.gambas@...1...> Message-ID: <870c8dd20502010642260f12e6@...627...> On Tue, 1 Feb 2005 15:16:07 +0100, Benoit Minisini wrote: > So I'm looking for a vectorized world map. Does anyone know how I can find > that ? > Maybe on OpenClipart? http://www.openclipart.org L From sourceforge-raindog2 at ...94... Tue Feb 1 15:54:04 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 1 Feb 2005 09:54:04 -0500 Subject: [Gambas-user] Some usage questions In-Reply-To: <200502011204.14110.gambas@...1...> References: <870c8dd2050122075721dc69b0@...627...> <200502011204.14110.gambas@...1...> Message-ID: <200502010954.04187.sourceforge-raindog2@...94...> On Tuesday 01 February 2005 06:04, Benoit Minisini wrote: > > - How do you group elements? For example, I want many of my > > label/entry combinations to be considered as a single item. > > I can't figure out how to do this. > > Could you be more precise ? I think he's referring to the Access feature (maybe VB has it too) where labels can have controls as parents, but rather than appearing inside the control, the label's coordinates are treated as relative to the control. Then when you move the textbox, the corresponding label moves with it. e.g. Name |________________| Name is a child control of the textbox, but is drawn alongside it. I wouldn't know how to do this in Qt. Rob From sourceforge-raindog2 at ...94... Tue Feb 1 15:57:21 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 1 Feb 2005 09:57:21 -0500 Subject: [Gambas-user] Here you go: ImportVBProject In-Reply-To: <200502011216.31689.gambas@...1...> References: <200501272303.07669.sourceforge-raindog2@...94...> <200502011216.31689.gambas@...1...> Message-ID: <200502010957.21991.sourceforge-raindog2@...94...> On Tuesday 01 February 2005 06:16, Benoit Minisini wrote: > Is it possible to have a version to include in the IDE. Or to > add it as a external program like the database manager. It > will receive the project path as argument. I wrote it in such a way as it should be easy to drop into the IDE. The conversion stuff is broken out into classes (Frm2Form.class and Vbp2Project.class or something like that) and the form has a public property indicating what form or project has been converted, upon success. I'll try to do it myself and submit a patch.... Rob From oxleyd at ...699... Tue Feb 1 16:30:49 2005 From: oxleyd at ...699... (Daniel Oxley) Date: Tue, 1 Feb 2005 16:30:49 +0100 Subject: [Gambas-user] About donations In-Reply-To: <200502011516.08062.gambas@...1...> Message-ID: <20050201153437.F0EA737316@...700...> From zjimward at ...626... Tue Feb 1 17:31:23 2005 From: zjimward at ...626... (Jim Ward) Date: Tue, 1 Feb 2005 10:31:23 -0600 Subject: [Gambas-user] My Libraries Message-ID: <888242c105020108317834bc41@...627...> Thanks Rob. I was trying to think of a way to start testing and coding with Gambas more. I decided why not start taking some of my old Turbo Pascal/FreePascal libraries and turn them into .class file that others could use in their projects. I still have some functions to add to both the string and math libraries. If you or any one else wants to contribute functions to the libraries I'm happy to include any routines. Besides I'd enjoy having the help. Regards, jim http://jdwopen.netimp.us From attila.nagy47 at ...830... Tue Feb 1 18:04:41 2005 From: attila.nagy47 at ...830... (anagy) Date: Tue, 01 Feb 2005 18:04:41 +0100 Subject: [Gambas-user] Re: cannot start new project In-Reply-To: <41FFB39C.1000806@...830...> References: <41FFB39C.1000806@...830...> Message-ID: <41FFB6A9.5080203@...830...> Hello! I found your letter in the archive, i.e. only a subject line without text body two days before. Do you meat that letter? I am afraid at the moment of installing a new program. Did you install the .rpm's (there are several of them, which one is to be installed) or compiled the source? But anyway, I hope the installed 0.9 version on SuSe9.1 must work somehow! For making a new project, have I to have root privilegies, or can I do it as a user? I hope the latter. Am I right? Attila (I must apologize for I sent my previous letter from an other address.) > Message: 4 > Date: Mon, 31 Jan 2005 17:08:52 -0800 > From: Eldon Eller > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] cannot start new project > Reply-To: gambas-user at lists.sourceforge.net > > I am no guru--in the same class as you and with the same problem using > SuSe 9.2. I posted the same question and got no response. I noticed > that gambas now has version 1.0.2. I downloaded and installed it. The > installation went OK except for some complaint about not being able to > open opt/gambas/share/info/somethingorother, I forget what. > Nevertheless, when I started gambas I was able to open a form and put > stuff on it. I have done no further testing, but that seemed to solve > the problem with opening the form. > > neutron wrote: > Gambas Guru's! > > My name is Attila, and I am a very-very beginner. I succeeded to make > some very trivial programs in Visual C, and want to learn Gambas on > Linux. I have SuSe 9.1 which contains Gambas 0.9. I read a short > statring article at > http://www.linuxfocus.org/English/March2004/article329.shtml > to follow the instructions, but at the very beginning, when I want to > create the first form as a startup class and hit OK, I receive the > message: [12] Not an object At: FProperty.RefreshAll.109. I have one > single botton: OK. Hitting it, Gambas ends. Can you help a newbie, > please? > > Attila > > > > From eeller at ...826... Tue Feb 1 18:33:53 2005 From: eeller at ...826... (Eldon Eller) Date: Tue, 01 Feb 2005 09:33:53 -0800 Subject: [Gambas-user] Re: cannot start new project In-Reply-To: <41FFB6A9.5080203@...830...> References: <41FFB39C.1000806@...830...> <41FFB6A9.5080203@...830...> Message-ID: <41FFBD81.2050704@...826...> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: C:\Documents and Settings\EEE\My Documents\Forms\sig.jpg Type: image/jpeg Size: 1436 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Tue Feb 1 18:55:28 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 1 Feb 2005 12:55:28 -0500 Subject: [Gambas-user] Re: cannot start new project In-Reply-To: <41FFBD81.2050704@...826...> References: <41FFB39C.1000806@...830...> <41FFB6A9.5080203@...830...> <41FFBD81.2050704@...826...> Message-ID: <200502011255.28024.sourceforge-raindog2@...94...> On Tuesday 01 February 2005 12:33, Eldon Eller wrote: > Since my previous message, I have written a very simple > program which runs correctly from the gambas environement. I > tried to make an executable, but it did not run when clicked > upon. I will continue to mess around with that; it may have > been some dumb error on my part. If you were double clicking on the executable from Konqueror, I think there is a bug in Konqueror that prevents Gambas executables from running. When it says "open with" you can put in "/usr/bin/gbx -x" and it should run, but it won't remember that you did that the next time you double click. In fact, under KDE 3.2 and Mandrake 10.1, after working that first time it doesn't seem to ever work again (it seems to strip off the -x for subsequent runs.) I hope that there is a way to make Gambas executables be ELF executables for Gambas 2.0. Even if the #!/usr/bin/gbx -x is replaced by a stub that merely invokes gbx -x, that would solve a lot of problems (another problem is that you can't write a gambas program to subsequently be used as a script interpreter as things stand now, because a script interpreter can't be a script itself.) Rob From sourceforge-raindog2 at ...94... Tue Feb 1 19:19:16 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 1 Feb 2005 13:19:16 -0500 Subject: [Gambas-user] mandrake packages of 1.0.3 Message-ID: <200502011319.16683.sourceforge-raindog2@...94...> Here you go.... I'll try to post an updated fakebas tonight or tomorrow. http://www.kudla.org/index.php?wl_mode=more&wl_eid=72 There's already a 1.0.3 package in cooker contrib.... no idea how good or bad it is. Rob From sourceforge-raindog2 at ...94... Tue Feb 1 22:19:23 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 1 Feb 2005 16:19:23 -0500 Subject: [Gambas-user] fakebas 0.0.9 Message-ID: <200502011619.23737.sourceforge-raindog2@...94...> I updated fakebas for gambas 1.0.3. I incorporated the two changes to the real IDE, and also added cascade and tile menu options to the Window menu (tricky because as Benoit has said, the Qt MDI workspace control is buggy), and after being inspired by Fabien's recent screenshot, I added a dropdown to the editor to let you jump to any function in the current class. http://www.kudla.org/index.php?wl_mode=more&wl_eid=73 Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: 009dropdown.png Type: image/png Size: 20734 bytes Desc: not available URL: From eeller at ...826... Tue Feb 1 22:25:53 2005 From: eeller at ...826... (Eldon Eller) Date: Tue, 01 Feb 2005 13:25:53 -0800 Subject: [Gambas-user] Re: cannot start new project In-Reply-To: <200502011255.28024.sourceforge-raindog2@...94...> References: <41FFB39C.1000806@...830...> <41FFB6A9.5080203@...830...> <41FFBD81.2050704@...826...> <200502011255.28024.sourceforge-raindog2@...94...> Message-ID: <41FFF3E1.5050403@...826...> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: C:\Documents and Settings\EEE\My Documents\Forms\sig.jpg Type: image/jpeg Size: 1436 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Wed Feb 2 08:07:29 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 2 Feb 2005 02:07:29 -0500 Subject: [Gambas-user] VB import patch for 1.9.2 IDE Message-ID: <200502020205.14172.sourceforge-raindog2@...94...> This patch (well, really, set of files) should integrate my ImportVBProject dialog into the Gambas welcome dialog. It needs Gambas 1.9.2 (maybe Benoit's newer builds would still work) and my most recent pcre component, which I posted to this list last week. (I also made binary packages of 1.9.2 that included my most recent pcre component, mainly for my own use since I develop Gambas code on 4 or 5 different machines.) For those who are not aware, my VB importing stuff WILL NOT convert any code, only form designs. I copy the forms' code into the corresponding class file but I comment it all out. Translating code from one language to another is far, far more difficult than converting form designs, unfortunately. I also attached a screenshot so you can see how rudimentary my interface is. Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: vbimport192.jpg Type: image/jpeg Size: 45487 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas2-1.9.2-importvb-changes.tar.gz Type: application/x-tgz Size: 8635 bytes Desc: not available URL: From eilert-sprachen at ...221... Wed Feb 2 08:30:24 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 02 Feb 2005 08:30:24 +0100 Subject: [Gambas-user] Missing Ctrl-Y Message-ID: <42008190.7060207@...221...> The only thing I'm really missing in the editor is Ctrl-Y to kill the current line. I was looking for the sources of the editor (it's written in Gambas, isn't it?) to try to implement it myself, but I didn't find them. Anyway, would you agree this is a good idea? Rolf From budi at ...415... Wed Feb 2 04:01:32 2005 From: budi at ...415... (BUDI ARIEF GUSANDI) Date: Wed, 2 Feb 2005 10:01:32 +0700 Subject: [Gambas-user] Gambas IDE ???? In-Reply-To: <7f8e4a5a050131071859daa564@...627...> References: <200501291506.26588.sourceforge-raindog2@...94...> <7f8e4a5a05013020486c4fbc91@...627...> <41FE3FA7.7080907@...729...> <7f8e4a5a050131071859daa564@...627...> Message-ID: <601486085.20050202100132@...415...> Hi.All. Many gambaser here love MDI IDE created by Rob. I think let the name as gambas IDE, but huge credit will be for rob. If we name it specialized to someone who create it, i'm afraid benoit will do the same to gambas compiler. LOL Kidding, and everybody makes some prog related to gambas, will do that way. Though It's alternatif to gambas main IDE, but as QT MDI oke, i think MDI IDE can be better choice later as main IDE replaced current ;). What do you think ? Budi -------------- next part -------------- An HTML attachment was scrubbed... URL: From na2492 at ...9... Wed Feb 2 10:51:58 2005 From: na2492 at ...9... (Charlie Reinl) Date: Wed, 2 Feb 2005 10:51:58 00100 Subject: [Gambas-user] fakebas 0.0.9 Message-ID: <4200a2be.6ef0.0@...9...> > > >I updated fakebas for gambas 1.0.3. I incorporated the two >changes to the real IDE, and also added cascade and tile menu >options to the Window menu (tricky because as Benoit has said, >the Qt MDI workspace control is buggy), and after being inspired >by Fabien's recent screenshot, I added a dropdown to the editor >to let you jump to any function in the current class. > >http://www.kudla.org/index.php?wl_mode=more&wl_eid=73 > >Rob > Salut Rob, is it possible to greate in wiki an IDE section, where users can place / download diverent IDE's ? The only pb will be, this tree should not comme with the gambas-help. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From technoferret at ...598... Wed Feb 2 14:43:53 2005 From: technoferret at ...598... (Dave sharples) Date: Wed, 02 Feb 2005 13:43:53 +0000 Subject: [Gambas-user] Package Wizard - Debian Packages Message-ID: <1107351833.15347.37.camel@...599...> I've been thinking, I have been playing with Gambas for about 6 months being a linux convert who used to use VB. I have discovered that there is still a problem with the Package Wizard when it comes to creating .deb files for install on a Debian based system. This is fustrating me and 'scratching my itch' I have narrowed the problem down to the fact that the Wizard creates an RPM and then uses alien to convert it to a .deb file. Whilst this does create the required .deb file It does introduce a few problems, least of which is that it doesn't create the control file correctly (e.g. it doesn't list the dependancies correctly, or at all). This could be down to the limitations of alien, I'm not sure. Having examined the code of Package.module I think a better way of making the .deb would be to use 'dpkg --build', i.e.the debian method. This would create a genuine debian package rather than a substitute one. As dpkg will work as a user this would mean that Gambas's would no longer be dependant on fakeroot (unless its called elsewhere), though it would make it dependant on dpkg. What I really want to know is SHOULD I CONTRIBUTE? by having a go at hacking the Package.module file around so that it creates .deb files the correct way. I'm not the worlds tidyest programmer, my code can sometimes be convaluted and theres no guarantee of my success but is it worth me having a go anyway or should I just explain the process to one of you 'coding gods' and leave you to it? Also, if I have a go should I use the source from 1.0.3 or from the 1.9.x branch?. And can I compile and test 1.9.x from within the 1.0.3 IDE? Dave From sourceforge-raindog2 at ...94... Wed Feb 2 15:03:05 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 2 Feb 2005 09:03:05 -0500 Subject: [Gambas-user] Package Wizard - Debian Packages In-Reply-To: <1107351833.15347.37.camel@...599...> References: <1107351833.15347.37.camel@...599...> Message-ID: <200502020903.05373.sourceforge-raindog2@...94...> On Wednesday 02 February 2005 08:43, Dave sharples wrote: > What I really want to know is SHOULD I CONTRIBUTE? by having a > go at hacking the Package.module file around so that it > creates .deb files the correct way. I'm not the worlds tidyest > programmer, my code can sometimes be convaluted and theres no > guarantee of my success but is it worth me having a go anyway > or should I just explain the process to one of you 'coding > gods' and leave you to it? I don't think any of us "coding gods" are using Debian, and I know I'd love to see .deb packages created without using alien. In the current situation, there are (for example) no Mandrake packages of alien available so you can't build .deb packages on Mandrake anyway, and I suspect the same is true of Red Hat if not SuSE. I can't imagine that a properly working .deb packaging routine would be passed over, so I'd love to see you give it a try. Rob From sourceforge-raindog2 at ...94... Wed Feb 2 14:53:23 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 2 Feb 2005 08:53:23 -0500 Subject: [Gambas-user] fakebas 0.0.9 In-Reply-To: <4200a2be.6ef0.0@...9...> References: <4200a2be.6ef0.0@...9...> Message-ID: <200502020853.23037.sourceforge-raindog2@...94...> On Wednesday 02 February 2005 05:51, Charlie Reinl wrote: > is it possible to greate in wiki an IDE section, where users > can place / download diverent IDE's ? Sure, anyone can put anything Gambas-related in the wiki. Go ahead... > The only pb will be, this tree should not comme with the > gambas-help. To prevent part of a page in the wiki being included in the help, you need to put it in tags. For examples, look at the code on the main page. There is no way that I know of to prevent an entire page from being included in the help at all (z.b. all our user pages are included), but you can avoid linking to it from any other page using tags. Rob From sourceforge-raindog2 at ...94... Wed Feb 2 14:57:29 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 2 Feb 2005 08:57:29 -0500 Subject: [Gambas-user] Gambas IDE ???? In-Reply-To: <601486085.20050202100132@...415...> References: <200501291506.26588.sourceforge-raindog2@...94...> <7f8e4a5a050131071859daa564@...627...> <601486085.20050202100132@...415...> Message-ID: <200502020857.29893.sourceforge-raindog2@...94...> On Tuesday 01 February 2005 22:01, BUDI ARIEF GUSANDI wrote: > Though It's alternatif to gambas main IDE, but as QT MDI oke, > i think MDI IDE can be better choice later as main IDE > replaced current ;). What do you think ? I disagree. Benoit and Fabien have expressed interest in doing a single-window interface to the IDE eventually, using some arrangement technique other than MDI, and I would not want to discourage them by putting forth my own lame work as a candidate for the official IDE. That won't stop me from offering fakebas for VB expatriates, though. Rob From daniel.campos at ...338... Wed Feb 2 16:06:04 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Wed, 02 Feb 2005 16:06:04 +0100 Subject: [Gambas-user] Package Wizard - Debian Packages In-Reply-To: <200502020903.05373.sourceforge-raindog2@...94...> References: <1107351833.15347.37.camel@...599...> <200502020903.05373.sourceforge-raindog2@...94...> Message-ID: <4200EC5C.3090606@...338...> Rob escribi?: >On Wednesday 02 February 2005 08:43, Dave sharples wrote: > > >>What I really want to know is SHOULD I CONTRIBUTE? by having a >>go at hacking the Package.module file around so that it >>creates .deb files the correct way. I'm not the worlds tidyest >>programmer, my code can sometimes be convaluted and theres no >>guarantee of my success but is it worth me having a go anyway >>or should I just explain the process to one of you 'coding >>gods' and leave you to it? >> >> >> >> >> >> >> I think Jos? L. Redrejo can help a lot in this task... if Beno?t would like to use dpkg when detected in the system instead of rpm/alien this would be great! Regards, D. Campos From smiefert at ...784... Wed Feb 2 16:49:47 2005 From: smiefert at ...784... (Stefan Miefert) Date: Wed, 2 Feb 2005 16:49:47 +0100 Subject: [Gambas-user] Component Message-ID: <200502021649.47154.smiefert@...784...> Hello, i use gambas 1.2 and the linux is "Suse 9.2" when i open some examples i get the errormessage "component not found" where i can get this components? From na2492 at ...9... Wed Feb 2 19:30:37 2005 From: na2492 at ...9... (Charlie Reinl) Date: Wed, 2 Feb 2005 19:30:37 00100 Subject: [Gambas-user] Missing Ctrl-Y Message-ID: <42011c4d.2a0.0@...9...> >The only thing I'm really missing in the editor is Ctrl-Y to kill the >current line. > >I was looking for the sources of the editor (it's written in Gambas, >isn't it?) to try to implement it myself, but I didn't find them. > >Anyway, would you agree this is a good idea? > >Rolf > Salut Rolf, the editor is a gambas component and written in C/C++ You have to look at src/lib/qt/editor and add there the Ctrl-Y Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From sourceforge-raindog2 at ...94... Wed Feb 2 19:45:42 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 2 Feb 2005 13:45:42 -0500 Subject: [Gambas-user] Missing Ctrl-Y In-Reply-To: <42011c4d.2a0.0@...9...> References: <42011c4d.2a0.0@...9...> Message-ID: <200502021345.42356.sourceforge-raindog2@...94...> On Wednesday 02 February 2005 14:30, Charlie Reinl wrote: > the editor is a gambas component and written in C/C++ > You have to look at src/lib/qt/editor and add there the Ctrl-Y I dunno, I think it might be possible to modify FEditor.class to do what he wants, I just haven't tried yet. The Gambas IDE source is in the app/gambas subdirectory of the Gambas source tarball. If you're using Mandrake, I've made a gambas-source package that installs a copy of the source in /usr/src/gambas-(version). Rob From na2492 at ...9... Wed Feb 2 23:58:22 2005 From: na2492 at ...9... (Charlie Reinl) Date: Wed, 2 Feb 2005 23:58:22 00100 Subject: [Gambas-user] fakebas 0.0.9 Message-ID: <42015b0e.6875.0@...9...> >On Wednesday 02 February 2005 05:51, Charlie Reinl wrote: >> is it possible to greate in wiki an IDE section, where users >> can place / download diverent IDE's ? > >Sure, anyone can put anything Gambas-related in the wiki. Go >ahead... > >> The only pb will be, this tree should not comme with the >> gambas-help. > >To prevent part of a page in the wiki being included in the help, >you need to put it in tags. For examples, look at >the code on the main page. There is no way that I know of to >prevent an entire page from being included in the help at all >(z.b. all our user pages are included), but you can avoid >linking to it from any other page using tags. > >Rob Salut Rob, hop I right, started in gambas 2 tree the Ide, but ran in problems to upload the tarball. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From edamron at ...776... Thu Feb 3 02:56:41 2005 From: edamron at ...776... (Eric Damron) Date: Wed, 02 Feb 2005 17:56:41 -0800 Subject: [Gambas-user] About donations In-Reply-To: <200502011516.08062.gambas@...1...> References: <200502011516.08062.gambas@...1...> Message-ID: <420184D9.2080202@...776...> Benoit Minisini wrote: >I'd like to make a world map on the web site, with a flag for each people that >made a gift - the bigger the gift, the bigger the flag :-) > >This way, giver will be seen more easily than on the moving label of the about >dialog in the IDE. > >So I'm looking for a vectorized world map. Does anyone know how I can find >that ? > >Thanks in advance, > > > Benoit: I want to make a donation but your paypal page is in French. I need an English version. Thanks! From srikantux at ...626... Thu Feb 3 06:00:30 2005 From: srikantux at ...626... (Srikanta Prasanna) Date: Thu, 3 Feb 2005 10:30:30 +0530 Subject: [Gambas-user] Component In-Reply-To: <200502021649.47154.smiefert@...784...> References: <200502021649.47154.smiefert@...784...> Message-ID: <7f8e4a5a0502022100485a56eb@...627...> Stefan, On Wed, 2 Feb 2005 16:49:47 +0100, Stefan Miefert wrote: > Hello, > > i use gambas 1.2 and the linux is "Suse 9.2" > > when i open some examples i get the errormessage > "component not found" Which examples are throwing such errors? -- srikanta From smiefert at ...784... Thu Feb 3 08:07:51 2005 From: smiefert at ...784... (Stefan Miefert) Date: Thu, 3 Feb 2005 08:07:51 +0100 Subject: [Gambas-user] Component In-Reply-To: <7f8e4a5a0502022100485a56eb@...627...> References: <200502021649.47154.smiefert@...784...> <7f8e4a5a0502022100485a56eb@...627...> Message-ID: <200502030807.51079.smiefert@...784...> Hello, for example HTTPPost and this componet is missing gb.net.curl i download the sue version on the gambas homepage Am Donnerstag, 3. Februar 2005 06:00 schrieb Srikanta Prasanna: > Stefan, > > On Wed, 2 Feb 2005 16:49:47 +0100, Stefan Miefert wrote: > > Hello, > > > > i use gambas 1.2 and the linux is "Suse 9.2" > > > > when i open some examples i get the errormessage > > "component not found" > > Which examples are throwing such errors? > > -- > srikanta > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From srikantux at ...626... Thu Feb 3 08:37:35 2005 From: srikantux at ...626... (Srikanta Prasanna) Date: Thu, 3 Feb 2005 13:07:35 +0530 Subject: [Gambas-user] Component In-Reply-To: <200502030807.51079.smiefert@...784...> References: <200502021649.47154.smiefert@...784...> <7f8e4a5a0502022100485a56eb@...627...> <200502030807.51079.smiefert@...784...> Message-ID: <7f8e4a5a050202233754474c6e@...627...> Hi Stefan, On Thu, 3 Feb 2005 08:07:51 +0100, Stefan Miefert wrote: > HTTPPost and this componet is missing > > gb.net.curl > > i download the sue version on the gambas homepage You need to have libcurl to use the HTTP example, as the network component (gb.net) uses libcurl. I don't think libcurl too comes with gambas package :) Which is your system and Is libcurl installed in it? regards, srikanta From srikantux at ...626... Thu Feb 3 08:38:56 2005 From: srikantux at ...626... (Srikanta Prasanna) Date: Thu, 3 Feb 2005 13:08:56 +0530 Subject: [Gambas-user] Component In-Reply-To: <7f8e4a5a050202233754474c6e@...627...> References: <200502021649.47154.smiefert@...784...> <7f8e4a5a0502022100485a56eb@...627...> <200502030807.51079.smiefert@...784...> <7f8e4a5a050202233754474c6e@...627...> Message-ID: <7f8e4a5a05020223381a912c90@...627...> And then re install gambas so that gb.net.curl component is included. -- srikanta On Thu, 3 Feb 2005 13:07:35 +0530, Srikanta Prasanna wrote: > Hi Stefan, > > On Thu, 3 Feb 2005 08:07:51 +0100, Stefan Miefert wrote: > > HTTPPost and this componet is missing > > > > gb.net.curl > > > > i download the sue version on the gambas homepage > > You need to have libcurl to use the HTTP example, as the > network component (gb.net) uses libcurl. I don't think libcurl > too comes with gambas package :) > Which is your system and Is libcurl installed in it? > > regards, > srikanta > From jredrejo at ...96... Thu Feb 3 08:51:41 2005 From: jredrejo at ...96... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Thu, 03 Feb 2005 08:51:41 +0100 Subject: [Gambas-user] Re: Package Wizard - Debian Packages In-Reply-To: <20050203040758.AD5A112686@...773...> References: <20050203040758.AD5A112686@...773...> Message-ID: <1107417101.2709.11.camel@...40...> El mi?, 02 Feb 2005 13:43:53 +0000, Dave sharples escribi?: > I've been thinking, > > I have been playing with Gambas for about 6 months being a linux convert > who used to use VB. I have discovered that there is still a problem with > the Package Wizard when it comes to creating .deb files for install on a > Debian based system. This is fustrating me and 'scratching my itch' > > I have narrowed the problem down to the fact that the Wizard creates an > RPM and then uses alien to convert it to a .deb file. Whilst this does > create the required .deb file It does introduce a few problems, least of > which is that it doesn't create the control file correctly (e.g. it > doesn't list the dependancies correctly, or at all). This could be down > to the limitations of alien, I'm not sure. > Having examined the code of Package.module I think a better way of > making the .deb would be to use 'dpkg --build', i.e.the debian method. > This would create a genuine debian package rather than a substitute one. > > As dpkg will work as a user this would mean that Gambas's would no > longer be dependant on fakeroot (unless its called elsewhere), though it > would make it dependant on dpkg. > > What I really want to know is SHOULD I CONTRIBUTE? by having a go at > hacking the Package.module file around so that it creates .deb files the > correct way. I'm not the worlds tidyest programmer, my code can > sometimes be convaluted and theres no guarantee of my success but is it > worth me having a go anyway or should I just explain the process to one > of you 'coding gods' and leave you to it? > > Also, if I have a go should I use the source from 1.0.3 or from the > 1.9.x branch?. > And can I compile and test 1.9.x from within the 1.0.3 IDE? > > Dave > I think it is not so hard to make what you want. The only problem I see is that sometime ago , when I proposed such thing to Beno?t he answered that we wanted gambas making debian packages in Debian, but he also wanted gambas making debian packages in Mandrake or Suse. So if you go on with your idea, take it into account: you should detect the distro and continue supporting alien packaging if you are not in Debian. On the other hand, I have tested this ugly packaging with gambas and works fine for me in Debian. The generated packages are not even close to what an official debian package should be, even the text in the control file is quite wrong, but they work when I install them in the systems. Anyway, if you want to do it, I will be very happy with that. Maybe you could check the packages I have done at http://forja.linex.org/project/showfiles.php?group_id=15&release_id=127 (for this application http://www.itais.net/index.php?blog=3) and at http://forja.linex.org/projects/usuarioscentros/). In both cases, they are correctly hand made packages for gambas applications. The only thing they need to become totally policy compatible is the man page for the applications. You can download there the deb, source and description files. Cheers From technoferret at ...598... Thu Feb 3 09:34:48 2005 From: technoferret at ...598... (Dave sharples) Date: Thu, 03 Feb 2005 08:34:48 +0000 Subject: [Gambas-user] Re: Package Wizard - Debian Packages In-Reply-To: <1107417101.2709.11.camel@...40...> References: <20050203040758.AD5A112686@...773...> <1107417101.2709.11.camel@...40...> Message-ID: <1107419688.15347.46.camel@...599...> On Thu, 2005-02-03 at 07:51, Jos? L. Redrejo Rodr?guez wrote: > > On the other hand, I have tested this ugly packaging with gambas and > works fine for me in Debian. The generated packages are not even close > to what an official debian package should be, even the text in the > control file is quite wrong, but they work when I install them in the > systems. > This is what I found, at the moment I let gambas generate the RPM and DEB files and then I pull them to pieces, create a new control file and then use dpkg to recreate the DEB correctly. It's the only way I can get the .deb package to honour its dependancies correctly. From alan at ...833... Thu Feb 3 12:13:51 2005 From: alan at ...833... (alan) Date: Thu, 03 Feb 2005 11:13:51 +0000 Subject: [Gambas-user] Transaction processing in Postgresql Message-ID: <4202076F.2070809@...833...> I am trying to move an ACCESS database to GAMBAS & POSTGRESQL. As part of this process I want to change the order of the rows in some of the tables to match the order of the primary key. The following SQL command when submitted via PGADMINIII will achive this objective:- BEGIN; SELECT * INTO TEMP footemp FROM foo ORDER BY foo_id; DELETE FROM foo; INSERT INTO foo SELECT * FROM footemp; DROP TABLE footemp; COMMIT; This process has to be performed inside a transaction because there are constrants in other tables in the database which require some of the values in foo. When i try to execute the sql commands from within gambas the transaction fails at the first deletion with an error indicating a broken constaint. Does this mean gambas connot handle transactions? alan From smiefert at ...784... Thu Feb 3 13:15:39 2005 From: smiefert at ...784... (Stefan Miefert) Date: Thu, 3 Feb 2005 13:15:39 +0100 Subject: [Gambas-user] Component In-Reply-To: <7f8e4a5a050202233754474c6e@...627...> References: <200502021649.47154.smiefert@...784...> <200502030807.51079.smiefert@...784...> <7f8e4a5a050202233754474c6e@...627...> Message-ID: <200502031315.39636.smiefert@...784...> Hello, i dont think so:) where can i get this libcurl? Am Donnerstag, 3. Februar 2005 08:37 schrieb Srikanta Prasanna: > Hi Stefan, > > On Thu, 3 Feb 2005 08:07:51 +0100, Stefan Miefert wrote: > > HTTPPost and this componet is missing > > > > gb.net.curl > > > > i download the sue version on the gambas homepage > > You need to have libcurl to use the HTTP example, as the > network component (gb.net) uses libcurl. I don't think libcurl > too comes with gambas package :) > Which is your system and Is libcurl installed in it? > > regards, > srikanta > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From srikantux at ...626... Thu Feb 3 13:23:05 2005 From: srikantux at ...626... (Srikanta Prasanna) Date: Thu, 3 Feb 2005 17:53:05 +0530 Subject: [Gambas-user] Component In-Reply-To: <200502031315.39636.smiefert@...784...> References: <200502021649.47154.smiefert@...784...> <200502030807.51079.smiefert@...784...> <7f8e4a5a050202233754474c6e@...627...> <200502031315.39636.smiefert@...784...> Message-ID: <7f8e4a5a05020304233552915@...627...> Hi, On Thu, 3 Feb 2005 13:15:39 +0100, Stefan Miefert wrote: > Hello, > > i dont think so:) where can i get this libcurl? Its better you use apt-get (in case of debian) or yum (in case of red-hat) or urpmi (for mdk) etc..etc programs to get libcurl, so that all other dependent libs (if any) also gets installed in your system. You can see various libcurl pkgs here: http://freshmeat.net/projects/curl/?branch_id=1612&release_id=186449 regards, srikanta From smiefert at ...784... Thu Feb 3 13:34:10 2005 From: smiefert at ...784... (Stefan Miefert) Date: Thu, 3 Feb 2005 13:34:10 +0100 Subject: [Gambas-user] Component In-Reply-To: <7f8e4a5a05020304233552915@...627...> References: <200502021649.47154.smiefert@...784...> <200502031315.39636.smiefert@...784...> <7f8e4a5a05020304233552915@...627...> Message-ID: <200502031334.10443.smiefert@...784...> on my system i can install (this software is installed) compat-curl2 curl curl-devel php4-curl Am Donnerstag, 3. Februar 2005 13:23 schrieb Srikanta Prasanna: > Hi, > > On Thu, 3 Feb 2005 13:15:39 +0100, Stefan Miefert wrote: > > Hello, > > > > i dont think so:) where can i get this libcurl? > > Its better you use apt-get (in case of debian) or yum (in > case of red-hat) or urpmi (for mdk) etc..etc programs > to get libcurl, so that all other dependent libs (if any) > also gets installed in your system. > > You can see various libcurl pkgs here: > http://freshmeat.net/projects/curl/?branch_id=1612&release_id=186449 > > regards, > srikanta > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Feb 3 13:39:59 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Feb 2005 13:39:59 +0100 Subject: [Gambas-user] Gambas IDE ???? In-Reply-To: <200502020857.29893.sourceforge-raindog2@...94...> References: <200501291506.26588.sourceforge-raindog2@...94...> <601486085.20050202100132@...415...> <200502020857.29893.sourceforge-raindog2@...94...> Message-ID: <200502031339.59483.gambas@...1...> On Wednesday 02 February 2005 14:57, Rob wrote: > On Tuesday 01 February 2005 22:01, BUDI ARIEF GUSANDI wrote: > > Though It's alternatif to gambas main IDE, but as QT MDI oke, > > i think MDI IDE can be better choice later as main IDE > > replaced current ;). What do you think ? > > I disagree. Benoit and Fabien have expressed interest in doing a > single-window interface to the IDE eventually, using some > arrangement technique other than MDI, and I would not want to > discourage them by putting forth my own lame work as a candidate > for the official IDE. > > That won't stop me from offering fakebas for VB expatriates, > though. > > Rob > First idea: When you find your MDI 1.0 IDE stable enough, insert the project in the source tree as 'gambas-mdi' or something like that, and modify the .spec file so that it appears in the user menus. Second idea: Better would be merging your code with the 1.0 IDE, and adding an option to gambas so that it starts in MDI mode or not (like in VB, I know). Regards, -- Benoit Minisini mailto:gambas at ...1... From srikantux at ...626... Thu Feb 3 13:42:20 2005 From: srikantux at ...626... (Srikanta Prasanna) Date: Thu, 3 Feb 2005 18:12:20 +0530 Subject: [Gambas-user] Component In-Reply-To: <200502031334.10443.smiefert@...784...> References: <200502021649.47154.smiefert@...784...> <200502031315.39636.smiefert@...784...> <7f8e4a5a05020304233552915@...627...> <200502031334.10443.smiefert@...784...> Message-ID: <7f8e4a5a05020304426aa77b45@...627...> On Thu, 3 Feb 2005 13:34:10 +0100, Stefan Miefert wrote: > on my system i can install (this software is installed) > > compat-curl2 > curl > curl-devel > php4-curl And even now gb.net.component is missing? Did you reinstall / recompile gambas after installing the above mentioned libs? (And, which is your distro?) From gambas at ...1... Thu Feb 3 13:44:49 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Feb 2005 13:44:49 +0100 Subject: [Gambas-user] Package Wizard - Debian Packages In-Reply-To: <4200EC5C.3090606@...338...> References: <1107351833.15347.37.camel@...599...> <200502020903.05373.sourceforge-raindog2@...94...> <4200EC5C.3090606@...338...> Message-ID: <200502031344.49863.gambas@...1...> On Wednesday 02 February 2005 16:06, Daniel Campos wrote: > Rob escribi?: > >On Wednesday 02 February 2005 08:43, Dave sharples wrote: > >>What I really want to know is SHOULD I CONTRIBUTE? by having a > >>go at hacking the Package.module file around so that it > >>creates .deb files the correct way. I'm not the worlds tidyest > >>programmer, my code can sometimes be convaluted and theres no > >>guarantee of my success but is it worth me having a go anyway > >>or should I just explain the process to one of you 'coding > >>gods' and leave you to it? > > I think Jos? L. Redrejo can help a lot in this task... if Beno?t would > like to > use dpkg when detected in the system instead of rpm/alien this would be > great! > > Regards, > > D. Campos > Yes. Send me some code that make debian package with dpkg instead of using alien! -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu Feb 3 13:45:04 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Feb 2005 13:45:04 +0100 Subject: [Gambas-user] Transaction processing in Postgresql In-Reply-To: <4202076F.2070809@...833...> References: <4202076F.2070809@...833...> Message-ID: <200502031345.04198.gambas@...1...> On Thursday 03 February 2005 12:13, alan wrote: > I am trying to move an ACCESS database to GAMBAS & POSTGRESQL. > As part of this process I want to change the order of the rows in some > of the tables > to match the order of the primary key. > > The following SQL command when submitted via PGADMINIII will achive > this objective:- > > BEGIN; > SELECT * INTO TEMP footemp FROM foo ORDER BY foo_id; > DELETE FROM foo; > INSERT INTO foo SELECT * FROM footemp; > DROP TABLE footemp; > COMMIT; > > This process has to be performed inside a transaction because there are > constrants > in other tables in the database which require some of the values in foo. > > When i try to execute the sql commands from within gambas the > transaction fails > at the first deletion with an error indicating a broken constaint. > > Does this mean gambas connot handle transactions? > > alan > Transactions are supported! Send me your code so that I can see which SQL commands are send to the database driver... Regards, -- Benoit Minisini mailto:gambas at ...1... From eric.lemasson at ...626... Thu Feb 3 14:21:46 2005 From: eric.lemasson at ...626... (Eric Lemasson) Date: Thu, 3 Feb 2005 08:21:46 -0500 Subject: [Gambas-user] Event and inheritance Message-ID: <5cdd2044050203052110519deb@...627...> Hi all, I have just discovered Gambas one week ago so please excuse my dummy question .... I have created a sub-class of TextArea and I want to define a global behavior for all instances of this class for the Event change. How can I trap and redefine the event of a parent class in a sub-class ? I have tried to define some function like MyTextArea_Change or _Change, but do not work. Any help greatly appreciated. Thanks From technoferret at ...598... Thu Feb 3 16:00:14 2005 From: technoferret at ...598... (Dave sharples) Date: Thu, 03 Feb 2005 15:00:14 +0000 Subject: [Gambas-user] Package Wizard - Debian Packages In-Reply-To: <200502031344.49863.gambas@...1...> References: <1107351833.15347.37.camel@...599...> <200502020903.05373.sourceforge-raindog2@...94...> <4200EC5C.3090606@...338...> <200502031344.49863.gambas@...1...> Message-ID: <1107442814.15347.152.camel@...599...> On Thu, 2005-02-03 at 12:44, Benoit Minisini wrote: > > Yes. Send me some code that make debian package with dpkg instead of using > alien! OK, I'll have a go this weekend but I could do with 2 questions answering, 1. Is there an easy way to detect if a program (in this case dpkg) is installed on the system ?? 2.Does SELECT allow for multiple opions in the CASE arguement i.e. can I do something like SELECT CASE sSys CASE "mandrake", "redhat", "suse" CASE "debian" END SELECT Cheers Dave From sourceforge-raindog2 at ...94... Thu Feb 3 17:24:53 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 3 Feb 2005 11:24:53 -0500 Subject: [Gambas-user] Package Wizard - Debian Packages In-Reply-To: <1107442814.15347.152.camel@...599...> References: <1107351833.15347.37.camel@...599...> <200502031344.49863.gambas@...1...> <1107442814.15347.152.camel@...599...> Message-ID: <200502031121.18939.sourceforge-raindog2@...94...> On Thursday 03 February 2005 10:00, Dave sharples wrote: > 1. Is there an easy way to detect if a program (in this case > dpkg) is installed on the system ?? I always use either "which foo" or "type foo".... one of those is a shell builtin and the other isn't, and for your purposes I'd use the one that isn't. If you would rather do it without shelling out, you'd need to do something like public function findprogram(prog as string) as boolean dim found as boolean dim d as string found = false for each d in split(Application.Env["PATH"], ":") if exist(d &/ prog) then found = true next return found end Untested, of course, but you get the idea. Rob From gibsonsphoto at ...247... Thu Feb 3 17:39:39 2005 From: gibsonsphoto at ...247... (neil lewis) Date: Thu, 03 Feb 2005 16:39:39 +0000 Subject: [Gambas-user] Error trapping problem Message-ID: <420253CB.1020800@...247...> Hi All, I've been using Gambas for a while now, and my image processing project has grown to a usable state. I'm now trying to add extra convenience and error trapping features. One of these new features is a subroutine which loads multiple image file names into an array using Dir and For Each. Later, these are used to fetch the actual images for processing. The user specifies the source folder for the image files and a pattern to match, which can be as general as "*". Some folders may contain non-image files, eg text or sound. I'd like to be able to check for non-image file names being accidentally added to the array using Try but can't seem to get it to work. I've tried two methods so far. Gambas did not detect the error in either case. Here is what I did: The sub uses local variables; DIM temppic as Picture DIM temppath as String 'used to hold the full path and file name for the file being checked version 1 TRY temppic = Picture[temppath] 'test to see if the file identified by the path can be made into a picture With or without the TRY in place, Gambas makes no fuss, even when given a text file. version 2 TRY EXEC ["identify", "-format", "%m", temppath] 'test to see if it's an image using ImageMagick to identify the image type With or without the TRY in place, ImageMagick displays a console error message for non-image file types, but Gambas does not see the error. In each case, I followed the above with IF ERROR THEN 'if not, report the error and continue msg(8) 'print an error message to the programs display CONTINUE 'carry on with next file ELSE . 'do the other stuff I need done with the valid image files . . Any ideas how else I could detect non-image file types and get Gambas to detect the error? Neil Lewis. From scatman_ at ...17... Thu Feb 3 19:42:40 2005 From: scatman_ at ...17... (scatman) Date: Thu, 3 Feb 2005 19:42:40 +0100 Subject: [Gambas-user] Component In-Reply-To: <7f8e4a5a05020304233552915@...627...> References: <200502021649.47154.smiefert@...784...> <200502031315.39636.smiefert@...784...> <7f8e4a5a05020304233552915@...627...> Message-ID: <200502031942.40875.scatman_@...17...> Am Donnerstag, 3. Februar 2005 13:23 schrieb Srikanta Prasanna: Hi, > > i dont think so:) where can i get this libcurl? > > Its better you use apt-get (in case of debian) or yum (in > case of red-hat) or urpmi (for mdk) etc..etc programs use apt-cache search libcurl (to find it) and Install it with apt-get install. -- scatman From edamron at ...776... Fri Feb 4 04:08:05 2005 From: edamron at ...776... (Eric Damron) Date: Thu, 03 Feb 2005 19:08:05 -0800 Subject: [Gambas-user] About donations In-Reply-To: <420184D9.2080202@...776...> References: <200502011516.08062.gambas@...1...> <420184D9.2080202@...776...> Message-ID: <4202E715.7040207@...776...> Never mind. I managed to bable fish through it. :-) From linuxgirl at ...69... Fri Feb 4 11:15:37 2005 From: linuxgirl at ...69... (Stefania) Date: Fri, 04 Feb 2005 11:15:37 +0100 Subject: [Gambas-user] Help me, i'm newbies in linux... Message-ID: <42034B49.9080300@...69...> I need to install these packages but where can I download all these packages? Mandrake 10.1 i686 kernel 2.6.8.1-12mdk - X11 development packages. - Qt 3 development packages. - KDE 3 development packages per i KDE component. - PostgreSQL, MySQL or SQlite development packages - libcurl development packages (version 7.10.7 e successiva) - SDL e SDL_mixer development packages From srikantux at ...626... Fri Feb 4 11:38:37 2005 From: srikantux at ...626... (Srikanta Prasanna) Date: Fri, 4 Feb 2005 16:08:37 +0530 Subject: [Gambas-user] Help me, i'm newbies in linux... In-Reply-To: <42034B49.9080300@...69...> References: <42034B49.9080300@...69...> Message-ID: <7f8e4a5a05020402386a1aa575@...627...> Hi Stefan, On Fri, 04 Feb 2005 11:15:37 +0100, Stefania wrote: > I need to install these packages but where can I download all these packages? > Mandrake 10.1 i686 kernel 2.6.8.1-12mdk As you are using Mdk 10.1, I suggest you use 'urpmi' program to install them instead of manuall downloading each of those packages and installing them. This would ensure that all the dependent packages for the one which you wish to install is also downloaded and installed automatically. > - X11 development packages. > - Qt 3 development packages. > - KDE 3 development packages per i KDE component. > - PostgreSQL, MySQL or SQlite development packages > - libcurl development packages (version 7.10.7 e successiva) > - SDL e SDL_mixer development packages If you have Mdk 10.1 all CD's (was it 3 CD set?), I think you can install (maybe) almost all of the above mentioned packages for the CD's itself, instead of using net. You have a good graphical tool for it which you can find in Mandrake Control Center under Packages section or so. Please check it out. Using it you can search all the installation CD's for the packages which you want to install and install it with all its dependencies fullfilled. cheers, srikanta From gambas at ...1... Fri Feb 4 12:29:14 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 4 Feb 2005 12:29:14 +0100 Subject: [Gambas-user] Package Wizard - Debian Packages In-Reply-To: <1107442814.15347.152.camel@...599...> References: <1107351833.15347.37.camel@...599...> <200502031344.49863.gambas@...1...> <1107442814.15347.152.camel@...599...> Message-ID: <200502041229.14810.gambas@...1...> On Thursday 03 February 2005 16:00, Dave sharples wrote: > On Thu, 2005-02-03 at 12:44, Benoit Minisini wrote: > > Yes. Send me some code that make debian package with dpkg instead of > > using alien! > > OK, I'll have a go this weekend but I could do with 2 questions > answering, > > 1. Is there an easy way to detect if a program (in this case dpkg) is > installed on the system ?? There is a method in the Project class of the IDE: Project.CheckProgram() > > 2.Does SELECT allow for multiple opions in the CASE arguement > > i.e. can I do something like > > SELECT CASE sSys > > CASE "mandrake", "redhat", "suse" > > > CASE "debian" > > > END SELECT Yes. Isn't it written in the doc ? > > Cheers > Dave > > Regards, -- Benoit Minisini mailto:gambas at ...1... From eilert-sprachen at ...221... Fri Feb 4 13:46:28 2005 From: eilert-sprachen at ...221... (Eilert) Date: Fri, 04 Feb 2005 13:46:28 +0100 Subject: [Gambas-user] A mess with modules, classes and access Message-ID: <42036EA4.3040701@...221...> Hi all, After having started to re-code a larger VB project into Gambas, I found some obstacles I don't understand. The project contains some forms. One of them has a Drawing Area. As there are many tiny helper SUBs and Functions, I had everything referring to drawing in a separate module to keep it out from the form (in VB). Now, in Gambas I find that from the module I cannot access the Drawing Area. So I copied the code from the module into a class. But now, I cannot access the SUBs of the class from the Drawing Area form's code. Would you emphasize to keep all code related to the Drawing Area within its form? That would make it a bit messy as there are quite a lot of functions as mentioned above. Or did I miss something? How do you organize such things? Rolf From gambas at ...1... Fri Feb 4 13:57:53 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 4 Feb 2005 13:57:53 +0100 Subject: [Gambas-user] About donations In-Reply-To: <20050201153437.F0EA737316@...700...> References: <20050201153437.F0EA737316@...700...> Message-ID: <200502041357.53992.gambas@...1...> On Tuesday 01 February 2005 16:30, Daniel Oxley wrote: > From the xplanet website? > > http://xplanet.sourceforge.net > > Daniel > Cool :-) Now where can I find town coordinates so that I can place the town where live the contributors/donators ? -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Fri Feb 4 14:00:11 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 4 Feb 2005 14:00:11 +0100 Subject: [Gambas-user] VB import patch for 1.9.2 IDE In-Reply-To: <200502020205.14172.sourceforge-raindog2@...94...> References: <200502020205.14172.sourceforge-raindog2@...94...> Message-ID: <200502041400.11713.gambas@...1...> On Wednesday 02 February 2005 08:07, Rob wrote: > This patch (well, really, set of files) should integrate my > ImportVBProject dialog into the Gambas welcome dialog. It needs > Gambas 1.9.2 (maybe Benoit's newer builds would still work) and > my most recent pcre component, which I posted to this list last > week. (I also made binary packages of 1.9.2 that included my > most recent pcre component, mainly for my own use since I > develop Gambas code on 4 or 5 different machines.) > > For those who are not aware, my VB importing stuff WILL NOT > convert any code, only form designs. I copy the forms' code > into the corresponding class file but I comment it all out. > Translating code from one language to another is far, far more > difficult than converting form designs, unfortunately. > > I also attached a screenshot so you can see how rudimentary my > interface is. > > Rob Aargh! I didn't understand how your thing works... Do you create a new project when you import VB forms ? Then, you must merge your code in the Project creation form, not in the welcome form. And if you just import forms, then you must merge your code in the Form creation wizard. Or you can make an external tool if you don't want to keep a 'rudimentary' interface. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Fri Feb 4 14:01:20 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 4 Feb 2005 14:01:20 +0100 Subject: [Gambas-user] Missing Ctrl-Y In-Reply-To: <42008190.7060207@...221...> References: <42008190.7060207@...221...> Message-ID: <200502041401.20643.gambas@...1...> On Wednesday 02 February 2005 08:30, Eilert wrote: > The only thing I'm really missing in the editor is Ctrl-Y to kill the > current line. > > I was looking for the sources of the editor (it's written in Gambas, > isn't it?) to try to implement it myself, but I didn't find them. > > Anyway, would you agree this is a good idea? > > Rolf > At the moment, CTRL+Y is for redoing (undoing the last undo), and you can't modify shortcuts, unless by modifying directly the source code. Regards, -- Benoit Minisini mailto:gambas at ...1... From radoslav.dejanovic at ...116... Fri Feb 4 14:10:42 2005 From: radoslav.dejanovic at ...116... (Radoslav =?iso-8859-2?q?Dejanovi=E6?=) Date: Fri, 4 Feb 2005 14:10:42 +0100 Subject: [Gambas-user] About donations In-Reply-To: <200502041357.53992.gambas@...1...> References: <20050201153437.F0EA737316@...700...> <200502041357.53992.gambas@...1...> Message-ID: <200502041410.42970.radoslav.dejanovic@...116...> On Friday 04 February 2005 13:57, Benoit Minisini wrote: > Now where can I find town coordinates so that I can place the town where > live the contributors/donators ? http://w3logistics.com/infopool/koord-int/ -- Radoslav Dejanovi? Operacijski sustavi d.o.o. http://www.opsus.hr From jarions at ...761... Fri Feb 4 14:12:11 2005 From: jarions at ...761... (Jarion Stevens) Date: Fri, 04 Feb 2005 07:12:11 -0600 Subject: [Gambas-user] Help me, i'm newbies in linux... In-Reply-To: <7f8e4a5a05020402386a1aa575@...627...> References: <42034B49.9080300@...69...> <7f8e4a5a05020402386a1aa575@...627...> Message-ID: <420374AB.9090407@...761...> If you don't have the CD set there is a web based utility you can use to help you set up urpmi. Do a Google search for "easy urpmi". Easy urpmi will walk you through selecting rpm mirrors for Mandrake. At the end you will be given some commands to cut and paste (as root) into your terminal to set up urpmi. Very easy to use. js Srikanta Prasanna wrote: >Hi Stefan, > >On Fri, 04 Feb 2005 11:15:37 +0100, Stefania wrote: > > >>I need to install these packages but where can I download all these packages? >>Mandrake 10.1 i686 kernel 2.6.8.1-12mdk >> >> > >As you are using Mdk 10.1, I suggest you use 'urpmi' program to install them >instead of manuall downloading each of those packages and installing them. >This would ensure that all the dependent packages for the one which you wish >to install is also downloaded and installed automatically. > > > > >> - X11 development packages. >> - Qt 3 development packages. >> - KDE 3 development packages per i KDE component. >> - PostgreSQL, MySQL or SQlite development packages >> - libcurl development packages (version 7.10.7 e successiva) >> - SDL e SDL_mixer development packages >> >> > >If you have Mdk 10.1 all CD's (was it 3 CD set?), I think you can >install (maybe) >almost all of the above mentioned packages for the CD's itself, >instead of using >net. You have a good graphical tool for it which you can find in >Mandrake Control >Center under Packages section or so. Please check it out. Using it you can >search all the installation CD's for the packages which you want to install and >install it with all its dependencies fullfilled. > >cheers, >srikanta > > >------------------------------------------------------- >This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting >Tool for open source databases. Create drag-&-drop reports. Save time >by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >Download a FREE copy at http://www.intelliview.com/go/osdn_nl >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > From phiber at ...618... Fri Feb 4 14:41:23 2005 From: phiber at ...618... (phiber) Date: Fri, 04 Feb 2005 14:41:23 +0100 Subject: [Gambas-user] A mess with modules, classes and access In-Reply-To: <42036EA4.3040701@...221...> References: <42036EA4.3040701@...221...> Message-ID: <1107524483.8114.2.camel@...40...> Project < Properties On Fri, 2005-02-04 at 13:46 +0100, Eilert wrote: > Hi all, > > After having started to re-code a larger VB project into Gambas, I found > some obstacles I don't understand. > > The project contains some forms. One of them has a Drawing Area. As > there are many tiny helper SUBs and Functions, I had everything > referring to drawing in a separate module to keep it out from the form > (in VB). > > Now, in Gambas I find that from the module I cannot access the Drawing > Area. So I copied the code from the module into a class. But now, I > cannot access the SUBs of the class from the Drawing Area form's code. > > Would you emphasize to keep all code related to the Drawing Area within > its form? That would make it a bit messy as there are quite a lot of > functions as mentioned above. Or did I miss something? How do you > organize such things? > > Rolf > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Feb 4 14:59:46 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 4 Feb 2005 14:59:46 +0100 Subject: [Gambas-user] Event and inheritance In-Reply-To: <5cdd2044050203052110519deb@...627...> References: <5cdd2044050203052110519deb@...627...> Message-ID: <200502041459.46697.gambas@...1...> On Thursday 03 February 2005 14:21, Eric Lemasson wrote: > Hi all, > > I have just discovered Gambas one week ago so please excuse my dummy > question .... > > I have created a sub-class of TextArea and I want to define a global > behavior for all instances of this class for the Event change. > How can I trap and redefine the event of a parent class in a sub-class ? > > I have tried to define some function like MyTextArea_Change or > _Change, but do not work. > > Any help greatly appreciated. > > Thanks > You can't trap an event generated by a class in an inherited class, it is a non-sense :-) Event are generated by objects, not classes and are sent to their event observer. You must replace inheritance by composition: create a MyTextArea class that instanciate a TextArea in its constructor, and this way you will receive all events generated by the TextArea. But if you want the MyTextArea event observer to catch other events from TextArea, you must reimplement all of them. MyTextArea.class: ... EVENT KeyPress PRIVATE hTextArea AS TextArea ... PUBLIC SUB _new(Parent AS Container) hTextArea = NEW TextArea(Parent) AS "TextArea" ... END PUBLIC SUB TextArea_KeyPress() RAISE KeyPress END If you want to handle the Change event for a group of TextArea, use the (Group) pseudo-property in the properties sheet. Do you get it ? :-) -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Fri Feb 4 15:08:01 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 4 Feb 2005 15:08:01 +0100 Subject: [Gambas-user] Error trapping problem In-Reply-To: <420253CB.1020800@...247...> References: <420253CB.1020800@...247...> Message-ID: <200502041508.01170.gambas@...1...> On Thursday 03 February 2005 17:39, neil lewis wrote: > Hi All, > > I've been using Gambas for a while now, and my image processing project > has grown to a usable state. I'm now trying to add extra convenience and > error trapping features. > > One of these new features is a subroutine which loads multiple image > file names into an array using Dir and For Each. Later, these are used > to fetch the actual images for processing. > The user specifies the source folder for the image files and a pattern > to match, which can be as general as "*". Some folders may contain > non-image files, eg text or sound. > I'd like to be able to check for non-image file names being accidentally > added to the array using Try but can't seem to get it to work. > I've tried two methods so far. Gambas did not detect the error in either > case. > > Here is what I did: > > The sub uses local variables; DIM temppic as Picture > DIM temppath as > String 'used to hold the full path and file name for the > file being checked > > version 1 > TRY temppic = Picture[temppath] > 'test to see if the file identified by the path can be made into a > picture > > With or without the TRY in place, Gambas makes no fuss, even when given > a text file. Don't use the cache feature of the Picture class. Use the Load method instead. This method must return an error if the file can't be interpreted as an image file, or it is a bug in Gambas :-) > > > version 2 > TRY EXEC ["identify", "-format", "%m", temppath] 'test > to see if it's an image using ImageMagick to identify the image type > > With or without the TRY in place, ImageMagick displays a console error > message for non-image file types, but Gambas does not see the error. > > In each case, I followed the above with > > IF ERROR THEN > 'if not, report the error and continue > msg(8) > 'print an error message to the programs display > CONTINUE > 'carry on with next file > ELSE > . > 'do the other stuff I need done with > the valid image files > . > . You are mixe-up! An external program that fails does not mean that Gambas couldn't execute it. So EXEC always succeeds, even if the executed program returns an error. You must check the return value. Regards, -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Fri Feb 4 15:35:42 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 4 Feb 2005 09:35:42 -0500 Subject: [Gambas-user] VB import patch for 1.9.2 IDE In-Reply-To: <200502041400.11713.gambas@...1...> References: <200502020205.14172.sourceforge-raindog2@...94...> <200502041400.11713.gambas@...1...> Message-ID: <200502040935.42194.sourceforge-raindog2@...94...> On Friday 04 February 2005 08:00, Benoit Minisini wrote: > Do you create a new project when you import VB forms ? Then, > you must merge your code in the Project creation form, not in > the welcome form. No, if you just import a form it has to go into an existing project. I only create a directory and .project file if you are importing a .vbp and all its associated forms. > And if you just import forms, then you must merge your code in > the Form creation wizard. I kept the classes pretty discrete so I should be able to modify both the New Project and Create Form dialogs pretty easily. I will work on that later today or this weekend. > Or you can make an external tool if you don't want to keep a > 'rudimentary' interface. I think it's inconvenient to make it an external tool, because the project you create or into which you import forms should be opened automatically after the import is complete, and as far as I can tell the IDE takes no command line parameters to open a project at startup. Rob From neil at ...233... Fri Feb 4 15:44:16 2005 From: neil at ...233... (neil lewis) Date: Fri, 04 Feb 2005 14:44:16 +0000 Subject: [Gambas-user] Error trapping problem In-Reply-To: <200502041508.01170.gambas@...1...> References: <420253CB.1020800@...247...> <200502041508.01170.gambas@...1...> Message-ID: <42038A40.1010704@...233...> Thank you Benoit. I very much appreciate your comments. I only tried using the external program when I couldn't get any error response using Picture and I wasn't at all sure that the error would be propagated. Thanks anyway for steering me away from that idea. I'll try your suggestion of using the Load method and see if it helps. I did also think about passing the output from the ImageMagick function back to Gambas so that I could check the contents of the string. At least that way I could identify whether the file was of a suitable type without actually raising an error. I know I could just check the file extension, but I don't want to go that way since Linux doesn't insist on them and I'd rather not impose the need for an extension onto the user. Regards, Neil Lewis I'll give that a try. Benoit Minisini wrote: >On Thursday 03 February 2005 17:39, neil lewis wrote: > > >>Hi All, >> >>I've been using Gambas for a while now, and my image processing project >>has grown to a usable state. I'm now trying to add extra convenience and >>error trapping features. >> >>One of these new features is a subroutine which loads multiple image >>file names into an array using Dir and For Each. Later, these are used >>to fetch the actual images for processing. >>The user specifies the source folder for the image files and a pattern >>to match, which can be as general as "*". Some folders may contain >>non-image files, eg text or sound. >>I'd like to be able to check for non-image file names being accidentally >>added to the array using Try but can't seem to get it to work. >>I've tried two methods so far. Gambas did not detect the error in either >>case. >> >>Here is what I did: >> >>The sub uses local variables; DIM temppic as Picture >> DIM temppath as >>String 'used to hold the full path and file name for the >>file being checked >> >>version 1 >> TRY temppic = Picture[temppath] >> 'test to see if the file identified by the path can be made into a >>picture >> >>With or without the TRY in place, Gambas makes no fuss, even when given >>a text file. >> >> > >Don't use the cache feature of the Picture class. Use the Load method instead. >This method must return an error if the file can't be interpreted as an image >file, or it is a bug in Gambas :-) > > > >>version 2 >> TRY EXEC ["identify", "-format", "%m", temppath] 'test >>to see if it's an image using ImageMagick to identify the image type >> >>With or without the TRY in place, ImageMagick displays a console error >>message for non-image file types, but Gambas does not see the error. >> >>In each case, I followed the above with >> >> IF ERROR THEN >> 'if not, report the error and continue >> msg(8) >> 'print an error message to the programs display >> CONTINUE >> 'carry on with next file >> ELSE >> . >> 'do the other stuff I need done with >>the valid image files >> . >> . >> >> > >You are mixe-up! An external program that fails does not mean that Gambas >couldn't execute it. So EXEC always succeeds, even if the executed program >returns an error. You must check the return value. > >Regards, > > > From sourceforge-raindog2 at ...94... Fri Feb 4 16:27:40 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 4 Feb 2005 10:27:40 -0500 Subject: [Gambas-user] Error trapping problem In-Reply-To: <42038A40.1010704@...233...> References: <420253CB.1020800@...247...> <200502041508.01170.gambas@...1...> <42038A40.1010704@...233...> Message-ID: <200502041027.40787.sourceforge-raindog2@...94...> On Friday 04 February 2005 09:44, neil lewis wrote: > I know I could just check the file extension, but I don't want > to go that way since Linux doesn't insist on them and I'd > rather not impose the need for an extension onto the user. You could just use "file", as it will detect any image type that gb.qt can handle. Rob From nigel at ...38... Fri Feb 4 17:11:58 2005 From: nigel at ...38... (nigel at ...38...) Date: Fri, 4 Feb 2005 17:11:58 +0100 (CET) Subject: [Gambas-user] Gambas T-Shirts Message-ID: <5582253.1107533518980.JavaMail.www@...713...> When will we be able to also say 'Been there, done that and got the t-shirt'? :-) Nigel -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -------------- next part -------------- An HTML attachment was scrubbed... URL: From eilert-sprachen at ...221... Fri Feb 4 17:12:40 2005 From: eilert-sprachen at ...221... (Eilert) Date: Fri, 04 Feb 2005 17:12:40 +0100 Subject: [Gambas-user] A mess with modules, classes and access In-Reply-To: <1107524483.8114.2.camel@...40...> References: <42036EA4.3040701@...221...> <1107524483.8114.2.camel@...40...> Message-ID: <42039EF8.6090204@...221...> I know, phiber schrieb: > Project < Properties and I tried that, but it only acts when I put my functions which have to have access to the Drawing Area into a class, not a module. From a module, I still do not have access to it. But when I put them into a class file, the form (say: the code in the class file with the Drawing Area) does not have access to the functions in the other class... So it seems to me that the only way of doing it right here in Gambas is to put every function/procedure that has to have access to the Drawing Area into the class file of the Drawing Area itself. Only those functions which act for themselves can be put somewhere else, but only into a module, because otherwise you loose access to them. Is that correct? And is it intended to be so? Rolf From sourceforge-raindog2 at ...94... Fri Feb 4 18:52:00 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 4 Feb 2005 12:52:00 -0500 Subject: [Gambas-user] A mess with modules, classes and access In-Reply-To: <42039EF8.6090204@...221...> References: <42036EA4.3040701@...221...> <1107524483.8114.2.camel@...40...> <42039EF8.6090204@...221...> Message-ID: <200502041252.00676.sourceforge-raindog2@...94...> On Friday 04 February 2005 11:12, Eilert wrote: > and I tried that, but it only acts when I put my functions > which have to have access to the Drawing Area into a class, > not a module. From a module, I still do not have access to it. This is not true.... the Project module in the Gambas IDE itself refers to members of classes all the time, and in fakebas I even refer to controls on forms from the Project module. Wanna post your code? Rob From Karl.Reinl at ...9... Fri Feb 4 20:27:12 2005 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 4 Feb 2005 20:27:12 +0100 Subject: [Gambas-user] gambas-IDE with a Sourcecode-Printer and a Sourcecode-PrettyPrinter for gambas-1.0.2 Message-ID: <200502042002.30372.Karl.Reinl@...9...> Salut , I released a patch and the whole IDE at . http://www.binara.com/gambas-wiki/bin/view/Gambas/ForGambas-102 I also released for gambas 1.0.3, but it is the same, while nothing on the IDE had changed it points to back to ForGambas-102. http://www.binara.com/gambas-wiki/bin/view/Gambas/ForGambas-103 You will find a description there. I hope to find other IDE projects soon. Amicalment Charlie From edamron at ...776... Sat Feb 5 07:17:45 2005 From: edamron at ...776... (Eric Damron) Date: Fri, 04 Feb 2005 22:17:45 -0800 Subject: [Gambas-user] Creating an Auto Increment Field Message-ID: <42046509.4090909@...776...> I'm writing a routen to create a database if it doesn't exist. I need to make the primary key an auto increment integer (MySQL database) I use the following to create an integer primary key: WITH hConnection hTable = .Tables.Add("CALL") hTable.Fields.Add("id", gb.Integer, 11) hTable.PrimaryKey = ["id"] hTable.Update END WITH But how do I make it an auto increment? (Without Exec a SQL alter table statement later.) Thanks From edamron at ...776... Sat Feb 5 07:40:44 2005 From: edamron at ...776... (Eric Damron) Date: Fri, 04 Feb 2005 22:40:44 -0800 Subject: [Gambas-user] gb.TEXT Message-ID: <42046A6C.3070801@...776...> I need a text field in my MySQL database so I used: hTable.Fields.Add("description", gb.Text) When I look at the database, however, I see not a TEXT field but a TinyInt field! How do I get a text field?? Thanks From nigel at ...38... Sat Feb 5 14:52:55 2005 From: nigel at ...38... (nigel at ...38...) Date: Sat, 5 Feb 2005 14:52:55 +0100 (CET) Subject: [Gambas-user] gb.TEXT Message-ID: <3907912.1107611575177.JavaMail.www@...834...> Eric, Use gb.String e.g. hTable.Fields.Add("description", gb.String). for now. Further investigation is requird for gb.Text as I don't think any of the drivers currently accept it. Nigel > Message date : Feb 05 2005, 06:41 AM > From : "Eric Damron" > To : "Gambas Mail List" > Copy to : > Subject : [Gambas-user] gb.TEXT > > I need a text field in my MySQL database so I used: > > hTable.Fields.Add("description", gb.Text) > > When I look at the database, however, I see not a TEXT field but a > TinyInt field! > > How do I get a text field?? > > Thanks > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From karl.reinl at ...9... Sun Feb 6 14:31:33 2005 From: karl.reinl at ...9... (Charlie) Date: Sun, 06 Feb 2005 14:31:33 +0100 Subject: [Gambas-user] fakebas 0.0.9 References: <42015b0e.6875.0@...9...> Message-ID: <42061C35.3050709@...9...> Charlie Reinl schrieb: >Salut Rob, > >hop I right, started in gambas 2 tree the Ide, but ran in problems to >upload the tarball. > >Amicalment >Charlie >* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > Salut Rob, finally it worked, after stripping the executable from the tarball, now it is someting like 900 k befor it had 2,4 M , that has certenly passed the max upload size. Would be nice to place you fakebas also there. Amicalment Charlie From oystein at ...816... Sun Feb 6 17:57:24 2005 From: oystein at ...816... (Øystein Selbekk) Date: Sun, 6 Feb 2005 17:57:24 +0100 Subject: [Gambas-user] Creating an Auto Increment Field Message-ID: > I'm writing a routen to create a database if it doesn't exist. I need > to make the primary key an auto increment integer (MySQL database) > > I use the following to create an integer primary key: > > WITH hConnection > hTable = .Tables.Add("CALL") > hTable.Fields.Add("id", gb.Integer, 11) > hTable.PrimaryKey = ["id"] > hTable.Update > END WITH > > But how do I make it an auto increment? (Without Exec a SQL alter table > statement later.) > > Thanks > End of Gambas-user Digest Hi there.... I would have to say that this is not by far any good way to create a table. You should much rather use a ANSI SQL statement for MySQL. EX: PRIVATE $hConn as Connection PRIVATE $rData as Result PRIVATE sName as string $hConn = NEW Connection sName = "mysql" WITH $hConn .Type = "mysql" .Host = "localhost" .Login = "root" .Password = "" END WITH $hConn.Name = sName $hConn.Open $rData = $hConn.Exec("create table CALL (id int(11) auto_increment,myfirstdatafield varchar(50) not null,myseconddatafield varchar(5) not null,PRIMARY KEY (id))") $hConn.Close This should work if the MySQL server resides on your local PC and you dont use a password on the mysql root account. Happy coding! Regards Oystein Selbekk From edamron at ...776... Sun Feb 6 23:27:35 2005 From: edamron at ...776... (Eric Damron) Date: Sun, 06 Feb 2005 14:27:35 -0800 Subject: [Gambas-user] House Keeping Message-ID: <420699D7.504@...776...> Does Gambas use some kind of garbage collector like C# or do I need to free memory myself for objects like forms, etc? I'm getting the following message when I close my applications: QApplication::postEvent: Unexpected null receiver From na2492 at ...9... Mon Feb 7 00:27:30 2005 From: na2492 at ...9... (Charlie Reinl) Date: Mon, 7 Feb 2005 00:27:30 00100 Subject: [Gambas-user] House Keeping Message-ID: <4206a7e2.7524.0@...9...> >Does Gambas use some kind of garbage collector like C# or do I need to >free memory myself for objects like forms, etc? > >I'm getting the following message when I close my applications: > >QApplication::postEvent: Unexpected null receiver Salut , This is thrown by the TableView of gambas, and Benoit hasn't found out how to manage it. I emarked, if you set the tableview to null , you get less of them. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From gambas at ...1... Mon Feb 7 12:10:14 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Feb 2005 12:10:14 +0100 Subject: [Gambas-user] gb.TEXT In-Reply-To: <42046A6C.3070801@...776...> References: <42046A6C.3070801@...776...> Message-ID: <200502071210.15085.gambas@...1...> On Saturday 05 February 2005 07:40, Eric Damron wrote: > I need a text field in my MySQL database so I used: > > hTable.Fields.Add("description", gb.Text) > > When I look at the database, however, I see not a TEXT field but a > TinyInt field! > > How do I get a text field?? > > Thanks > > gb.Text is not a datatype constant, and has the same value as gb.boolean, so you get a boolean field, which is implemented as a TinyInt by the mysql driver! -- Benoit Minisini mailto:gambas at ...1... From teri.logan at ...626... Mon Feb 7 13:03:57 2005 From: teri.logan at ...626... (Teri Logan) Date: Mon, 7 Feb 2005 13:03:57 +0100 Subject: [Gambas-user] double click at scroll bar of listbox, iconview etc.. Message-ID: Hi all, when I double click at scrollbar of listbox and other such controls (iconview...) then control raise DBL_CLICK event... It is a bug or feature? ;-)) Teri Logan From gambas at ...1... Mon Feb 7 13:13:26 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Feb 2005 13:13:26 +0100 Subject: [Gambas-user] double click at scroll bar of listbox, iconview etc.. In-Reply-To: References: Message-ID: <200502071313.26214.gambas@...1...> On Monday 07 February 2005 13:03, Teri Logan wrote: > Hi all, > > when I double click at scrollbar of listbox and other such > controls (iconview...) then control raise DBL_CLICK event... > > It is a bug or feature? ;-)) > > Teri Logan > > It is a feature :-) If you want to know when an item is double-clicked, use the Activate event. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Feb 7 15:48:45 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Feb 2005 15:48:45 +0100 Subject: [Gambas-user] Release of development version 1.9.3 Message-ID: <200502071548.45125.gambas@...1...> Hi world, Here is the 1.9.3 version. Virtual dispatching has been fixed, and a new keyword, SUPER, allows you to call a method or a property of the inherited class. The editor now rewrites code as it is entered. Many components were updated, thanks to Rob, Daniel, Laurent, Nigel, and Andrea. The fix of virtual dispatching should fix many segmentation faults found by people, and the "tabstrip" vanished bug in the IDE. The detection of libxml and libxlst (the XML component) uses pkg-config both. If the detection does not work, because pkg-config is not installed on your system for these two libraries, try to use --with-*-includes and --with-*-libraries options with ./configure. Anyway, write to this mailing-list if you have problems with it yet. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Feb 7 16:14:30 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Feb 2005 16:14:30 +0100 Subject: [Gambas-user] Release of development version 1.9.3 In-Reply-To: <200502071548.45125.gambas@...1...> References: <200502071548.45125.gambas@...1...> Message-ID: <200502071614.30894.gambas@...1...> On Monday 07 February 2005 15:48, Benoit Minisini wrote: > Hi world, > > Here is the 1.9.3 version. > > Virtual dispatching has been fixed, and a new keyword, SUPER, allows you to > call a method or a property of the inherited class. The editor now rewrites > code as it is entered. Many components were updated, thanks to Rob, Daniel, > Laurent, Nigel, and Andrea. > > The fix of virtual dispatching should fix many segmentation faults found by > people, and the "tabstrip" vanished bug in the IDE. > > The detection of libxml and libxlst (the XML component) uses pkg-config > both. If the detection does not work, because pkg-config is not installed > on your system for these two libraries, try to use --with-*-includes and > --with-*-libraries options with ./configure. Anyway, write to this > mailing-list if you have problems with it yet. > > Regards, The SDL component has been updated too. Here is a little example made by Fabien Bodard and slightly modified by your servant to show you some features. Enjoy it! -- Benoit Minisini mailto:gambas at ...1... -------------- next part -------------- A non-text attachment was scrubbed... Name: mousedemo-0.0.3.tar.gz Type: application/x-tgz Size: 122154 bytes Desc: not available URL: From gambas at ...1... Mon Feb 7 16:21:32 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Feb 2005 16:21:32 +0100 Subject: [Gambas-user] Release of development version 1.9.3 In-Reply-To: <200502071614.30894.gambas@...1...> References: <200502071548.45125.gambas@...1...> <200502071614.30894.gambas@...1...> Message-ID: <200502071621.32473.gambas@...1...> On Monday 07 February 2005 16:14, Benoit Minisini wrote: > On Monday 07 February 2005 15:48, Benoit Minisini wrote: > > Hi world, > > > > Here is the 1.9.3 version. > > > > Virtual dispatching has been fixed, and a new keyword, SUPER, allows you > > to call a method or a property of the inherited class. The editor now > > rewrites code as it is entered. Many components were updated, thanks to > > Rob, Daniel, Laurent, Nigel, and Andrea. > > > > The fix of virtual dispatching should fix many segmentation faults found > > by people, and the "tabstrip" vanished bug in the IDE. > > > > The detection of libxml and libxlst (the XML component) uses pkg-config > > both. If the detection does not work, because pkg-config is not installed > > on your system for these two libraries, try to use --with-*-includes and > > --with-*-libraries options with ./configure. Anyway, write to this > > mailing-list if you have problems with it yet. > > > > Regards, > > The SDL component has been updated too. Here is a little example made by > Fabien Bodard and slightly modified by your servant to show you some > features. > > Enjoy it! Note that this example eats your memory as it runs. I don't know why... Does the example never release its objects or is it a memory leak in the SDL component ? If Laurent or Fabien could look in depth :-) -- Benoit Minisini mailto:gambas at ...1... From lordheavy at ...512... Mon Feb 7 22:29:08 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Mon, 7 Feb 2005 22:29:08 +0100 Subject: [Gambas-user] Release of development version 1.9.3 In-Reply-To: <200502071621.32473.gambas@...1...> References: <200502071548.45125.gambas@...1...> <200502071614.30894.gambas@...1...> <200502071621.32473.gambas@...1...> Message-ID: <200502072229.08965.lordheavy@...512...> Le Lundi 7 F?vrier 2005 16:21, Benoit Minisini a ?crit?: > > Note that this example eats your memory as it runs. I don't know why... > Does the example never release its objects or is it a memory leak in the > SDL component ? > > If Laurent or Fabien could look in depth :-) Found it ! i've forgot to release the temp surface used for printing text (draw.text). And a bug in printing with sfont font :) Regards, -- Laurent Carlier -------------- next part -------------- A non-text attachment was scrubbed... Name: draw.c Type: text/x-csrc Size: 9271 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Mon Feb 7 22:39:58 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 7 Feb 2005 16:39:58 -0500 Subject: [Gambas-user] 1.9.3 with VB import patch Message-ID: <200502071639.58440.sourceforge-raindog2@...94...> Since I goofed with my tarball of changes to apply to 1.9.2, here is the 1.9.3 IDE with the "new project from VB" and "add form from VB" features added. http://www.kudla.org/gambas2-with-vb-import-1.9.3.tar.gz Oh yeah, and 1.9.3 packages for Mandrake 10.1 are on my repository now. Rob From lbaudio at ...172... Tue Feb 8 03:23:00 2005 From: lbaudio at ...172... (LB Audio) Date: Tue, 8 Feb 2005 00:23:00 -0200 (Horário brasileiro de verão) Subject: [Gambas-user] Please demo source of download file FTP or HTTP in Gambas References: Message-ID: <42082284.000001.02860@...745...> Please demo source of download file FTP or HTTP in Gambas Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From eilert-sprachen at ...221... Tue Feb 8 08:56:22 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 08 Feb 2005 08:56:22 +0100 Subject: [Gambas-user] A mess with modules, classes and access In-Reply-To: <200502041252.00676.sourceforge-raindog2@...94...> References: <42036EA4.3040701@...221...> <1107524483.8114.2.camel@...40...> <42039EF8.6090204@...221...> <200502041252.00676.sourceforge-raindog2@...94...> Message-ID: <420870A6.3010109@...221...> Rob schrieb: > On Friday 04 February 2005 11:12, Eilert wrote: > >>and I tried that, but it only acts when I put my functions >>which have to have access to the Drawing Area into a class, >>not a module. From a module, I still do not have access to it. > > > This is not true.... the Project module in the Gambas IDE itself > refers to members of classes all the time, and in fakebas I even > refer to controls on forms from the Project module. Wanna post > your code? > > Rob Strange, very strange... I just wanted to have a look at the code to give some comment when sending it to you. Suddenly the thing worked perfectly. Maybe there was something wrong in my changing from module to class and back. Or Gambas was running wrong, though I tried to restart it then and it still wouldn't go. Ok, I know now that it should run :-) I'll keep an eye on it and be back when I encounter any more strange things. Thanks for your help. Rolf From teri.logan at ...626... Tue Feb 8 09:27:05 2005 From: teri.logan at ...626... (Teri Logan) Date: Tue, 8 Feb 2005 09:27:05 +0100 Subject: [Gambas-user] public constants? Message-ID: Hello, another question... When I declare public constaint in module (or class...) for example:
public const XXX as integer = 0
I can access that only within module, not outside. is there any solution? Thanx, Teri From gambas at ...1... Tue Feb 8 11:17:09 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 8 Feb 2005 11:17:09 +0100 Subject: [Gambas-user] "big" projects in Gambas Message-ID: <200502081117.09140.gambas@...1...> Hi everyone, I know I already ask that in the past, but I must answer to an interview for the FOSDEM. They ask me "Are there already some projects built with Gambas ?" So please tell me if you wrote a Gambas application that is more useful than a simple example or a simple "hello world". I knwo already a few of them, but this way I can establish a list for the FOSDEM. Thanks in advance for your answers, Regards, -- Benoit Minisini mailto:gambas at ...1... From teri.logan at ...626... Tue Feb 8 11:27:52 2005 From: teri.logan at ...626... (Teri Logan) Date: Tue, 8 Feb 2005 11:27:52 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502081117.09140.gambas@...1...> References: <200502081117.09140.gambas@...1...> Message-ID: On Tue, 8 Feb 2005 11:17:09 +0100, Benoit Minisini wrote: > Hi everyone, > > I know I already ask that in the past, but I must answer to an interview for > the FOSDEM. > > They ask me "Are there already some projects built with Gambas ?" > > So please tell me if you wrote a Gambas application that is more useful than a > simple example or a simple "hello world". I knwo already a few of them, but > this way I can establish a list for the FOSDEM. > > Thanks in advance for your answers, > > Regards, > > -- > Benoit Minisini > mailto:gambas at ...1... > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Yeah, I am writing in Gambas "Linux Workstation" - pack of tools and utils. Currently I have done (version 0.2) shortcuts (windows-like), mime support, background picture generator, "message of the day", autostart tool, simple image viewer, simple filesystem browser (with support of custom-folder icons and shortcut icons) and other supporting utils... Teri Logan From scatman_ at ...17... Tue Feb 8 11:36:20 2005 From: scatman_ at ...17... (scatman) Date: Tue, 8 Feb 2005 11:36:20 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502081117.09140.gambas@...1...> References: <200502081117.09140.gambas@...1...> Message-ID: <200502081136.20675.scatman_@...17...> Am Dienstag, 8. Februar 2005 11:17 schrieb Benoit Minisini: > Hi everyone, > > I know I already ask that in the past, but I must answer to an interview > for the FOSDEM. > > They ask me "Are there already some projects built with Gambas ?" > > So please tell me if you wrote a Gambas application that is more useful > than a simple example or a simple "hello world". I knwo already a few of > them, but this way I can establish a list for the FOSDEM. > looking at http://developer.berlios.de/projects/dcover/ -- scatman From mike_keehan at ...679... Tue Feb 8 11:56:30 2005 From: mike_keehan at ...679... (Mike Keehan) Date: Tue, 08 Feb 2005 10:56:30 +0000 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502081117.09140.gambas@...1...> References: <200502081117.09140.gambas@...1...> Message-ID: <42089ADE.3060802@...679...> Benoit Minisini wrote: > Hi everyone, > > I know I already ask that in the past, but I must answer to an interview for > the FOSDEM. > > They ask me "Are there already some projects built with Gambas ?" > Hi Benoit, I have used Gambas in a communications system for a government department. The application provides the user interface for a system that is running 24 hours a day, 7 days a week. The app is responsible for showing a continuously updated audit logging window, setting up comms parameters, starting and stopping the background comms programs (which are written in C), and allowing the users to view individual messages, message queues, log files and for general access to the system, e.g. backups/restores, config changes, file loads etc. It is running on a HP Pentium 4 server in a 1u rack, with SUSE 9 on Linux 2.4. It replaced a 10 year old system which used 24x80 terminals and ran on SCO. It has been very reliable so far :) Mike. From alan at ...833... Tue Feb 8 12:01:33 2005 From: alan at ...833... (alan) Date: Tue, 08 Feb 2005 11:01:33 +0000 Subject: [Gambas-user] Transaction processing in Postgresq Message-ID: <42089C0D.5040603@...833...> On Thursday 03 February 2005 12:13, alan wrote: >> I am trying to move an ACCESS database to GAMBAS & POSTGRESQL. >> As part of this process I want to change the order of the rows in some >> of the tables >> to match the order of the primary key. >> >> The following SQL command when submitted via PGADMINIII will achive >> this objective:- >> >> BEGIN; >> SELECT * INTO TEMP footemp FROM foo ORDER BY foo_id; >> DELETE FROM foo; >> INSERT INTO foo SELECT * FROM footemp; >> DROP TABLE footemp; >> COMMIT; >> >> This process has to be performed inside a transaction because there are >> constrants >> in other tables in the database which require some of the values in foo. >> >> When i try to execute the sql commands from within gambas the >> transaction fails >> at the first deletion with an error indicating a broken constaint. >> >> Does this mean gambas connot handle transactions? >> >> alan >> > > Transactions are supported! Send me your code so that I can see which SQL commands are send to the database driver... Regards, -- Benoit Minisini sorry to trouble you with this problem which i have now found is due to a missing SQL command. There should be:- SET CONSTAINTS ALL DEFERRED after tehe BEGIN regards Alan Bromley From na2492 at ...9... Tue Feb 8 12:13:11 2005 From: na2492 at ...9... (Charlie Reinl) Date: Tue, 8 Feb 2005 12:13:11 00100 Subject: [Gambas-user] "big" projects in Gambas Message-ID: <42089ec7.5502.0@...9...> >Hi everyone, > >I know I already ask that in the past, but I must answer to an interview for >the FOSDEM. > >They ask me "Are there already some projects built with Gambas ?" > >So please tell me if you wrote a Gambas application that is more useful than a >simple example or a simple "hello world". I knwo already a few of them, but >this way I can establish a list for the FOSDEM. > >Thanks in advance for your answers, > >Regards, > >-- >Benoit Minisini >mailto:gambas at ...1... Salut, din't you remember that the IDE is a gambas-project ? Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From gambas at ...1... Tue Feb 8 13:02:00 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 8 Feb 2005 13:02:00 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <42089ec7.5502.0@...9...> References: <42089ec7.5502.0@...9...> Message-ID: <200502081302.01650.gambas@...1...> On Tuesday 08 February 2005 13:13, Charlie Reinl wrote: > >Hi everyone, > > > >I know I already ask that in the past, but I must answer to an interview > > for > > > >the FOSDEM. > > > >They ask me "Are there already some projects built with Gambas ?" > > > >So please tell me if you wrote a Gambas application that is more useful > > than > > a > > >simple example or a simple "hello world". I knwo already a few of them, > > but > > > >this way I can establish a list for the FOSDEM. > > > >Thanks in advance for your answers, > > > >Regards, > > > >-- > >Benoit Minisini > >mailto:gambas at ...1... > > Salut, > > din't you remember that the IDE is a gambas-project ? > Really ? You are kidding :-) -- Benoit Minisini mailto:gambas at ...1... From eilert-sprachen at ...221... Tue Feb 8 13:17:26 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 08 Feb 2005 13:17:26 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502081117.09140.gambas@...1...> References: <200502081117.09140.gambas@...1...> Message-ID: <4208ADD6.5000607@...221...> I am currently starting a new project for my own enterprise (a private language school) to recode two programs which are running under VB. One of them is a database for the students which includes financial features and its own printing system. Making layout of the printing forms for it easier is the task of the second program, a form editor with WYSIWYG preview. The database has 12000+ codelines in VB, the form editor is much smaller. And I started with the form editor because without it, all printing in the database won't be possible. Up to now, I made a typewriting trainer, a file distribution tool for the PC lab tutor and this small thing that lists the users online which we discussed earlier. Rolf Benoit Minisini schrieb: > Hi everyone, > > I know I already ask that in the past, but I must answer to an interview for > the FOSDEM. > > They ask me "Are there already some projects built with Gambas ?" > > So please tell me if you wrote a Gambas application that is more useful than a > simple example or a simple "hello world". I knwo already a few of them, but > this way I can establish a list for the FOSDEM. > > Thanks in advance for your answers, > > Regards, > From ronstk at ...239... Tue Feb 8 14:33:36 2005 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 8 Feb 2005 14:33:36 +0100 Subject: [Gambas-user] public constants? In-Reply-To: References: Message-ID: <200502081433.36190.ronstk@...239...> On Tuesday 08 February 2005 09:27, Teri Logan wrote: | Hello, | | another question... | | When I declare public constaint in module (or class...) | for example: | |
| public const XXX as integer = 0
| 
| | I can access that only within module, not outside. is there any solution? | | Thanx, Teri | | You should be able by using: modulename.XXX = "My secret text" print modulename.XXX Just prefix the variable, constants or functions with "modulename." Ron From picander78 at ...325... Tue Feb 8 14:39:32 2005 From: picander78 at ...325... (Marco Gusy) Date: Tue, 8 Feb 2005 14:39:32 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <42089ec7.5502.0@...9...> References: <42089ec7.5502.0@...9...> Message-ID: <200502081439.32817.picander78@...325...> Alle 13:13, marted? 8 febbraio 2005, Charlie Reinl ha scritto: > din't you remember that the IDE is a gambas-project ? Of course it's important to show to the interviewer that Gambas can be practically useful. I liked a lot Mike' story about using Linux + Gambas to replace a SCO unix system. From neil at ...233... Tue Feb 8 14:53:32 2005 From: neil at ...233... (neil lewis) Date: Tue, 08 Feb 2005 13:53:32 +0000 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <4208ADD6.5000607@...221...> References: <200502081117.09140.gambas@...1...> <4208ADD6.5000607@...221...> Message-ID: <4208C45C.8020104@...233...> I have been writing (and am already using) an image processing application for interlacing lenticular graphics using Gambas. The project (LILi) is hosted on Sourceforge and is currently at versiuon 0.34. Most image processing is handled by ImageMagick functions, called from LILi, while Gambas provides an easy to use GUI and all the program logic. It's already very functional and can handle any type of lenticular lens panel for vertical or horizontal interlacing. It can output images for 3D effects or animations. LILi features single image and bulk loading, inline editing (still to be completed), animated previewing, very fine pitch adjustment, job logging, error logging (still to be completed), single or batch mode processing, output in various image formats and will also support output straight to print. Neil Lewis (Photobod) Eilert wrote: > I am currently starting a new project for my own enterprise (a private > language school) to recode two programs which are running under VB. > One of them is a database for the students which includes financial > features and its own printing system. Making layout of the printing > forms for it easier is the task of the second program, a form editor > with WYSIWYG preview. > > The database has 12000+ codelines in VB, the form editor is much > smaller. And I started with the form editor because without it, all > printing in the database won't be possible. > > Up to now, I made a typewriting trainer, a file distribution tool for > the PC lab tutor and this small thing that lists the users online > which we discussed earlier. > > Rolf > > > Benoit Minisini schrieb: > >> Hi everyone, >> >> I know I already ask that in the past, but I must answer to an >> interview for the FOSDEM. >> >> They ask me "Are there already some projects built with Gambas ?" >> >> So please tell me if you wrote a Gambas application that is more >> useful than a simple example or a simple "hello world". I knwo >> already a few of them, but this way I can establish a list for the >> FOSDEM. >> >> Thanks in advance for your answers, >> >> Regards, >> > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pvera at ...729... Tue Feb 8 15:00:40 2005 From: pvera at ...729... (Pablo Vera) Date: Tue, 08 Feb 2005 08:00:40 -0600 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502081117.09140.gambas@...1...> References: <200502081117.09140.gambas@...1...> Message-ID: <4208C608.3010604@...729...> I developed a simple cyber-cafe access control client, the server part resides in a web server and is made with php. Saludos, Pablo Vera _____________________________________________________________________ Benoit Minisini wrote: > Hi everyone, > > I know I already ask that in the past, but I must answer to an interview for > the FOSDEM. > > They ask me "Are there already some projects built with Gambas ?" > > So please tell me if you wrote a Gambas application that is more useful than a > simple example or a simple "hello world". I knwo already a few of them, but > this way I can establish a list for the FOSDEM. > > Thanks in advance for your answers, > > Regards, > From sourceforge-raindog2 at ...94... Tue Feb 8 15:29:31 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 8 Feb 2005 09:29:31 -0500 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502081117.09140.gambas@...1...> References: <200502081117.09140.gambas@...1...> Message-ID: <200502080915.07037.sourceforge-raindog2@...94...> On Tuesday 08 February 2005 05:17, Benoit Minisini wrote: > So please tell me if you wrote a Gambas application that is > more useful than a simple example or a simple "hello world". I > knwo already a few of them, but this way I can establish a > list for the FOSDEM. I have finished about half a dozen applications commercially using Gambas, but only for private use by my clients (they're GPL code, but it's quite unlikely that they'll ever be distributed.) They include specialized CD archiving apps, document retrieval apps, and one big bank teller application which I reimplemented from custom-control-laden VB code before it was possible to import VB forms into Gambas. Some of these are in production and some not, but all are ready to deploy. Unfortunately, I can't name my company's clients. Rob From jredrejo at ...96... Tue Feb 8 15:51:36 2005 From: jredrejo at ...96... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Tue, 08 Feb 2005 15:51:36 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <20050208143110.8F46B89321@...763...> References: <20050208143110.8F46B89321@...763...> Message-ID: <1107874296.2676.33.camel@...40...> El mar, 08-02-2005 a las 06:30 -0800, Benoit Minisini escribi?: I have used gambas for developing two projects in Extremadura primary and high schools: - Controlaulas (http://forja.linex.org/project/showfiles.php?group_id=15&release_id=127 to download and http://www.itais.net/index.php?blog=3 for features (in spanish) and screenshots ) allows the teacher controls the classroom and have a lot of different tools to work interactively with the students:start apps, switch on and off students pc, enable/disable them internet, follow their steps using vnc, export teacher desktop to the students to show things, share/unshare teacher printer, send message to the desktops, send files, real time video and sound transmition using videolan, etc. It was developed initially with qt, but now it has been changed to gtk using Daniel Campos gtk component. It has been widely tested and now it is being installed in our 65.000 linex computers. - Usuarioscentros ( http://forja.linex.org/projects/usuarioscentros/ ) is another tool I developed. It allows the school system administrator add/delete/modify user accounts. It exports all the students and teachers data from the administrative school applications to a ldap directory, creates and customize the HOME desktops and directories and gives the permissions we have considered more useful. It is being installed in every high and primary schools servers. Both are gpl applications and can be installed in Debian using apt with the LinEx repositories. Regards. > Hi everyone, > > I know I already ask that in the past, but I must answer to an interview for > the FOSDEM. > > They ask me "Are there already some projects built with Gambas ?" > > So please tell me if you wrote a Gambas application that is more useful than a > simple example or a simple "hello world". I knwo already a few of them, but > this way I can establish a list for the FOSDEM. > > Thanks in advance for your answers, > > Regards, > > -- > Benoit Minisini > mailto:gambas at ...1... > > > --__--__-- > > Message: 4 > Date: Tue, 8 Feb 2005 11:27:52 +0100 > From: Teri Logan > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] "big" projects in Gambas > Reply-To: gambas-user at lists.sourceforge.net > > On Tue, 8 Feb 2005 11:17:09 +0100, Benoit Minisini > wrote: > > Hi everyone, > > > > I know I already ask that in the past, but I must answer to an interview for > > the FOSDEM. > > > > They ask me "Are there already some projects built with Gambas ?" > > > > So please tell me if you wrote a Gambas application that is more useful than a > > simple example or a simple "hello world". I knwo already a few of them, but > > this way I can establish a list for the FOSDEM. > > > > Thanks in advance for your answers, > > > > Regards, > > > > -- > > Benoit Minisini > > mailto:gambas at ...1... > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Yeah, > > I am writing in Gambas "Linux Workstation" - pack of tools and utils. > > Currently I have done (version 0.2) shortcuts (windows-like), mime > support, background picture generator, "message of the day", autostart > tool, simple image viewer, simple filesystem browser (with support of > custom-folder icons and shortcut icons) and other supporting utils... > > Teri Logan > > > --__--__-- > > Message: 5 > From: scatman > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] "big" projects in Gambas > Date: Tue, 8 Feb 2005 11:36:20 +0100 > Reply-To: gambas-user at lists.sourceforge.net > > Am Dienstag, 8. Februar 2005 11:17 schrieb Benoit Minisini: > > Hi everyone, > > > > I know I already ask that in the past, but I must answer to an interview > > for the FOSDEM. > > > > They ask me "Are there already some projects built with Gambas ?" > > > > So please tell me if you wrote a Gambas application that is more useful > > than a simple example or a simple "hello world". I knwo already a few of > > them, but this way I can establish a list for the FOSDEM. > > > > looking at > http://developer.berlios.de/projects/dcover/ > > > -- > scatman > > > --__--__-- > > Message: 6 > Date: Tue, 08 Feb 2005 10:56:30 +0000 > From: Mike Keehan > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] "big" projects in Gambas > Reply-To: gambas-user at lists.sourceforge.net > > Benoit Minisini wrote: > > Hi everyone, > > > > I know I already ask that in the past, but I must answer to an interview for > > the FOSDEM. > > > > They ask me "Are there already some projects built with Gambas ?" > > > > Hi Benoit, > > I have used Gambas in a communications system for a government > department. The application provides the user interface for a system > that is running 24 hours a day, 7 days a week. > > The app is responsible for showing a continuously updated audit > logging window, setting up comms parameters, starting and stopping the > background comms programs (which are written in C), and allowing the > users to view individual messages, message queues, log files and for > general access to the system, e.g. backups/restores, config changes, > file loads etc. > > It is running on a HP Pentium 4 server in a 1u rack, with SUSE 9 on > Linux 2.4. > > It replaced a 10 year old system which used 24x80 terminals and ran on > SCO. > > It has been very reliable so far :) > > Mike. > > > --__--__-- > > Message: 7 > Date: Tue, 08 Feb 2005 11:01:33 +0000 > From: alan > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Transaction processing in Postgresq > Reply-To: gambas-user at lists.sourceforge.net > > On Thursday 03 February 2005 12:13, alan wrote: > > >> I am trying to move an ACCESS database to GAMBAS & POSTGRESQL. > >> As part of this process I want to change the order of the rows in some > >> of the tables > >> to match the order of the primary key. > >> > >> The following SQL command when submitted via PGADMINIII will achive > >> this objective:- > >> > >> BEGIN; > >> SELECT * INTO TEMP footemp FROM foo ORDER BY foo_id; > >> DELETE FROM foo; > >> INSERT INTO foo SELECT * FROM footemp; > >> DROP TABLE footemp; > >> COMMIT; > >> > >> This process has to be performed inside a transaction because there are > >> constrants > >> in other tables in the database which require some of the values in foo. > >> > >> When i try to execute the sql commands from within gambas the > >> transaction fails > >> at the first deletion with an error indicating a broken constaint. > >> > >> Does this mean gambas connot handle transactions? > >> > >> alan > >> > > > > > > Transactions are supported! > > Send me your code so that I can see which SQL commands are send to the > database driver... > > Regards, > > -- Benoit Minisini sorry to trouble you with this problem which i have > now found is due to a missing SQL command. There should be:- SET > CONSTAINTS ALL DEFERRED after tehe BEGIN regards Alan Bromley > > > > > --__--__-- > > Message: 8 > From: "Charlie Reinl" > To: gambas-user at lists.sourceforge.net > Date: Tue, 8 Feb 2005 12:13:11 00100 > Subject: Re: [Gambas-user] "big" projects in Gambas > Reply-To: gambas-user at lists.sourceforge.net > > >Hi everyone, > > > >I know I already ask that in the past, but I must answer to an interview for > > >the FOSDEM. > > > >They ask me "Are there already some projects built with Gambas ?" > > > >So please tell me if you wrote a Gambas application that is more useful than > a > >simple example or a simple "hello world". I knwo already a few of them, but > > >this way I can establish a list for the FOSDEM. > > > >Thanks in advance for your answers, > > > >Regards, > > > >-- > >Benoit Minisini > >mailto:gambas at ...1... > > Salut, > > din't you remember that the IDE is a gambas-project ? > > Amicalment > Charlie > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > > --__--__-- > > Message: 9 > From: Benoit Minisini > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] "big" projects in Gambas > Date: Tue, 8 Feb 2005 13:02:00 +0100 > Reply-To: gambas-user at lists.sourceforge.net > > On Tuesday 08 February 2005 13:13, Charlie Reinl wrote: > > >Hi everyone, > > > > > >I know I already ask that in the past, but I must answer to an interview > > > for > > > > > >the FOSDEM. > > > > > >They ask me "Are there already some projects built with Gambas ?" > > > > > >So please tell me if you wrote a Gambas application that is more useful > > > than > > > > a > > > > >simple example or a simple "hello world". I knwo already a few of them, > > > but > > > > > >this way I can establish a list for the FOSDEM. > > > > > >Thanks in advance for your answers, > > > > > >Regards, > > > > > >-- > > >Benoit Minisini > > >mailto:gambas at ...1... > > > > Salut, > > > > din't you remember that the IDE is a gambas-project ? > > > > Really ? You are kidding :-) > > -- > Benoit Minisini > mailto:gambas at ...1... > > > --__--__-- > > Message: 10 > Date: Tue, 08 Feb 2005 13:17:26 +0100 > From: eilert-sprachen at ...221... (Eilert) > Organization: Sprachschule Eilert > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] "big" projects in Gambas > Reply-To: gambas-user at lists.sourceforge.net > > I am currently starting a new project for my own enterprise (a private > language school) to recode two programs which are running under VB. One > of them is a database for the students which includes financial features > and its own printing system. Making layout of the printing forms for it > easier is the task of the second program, a form editor with WYSIWYG > preview. > > The database has 12000+ codelines in VB, the form editor is much > smaller. And I started with the form editor because without it, all > printing in the database won't be possible. > > Up to now, I made a typewriting trainer, a file distribution tool for > the PC lab tutor and this small thing that lists the users online which > we discussed earlier. > > Rolf > > > Benoit Minisini schrieb: > > Hi everyone, > > > > I know I already ask that in the past, but I must answer to an interview for > > the FOSDEM. > > > > They ask me "Are there already some projects built with Gambas ?" > > > > So please tell me if you wrote a Gambas application that is more useful than a > > simple example or a simple "hello world". I knwo already a few of them, but > > this way I can establish a list for the FOSDEM. > > > > Thanks in advance for your answers, > > > > Regards, > > > > > > --__--__-- > > Message: 11 > From: Ron Onstenk > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] public constants? > Date: Tue, 8 Feb 2005 14:33:36 +0100 > Reply-To: gambas-user at lists.sourceforge.net > > On Tuesday 08 February 2005 09:27, Teri Logan wrote: > | Hello, > | > | another question... > | > | When I declare public constaint in module (or class...) > | for example: > | > |
> | public const XXX as integer = 0
> | 
> | > | I can access that only within module, not outside. is there any solution? > | > | Thanx, Teri > | > | > > You should be able by using: > > modulename.XXX = "My secret text" > print modulename.XXX > > Just prefix the variable, constants or functions with "modulename." > > Ron > > > --__--__-- > > Message: 12 > From: Marco Gusy > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] "big" projects in Gambas > Date: Tue, 8 Feb 2005 14:39:32 +0100 > Reply-To: gambas-user at lists.sourceforge.net > > Alle 13:13, marted=EC 8 febbraio 2005, Charlie Reinl ha scritto: > > > din't you remember that the IDE is a gambas-project ? > > Of course it's important to show to the interviewer that Gambas can be=20 > practically useful.=20 > I liked a lot Mike' story about using Linux + Gambas to replace a SCO unix= > =20 > system. > > > --__--__-- > > Message: 13 > Date: Tue, 08 Feb 2005 13:53:32 +0000 > From: neil lewis > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] "big" projects in Gambas > Reply-To: gambas-user at lists.sourceforge.net > > I have been writing (and am already using) an image processing > application for interlacing lenticular graphics using Gambas. > The project (LILi) is hosted on Sourceforge and is currently at versiuon > 0.34. > > Most image processing is handled by ImageMagick functions, called from > LILi, while Gambas provides an easy to use GUI and > all the program logic. > > It's already very functional and can handle any type of lenticular lens > panel for vertical or horizontal interlacing. It can output images for > 3D effects or animations. > > LILi features single image and bulk loading, inline editing (still to be > completed), animated previewing, very fine pitch adjustment, > job logging, error logging (still to be completed), single or batch mode > processing, output in various image formats and will also > support output straight to print. > > Neil Lewis (Photobod) > > Eilert wrote: > > > I am currently starting a new project for my own enterprise (a private > > language school) to recode two programs which are running under VB. > > One of them is a database for the students which includes financial > > features and its own printing system. Making layout of the printing > > forms for it easier is the task of the second program, a form editor > > with WYSIWYG preview. > > > > The database has 12000+ codelines in VB, the form editor is much > > smaller. And I started with the form editor because without it, all > > printing in the database won't be possible. > > > > Up to now, I made a typewriting trainer, a file distribution tool for > > the PC lab tutor and this small thing that lists the users online > > which we discussed earlier. > > > > Rolf > > > > > > Benoit Minisini schrieb: > > > >> Hi everyone, > >> > >> I know I already ask that in the past, but I must answer to an > >> interview for the FOSDEM. > >> > >> They ask me "Are there already some projects built with Gambas ?" > >> > >> So please tell me if you wrote a Gambas application that is more > >> useful than a simple example or a simple "hello world". I knwo > >> already a few of them, but this way I can establish a list for the > >> FOSDEM. > >> > >> Thanks in advance for your answers, > >> > >> Regards, > >> > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > --__--__-- > > Message: 14 > Date: Tue, 08 Feb 2005 08:00:40 -0600 > From: Pablo Vera > Organization: VERCAN Consultores, SA de CV > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] "big" projects in Gambas > Reply-To: gambas-user at lists.sourceforge.net > > I developed a simple cyber-cafe access control client, the server part > resides in a web server and is made with php. > > Saludos, > Pablo Vera > _____________________________________________________________________ > > Benoit Minisini wrote: > > Hi everyone, > > > > I know I already ask that in the past, but I must answer to an interview for > > the FOSDEM. > > > > They ask me "Are there already some projects built with Gambas ?" > > > > So please tell me if you wrote a Gambas application that is more useful than a > > simple example or a simple "hello world". I knwo already a few of them, but > > this way I can establish a list for the FOSDEM. > > > > Thanks in advance for your answers, > > > > Regards, > > > > > --__--__-- > > Message: 15 > From: Rob > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] "big" projects in Gambas > Date: Tue, 8 Feb 2005 09:29:31 -0500 > Reply-To: gambas-user at lists.sourceforge.net > > On Tuesday 08 February 2005 05:17, Benoit Minisini wrote: > > So please tell me if you wrote a Gambas application that is > > more useful than a simple example or a simple "hello world". I > > knwo already a few of them, but this way I can establish a > > list for the FOSDEM. > > I have finished about half a dozen applications commercially > using Gambas, but only for private use by my clients (they're > GPL code, but it's quite unlikely that they'll ever be > distributed.) They include specialized CD archiving apps, > document retrieval apps, and one big bank teller application > which I reimplemented from custom-control-laden VB code before > it was possible to import VB forms into Gambas. > > Some of these are in production and some not, but all are ready > to deploy. Unfortunately, I can't name my company's clients. > > Rob > > > > > > > > --__--__-- > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > End of Gambas-user Digest From sourceforge-raindog2 at ...94... Tue Feb 8 15:56:42 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 8 Feb 2005 09:56:42 -0500 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502081439.32817.picander78@...325...> References: <42089ec7.5502.0@...9...> <200502081439.32817.picander78@...325...> Message-ID: <200502080956.42533.sourceforge-raindog2@...94...> On Tuesday 08 February 2005 08:39, Marco Gusy wrote: > I liked a lot Mike' story about using Linux + Gambas to > replace a SCO unix system. Well, one of my clients is using Linux to replace SCO too, but my Gambas app replaced a VB app they already had (they got rid of 24x80 terminals about 10 years ago.) I think replacing SCO with Linux is a fairly popular pastime ;) Rob From zjimward at ...626... Tue Feb 8 17:07:21 2005 From: zjimward at ...626... (Jim Ward) Date: Tue, 8 Feb 2005 10:07:21 -0600 Subject: [Gambas-user] Project with Gambas Message-ID: <888242c105020808072529b036@...627...> I've written one application: WhatMod, which allows you to determine chmod numbers or strings. It can be found at my site in the applications section: http://www.jdwopen.us Regards, jim From oxleyd at ...699... Tue Feb 8 17:38:40 2005 From: oxleyd at ...699... (Daniel Oxley) Date: Tue, 8 Feb 2005 17:38:40 +0100 Subject: [Gambas-user] ASCII value of keypress In-Reply-To: <888242c105020808072529b036@...627...> Message-ID: <20050208164233.23A4A37318@...700...> Hi, anyone know if it is possible (via code) to find out the value of the key that I press on my keyboard? I have a keyboard with extra buttons on that i would like to use on my app but have no way of knowing what the key values are!!! Daniel From m_isaac at ...689... Tue Feb 8 17:44:34 2005 From: m_isaac at ...689... (Michael Isaac) Date: Tue, 08 Feb 2005 08:44:34 -0800 Subject: [Gambas-user] ASCII value of keypress In-Reply-To: <20050208164233.23A4A37318@...700...> References: <20050208164233.23A4A37318@...700...> Message-ID: <4208EC72.1060109@...689...> Look for a program on Google called HotKeys. -- Michael Daniel Oxley wrote: >Hi, anyone know if it is possible (via code) to find out the value of the >key that I press on my keyboard? I have a keyboard with extra buttons on >that i would like to use on my app but have no way of knowing what the key >values are!!! > >Daniel > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From terveer at ...835... Tue Feb 8 17:51:04 2005 From: terveer at ...835... (H.R. ter Veer) Date: Tue, 8 Feb 2005 17:51:04 +0100 Subject: [Gambas-user] ASCII value of keypress In-Reply-To: <4208EC72.1060109@...689...> References: <20050208164233.23A4A37318@...700...> <4208EC72.1060109@...689...> Message-ID: <20050208175104.5d3811ae@...836...> On Tue, 08 Feb 2005 08:44:34 -0800 Michael Isaac wrote: you might try xkbindkeys -k or xev good luck! > Look for a program on Google called HotKeys. > > -- > Michael > > > Daniel Oxley wrote: > > >Hi, anyone know if it is possible (via code) to find out the value of the > >key that I press on my keyboard? I have a keyboard with extra buttons on > >that i would like to use on my app but have no way of knowing what the key > >values are!!! > > > >Daniel > > > > > > > >------------------------------------------------------- > >SF email is sponsored by - The IT Product Guide > >Read honest & candid reviews on hundreds of IT Products from real users. > >Discover which products truly live up to the hype. Start reading now. > >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > >_______________________________________________ > >Gambas-user mailing list > >Gambas-user at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ------------------------------------------------------------------ Cast the calming apple Up and over satellites To draw out the timid wild one To convince you it's alright And I listen for the whisper Of your sweet insanity while I formulate Denials of your affect on me You're a stranger So what do I care You vanish today Not the first time I hear All the lies What am I to do with all this silence Shy away, shy away phantom Run away terrified child Won't you move away you fucking tornado I'm better off without you Tearing my will down -------------------------------------------- a Perfect Circle ---- From oxleyd at ...699... Tue Feb 8 17:53:22 2005 From: oxleyd at ...699... (Daniel Oxley) Date: Tue, 8 Feb 2005 17:53:22 +0100 Subject: [Gambas-user] ASCII value of keypress In-Reply-To: <4208EC72.1060109@...689...> Message-ID: <20050208165714.727CF37322@...700...> Is there no way to do it in Gambas? -----Original Message----- From: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] On Behalf Of Michael Isaac Sent: 08 February 2005 17:45 To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] ASCII value of keypress Look for a program on Google called HotKeys. -- Michael Daniel Oxley wrote: >Hi, anyone know if it is possible (via code) to find out the value of >the key that I press on my keyboard? I have a keyboard with extra >buttons on that i would like to use on my app but have no way of >knowing what the key values are!!! > >Daniel > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide Read honest & candid >reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From sourceforge-raindog2 at ...94... Tue Feb 8 17:57:37 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 8 Feb 2005 11:57:37 -0500 Subject: [Gambas-user] ASCII value of keypress In-Reply-To: <20050208164233.23A4A37318@...700...> References: <20050208164233.23A4A37318@...700...> Message-ID: <200502081157.37214.sourceforge-raindog2@...94...> On Tuesday 08 February 2005 11:38, Daniel Oxley wrote: > Hi, anyone know if it is possible (via code) to find out the > value of the key that I press on my keyboard? I have a > keyboard with extra buttons on that i would like to use on my > app but have no way of knowing what the key values are!!! Maybe just make a little applet with no code but this? Public Sub somecontrol_KeyPress() Print Key.Code Print Key.Ascii ' I forget if this will actually work, ' maybe Key.Text? End Rob From oxleyd at ...699... Tue Feb 8 18:06:54 2005 From: oxleyd at ...699... (Daniel Oxley) Date: Tue, 8 Feb 2005 18:06:54 +0100 Subject: [Gambas-user] ASCII value of keypress In-Reply-To: <200502081157.37214.sourceforge-raindog2@...94...> Message-ID: <20050208171046.087C537318@...700...> Thanks, I'll give this a try! -----Original Message----- From: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] On Behalf Of Rob Sent: 08 February 2005 17:58 To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] ASCII value of keypress On Tuesday 08 February 2005 11:38, Daniel Oxley wrote: > Hi, anyone know if it is possible (via code) to find out the value of > the key that I press on my keyboard? I have a keyboard with extra > buttons on that i would like to use on my app but have no way of > knowing what the key values are!!! Maybe just make a little applet with no code but this? Public Sub somecontrol_KeyPress() Print Key.Code Print Key.Ascii ' I forget if this will actually work, ' maybe Key.Text? End Rob ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From paolo at ...813... Tue Feb 8 18:13:14 2005 From: paolo at ...813... (Paolo Saudin) Date: Tue, 8 Feb 2005 18:13:14 +0100 Subject: R: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502081117.09140.gambas@...1...> Message-ID: <200502081723.j18HNbS11236@...814...> I am developing a simple real-time data acquisition tool, which is currently used by ARPA (Agance R?gionale Protection Environment) of Aosta Valley for collect ultraviolet radiation measures. http://gbdas.sourceforge.net/ Regards, Paolo Saudin -----Messaggio originale----- Da: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] Per conto di Benoit Minisini Inviato: marted? 8 febbraio 2005 11.17 A: gambas-user at lists.sourceforge.net Oggetto: [Gambas-user] "big" projects in Gambas Hi everyone, I know I already ask that in the past, but I must answer to an interview for the FOSDEM. They ask me "Are there already some projects built with Gambas ?" So please tell me if you wrote a Gambas application that is more useful than a simple example or a simple "hello world". I knwo already a few of them, but this way I can establish a list for the FOSDEM. Thanks in advance for your answers, Regards, -- Benoit Minisini mailto:gambas at ...1... ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From Oliver.Frank at ...18... Tue Feb 8 21:03:00 2005 From: Oliver.Frank at ...18... (Oliver Frank) Date: Tue, 8 Feb 2005 21:03:00 +0100 Subject: [Gambas-user] Mailinglist Message-ID: <200502082103.00453.Oliver.Frank@...18...> Hi, please delete my email from your mailing list. thanks Oli From Oliver.Frank at ...18... Tue Feb 8 21:02:13 2005 From: Oliver.Frank at ...18... (Oliver Frank) Date: Tue, 8 Feb 2005 21:02:13 +0100 Subject: [Gambas-user] Mailinglist Message-ID: <200502082102.13671.Oliver.Frank@...18...> Hi, please delete my email from your mailing list. thanks Oli From na2492 at ...9... Tue Feb 8 21:56:34 2005 From: na2492 at ...9... (Charlie Reinl) Date: Tue, 8 Feb 2005 21:56:34 00100 Subject: [Gambas-user] Mailinglist Message-ID: <42092782.4cff.0@...9...> >Hi, > >please delete my email from your mailing list. > >thanks >Oli > Salut Oli, you have to do it your self. go to https://lists.sourceforge.net/lists/listinfo/gambas-user and unsubscribt your account. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From gambasfr at ...11... Tue Feb 8 21:59:15 2005 From: gambasfr at ...11... (Bodard Fabien) Date: Tue, 8 Feb 2005 21:59:15 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502081117.09140.gambas@...1...> References: <200502081117.09140.gambas@...1...> Message-ID: <200502082159.15914.gambasfr@...11...> Le mardi 8 F?vrier 2005 11:17, Benoit Minisini a ?crit?: > Hi everyone, > > I know I already ask that in the past, but I must answer to an interview > for the FOSDEM. > > They ask me "Are there already some projects built with Gambas ?" > > So please tell me if you wrote a Gambas application that is more useful > than a simple example or a simple "hello world". I knwo already a few of > them, but this way I can establish a list for the FOSDEM. > > Thanks in advance for your answers, > > Regards, For my part ... i work on a complete vineyard estate management tool. It specialised on the produce information storing from the vine to the cognac. With custom information printing and management . Oui et bien j'ai un peut de mal ce soir avec mon anglais... J'ai ?crit un logiciel de gestion de production. Il me g?re actuellement les contenant en chai,les mati?e s?che, les nomenclature de fabrication et les produits finit. Il g?re les bons de commande et la facturation et permet l'?dition des document douanier de transport et de d?claration mensuel. Ainsi il g?re la tra?abilit? ascendante et descendante. Le tout est bas? sur une base de donn?e mysql et permet un export vers sqlite (vive gambas !) un connection distante est aussi possible. Je g?re aussi toute les donn?e relative au client et fournisseur, ainsi que les information sur les mati?re s?che ... HACCP oblige. Un export est possible vers une comptablit?. (J'ai encore beaucoup de travail avec la gestion des assolement, traitement, parcellaire, main d'oeuvre et co?t etc... mais j'ai tout mon temp et ?a demande des certification par les douanes et le fisc) J'ai aussi dans ma botte un bomberman bas? sur le composant sdl et en d?buggage un insectoide. Et c'est que le d?but... ce que tu va pouvoir en raconter des choses !... Et surtout franchement t'a pas ? rougir, le r?sultat parle de lui m?me Sorry, i've forgot my english this night but the query was on this mailing list... Fabien Bodard From edamron at ...776... Wed Feb 9 03:04:29 2005 From: edamron at ...776... (Eric Damron) Date: Tue, 08 Feb 2005 18:04:29 -0800 Subject: [Gambas-user] Possible bug in TableView Message-ID: <42096FAD.60100@...776...> I have a form with a table view. When I delete the top item then reload the data and refresh the table view everything is fine unless I'm down to two items. When I only have two items the correct item gets deleted from the MySQL database but when it refreshes it still shows up in the list and the item below it is gone! Here is come code: I click an item to select it: PUBLIC SUB tvType_Click() DIM rsRecord AS Result DIM strDescription AS String strDescription = tvType[tvType.Row, 1].Text TRY rsRecord = frmMain.hConnection.Exec("select id from TYPE where description = (&1)", strDescription) tvType.Tag = Str(rsRecord["id"]) CATCH Message("tvType_Click: " & Error.Text) END Then I click the delete button: PUBLIC SUB cmdDelete_Click() TRY frmMain.hConnection.Exec("delete FROM TYPE where id = " & tvType.Tag) LoadData CATCH Message("cmdDelete_Click: Error " & Error.Text) END This Exec the sql that deletes the row and then loads the data: PRIVATE SUB LoadData() IF frmMain.bConnected THEN TRY rsType = frmMain.hConnection.Exec("select * from TYPE order by description") RefreshTableView CATCH Message("Error loading Type data.") END IF END The LoadData sub calls the RefreshTableView sub: PRIVATE SUB RefreshTableView() WITH rsType IF .Count > 0 THEN tvType.Rows.Count = .Count ELSE ClearType END IF END WITH CATCH Message("Error refreshing tableview") END This triggers the TableView's Data event: PUBLIC SUB tvType_Data(Row AS Integer, Column AS Integer) IF rsType.Count > 0 THEN rsType.MoveTo(Row) SELECT CASE Column CASE 1 ' description tvType.Data.Text = Str(rsType["description"]) END SELECT END IF END I don't see any error. Is this a bug in the TableView control? Thanks From leo.barnhoorn at ...246... Wed Feb 9 05:04:05 2005 From: leo.barnhoorn at ...246... (Leo Barnhoorn) Date: Wed, 9 Feb 2005 05:04:05 +0100 Subject: [Gambas-user] "big" projects in Gambas Message-ID: <200502090504.05381.leo.barnhoorn@...246...> Hello Benoit, I,m still writing together with Brant Wells the gcrypto library. Here is the site for this project, http://wellston.biz/gcrypto I have also written a program for freelancers with backend MySQL. With this program i can manage the job-agency and the customers where i,m working for, and all other kind of information what is important for me. Now at this moment i,m writing a program for a lawyer's office this program will do the complete financial administration off the office, and role administration, manage documents and use also MySQL as backend. Regards, Leo Barnhoorn. From teri.logan at ...626... Wed Feb 9 08:09:43 2005 From: teri.logan at ...626... (Teri Logan) Date: Wed, 9 Feb 2005 08:09:43 +0100 Subject: [Gambas-user] public constants? In-Reply-To: <200502081433.36190.ronstk@...239...> References: <200502081433.36190.ronstk@...239...> Message-ID: On Tue, 8 Feb 2005 14:33:36 +0100, Ron Onstenk wrote: > On Tuesday 08 February 2005 09:27, Teri Logan wrote: > | Hello, > | > | another question... > | > | When I declare public constaint in module (or class...) > | for example: > | > |
> | public const XXX as integer = 0
> | 
> | > | I can access that only within module, not outside. is there any solution? > | > | Thanx, Teri > | > | > > You should be able by using: > > modulename.XXX = "My secret text" > print modulename.XXX > > Just prefix the variable, constants or functions with "modulename." > > Ron > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hi, there is no problem with 'normal' global variables, but public CONSTANTS are not public! ;-((( *T* From trorrr at ...397... Wed Feb 9 15:52:18 2005 From: trorrr at ...397... (=?iso-8859-1?q?Trorrr=20[H=E9ctor=20Fern=E1ndez]?=) Date: Wed, 9 Feb 2005 15:52:18 +0100 (CET) Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <4208C608.3010604@...729...> Message-ID: <20050209145218.69951.qmail@...838...> --- Pablo Vera escribi?: > I developed a simple cyber-cafe access control > client, the server part > resides in a web server and is made with php. > > Saludos, > Pablo Vera Hey, it's intersting. I was trying to do something similar: Windows client (:-( i dislike using wine or cedega to run windows-for games) and GUI Linux server. Have you published the source somewhere? I'm also interested on how you locked the screen forbidding use on a linux box. Bye. ______________________________________________ Renovamos el Correo Yahoo!: ?250 MB GRATIS! Nuevos servicios, m?s seguridad http://correo.yahoo.es From sourceforge-raindog2 at ...94... Wed Feb 9 16:03:13 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 9 Feb 2005 10:03:13 -0500 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <20050209145218.69951.qmail@...838...> References: <20050209145218.69951.qmail@...838...> Message-ID: <200502091003.14037.sourceforge-raindog2@...94...> On Wednesday 09 February 2005 09:52, Trorrr [H?ctor Fern?ndez] wrote: > Have you published the source somewhere? I'm also > interested on how you locked the screen forbidding use > on a linux box. Bye. I don't know how Pablo did it, but I have had some luck with Window.FullScreen and Window.TopOnly as far as preventing the user from doing anything but interacting with my app goes. Sucks when you have to debug though... good thing Benoit put in that Alt-Break keyboard shortcut ;) Rob From oxleyd at ...699... Wed Feb 9 16:40:13 2005 From: oxleyd at ...699... (Daniel Oxley) Date: Wed, 9 Feb 2005 16:40:13 +0100 Subject: [Gambas-user] Still run without focus Message-ID: <20050209154406.02C7B37318@...700...> Hi all, in extension from my question yesterday. Am I right in saying that if my Gambas app does not have focus, it won't pick up on the key presses that the user makes? Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From oxleyd at ...699... Wed Feb 9 16:40:23 2005 From: oxleyd at ...699... (Daniel Oxley) Date: Wed, 9 Feb 2005 16:40:23 +0100 Subject: [Gambas-user] Still run without focus Message-ID: <20050209154416.BF7C837328@...700...> Hi all, in extension from my question yesterday. Am I right in saying that if my Gambas app does not have focus, it won't pick up on the key presses that the user makes? Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From oxleyd at ...699... Wed Feb 9 16:40:31 2005 From: oxleyd at ...699... (Daniel Oxley) Date: Wed, 9 Feb 2005 16:40:31 +0100 Subject: [Gambas-user] Still run without focus Message-ID: <20050209154423.BE77637329@...700...> Hi all, in extension from my question yesterday. Am I right in saying that if my Gambas app does not have focus, it won't pick up on the key presses that the user makes? Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From oxleyd at ...699... Wed Feb 9 16:41:33 2005 From: oxleyd at ...699... (Daniel Oxley) Date: Wed, 9 Feb 2005 16:41:33 +0100 Subject: [Gambas-user] Still run without focus Message-ID: <20050209154525.1B99737332@...700...> Hi all, in extension from my question yesterday. Am I right in saying that if my Gambas app does not have focus, it won't pick up on the key presses that the user makes? Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From oxleyd at ...699... Wed Feb 9 16:41:12 2005 From: oxleyd at ...699... (Daniel Oxley) Date: Wed, 9 Feb 2005 16:41:12 +0100 Subject: [Gambas-user] Still run without focus Message-ID: <20050209154504.CAA6D3732D@...700...> Hi all, in extension from my question yesterday. Am I right in saying that if my Gambas app does not have focus, it won't pick up on the key presses that the user makes? Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From pvera at ...729... Wed Feb 9 17:30:07 2005 From: pvera at ...729... (Pablo Vera) Date: Wed, 09 Feb 2005 10:30:07 -0600 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502091003.14037.sourceforge-raindog2@...94...> References: <20050209145218.69951.qmail@...838...> <200502091003.14037.sourceforge-raindog2@...94...> Message-ID: <420A3A8F.3000906@...729...> I haven't published the source, since it is still very alpha, but I will in the near future. And yes, I used the .FullScreen and .TopOnly properties to block the screen. I created a special user account for the cyber-cafe and my program acts differently if it is running under the "cafe" account or under my own account. This helps a lot during debuging. I also disabled the Alt-Tab and Alt-Ctrl-Del combination keys for the "cafe" account, so that a user cannot switch out or terminate the program. As it is right now, I don't like it very much, because it is to fragile. Anyone with a little knowledge of linux, could easily disable it, so I need to make it more secure. Saludos, Pablo Vera ______________________________________________________________________ Rob wrote: > On Wednesday 09 February 2005 09:52, Trorrr [H?ctor Fern?ndez] > wrote: > >> Have you published the source somewhere? I'm also >>interested on how you locked the screen forbidding use >>on a linux box. Bye. > > > I don't know how Pablo did it, but I have had some luck with > Window.FullScreen and Window.TopOnly as far as preventing the > user from doing anything but interacting with my app goes. > Sucks when you have to debug though... good thing Benoit put in > that Alt-Break keyboard shortcut ;) > > Rob > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From oxleyd at ...699... Wed Feb 9 17:33:51 2005 From: oxleyd at ...699... (Daniel Oxley) Date: Wed, 9 Feb 2005 17:33:51 +0100 Subject: [Gambas-user] Still run without focus In-Reply-To: <20050209154504.CAA6D3732D@...700...> Message-ID: <20050209163744.C826137320@...700...> i only sent this once, honest! _____ From: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] On Behalf Of Daniel Oxley Sent: 09 February 2005 16:41 To: gambas-user at lists.sourceforge.net Subject: [Gambas-user] Still run without focus Hi all, in extension from my question yesterday. Am I right in saying that if my Gambas app does not have focus, it won't pick up on the key presses that the user makes? Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric.lemasson at ...626... Wed Feb 9 20:20:51 2005 From: eric.lemasson at ...626... (Eric Lemasson) Date: Wed, 9 Feb 2005 14:20:51 -0500 Subject: [Gambas-user] How to delete a specific tab in a TabStrip ? Message-ID: <5cdd20440502091120192669fb@...627...> Hi, I am currently working on a multi-tab editor, and I can't figure out how to close a tab ... I can create new tab when I need them by incrementing the Count property, but can't close it. How could I do that ? For the moment, I just clear the text, but the tab is still visible. It would be nice if I could just "delete" it. PS: thank for your help concerning inheritance and event ... in fact, one of the tips of gambas put me on the right track and I am using the group name property now. It works perfectly. From na2492 at ...9... Wed Feb 9 21:27:56 2005 From: na2492 at ...9... (Charlie Reinl) Date: Wed, 9 Feb 2005 21:27:56 00100 Subject: [Gambas-user] Possible bug in TableView Message-ID: <420a724c.72a5.0@...9...> >I have a form with a table view. When I delete the top item then reload >the data and refresh the table view everything is fine unless I'm down >to two items. When I only have two items the correct item gets deleted >from the MySQL database but when it refreshes it still shows up in the >list and the item below it is gone! > >Here is come code: > >I click an item to select it: > >PUBLIC SUB tvType_Click() > DIM rsRecord AS Result > DIM strDescription AS String > > strDescription = tvType[tvType.Row, 1].Text > TRY rsRecord = frmMain.hConnection.Exec("select id from TYPE where >description = (&1)", strDescription) > tvType.Tag = Str(rsRecord["id"]) > > CATCH > Message("tvType_Click: " & Error.Text) > >END > >Then I click the delete button: > >PUBLIC SUB cmdDelete_Click() > > TRY frmMain.hConnection.Exec("delete FROM TYPE where id = " & tvType.Tag) > LoadData > > CATCH > Message("cmdDelete_Click: Error " & Error.Text) > >END > >This Exec the sql that deletes the row and then loads the data: > >PRIVATE SUB LoadData() > > IF frmMain.bConnected THEN > TRY rsType = frmMain.hConnection.Exec("select * from TYPE order by >description") > RefreshTableView > > CATCH > Message("Error loading Type data.") > END IF > >END > >The LoadData sub calls the RefreshTableView sub: > >PRIVATE SUB RefreshTableView() > > WITH rsType > IF .Count > 0 THEN > tvType.Rows.Count = .Count > ELSE > ClearType > END IF > END WITH > > CATCH > Message("Error refreshing tableview") > >END > >This triggers the TableView's Data event: > >PUBLIC SUB tvType_Data(Row AS Integer, Column AS Integer) > > IF rsType.Count > 0 THEN > rsType.MoveTo(Row) > SELECT CASE Column > CASE 1 ' description > tvType.Data.Text = Str(rsType["description"]) > END SELECT > END IF > >END > >I don't see any error. Is this a bug in the TableView control? > >Thanks Salut, yes you delete the record, but you don't realy refresh the tableview. For doing that you have do pass by the tvType_Data event. send you an no bound example, which you can use also for db-bounded tableviews. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * -------------- next part -------------- A non-text attachment was scrubbed... Name: XTableView-0.0.12.tar.gz Type: application/x-tgz Size: 30178 bytes Desc: not available URL: From zjimward at ...626... Wed Feb 9 22:15:42 2005 From: zjimward at ...626... (Jim Ward) Date: Wed, 9 Feb 2005 15:15:42 -0600 Subject: [Gambas-user] Reading an environment variable Message-ID: <888242c1050209131575744909@...627...> I know I'm going to say, "Why didn't I think of that!", after some one tells me how to do this, but here goes any way. I'm trying to figure out how I use the .ApplicationEnv to get the value from $HOME. I tried: sHome = .ApplicationEnv["HOME"] and sHome = gb.ApplicationEnv["HOME"] but I know I'm missing the point. Thanks for any help. From edamron at ...776... Thu Feb 10 04:58:04 2005 From: edamron at ...776... (Eric Damron) Date: Wed, 09 Feb 2005 19:58:04 -0800 Subject: [Gambas-user] Possible bug in TableView In-Reply-To: <420a724c.72a5.0@...9...> References: <420a724c.72a5.0@...9...> Message-ID: <420ADBCC.7000406@...776...> Charlie Reinl wrote: >>I have a form with a table view. When I delete the top item then reload >>the data and refresh the table view everything is fine unless I'm down >>to two items. When I only have two items the correct item gets deleted >> >> >>from the MySQL database but when it refreshes it still shows up in the > > >>list and the item below it is gone! >> >>Here is come code: >> >>I click an item to select it: >> >>PUBLIC SUB tvType_Click() >> DIM rsRecord AS Result >> DIM strDescription AS String >> >> strDescription = tvType[tvType.Row, 1].Text >> TRY rsRecord = frmMain.hConnection.Exec("select id from TYPE where >>description = (&1)", strDescription) >> tvType.Tag = Str(rsRecord["id"]) >> >> CATCH >> Message("tvType_Click: " & Error.Text) >> >>END >> >>Then I click the delete button: >> >>PUBLIC SUB cmdDelete_Click() >> >> TRY frmMain.hConnection.Exec("delete FROM TYPE where id = " & >> >> >tvType.Tag) > > >> LoadData >> >> CATCH >> Message("cmdDelete_Click: Error " & Error.Text) >> >>END >> >>This Exec the sql that deletes the row and then loads the data: >> >>PRIVATE SUB LoadData() >> >>IF frmMain.bConnected THEN >> TRY rsType = frmMain.hConnection.Exec("select * from TYPE order by >>description") >> RefreshTableView >> >> CATCH >> Message("Error loading Type data.") >>END IF >> >>END >> >>The LoadData sub calls the RefreshTableView sub: >> >>PRIVATE SUB RefreshTableView() >> >> WITH rsType >> IF .Count > 0 THEN >> tvType.Rows.Count = .Count >> ELSE >> ClearType >> END IF >> END WITH >> >> CATCH >> Message("Error refreshing tableview") >> >>END >> >>This triggers the TableView's Data event: >> >>PUBLIC SUB tvType_Data(Row AS Integer, Column AS Integer) >> >> IF rsType.Count > 0 THEN >> rsType.MoveTo(Row) >> SELECT CASE Column >> CASE 1 ' description >> tvType.Data.Text = Str(rsType["description"]) >> END SELECT >> END IF >> >>END >> >>I don't see any error. Is this a bug in the TableView control? >> >>Thanks >> >> > >Salut, > >yes you delete the record, but you don't realy refresh the tableview. >For doing that you have do pass by the tvType_Data event. > >send you an no bound example, which you can use also for db-bounded >tableviews. > >Amicalment >Charlie >* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > Thanks for your reply. The tvType_Data event gets triggered by the RefreshTableView. If I single step through the entire process the tableview gets updated properly but if I take the break point out it doesn't! From dave at ...772... Thu Feb 10 09:30:09 2005 From: dave at ...772... (Dave Sharples) Date: Thu, 10 Feb 2005 08:30:09 +0000 Subject: [Gambas-user] Reading an environment variable In-Reply-To: <888242c1050209131575744909@...627...> References: <888242c1050209131575744909@...627...> Message-ID: <1108024209.20908.14.camel@...599...> sHome = System.Home should do it. On Wed, 2005-02-09 at 21:15, Jim Ward wrote: > I know I'm going to say, "Why didn't I think of that!", after some one > tells me how to do this, but here goes any way. I'm trying to figure > out how I use the .ApplicationEnv to get the value from $HOME. I > tried: > > sHome = .ApplicationEnv["HOME"] > > and > > sHome = gb.ApplicationEnv["HOME"] > > but I know I'm missing the point. Thanks for any help. > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- ----------------------- Dave Sharples Evaluations Engineer Time Group Ltd ----------------------- From gambas at ...1... Thu Feb 10 10:56:15 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Feb 2005 10:56:15 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <420A3A8F.3000906@...729...> References: <20050209145218.69951.qmail@...838...> <200502091003.14037.sourceforge-raindog2@...94...> <420A3A8F.3000906@...729...> Message-ID: <200502101056.15580.gambas@...1...> On Wednesday 09 February 2005 17:30, Pablo Vera wrote: > I haven't published the source, since it is still very alpha, but I will > in the near future. And yes, I used the .FullScreen and .TopOnly > properties to block the screen. > > I created a special user account for the cyber-cafe and my program acts > differently if it is running under the "cafe" account or under my own > account. This helps a lot during debuging. > > I also disabled the Alt-Tab and Alt-Ctrl-Del combination keys for the > "cafe" account, so that a user cannot switch out or terminate the program. > > As it is right now, I don't like it very much, because it is to fragile. > Anyone with a little knowledge of linux, could easily disable it, so I > need to make it more secure. > > Saludos, > Pablo Vera > ______________________________________________________________________ > Did you try to not start kde when you log in, but just your gambas program, and eventually the window manager ? Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu Feb 10 10:57:22 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Feb 2005 10:57:22 +0100 Subject: [Gambas-user] Still run without focus In-Reply-To: <20050209154525.1B99737332@...700...> References: <20050209154525.1B99737332@...700...> Message-ID: <200502101057.22475.gambas@...1...> On Wednesday 09 February 2005 16:41, Daniel Oxley wrote: > Hi all, in extension from my question yesterday. Am I right in saying that > if my Gambas app does not have focus, it won't pick up on the key presses > that the user makes? > > Daniel Yes. Yes. Yes. Yes. Yes. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu Feb 10 10:57:58 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Feb 2005 10:57:58 +0100 Subject: [Gambas-user] How to delete a specific tab in a TabStrip ? In-Reply-To: <5cdd20440502091120192669fb@...627...> References: <5cdd20440502091120192669fb@...627...> Message-ID: <200502101057.58619.gambas@...1...> On Wednesday 09 February 2005 20:20, Eric Lemasson wrote: > Hi, > > I am currently working on a multi-tab editor, and I can't figure out > how to close a tab ... > I can create new tab when I need them by incrementing the Count > property, but can't close it. > How could I do that ? > For the moment, I just clear the text, but the tab is still visible. > It would be nice if I could just "delete" it. > > PS: thank for your help concerning inheritance and event ... in fact, > one of the tips of gambas put me on the right track and I am using the > group name property now. It works perfectly. > It is not possible at the moment to add or delete specific tabs... -- Benoit Minisini mailto:gambas at ...1... From oxleyd at ...699... Thu Feb 10 11:15:08 2005 From: oxleyd at ...699... (Daniel Oxley) Date: Thu, 10 Feb 2005 11:15:08 +0100 Subject: [Gambas-user] Still run without focus In-Reply-To: <200502101057.22475.gambas@...1...> References: <20050209154525.1B99737332@...700...> <200502101057.22475.gambas@...1...> Message-ID: <20050210101445.M14041@...699...> Bummer! Any idea of a way to achieve this with Gamabs? Daniel -- Saint Louis University- Madrid Campus (http://spain.slu.edu) ---------- Original Message ----------- From: Benoit Minisini To: gambas-user at lists.sourceforge.net Sent: Thu, 10 Feb 2005 10:57:22 +0100 Subject: Re: [Gambas-user] Still run without focus > On Wednesday 09 February 2005 16:41, Daniel Oxley wrote: > > Hi all, in extension from my question yesterday. Am I right in saying that > > if my Gambas app does not have focus, it won't pick up on the key presses > > that the user makes? > > > > Daniel > > Yes. Yes. Yes. Yes. Yes. > > -- > Benoit Minisini > mailto:gambas at ...1... > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Thu Feb 10 11:16:46 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Feb 2005 11:16:46 +0100 Subject: [Gambas-user] Still run without focus In-Reply-To: <20050210101445.M14041@...699...> References: <20050209154525.1B99737332@...700...> <200502101057.22475.gambas@...1...> <20050210101445.M14041@...699...> Message-ID: <200502101116.46479.gambas@...1...> On Thursday 10 February 2005 11:15, Daniel Oxley wrote: > Bummer! Any idea of a way to achieve this with Gamabs? > > Daniel > No, but this is more a X-Window problem... If you find a way to do it in X-Window, maybe I will be able to implement a component for catching all keyboard events. Regards, -- Benoit Minisini mailto:gambas at ...1... From terveer at ...835... Thu Feb 10 12:33:23 2005 From: terveer at ...835... (H.R. ter Veer) Date: Thu, 10 Feb 2005 12:33:23 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <420A3A8F.3000906@...729...> References: <20050209145218.69951.qmail@...838...> <200502091003.14037.sourceforge-raindog2@...94...> <420A3A8F.3000906@...729...> Message-ID: <20050210123323.157f03e7@...836...> On Wed, 09 Feb 2005 10:30:07 -0600 Pablo Vera wrote: for the system security you might need to: - disable the window manager - alter /etc/inittab to disable the other VTY's for the specific runtime > I haven't published the source, since it is still very alpha, but I will > in the near future. And yes, I used the .FullScreen and .TopOnly > properties to block the screen. > > I created a special user account for the cyber-cafe and my program acts > differently if it is running under the "cafe" account or under my own > account. This helps a lot during debuging. > > I also disabled the Alt-Tab and Alt-Ctrl-Del combination keys for the > "cafe" account, so that a user cannot switch out or terminate the program. > > As it is right now, I don't like it very much, because it is to fragile. > Anyone with a little knowledge of linux, could easily disable it, so I > need to make it more secure. > > Saludos, > Pablo Vera > ______________________________________________________________________ > > Rob wrote: > > On Wednesday 09 February 2005 09:52, Trorrr [H?ctor Fern?ndez] > > wrote: > > > >> Have you published the source somewhere? I'm also > >>interested on how you locked the screen forbidding use > >>on a linux box. Bye. > > > > > > I don't know how Pablo did it, but I have had some luck with > > Window.FullScreen and Window.TopOnly as far as preventing the > > user from doing anything but interacting with my app goes. > > Sucks when you have to debug though... good thing Benoit put in > > that Alt-Break keyboard shortcut ;) > > > > Rob > > > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- ------------------------------------------------------------------ Cast the calming apple Up and over satellites To draw out the timid wild one To convince you it's alright And I listen for the whisper Of your sweet insanity while I formulate Denials of your affect on me You're a stranger So what do I care You vanish today Not the first time I hear All the lies What am I to do with all this silence Shy away, shy away phantom Run away terrified child Won't you move away you fucking tornado I'm better off without you Tearing my will down -------------------------------------------- a Perfect Circle ---- From eric.lemasson at ...626... Thu Feb 10 14:07:57 2005 From: eric.lemasson at ...626... (Eric Lemasson) Date: Thu, 10 Feb 2005 08:07:57 -0500 Subject: [Gambas-user] Re: How to delete a specific tab in a TabStrip ? In-Reply-To: <5cdd20440502091120192669fb@...627...> References: <5cdd20440502091120192669fb@...627...> Message-ID: <5cdd20440502100507520a170c@...627...> However, when I decrease the count property, I can remove the last tab. So I've tried to do the following: when I want to close a tab, I just copy the text of the last one, close the last one, then copy back the text of the last one in the one I wanted to close. But I can't decrease the count because it says tab is not empty. How could I remove (or detach ...?) the controls that are in the last tab of the tabstrip ? On Wed, 9 Feb 2005 14:20:51 -0500, Eric Lemasson wrote: > Hi, > > I am currently working on a multi-tab editor, and I can't figure out > how to close a tab ... > I can create new tab when I need them by incrementing the Count > property, but can't close it. > How could I do that ? > For the moment, I just clear the text, but the tab is still visible. > It would be nice if I could just "delete" it. > > PS: thank for your help concerning inheritance and event ... in fact, > one of the tips of gambas put me on the right track and I am using the > group name property now. It works perfectly. > -- Eric Lemasson http://www.ericlemasson.com From bundeshund at ...467... Thu Feb 10 16:15:45 2005 From: bundeshund at ...467... (HMB) Date: Thu, 10 Feb 2005 16:15:45 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502081117.09140.gambas@...1...> References: <200502081117.09140.gambas@...1...> Message-ID: <200502101615.45441.bundeshund@...467...> Salute Gambanesian, i still write on a commercial application (GambaKaan=Gambas kaufm?nnische Anwendung) for my brothers company, where he trades international with chemicals. It is in use but i have to put much more work into it. All printing outputs are realized with OpenOffice. But now i am at a point that i need to rewrite and change big parts of the basic code, because i didn't implemented a right-system to it, wich is now needed, because i want to insert a complete accounting part for it. Time is the biggest problem. But as far as i can tell you, the appclication runs very smooth. Its fast and safe and very stable. The employee enjoy it and love to work with it. HM Am Dienstag, 8. Februar 2005 11:17 schrieb Benoit Minisini: > Hi everyone, > > I know I already ask that in the past, but I must answer to an interview > for the FOSDEM. > > They ask me "Are there already some projects built with Gambas ?" > > So please tell me if you wrote a Gambas application that is more useful > than a simple example or a simple "hello world". I knwo already a few of > them, but this way I can establish a list for the FOSDEM. > > Thanks in advance for your answers, > > Regards, From zjimward at ...626... Thu Feb 10 16:34:32 2005 From: zjimward at ...626... (Jim Ward) Date: Thu, 10 Feb 2005 09:34:32 -0600 Subject: [Gambas-user] re: Reading an environment variable (Jim Ward) Message-ID: <888242c1050210073442f8f0c4@...627...> Ok, just to let everyone know, I figure it out. I did it as follows: sHome = application.Env["HOME"] Is this the only way to perform this operation, or is there another way? From eilert-sprachen at ...221... Thu Feb 10 17:22:08 2005 From: eilert-sprachen at ...221... (Eilert) Date: Thu, 10 Feb 2005 17:22:08 +0100 Subject: [Gambas-user] Are these bugs? Message-ID: <420B8A30.60209@...221...> I've got a DrawingArea here, let's call it Page (in English so everyone can see what I mean...), created on a form named Preview. There are several strange things I cannot explain which happened when I created the code for it. From a module named "graphics" I'll call it like this: PUBLIC SUB ShowMeThePage CollectPageData MakeUpPage END SUB PRIVATE SUB MakeUpPage Preview.Page.Clear Preview.Page.Height = Paperlength Preview.Page.Width = Paperwidth Draw.Begin(Preview.Page) Preview.Page.ForeColor = Color.RGB(190,190,190) 'here a lot of grid lines are made, just like this: Preview.Page.Line( bla bla bla bla) Draw.End END SUB Now, this is what happened: First I tried Draw.ForeColor = HexValue and = Color.RGB(something) instead of Preview.Page.ForeColor. The program will crash with Sig 11, a message pops up to inform Benoit :-), but Gambas will continue to run. So I tried Preview.Page.ForeColor, that is ok and it runs as expected. Second, I added some code to draw blue and green lines, but now the whole Preview will just be cleared as soon as this line of code is reached, everything turns white. Third, I added some code to ShowMeThePage, writing a few values into the Preview, and here (within ShowMeThePage) much to my surprise, the Draw.ForeColor runs fine, i. e. I added Draw.Begin(Preview.Page) Draw.ForeColor = 0 'intended to be black Draw.Text(blabla...) Draw.End So now I tried Draw.ForeColor = 0 in the MakeUpPage, and voil?! Here we went right through, a black line appeared, nothing was cleared. I cannot explain what I did wrong, maybe I misunderstood the usage of color.RGB or what? Rolf From eilert-sprachen at ...221... Thu Feb 10 17:27:11 2005 From: eilert-sprachen at ...221... (Eilert) Date: Thu, 10 Feb 2005 17:27:11 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502101615.45441.bundeshund@...467...> References: <200502081117.09140.gambas@...1...> <200502101615.45441.bundeshund@...467...> Message-ID: <420B8B5F.1040402@...221...> HMB schrieb: > Salute Gambanesian, > > i still write on a commercial application (GambaKaan=Gambas kaufm?nnische > Anwendung) for my brothers company, where he trades international with > chemicals. It is in use but i have to put much more work into it. > > All printing outputs are realized with OpenOffice. > Wow, how do you do that? Can you access OOo from Gambas? Or do you produce text files to be read and formatted from OOo? For my own programs in VB, I developed a printing system with special forms and a form editor to manage that. Currently I'm re-writing the code in Gambas to be able to use it here, too. Rolf From gambas at ...1... Thu Feb 10 17:29:37 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Feb 2005 17:29:37 +0100 Subject: [Gambas-user] Are these bugs? In-Reply-To: <420B8A30.60209@...221...> References: <420B8A30.60209@...221...> Message-ID: <200502101729.38144.gambas@...1...> On Thursday 10 February 2005 17:22, Eilert wrote: > I've got a DrawingArea here, let's call it Page (in English so everyone > can see what I mean...), created on a form named Preview. There are > several strange things I cannot explain which happened when I created > the code for it. > > From a module named "graphics" I'll call it like this: > > > PUBLIC SUB ShowMeThePage > > CollectPageData > > MakeUpPage > > END SUB > > > > > PRIVATE SUB MakeUpPage > > Preview.Page.Clear > Preview.Page.Height = Paperlength > Preview.Page.Width = Paperwidth > > Draw.Begin(Preview.Page) > Preview.Page.ForeColor = Color.RGB(190,190,190) > > 'here a lot of grid lines are made, just like this: > > Preview.Page.Line( bla bla bla bla) > > Draw.End > > END SUB > > > Now, this is what happened: > > First I tried Draw.ForeColor = HexValue and = Color.RGB(something) > instead of Preview.Page.ForeColor. The program will crash with Sig 11, a > message pops up to inform Benoit :-), but Gambas will continue to run. > So I tried Preview.Page.ForeColor, that is ok and it runs as expected. > > Second, I added some code to draw blue and green lines, but now the > whole Preview will just be cleared as soon as this line of code is > reached, everything turns white. > > Third, I added some code to ShowMeThePage, writing a few values into the > Preview, and here (within ShowMeThePage) much to my surprise, the > Draw.ForeColor runs fine, i. e. I added > > Draw.Begin(Preview.Page) > Draw.ForeColor = 0 'intended to be black > Draw.Text(blabla...) > Draw.End > > So now I tried Draw.ForeColor = 0 in the MakeUpPage, and voil?! Here we > went right through, a black line appeared, nothing was cleared. > > I cannot explain what I did wrong, maybe I misunderstood the usage of > color.RGB or what? > > Rolf > > Please send your project, otherwise it is almost impossible for me to find the bug... Regards, -- Benoit Minisini mailto:gambas at ...1... From eilert-sprachen at ...221... Thu Feb 10 17:33:04 2005 From: eilert-sprachen at ...221... (Eilert) Date: Thu, 10 Feb 2005 17:33:04 +0100 Subject: [Gambas-user] Values for LineStyle Message-ID: <420B8CC0.6030803@...221...> In my previous posting I forgot one thing: I don't know what values LineStyle accepts - I tried "1", that makes a simple line, but everything else leads to a Sig 11... Can someone point me to the page in the documentation where it is explained or just tell me what I have to do here? Rolf From pvera at ...729... Thu Feb 10 17:46:11 2005 From: pvera at ...729... (Pablo Vera) Date: Thu, 10 Feb 2005 10:46:11 -0600 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502101056.15580.gambas@...1...> References: <20050209145218.69951.qmail@...838...> <200502091003.14037.sourceforge-raindog2@...94...> <420A3A8F.3000906@...729...> <200502101056.15580.gambas@...1...> Message-ID: <420B8FD3.7090201@...729...> Yes, I thought about this, but haven't done it. I will try it. Thanks, Pablo Vera ___________________________________________________________ Benoit Minisini wrote: > > Did you try to not start kde when you log in, but just your gambas program, > and eventually the window manager ? > > Regards, > From gambas at ...1... Thu Feb 10 17:50:06 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Feb 2005 17:50:06 +0100 Subject: [Gambas-user] Values for LineStyle In-Reply-To: <420B8CC0.6030803@...221...> References: <420B8CC0.6030803@...221...> Message-ID: <200502101750.06841.gambas@...1...> On Thursday 10 February 2005 17:33, Eilert wrote: > In my previous posting I forgot one thing: > > I don't know what values LineStyle accepts - I tried "1", that makes a > simple line, but everything else leads to a Sig 11... > > Can someone point me to the page in the documentation where it is > explained or just tell me what I have to do here? > > Rolf > If you get a Sig 11, then this is a crash, and so a bug. Please give me all details about this crash, and send me the project that causes it. Thanks in advance, Regards, -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Thu Feb 10 18:17:48 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 10 Feb 2005 12:17:48 -0500 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <420B8B5F.1040402@...221...> References: <200502081117.09140.gambas@...1...> <200502101615.45441.bundeshund@...467...> <420B8B5F.1040402@...221...> Message-ID: <200502101217.48775.sourceforge-raindog2@...94...> On Thursday 10 February 2005 11:27, Eilert wrote: > Wow, how do you do that? Can you access OOo from Gambas? Or do > you produce text files to be read and formatted from OOo? Sorry to interject here, but I have looked into this myself and am curious about what HMB did as well. Using the gb.compress and gb.xml components, I believe it is possible to construct or modify OOo documents, though it would require A LOT of code to do so. There is a Perl module called OpenOffice::OODoc which I hope to use as a reference in writing a Gambas component to deal with OOo documents once Gambas supports writing components in Gambas. (I'll likely write a set of classes to include in various projects before then, but ultimately it should be a component to help with version management.) My own printing in Gambas has been very similar to my printing in VB... write a set of functions to maintain cursor position, handle printing text and boxes, etc. without having to have Draw.This and Draw.That in my business logic. Several of the banking apps I have written required printing with consistent text positioning (for printing on forms) and thankfully, Gambas has proven to be up to the task. Rob From daniel.campos at ...338... Thu Feb 10 18:28:04 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Thu, 10 Feb 2005 18:28:04 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502101217.48775.sourceforge-raindog2@...94...> References: <200502081117.09140.gambas@...1...> <200502101615.45441.bundeshund@...467...> <420B8B5F.1040402@...221...> <200502101217.48775.sourceforge-raindog2@...94...> Message-ID: <420B99A4.3070407@...338...> Rob escribi?: > > >Sorry to interject here, but I have looked into this myself and >am curious about what HMB did as well. > >Using the gb.compress and gb.xml components, I believe it is >possible to construct or modify OOo documents, > You can use gb.xml, but not gb.compress, as OOo format is zipped, not gzipped... Regards, D. Campos From naveenagrawal at ...43... Thu Feb 10 18:35:02 2005 From: naveenagrawal at ...43... (Naveen Agarawal) Date: Thu, 10 Feb 2005 09:35:02 -0800 (PST) Subject: [Gambas-user] Does Gambas compile on Fedore Core 64 bit Message-ID: <20050210173502.20691.qmail@...839...> Kindly let me know if it is possible to use Gambas on Fedora Core 64 Bit edition. Regards! Naveen ===== Every body has his shares of ups and downs but one should never say no to life. __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo From Karl.Reinl at ...9... Thu Feb 10 19:39:37 2005 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 10 Feb 2005 19:39:37 +0100 Subject: [Gambas-user] Saw all that 'big' projects on the list Message-ID: <200502101939.37517.Karl.Reinl@...9...> Salut , since some days I saw/see all these 'big' projects on the list. Thats nice to see that gambas is in use, and not only for some hackers who like to play. So I had an idea, couldn't we start a page on the WiKi . Call it 'references', 'projects' or something like that. Where you guys place Screenshots and a short description of the project and if the project is free, a link to a download side. Or a place, where intersted can more get informations about. (if that is not against any convention) Amicalment Charlie From bundeshund at ...467... Thu Feb 10 19:57:32 2005 From: bundeshund at ...467... (HMB) Date: Thu, 10 Feb 2005 19:57:32 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502101217.48775.sourceforge-raindog2@...94...> References: <200502081117.09140.gambas@...1...> <420B8B5F.1040402@...221...> <200502101217.48775.sourceforge-raindog2@...94...> Message-ID: <200502101957.32205.bundeshund@...467...> uuups, sorry to dissapoint you all here, but i only store all datas into a mysql-database with gambas and made some formulars in/with oo where i connect to the mysql-db and print then form-letters or other documents. So sorry for that unclear writing. HM Am Donnerstag, 10. Februar 2005 18:17 schrieb Rob: > On Thursday 10 February 2005 11:27, Eilert wrote: > > Wow, how do you do that? Can you access OOo from Gambas? Or do > > you produce text files to be read and formatted from OOo? > > Sorry to interject here, but I have looked into this myself and > am curious about what HMB did as well. > > Using the gb.compress and gb.xml components, I believe it is > possible to construct or modify OOo documents, though it would > require A LOT of code to do so. There is a Perl module called > OpenOffice::OODoc which I hope to use as a reference in writing > a Gambas component to deal with OOo documents once Gambas > supports writing components in Gambas. (I'll likely write a set > of classes to include in various projects before then, but > ultimately it should be a component to help with version > management.) > > My own printing in Gambas has been very similar to my printing in > VB... write a set of functions to maintain cursor position, > handle printing text and boxes, etc. without having to have > Draw.This and Draw.That in my business logic. Several of the > banking apps I have written required printing with consistent > text positioning (for printing on forms) and thankfully, Gambas > has proven to be up to the task. > > Rob > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From edamron at ...776... Fri Feb 11 04:39:13 2005 From: edamron at ...776... (Eric Damron) Date: Thu, 10 Feb 2005 19:39:13 -0800 Subject: [Gambas-user] Bug in Tableview Message-ID: <420C28E1.8020306@...776...> I think there's a bug in the tableview component. I've included a helpdesk project that I've just started. To run the project you need a MySQL server. 1. Run the project. It will bring up a logon form. 2. Enter a username/passoword that has rights to create databases. It will detect that the helpdesk database does not exist and ask you if you want to create it. 3. Answer by clicking on the "Yes" button. 4. The program will create a database called helpdesk and twelve tables before opening the main form. (Note: I have my screen set to 1162 X 864 resolution so the main form will appear too large if you run at a lesser resolution.) 5. Not much on the main form has been coded. Go to the tools item on the menu and click on "Call Types." 6. The Types form will open. Use the "New" button to add three types. 7. Click on the top most type and use the delete button to delete it. It should have worked okay. 8. Now again click on the top item and make note of what it is. Use the delete button again. 9. Notice that the top item appears to remain while the item below it disappears. 10. If you have another way of looking at the TYPE table you will see that the top item was the one deleted from the table. 11. Now clicking on the top item throws an exception because the item being displayed does not exist in the database. -------------- next part -------------- A non-text attachment was scrubbed... Name: HelpDesk.tar.gz Type: application/x-tar Size: 19728 bytes Desc: not available URL: From warped.dragon at ...626... Fri Feb 11 05:21:46 2005 From: warped.dragon at ...626... (Dallen Wilson) Date: Thu, 10 Feb 2005 21:21:46 -0700 Subject: [Gambas-user] One minor bug and one xml question Message-ID: <8a530a2b05021020211a4a21f2@...627...> Well, I'm not entirerly sure it even qualifies as a bug. The power went out while I was working on a gambas project. After rebooting and opening the project, gambas warns me that the project is already open and that opening it again is a Very Bad Idea. All well and good, I can understand why it would do that, since the project didn't get closed, power outages happening at the speed of light and whatnot. How do I tell gambas that it is mistaken, and the project is not already open? And now, my question. I just upgraded to gambas 1.0.3, and I would dearly love to try the new shiney xml component, since it's bound to be better then the nasty xml-parser I cobbled together. But documentation is strangly lacking. The wiki has the details, but can anyone point me to an explaination on how to use the component, sort of a "Getting Started" guide? I'm browsing the mailing-list archieve now, but there's a lot of stuff to look through, it's possible I won't find it. -- Dallen Wilson Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html From eilert-sprachen at ...221... Fri Feb 11 08:23:55 2005 From: eilert-sprachen at ...221... (Eilert) Date: Fri, 11 Feb 2005 08:23:55 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502101957.32205.bundeshund@...467...> References: <200502081117.09140.gambas@...1...> <420B8B5F.1040402@...221...> <200502101217.48775.sourceforge-raindog2@...94...> <200502101957.32205.bundeshund@...467...> Message-ID: <420C5D8B.9020000@...221...> No need to excuse :-) I consider this a clever way. One could even go further and use the built-in Macro Basic of OOo to create a surface for it. I once thought of such a way when my brother-in-law asked me to program a tool for his firm. The idea was to create a way of client-order-input to works-order-output and financial/resources management thing (eierlegende Wollmilchsau - eggs laying wool and milk sow). At that time, I thought of a VB/MS-Office combination to handle that, luckily :-) it never came about because the task seemed way too large for us two laymen... Meanwhile, with much more experience with my own programs, I could imagine to develop something like that. But I'm not sure if combining it so tightly with OOo would be so good as you glue your code to several other underlying things: Qt, Gambas and OOo which tend to change and draw away the foundations of your project, i. e. adapting it to an emerging Gambas is ok, but considering constant changes in OOo and maybe even more "helpers" would just be overkill, I'm afraid. Rolf HMB schrieb: > uuups, sorry to dissapoint you all here, but i only store all datas into a > mysql-database with gambas and made some formulars in/with oo where i connect > to the mysql-db and print then form-letters or other documents. > > So sorry for that unclear writing. > > HM > > > Am Donnerstag, 10. Februar 2005 18:17 schrieb Rob: > >>On Thursday 10 February 2005 11:27, Eilert wrote: >> >>>Wow, how do you do that? Can you access OOo from Gambas? Or do >>>you produce text files to be read and formatted from OOo? >> From eilert-sprachen at ...221... Fri Feb 11 09:45:38 2005 From: eilert-sprachen at ...221... (Eilert) Date: Fri, 11 Feb 2005 09:45:38 +0100 Subject: [Gambas-user] Values for LineStyle In-Reply-To: <200502101750.06841.gambas@...1...> References: <420B8CC0.6030803@...221...> <200502101750.06841.gambas@...1...> Message-ID: <420C70B2.9000403@...221...> Ok ok, here you go... :-) I just saw, there are a lot of error messages in the direct-window, so I include a file with them in case they do not appear on your machine. When you start the program, you are in the text editor window. Just click on the Loading icon and load the testpage.frm from "formulare". Then you press F9 to get into the preview. The preview is just able to adjust the page size and draw a grid with measures. Then it displays the simple text from the form. But it is functional: just get back to the source with F9 and change the page size (for example 29 instead of 297 or so), another F9 will show the result. You will find the critical procedures in the "grafik" module. I've included some comments in the "SeiteEinstellen" ("AdjustPage") procedure. Thanks for your help! Rolf Benoit Minisini schrieb: > On Thursday 10 February 2005 17:33, Eilert wrote: > >>In my previous posting I forgot one thing: >> >>I don't know what values LineStyle accepts - I tried "1", that makes a >>simple line, but everything else leads to a Sig 11... >> >>Can someone point me to the page in the documentation where it is >>explained or just tell me what I have to do here? >> >>Rolf >> > > > If you get a Sig 11, then this is a crash, and so a bug. > > Please give me all details about this crash, and send me the project that > causes it. > > Thanks in advance, > > Regards, > From eilert-sprachen at ...221... Fri Feb 11 09:46:41 2005 From: eilert-sprachen at ...221... (Eilert) Date: Fri, 11 Feb 2005 09:46:41 +0100 Subject: [Gambas-user] Values for LineStyle In-Reply-To: <200502101750.06841.gambas@...1...> References: <420B8CC0.6030803@...221...> <200502101750.06841.gambas@...1...> Message-ID: <420C70F1.5070103@...221...> Ok ok, here you go... :-) I just saw, there are a lot of error messages in the direct-window, so I include a file with them in case they do not appear on your machine. When you start the program, you are in the text editor window. Just click on the Loading icon and load the testpage.frm from "formulare". Then you press F9 to get into the preview. The preview is just able to adjust the page size and draw a grid with measures. Then it displays the simple text from the form. But it is functional: just get back to the source with F9 and change the page size (for example 29 instead of 297 or so), another F9 will show the result. You will find the critical procedures in the "grafik" module. I've included some comments in the "SeiteEinstellen" ("AdjustPage") procedure. Thanks for your help! Rolf Benoit Minisini schrieb: > On Thursday 10 February 2005 17:33, Eilert wrote: > >>In my previous posting I forgot one thing: >> >>I don't know what values LineStyle accepts - I tried "1", that makes a >>simple line, but everything else leads to a Sig 11... >> >>Can someone point me to the page in the documentation where it is >>explained or just tell me what I have to do here? >> >>Rolf >> > > > If you get a Sig 11, then this is a crash, and so a bug. > > Please give me all details about this crash, and send me the project that > causes it. > > Thanks in advance, > > Regards, > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: fehler.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: form.tgz Type: application/x-gtar Size: 33811 bytes Desc: not available URL: From lbaudio at ...172... Sat Feb 12 03:03:56 2005 From: lbaudio at ...172... (LB Audio) Date: Sat, 12 Feb 2005 00:03:56 -0200 (Horário brasileiro de verão) Subject: [Gambas-user] Problem or Function not exist References: <200502101615.45441.bundeshund@...467...> Message-ID: <420D640C.000001.03612@...745...> Please!!! How to return Number Index in ColumnView ? Not Key ( String )... Ex: In listbox = ( ListBox1.Index ) Returned = 2... Not Text String Lindomar. -------------- next part -------------- An HTML attachment was scrubbed... URL: From terveer at ...835... Sat Feb 12 09:27:09 2005 From: terveer at ...835... (H.R. ter Veer) Date: Sat, 12 Feb 2005 09:27:09 +0100 Subject: [Gambas-user] Problem or Function not exist In-Reply-To: <420D640C.000001.03612@...745...> References: <200502101615.45441.bundeshund@...467...> <420D640C.000001.03612@...745...> Message-ID: <20050212082702.741EFE0@...840...> On Sat, 12 Feb 2005 00:03:56 -0200 (Hor?rio brasileiro de ver?o) "LB Audio" wrote: > Please!!! > > How to return Number Index in ColumnView ? > > Not Key ( String )... > > Ex: In listbox = ( ListBox1.Index ) Returned = 2... Not Text String > > Lindomar. use the .text member: -- print ListBox1.Text -- ------------------------------------------------------------------------------ The only thing you can rely on is that you can't rely on anyting --------------------------------------------------------------------Placebo--- From lbaudio at ...172... Sat Feb 12 12:16:30 2005 From: lbaudio at ...172... (LB Audio) Date: Sat, 12 Feb 2005 09:16:30 -0200 (Horário brasileiro de verão) Subject: [Gambas-user] Problem or Function not exist References: <20050212082702.741EFE0@...840...> Message-ID: <420DE58E.000001.02596@...745...> No text, Index Number in ColunmView. -------Original Message------- From: gambas-user at lists.sourceforge.net Date: 12/2/2005 06:28:17 To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] Problem or Function not exist On Sat, 12 Feb 2005 00:03:56 -0200 (Hor?rio brasileiro de ver?o) "LB Audio" wrote: > Please!!! > > How to return Number Index in ColumnView ? > > Not Key ( String )... > > Ex: In listbox = ( ListBox1.Index ) Returned = 2... Not Text String > > Lindomar. use the .text member: -- print ListBox1.Text -- ----------------------------------------------------------------------------- The only thing you can rely on is that you can't rely on anyting --------------------------------------------------------------------Placebo-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op,ick _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From ottaviomacino at ...412... Sat Feb 12 16:40:46 2005 From: ottaviomacino at ...412... (pretore60) Date: Sat, 12 Feb 2005 16:40:46 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502101957.32205.bundeshund@...467...> References: <200502081117.09140.gambas@...1...> <420B8B5F.1040402@...221...> <200502101217.48775.sourceforge-raindog2@...94...> <200502101957.32205.bundeshund@...467...> Message-ID: <420E237E.7080607@...412...> HMB ha scritto: >uuups, sorry to dissapoint you all here, but i only store all datas into a >mysql-database with gambas and made some formulars in/with oo where i connect >to the mysql-db and print then form-letters or other documents. > >So sorry for that unclear writing. > >HM > > >Am Donnerstag, 10. Februar 2005 18:17 schrieb Rob: > > >>On Thursday 10 February 2005 11:27, Eilert wrote: >> >> >>>Wow, how do you do that? Can you access OOo from Gambas? Or do >>>you produce text files to be read and formatted from OOo? >>> >>> >>Sorry to interject here, but I have looked into this myself and >>am curious about what HMB did as well. >> >>Using the gb.compress and gb.xml components, I believe it is >>possible to construct or modify OOo documents, though it would >>require A LOT of code to do so. There is a Perl module called >>OpenOffice::OODoc which I hope to use as a reference in writing >>a Gambas component to deal with OOo documents once Gambas >>supports writing components in Gambas. (I'll likely write a set >>of classes to include in various projects before then, but >>ultimately it should be a component to help with version >>management.) >> >>My own printing in Gambas has been very similar to my printing in >>VB... write a set of functions to maintain cursor position, >>handle printing text and boxes, etc. without having to have >>Draw.This and Draw.That in my business logic. Several of the >>banking apps I have written required printing with consistent >>text positioning (for printing on forms) and thankfully, Gambas >>has proven to be up to the task. >> >>Rob >> >> >> >> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Gambas-user mailing list >>Gambas-user at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > I'm very interesting to your job . I've proved to prepare some formulary for my database (mysql) for football amatorial society, but i don't able to. Can you send me some example? Thank's. Ottavio From oystein at ...816... Sat Feb 12 17:27:46 2005 From: oystein at ...816... (Øystein Selbekk) Date: Sat, 12 Feb 2005 17:27:46 +0100 Subject: [Gambas-user] Trapping keyboard in text application Message-ID: Hi everyone... Trying to make a text only app in Gambas. Im not sure on how to trap keyboard input from the user in text mode. Ex: Do Until strInput <> "" strInput = someway_to_trap_user_input Loop Any clues anyone? Regards Oystein Selbekk From njmurphy1 at ...734... Sat Feb 12 19:09:29 2005 From: njmurphy1 at ...734... (njmurphy1 at ...734...) Date: Sat, 12 Feb 2005 10:09:29 -0800 Subject: [Gambas-user] BUG in using WRITE #hFILE Message-ID: <200502121009.29950.njmurphy1@...734...> Hi All I am getting my feet wet with Gambas. I have a Database of stuff that is in html form. I wanted to sort this stuff into a different order. I got all this done but when I write it back to a file I have trash, either 2 characters or 4, before the file that I am writing. Here is an example of the code that causes the problem: DIM output_file as FILE DIM page_str as STRING page_str = OPEN "/path/to/file" FOR WRITE CREATE AS #output_file WRITE #output_file, page_str CLOSE #output_file this code produces a file that has 2 or 4 characters of trash before the file. I have checked and the trash characters do not exists, checking with watch variable or writing to a textbox, before the WRITE statement. But if I use PRINT instead of WRITE it works just fine. Like this: OPEN "/path/to/file" FOR WRITE CREATE AS #output_file PRINT #output_file, page_str CLOSE #output_file I think this is a bug in Gambas. Or am I missing something? Here is a list of the trash that is at the beginning of the files, if it will help. It's not in any order. a0 62 00 c0 dc 84 7a 7f 00 c0 f1 84 0f 96 4a ad 52 95 1f b7 26 8a 00 c0 3e 7c 00 c0 c5 99 6e a5 TIA Joseph From sourceforge-raindog2 at ...94... Sat Feb 12 19:18:09 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 12 Feb 2005 13:18:09 -0500 Subject: [Gambas-user] BUG in using WRITE #hFILE In-Reply-To: <200502121009.29950.njmurphy1@...734...> References: <200502121009.29950.njmurphy1@...734...> Message-ID: <200502121318.09753.sourceforge-raindog2@...94...> On Saturday 12 February 2005 13:09, njmurphy1 at ...734... wrote: > WRITE #output_file, page_str > this code produces a file that has 2 or 4 characters of trash > before the file. I have checked and the trash characters do > not exists, checking with watch variable or writing to a > textbox, before the WRITE statement. But if I use PRINT > instead of WRITE it works just fine. Like this: > PRINT #output_file, page_str > I think this is a bug in Gambas. Or am I missing something? I think you actually mean to be using PRINT, not WRITE. From the WRITE documentation, "If Expression is a string, you can specify a length that indicates the number of bytes to write. If no length is specified for a string, it is directly written to the stream just before the string data." WRITE is meant for writing binary representations of variables out to files, to be subsequently read using READ. So the "trash" is actually a binary integer representation of the length of the string. I'm curious: what led you to choose WRITE even though PRINT was doing what you wanted it to do? Rob From naveenagrawal at ...43... Sun Feb 13 10:34:32 2005 From: naveenagrawal at ...43... (Naveen Agarawal) Date: Sun, 13 Feb 2005 01:34:32 -0800 (PST) Subject: [Gambas-user] Does Gambas work in Fedora Core 64 Bit In-Reply-To: <420E237E.7080607@...412...> Message-ID: <20050213093432.57572.qmail@...841...> I just wanted to know if it is possible to use Gambas on 64 bit platform? May be there is some special version of Gambas to use on 64 bit platform. pretore60 wrote: HMB ha scritto: >uuups, sorry to dissapoint you all here, but i only store all datas into a >mysql-database with gambas and made some formulars in/with oo where i connect >to the mysql-db and print then form-letters or other documents. > >So sorry for that unclear writing. > >HM > > >Am Donnerstag, 10. Februar 2005 18:17 schrieb Rob: > > >>On Thursday 10 February 2005 11:27, Eilert wrote: >> >> >>>Wow, how do you do that? Can you access OOo from Gambas? Or do >>>you produce text files to be read and formatted from OOo? >>> >>> >>Sorry to interject here, but I have looked into this myself and >>am curious about what HMB did as well. >> >>Using the gb.compress and gb.xml components, I believe it is >>possible to construct or modify OOo documents, though it would >>require A LOT of code to do so. There is a Perl module called >>OpenOffice::OODoc which I hope to use as a reference in writing >>a Gambas component to deal with OOo documents once Gambas >>supports writing components in Gambas. (I'll likely write a set >>of classes to include in various projects before then, but >>ultimately it should be a component to help with version >>management.) >> >>My own printing in Gambas has been very similar to my printing in >>VB... write a set of functions to maintain cursor position, >>handle printing text and boxes, etc. without having to have >>Draw.This and Draw.That in my business logic. Several of the >>banking apps I have written required printing with consistent >>text positioning (for printing on forms) and thankfully, Gambas >>has proven to be up to the task. >> >>Rob >> >> >> >> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Gambas-user mailing list >>Gambas-user at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > I'm very interesting to your job . I've proved to prepare some formulary for my database (mysql) for football amatorial society, but i don't able to. Can you send me some example? Thank's. Ottavio ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Every body has his shares of ups and downs but one should never say no to life. --------------------------------- Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bundeshund at ...467... Sun Feb 13 11:40:10 2005 From: bundeshund at ...467... (HMB) Date: Sun, 13 Feb 2005 11:40:10 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <420E237E.7080607@...412...> References: <200502081117.09140.gambas@...1...> <200502101957.32205.bundeshund@...467...> <420E237E.7080607@...412...> Message-ID: <200502131140.10245.bundeshund@...467...> Salute Ottavio! Am Samstag, 12. Februar 2005 16:40 schrieb pretore60: > I'm very interesting to your job . I've proved to prepare some formulary > for my database (mysql) for football amatorial society, but i don't able > to. Can you send me some example? > Thank's. > Ottavio As this are two different parts, i am not sure what you mean. Do you mean examples how to write a form and store datas from it into a mysql tabel using gambas, or do you need examples for connecting to a mysql-db and use this data for a form-letter with openoffice? HM > HMB ha scritto: > >uuups, sorry to dissapoint you all here, but i only store all datas into a > >mysql-database with gambas and made some formulars in/with oo where i > > connect to the mysql-db and print then form-letters or other documents. > > > >So sorry for that unclear writing. > > > >HM > > > >Am Donnerstag, 10. Februar 2005 18:17 schrieb Rob: > >>On Thursday 10 February 2005 11:27, Eilert wrote: > >>>Wow, how do you do that? Can you access OOo from Gambas? Or do > >>>you produce text files to be read and formatted from OOo? > >> > >>Sorry to interject here, but I have looked into this myself and > >>am curious about what HMB did as well. > >> > >>Using the gb.compress and gb.xml components, I believe it is > >>possible to construct or modify OOo documents, though it would > >>require A LOT of code to do so. There is a Perl module called > >>OpenOffice::OODoc which I hope to use as a reference in writing > >>a Gambas component to deal with OOo documents once Gambas > >>supports writing components in Gambas. (I'll likely write a set > >>of classes to include in various projects before then, but > >>ultimately it should be a component to help with version > >>management.) > >> > >>My own printing in Gambas has been very similar to my printing in > >>VB... write a set of functions to maintain cursor position, > >>handle printing text and boxes, etc. without having to have > >>Draw.This and Draw.That in my business logic. Several of the > >>banking apps I have written required printing with consistent > >>text positioning (for printing on forms) and thankfully, Gambas > >>has proven to be up to the task. > >> > >>Rob > >> > >> > >> > >> > >> > >>------------------------------------------------------- > >>SF email is sponsored by - The IT Product Guide > >>Read honest & candid reviews on hundreds of IT Products from real users. > >>Discover which products truly live up to the hype. Start reading now. > >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > >>_______________________________________________ > >>Gambas-user mailing list > >>Gambas-user at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >------------------------------------------------------- > >SF email is sponsored by - The IT Product Guide > >Read honest & candid reviews on hundreds of IT Products from real users. > >Discover which products truly live up to the hype. Start reading now. > >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > >_______________________________________________ > >Gambas-user mailing list > >Gambas-user at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > I'm very interesting to your job . I've proved to prepare some formulary > for my database (mysql) for football amatorial society, but i don't able > to. Can you send me some example? > Thank's. > Ottavio > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From terveer at ...835... Sun Feb 13 12:40:31 2005 From: terveer at ...835... (H.R. ter Veer) Date: Sun, 13 Feb 2005 12:40:31 +0100 Subject: [Gambas-user] BUG in using WRITE #hFILE In-Reply-To: <200502121318.09753.sourceforge-raindog2@...94...> References: <200502121009.29950.njmurphy1@...734...> <200502121318.09753.sourceforge-raindog2@...94...> Message-ID: <20050213114018.6D58BBB@...840...> On Sat, 12 Feb 2005 13:18:09 -0500 Rob wrote: > length of the string. I'm curious: what led you to choose WRITE > even though PRINT was doing what you wanted it to do? I'm curious too. For TEXT files (like HTML), the use of LINE INPUT to read from a file, and the use of PRINT to write to a file, look more obvious. -- ------------------------------------------------------------------------------ The only thing you can rely on is that you can't rely on anyting --------------------------------------------------------------------Placebo--- From na2492 at ...9... Sun Feb 13 18:56:43 2005 From: na2492 at ...9... (Charlie Reinl) Date: Sun, 13 Feb 2005 18:56:43 00100 Subject: [Gambas-user] Does Gambas work in Fedora Core 64 Bit Message-ID: <420f94db.5a00.0@...9...> >I just wanted to know if it is possible to use Gambas on 64 bit platform? May be there is some special version of Gambas to use on 64 bit platform. > > Salut, please have a look into the mailinglists archiv . There was said something like you have to compile it in 32 bit Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From warped.dragon at ...626... Mon Feb 14 05:33:55 2005 From: warped.dragon at ...626... (Dallen Wilson) Date: Sun, 13 Feb 2005 21:33:55 -0700 Subject: [Gambas-user] Error when writing data to file Message-ID: <42102A33.7010207@...626...> I'm getting an error I haven't seen before when using PRINT to write text to a file. The full output of the console, from program start to end, is: QPixmap: Cannot create a QPixmap when no GUI is being used QPixmap: Cannot create a QPixmap when no GUI is being used QPixmap: Cannot create a QPixmap when no GUI is being used QPixmap: Cannot create a QPixmap when no GUI is being used kbuildsycoca running... Reusing existing ksycoca kio (KIOConnection): ERROR: Could not write data After doing a bit of searching on google, I'm led to beleive this is actually a problem with my kdelibs install rather then gambas, but I'm not sure. Has anyone seen this before? The code that caused it is: OPEN Global.home & "myshard.list" FOR WRITE APPEND AS #OutFile PRINT #Outfile, Global.tmpString CLOSE #OutFile Global.home points to a directory, and Global.tmpString contains a valid string of text. The file in question is erased and it's contents deleted, even though it's supposed to be opened for appending. From njmurphy1 at ...734... Mon Feb 14 07:58:45 2005 From: njmurphy1 at ...734... (njmurphy1 at ...734...) Date: Sun, 13 Feb 2005 22:58:45 -0800 Subject: [Gambas-user] BUG in using WRITE #hFILE Message-ID: <200502132258.45081.njmurphy1@...734...> Hi H.R. ter Veer When I was a small boy my grandfather taught me a great lesson. "Everything is easy when you know how." I am sitting in my easy chair with my laptop on my lap playing with Gambas and used what I wanted to do with the html file as a learning tool for Gambas. And I did learn something. It looks like Gambas uses Pascal style strings and not C strings internally. I used both WRITE and PRINT and saw that there was a difference with the results and wondered why. Maybe you could help me with something Veer. I would like to use the webbrowser in gb.qt.kde.html but when I use the example in the docs it does not work. I get an "Unknown Identifier" error for WebBrowser. I suspect that gb.qt.kde.html is not loaded but I don't see how to load it. TIA Joseph From terveer at ...835... Mon Feb 14 08:32:23 2005 From: terveer at ...835... (H.R. ter Veer) Date: Mon, 14 Feb 2005 08:32:23 +0100 Subject: [Gambas-user] BUG in using WRITE #hFILE In-Reply-To: <200502132258.45081.njmurphy1@...734...> References: <200502132258.45081.njmurphy1@...734...> Message-ID: <20050214083223.3b9bed4f@...836...> On Sun, 13 Feb 2005 22:58:45 -0800 njmurphy1 at ...734... wrote: Hi Joseph, To add components to a project, use the menu Project / Properties & Tab Components. (This doesn't work on the example projects since they are read-only) To test it, create a new project, add the gb.kde.html component. After that a button KDE appears in the toolbox which holds the kde components. (& the browser) add a webbrowser to your form use the webbrowser.path propeory to load the url. for example: --- FORM1.class --- PUBLIC SUB form_resize() webbrowser1.x = 0 webbrowser1.y = 0 webbrowser1.W = ME.ClientW webbrowser1.H = ME.ClientH END PUBLIC SUB Form_Open() webbrowser1.Path = "http://www.google.com" END --- - - - If all this doesn't work, then there might be something missing in your installation. Good luck! Harm Richt ter Veer > Hi H.R. ter Veer > > When I was a small boy my grandfather taught me a great lesson. "Everything > is easy when you know how." > > I am sitting in my easy chair with my laptop on my lap playing with Gambas > and used what I wanted to do with the html file as a learning tool for > Gambas. And I did learn something. It looks like Gambas uses Pascal style > strings and not C strings internally. I used both WRITE and PRINT and saw > that there was a difference with the results and wondered why. > > Maybe you could help me with something Veer. I would like to use the > webbrowser in gb.qt.kde.html but when I use the example in the docs it does > not work. I get an "Unknown Identifier" error for WebBrowser. I suspect > that gb.qt.kde.html is not loaded but I don't see how to load it. > > TIA > Joseph > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ------------------------------------------------------------------ Cast the calming apple Up and over satellites To draw out the timid wild one To convince you it's alright And I listen for the whisper Of your sweet insanity while I formulate Denials of your affect on me You're a stranger So what do I care You vanish today Not the first time I hear All the lies What am I to do with all this silence Shy away, shy away phantom Run away terrified child Won't you move away you fucking tornado I'm better off without you Tearing my will down -------------------------------------------- a Perfect Circle ---- From terveer at ...835... Mon Feb 14 08:54:31 2005 From: terveer at ...835... (H.R. ter Veer) Date: Mon, 14 Feb 2005 08:54:31 +0100 Subject: [Gambas-user] Problem or Function not exist In-Reply-To: <420DE58E.000001.02596@...745...> References: <20050212082702.741EFE0@...840...> <420DE58E.000001.02596@...745...> Message-ID: <20050214085431.1d9211fb@...836...> On Sat, 12 Feb 2005 09:16:30 -0200 (Hor?rio brasileiro de ver?o) "LB Audio" wrote: Srooy, i misunderstood. (Or didn't read the question well). I think you are looking for ColumnView1.item.key ? Good luck, Harm Richt ter Veer > No text, Index Number in ColunmView. > > -------Original Message------- > > From: gambas-user at lists.sourceforge.net > Date: 12/2/2005 06:28:17 > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Problem or Function not exist > > On Sat, 12 Feb 2005 00:03:56 -0200 (Hor?rio brasileiro de ver?o) > "LB Audio" wrote: > > > Please!!! > > > > How to return Number Index in ColumnView ? > > > > Not Key ( String )... > > > > Ex: In listbox = ( ListBox1.Index ) Returned = 2... Not Text String > > > > Lindomar. > > use the .text member: > -- > print ListBox1.Text > -- > > ----------------------------------------------------------------------------- > > > The only thing you can rely on is that you can't rely on anyting > > --------------------------------------------------------------------Placebo-- > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op,ick > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ------------------------------------------------------------------ Cast the calming apple Up and over satellites To draw out the timid wild one To convince you it's alright And I listen for the whisper Of your sweet insanity while I formulate Denials of your affect on me You're a stranger So what do I care You vanish today Not the first time I hear All the lies What am I to do with all this silence Shy away, shy away phantom Run away terrified child Won't you move away you fucking tornado I'm better off without you Tearing my will down -------------------------------------------- a Perfect Circle ---- From smiefert at ...784... Mon Feb 14 10:25:40 2005 From: smiefert at ...784... (Stefan Miefert) Date: Mon, 14 Feb 2005 10:25:40 +0100 Subject: [Gambas-user] Complete command and struture overview? Message-ID: <200502141025.40917.smiefert@...784...> hello, who can i get a full gambas overview. all commands, classes,..? From eilert-sprachen at ...221... Mon Feb 14 12:10:06 2005 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 14 Feb 2005 12:10:06 +0100 Subject: [Gambas-user] Draw.Text adapted to DrawingArea ? Message-ID: <4210870E.2000705@...221...> Hi all, Just wondering how Draw.Text (and the text painting functions) could be recalculated to fit to the size of the DrawingArea. Yes, I know, if I say Draw.Font.Size = 12 it will be 12 pts, but reference for it is the desktop's resolution. I'm doing a preview, and for this preview to show me an A4 page in real size I have to give 82 instead of Desktop.Resolution (which results in somewhat smaller measures). This didn't matter up to now. I've introduced some graphics functions which show lines and stuff, all work ok because they use a function to recalculate millimeters into screen pixels. Now with fonts, as long as I keep the preview 1:1 with reality, everything appeares correct. But what if I decide to have a preview of 1/2 or 1/4 size? As all sizes are measured in points on the screen, my question is, what can I do to evaluate the appearence of a font and resize it accordingly? The Draw.Text() function has a width and height option, but I don't understand how it works (no examples in the help) and I don't know if it would be of any help here. Rolf From eilert-sprachen at ...221... Mon Feb 14 12:13:21 2005 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 14 Feb 2005 12:13:21 +0100 Subject: [Gambas-user] Values for LineStyle In-Reply-To: <200502101750.06841.gambas@...1...> References: <420B8CC0.6030803@...221...> <200502101750.06841.gambas@...1...> Message-ID: <421087D1.2020900@...221...> Hi Benoit, did you get my tar-ed project? Rolf Benoit Minisini schrieb: > On Thursday 10 February 2005 17:33, Eilert wrote: > >>In my previous posting I forgot one thing: >> >>I don't know what values LineStyle accepts - I tried "1", that makes a >>simple line, but everything else leads to a Sig 11... >> >>Can someone point me to the page in the documentation where it is >>explained or just tell me what I have to do here? >> >>Rolf >> > > > If you get a Sig 11, then this is a crash, and so a bug. > > Please give me all details about this crash, and send me the project that > causes it. > > Thanks in advance, > > Regards, > From lordheavy at ...512... Mon Feb 14 13:28:39 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Mon, 14 Feb 2005 13:28:39 +0100 Subject: [Gambas-user] Draw.Text adapted to DrawingArea ? In-Reply-To: <4210870E.2000705@...221...> References: <4210870E.2000705@...221...> Message-ID: <200502141328.39634.lordheavy@...512...> Le Lundi 14 F?vrier 2005 12:10, Eilert a ?crit?: > The Draw.Text() function has a width and height option, but I don't > understand how it works (no examples in the help) and I don't know if it > would be of any help here. draw.textHeight("my text") return the height of the text (my text) in pixels, draw.textWidth("my text") return the width of the text (my text) in pixels. -- Laurent Carlier From gambas at ...1... Mon Feb 14 14:10:21 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 14 Feb 2005 14:10:21 +0100 Subject: [Gambas-user] One minor bug and one xml question In-Reply-To: <8a530a2b05021020211a4a21f2@...627...> References: <8a530a2b05021020211a4a21f2@...627...> Message-ID: <200502141410.21575.gambas@...1...> On Friday 11 February 2005 05:21, Dallen Wilson wrote: > Well, I'm not entirerly sure it even qualifies as a bug. The power > went out while I was working on a gambas project. After rebooting and > opening the project, gambas warns me that the project is already open > and that opening it again is a Very Bad Idea. All well and good, I can > understand why it would do that, since the project didn't get closed, > power outages happening at the speed of light and whatnot. How do I > tell gambas that it is mistaken, and the project is not already open? Click on "continue" when you get the warning message! :-) > > And now, my question. I just upgraded to gambas 1.0.3, and I would > dearly love to try the new shiney xml component, since it's bound to > be better then the nasty xml-parser I cobbled together. But > documentation is strangly lacking. The wiki has the details, but can > anyone point me to an explaination on how to use the component, sort > of a "Getting Started" guide? I'm browsing the mailing-list archieve > now, but there's a lot of stuff to look through, it's possible I won't > find it. I never used this component, so I can't help you. But I think others can... Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Feb 14 14:18:16 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 14 Feb 2005 14:18:16 +0100 Subject: [Gambas-user] Values for LineStyle In-Reply-To: <421087D1.2020900@...221...> References: <420B8CC0.6030803@...221...> <200502101750.06841.gambas@...1...> <421087D1.2020900@...221...> Message-ID: <200502141418.17241.gambas@...1...> On Monday 14 February 2005 12:13, Eilert wrote: > Hi Benoit, > > did you get my tar-ed project? > > Rolf > Yes. The warning messages, and the bug (I think) come from the fact that you try to create a DrawingArea with width=height=0 px. I patched the DrawingArea widget, so that when it is cached, the internal bitmap cache is always at least one pixel by one pixel. Here is the patch... -- Benoit Minisini mailto:gambas at ...1... -------------- next part -------------- A non-text attachment was scrubbed... Name: CDrawingArea.cpp Type: text/x-c++src Size: 7395 bytes Desc: not available URL: From gambas at ...1... Mon Feb 14 14:23:48 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 14 Feb 2005 14:23:48 +0100 Subject: [Gambas-user] Trapping keyboard in text application In-Reply-To: References: Message-ID: <200502141423.48929.gambas@...1...> On Saturday 12 February 2005 17:27, ?ystein Selbekk wrote: > Hi everyone... Trying to make a text only app in Gambas. Im not sure on how > to trap keyboard input from the user in text mode. Ex: Do Until strInput <> > "" > strInput = someway_to_trap_user_input > Loop > > Any clues anyone? > > Regards Oystein Selbekk > The only way at the moment is using LINE INPUT. -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...338... Mon Feb 14 14:29:18 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Mon, 14 Feb 2005 14:29:18 +0100 Subject: [Gambas-user] One minor bug and one xml question In-Reply-To: <200502141410.21575.gambas@...1...> References: <8a530a2b05021020211a4a21f2@...627...> <200502141410.21575.gambas@...1...> Message-ID: <4210A7AE.4030906@...338...> > > > >>And now, my question. I just upgraded to gambas 1.0.3, and I would >>dearly love to try the new shiney xml component, since it's bound to >>be better then the nasty xml-parser I cobbled together. But >>documentation is strangly lacking. The wiki has the details, but can >>anyone point me to an explaination on how to use the component, sort >>of a "Getting Started" guide? I'm browsing the mailing-list archieve >>now, but there's a lot of stuff to look through, it's possible I won't >>find it. >> >> > >I never used this component, so I can't help you. But I think others can... > > > Yes, XML component is not finished, and it is not documented, however you can already use without problems the following classes: XmlReader, XmlWriter and XSLT. In order to get information about usage, you can take a look at the libxml documentation, of course it is C, but both XmlReader and XmlWriter follows the C interface from libxml so it is easy to understand how to work with them reding the C docs: http://xmlsoft.org/html/libxml-xmlreader.html http://xmlsoft.org/html/libxml-xmlwriter.html You can also ask for specific questions in this list, and I'll try to reply as soon as possible. Regards, D. Campos From warped.dragon at ...626... Mon Feb 14 14:39:34 2005 From: warped.dragon at ...626... (Dallen Wilson) Date: Mon, 14 Feb 2005 06:39:34 -0700 Subject: [Gambas-user] One minor bug and one xml question In-Reply-To: <200502141410.21575.gambas@...1...> References: <8a530a2b05021020211a4a21f2@...627...> <200502141410.21575.gambas@...1...> Message-ID: <4210AA16.50501@...626...> Benoit Minisini wrote: > On Friday 11 February 2005 05:21, Dallen Wilson wrote: > >>Well, I'm not entirerly sure it even qualifies as a bug. The power >>went out while I was working on a gambas project. After rebooting and >>opening the project, gambas warns me that the project is already open >>and that opening it again is a Very Bad Idea. All well and good, I can >>understand why it would do that, since the project didn't get closed, >>power outages happening at the speed of light and whatnot. How do I >>tell gambas that it is mistaken, and the project is not already open? > > > Click on "continue" when you get the warning message! :-) ... your a genuis, Benoit :) I guess that was kind of a dumb question, heh. > > >>And now, my question. I just upgraded to gambas 1.0.3, and I would >>dearly love to try the new shiney xml component, since it's bound to >>be better then the nasty xml-parser I cobbled together. But >>documentation is strangly lacking. The wiki has the details, but can >>anyone point me to an explaination on how to use the component, sort >>of a "Getting Started" guide? I'm browsing the mailing-list archieve >>now, but there's a lot of stuff to look through, it's possible I won't >>find it. > > > I never used this component, so I can't help you. But I think others can... I hope so. I'm eager to try it and find the bugs so they can be fixed ;) From gambas at ...1... Mon Feb 14 14:38:36 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 14 Feb 2005 14:38:36 +0100 Subject: [Gambas-user] Bug in Tableview In-Reply-To: <420C28E1.8020306@...776...> References: <420C28E1.8020306@...776...> Message-ID: <200502141438.36902.gambas@...1...> On Friday 11 February 2005 04:39, Eric Damron wrote: > I think there's a bug in the tableview component. I've included a > helpdesk project that I've just started. To run the project you need a > MySQL server. > > 1. Run the project. It will bring up a logon form. > 2. Enter a username/passoword that has rights to create databases. It > will detect that the helpdesk database does not exist and ask you if you > want to create it. > 3. Answer by clicking on the "Yes" button. > 4. The program will create a database called helpdesk and twelve tables > before opening the main form. (Note: I have my screen set to 1162 X 864 > resolution so the main form will appear too large if you run at a lesser > resolution.) The following request failed when creating the database: SUB CreateCALL() ... strSQL = "ALTER TABLE `HelpDesk`.`CALL` MODIFY COLUMN `id` INTEGER NOT NULL DEFAULT 0 AUTO_INCREMENT;" ' << Query failed: invalid default value for 'id' >> ' when executing the previous request hConnection.Exec(strSQL) END Which version of MySQL do you use ? Note that there are mistakes in your use of Table.Fields.Create(). The second argument is the GAMBAS datatype of the field, not the database datatype. I mean, it must be gb.Integer, gb.Float, gb.Date, gb.String or gb.Boolean, period. And the third argument is only used with gb.String. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Feb 14 14:39:18 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 14 Feb 2005 14:39:18 +0100 Subject: [Gambas-user] Does Gambas compile on Fedore Core 64 bit In-Reply-To: <20050210173502.20691.qmail@...839...> References: <20050210173502.20691.qmail@...839...> Message-ID: <200502141439.18315.gambas@...1...> On Thursday 10 February 2005 18:35, Naveen Agarawal wrote: > Kindly let me know if it is possible to use Gambas on > Fedora Core 64 Bit edition. > > Regards! > > Naveen > Gambas does not compile in 64 bits mode. It will be a long time before it can! Regards, -- Benoit Minisini mailto:gambas at ...1... From warped.dragon at ...626... Mon Feb 14 14:48:28 2005 From: warped.dragon at ...626... (Dallen Wilson) Date: Mon, 14 Feb 2005 06:48:28 -0700 Subject: [Gambas-user] One minor bug and one xml question In-Reply-To: <4210A7AE.4030906@...338...> References: <8a530a2b05021020211a4a21f2@...627...> <200502141410.21575.gambas@...1...> <4210A7AE.4030906@...338...> Message-ID: <4210AC2C.6020202@...626...> Daniel Campos wrote: > >> >> >> >>> And now, my question. I just upgraded to gambas 1.0.3, and I would >>> dearly love to try the new shiney xml component, since it's bound to >>> be better then the nasty xml-parser I cobbled together. But >>> documentation is strangly lacking. The wiki has the details, but can >>> anyone point me to an explaination on how to use the component, sort >>> of a "Getting Started" guide? I'm browsing the mailing-list archieve >>> now, but there's a lot of stuff to look through, it's possible I won't >>> find it. >>> >> >> >> I never used this component, so I can't help you. But I think others >> can... >> >> >> > Yes, XML component is not finished, and it is not documented, however > you can already use without problems the following classes: XmlReader, > XmlWriter and XSLT. > > In order to get information about usage, you can take a look at the > libxml documentation, > of course it is C, but both XmlReader and XmlWriter follows the C > interface from libxml > so it is easy to understand how to work with them reding the C docs: > > http://xmlsoft.org/html/libxml-xmlreader.html > http://xmlsoft.org/html/libxml-xmlwriter.html > > You can also ask for specific questions in this list, and I'll try to > reply as soon as possible. > Ah, thank you. This is exactly what I was looking for :) From eilert-sprachen at ...221... Mon Feb 14 15:03:33 2005 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 14 Feb 2005 15:03:33 +0100 Subject: [Gambas-user] Values for LineStyle In-Reply-To: <200502141418.17241.gambas@...1...> References: <420B8CC0.6030803@...221...> <200502101750.06841.gambas@...1...> <421087D1.2020900@...221...> <200502141418.17241.gambas@...1...> Message-ID: <4210AFB5.1070300@...221...> Thank you, Benoit, the patch works, now everything runs as expected :-) Benoit Minisini schrieb: > On Monday 14 February 2005 12:13, Eilert wrote: > >>Hi Benoit, >> >>did you get my tar-ed project? >> >>Rolf >> > > > Yes. The warning messages, and the bug (I think) come from the fact that you > try to create a DrawingArea with width=height=0 px. Hm. Coughing... :-O And where do I do that? Is there a way to avoid this? Did I do something "wrong"? Rolf From na2492 at ...9... Mon Feb 14 15:04:53 2005 From: na2492 at ...9... (Charlie Reinl) Date: Mon, 14 Feb 2005 15:04:53 00100 Subject: [Gambas-user] One minor bug and one xml question Message-ID: <4210b005.5255.0@...9...> > > >Benoit Minisini wrote: >> On Friday 11 February 2005 05:21, Dallen Wilson wrote: >> >>>Well, I'm not entirerly sure it even qualifies as a bug. The power >>>went out while I was working on a gambas project. After rebooting and >>>opening the project, gambas warns me that the project is already open >>>and that opening it again is a Very Bad Idea. All well and good, I can >>>understand why it would do that, since the project didn't get closed, >>>power outages happening at the speed of light and whatnot. How do I >>>tell gambas that it is mistaken, and the project is not already open? >> >> >> Click on "continue" when you get the warning message! :-) > >... your a genuis, Benoit :) I guess that was kind of a dumb question, heh. This has been included, for not open a project twice, and run mad while changes are not token etc. > >> >> >>>And now, my question. I just upgraded to gambas 1.0.3, and I would >>>dearly love to try the new shiney xml component, since it's bound to >>>be better then the nasty xml-parser I cobbled together. But >>>documentation is strangly lacking. The wiki has the details, but can >>>anyone point me to an explaination on how to use the component, sort >>>of a "Getting Started" guide? I'm browsing the mailing-list archieve >>>now, but there's a lot of stuff to look through, it's possible I won't >>>find it. >> >> >> I never used this component, so I can't help you. But I think others can... > >I hope so. I'm eager to try it and find the bugs so they can be fixed ;) > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From eilert-sprachen at ...221... Mon Feb 14 15:11:39 2005 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 14 Feb 2005 15:11:39 +0100 Subject: [Gambas-user] Draw.Text adapted to DrawingArea ? In-Reply-To: <200502141328.39634.lordheavy@...512...> References: <4210870E.2000705@...221...> <200502141328.39634.lordheavy@...512...> Message-ID: <4210B19B.6030905@...221...> Ah Laurent, I think I didn't explain clear enough what I want. Let me say it this way: When I start my preview, I call a function that recalculates millimeters into screen pixels. The DrawingArea has to be adjusted in measures of screen pixels. My little function take the Desktop.Resolution and computes the necessary number of pixels to let the DrawingArea as wide and as long as necessary for an A4 page. The problem is that it miscalculates a bit (maybe 10 %) because "Desktop.Resolution" says something like 76, and it would be 82 to make a "real" A4 sheet (I compared it on the screen). So everything appears somewhat smaller than A4. No problem, BUT WITH FONTS: Fonts are sized in pts, i. e. points, and not screen pixels. The function behind this in Qt recalculates my "Courier 12" into the necessary number of screen pixels for a page with Desktop.Resolution 76, not 82. So on my somewhat smaller page, all fonts appear slightly too big. What I am looking for is an easy way to rescale the fonts to a size which fits to the scale of my DrawingArea, maybe something like a pts-to-screen-pixel ratio. Rolf Laurent Carlier schrieb: > Le Lundi 14 F?vrier 2005 12:10, Eilert a ?crit : > >>The Draw.Text() function has a width and height option, but I don't >>understand how it works (no examples in the help) and I don't know if it >>would be of any help here. > > > draw.textHeight("my text") return the height of the text (my text) in pixels, > draw.textWidth("my text") return the width of the text (my text) in pixels. > From gambas at ...1... Mon Feb 14 15:18:45 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 14 Feb 2005 15:18:45 +0100 Subject: [Gambas-user] Draw.Text adapted to DrawingArea ? In-Reply-To: <4210B19B.6030905@...221...> References: <4210870E.2000705@...221...> <200502141328.39634.lordheavy@...512...> <4210B19B.6030905@...221...> Message-ID: <200502141518.46078.gambas@...1...> On Monday 14 February 2005 15:11, Eilert wrote: > Ah Laurent, I think I didn't explain clear enough what I want. Let me > say it this way: > > When I start my preview, I call a function that recalculates millimeters > into screen pixels. The DrawingArea has to be adjusted in measures of > screen pixels. My little function take the Desktop.Resolution and > computes the necessary number of pixels to let the DrawingArea as wide > and as long as necessary for an A4 page. > > The problem is that it miscalculates a bit (maybe 10 %) because > "Desktop.Resolution" says something like 76, and it would be 82 to make > a "real" A4 sheet (I compared it on the screen). > > So everything appears somewhat smaller than A4. No problem, BUT WITH FONTS: > > Fonts are sized in pts, i. e. points, and not screen pixels. The > function behind this in Qt recalculates my "Courier 12" into the > necessary number of screen pixels for a page with Desktop.Resolution 76, > not 82. So on my somewhat smaller page, all fonts appear slightly too big. > > What I am looking for is an easy way to rescale the fonts to a size > which fits to the scale of my DrawingArea, maybe something like a > pts-to-screen-pixel ratio. > > Rolf > Font has its own resolution settings, that is used only when displaying on a screen (not on a printer). I mean there is a Font.Resolution property that can be different from Desktop.Resolution. By default, Font.Resolution = 96. But you can change it if you need. Regards, -- Benoit Minisini mailto:gambas at ...1... From lbaudio at ...172... Mon Feb 14 16:50:33 2005 From: lbaudio at ...172... (LB Audio) Date: Mon, 14 Feb 2005 12:50:33 -0300 (Hora oficial do Brasil) Subject: [Gambas-user] Problem or Function not exist References: <20050214085431.1d9211fb@...836...> Message-ID: <4210C8C9.000001.02488@...745...> Listbox return index. ColumView not return index? LB Audio. -------Original Message------- From: gambas-user at lists.sourceforge.net Date: 14/2/2005 04:56:21 To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] Problem or Function not exist On Sat, 12 Feb 2005 09:16:30 -0200 (Hor?rio brasileiro de ver?o) "LB Audio" wrote: Srooy, i misunderstood. (Or didn't read the question well). I think you are looking for ColumnView1.item.key ? Good luck, Harm Richt ter Veer > No text, Index Number in ColunmView. > > -------Original Message------- > > From: gambas-user at lists.sourceforge.net > Date: 12/2/2005 06:28:17 > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Problem or Function not exist > > On Sat, 12 Feb 2005 00:03:56 -0200 (Hor?rio brasileiro de ver?o) > "LB Audio" wrote: > > > Please!!! > > > > How to return Number Index in ColumnView ? > > > > Not Key ( String )... > > > > Ex: In listbox = ( ListBox1.Index ) Returned = 2... Not Text String > > > > Lindomar. > > use the .text member: > -- > print ListBox1.Text > -- > > ----------------------------------------------------------------------------- > > > The only thing you can rely on is that you can't rely on anyting > > --------------------------------------------------------------------Placebo-- > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op,ick > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ------------------------------------------------------------------ Cast the calming apple Up and over satellites To draw out the timid wild one To convince you it's alright And I listen for the whisper Of your sweet insanity while I formulate Denials of your affect on me You're a stranger So what do I care You vanish today Not the first time I hear All the lies What am I to do with all this silence Shy away, shy away phantom Run away terrified child Won't you move away you fucking tornado I'm better off without you Tearing my will down -------------------------------------------- a Perfect Circle ---- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op,ick _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From smiefert at ...784... Mon Feb 14 16:40:56 2005 From: smiefert at ...784... (Stefan Miefert) Date: Mon, 14 Feb 2005 16:40:56 +0100 Subject: [Gambas-user] Gambas Version? Message-ID: <200502141640.57027.smiefert@...784...> hello, i use gambas 1.3 and i installed 1.9.3 now. How can i see what version i start? i think is the old 1.0.3 ? how can i change this ? From lordheavy at ...512... Mon Feb 14 16:55:40 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Mon, 14 Feb 2005 16:55:40 +0100 Subject: [Gambas-user] Gambas Version? In-Reply-To: <200502141640.57027.smiefert@...784...> References: <200502141640.57027.smiefert@...784...> Message-ID: <200502141655.40766.lordheavy@...512...> Le Lundi 14 F?vrier 2005 16:40, Stefan Miefert a ?crit?: > hello, > > i use gambas 1.3 and i installed 1.9.3 now. > > How can i see what version i start? i think is the old 1.0.3 ? > > how can i change this ? > gambas will run the old one, gambas2 the devel one :) -- Laurent Carlier From smiefert at ...784... Mon Feb 14 17:02:22 2005 From: smiefert at ...784... (Stefan Miefert) Date: Mon, 14 Feb 2005 17:02:22 +0100 Subject: [Gambas-user] Gambas Version? In-Reply-To: <200502141655.40766.lordheavy@...512...> References: <200502141640.57027.smiefert@...784...> <200502141655.40766.lordheavy@...512...> Message-ID: <200502141702.23164.smiefert@...784...> Hello, i dont think so:) noc theri is nothing. i cant start gambas and i cant start gambas2 both "not found" What the hell? Am Montag, 14. Februar 2005 16:55 schrieb Laurent Carlier: > Le Lundi 14 F?vrier 2005 16:40, Stefan Miefert a ?crit?: > > hello, > > > > i use gambas 1.3 and i installed 1.9.3 now. > > > > How can i see what version i start? i think is the old 1.0.3 ? > > > > how can i change this ? > > gambas will run the old one, gambas2 the devel one :) From lordheavy at ...512... Mon Feb 14 17:09:49 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Mon, 14 Feb 2005 17:09:49 +0100 Subject: [Gambas-user] Gambas Version? In-Reply-To: <200502141702.23164.smiefert@...784...> References: <200502141640.57027.smiefert@...784...> <200502141655.40766.lordheavy@...512...> <200502141702.23164.smiefert@...784...> Message-ID: <200502141709.49484.lordheavy@...512...> Le Lundi 14 F?vrier 2005 17:02, Stefan Miefert a ?crit?: > > > > > > How can i see what version i start? i think is the old 1.0.3 ? > > > > > > how can i change this ? > > Have you installed them from sources ? default path are : /opt/gambas/bin/gambas for gambas v1 /usr/local/bin/gambas2 for gambas v2 -- Laurent Carlier From nigel at ...38... Mon Feb 14 17:54:21 2005 From: nigel at ...38... (nigel at ...38...) Date: Mon, 14 Feb 2005 17:54:21 +0100 (CET) Subject: [Gambas-user] Bug in Tableview Message-ID: <25127470.1108400061375.JavaMail.www@...792...> I also do not believe that you can have a default value for an auto increment...well in the version of mysql that I have, the command is invalid unless you remove the DEFAULT 0 syntax. Nigel > Message date : Feb 14 2005, 01:38 PM > From : "Benoit Minisini" > To : gambas-user at lists.sourceforge.net > Copy to : > Subject : Re: [Gambas-user] Bug in Tableview > On Friday 11 February 2005 04:39, Eric Damron wrote: > > I think there's a bug in the tableview component. I've included a > > helpdesk project that I've just started. To run the project you need a > > MySQL server. > > > > 1. Run the project. It will bring up a logon form. > > 2. Enter a username/passoword that has rights to create databases. It > > will detect that the helpdesk database does not exist and ask you if you > > want to create it. > > 3. Answer by clicking on the "Yes" button. > > 4. The program will create a database called helpdesk and twelve tables > > before opening the main form. (Note: I have my screen set to 1162 X 864 > > resolution so the main form will appear too large if you run at a lesser > > resolution.) > > The following request failed when creating the database: > > SUB CreateCALL() > ... > strSQL = "ALTER TABLE `HelpDesk`.`CALL` MODIFY COLUMN `id` INTEGER NOT NULL > DEFAULT 0 AUTO_INCREMENT;" > ' << Query failed: invalid default value for 'id' >> > ' when executing the previous request > hConnection.Exec(strSQL) > END > > Which version of MySQL do you use ? > > Note that there are mistakes in your use of Table.Fields.Create(). The second > argument is the GAMBAS datatype of the field, not the database datatype. I > mean, it must be gb.Integer, gb.Float, gb.Date, gb.String or gb.Boolean, > period. And the third argument is only used with gb.String. > > Regards, > > -- > Benoit Minisini > mailto:gambas at ...1... > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -------------- next part -------------- An HTML attachment was scrubbed... URL: From edamron at ...776... Mon Feb 14 18:53:25 2005 From: edamron at ...776... (Eric Damron) Date: Mon, 14 Feb 2005 09:53:25 -0800 Subject: [Gambas-user] Bug in Tableview In-Reply-To: <200502141438.36902.gambas@...1...> References: <420C28E1.8020306@...776...> <200502141438.36902.gambas@...1...> Message-ID: <4210E595.5070503@...776...> Benoit Minisini wrote: >On Friday 11 February 2005 04:39, Eric Damron wrote: > > >>I think there's a bug in the tableview component. I've included a >>helpdesk project that I've just started. To run the project you need a >>MySQL server. >> >>1. Run the project. It will bring up a logon form. >>2. Enter a username/passoword that has rights to create databases. It >>will detect that the helpdesk database does not exist and ask you if you >>want to create it. >>3. Answer by clicking on the "Yes" button. >>4. The program will create a database called helpdesk and twelve tables >>before opening the main form. (Note: I have my screen set to 1162 X 864 >>resolution so the main form will appear too large if you run at a lesser >>resolution.) >> >> > >The following request failed when creating the database: > >SUB CreateCALL() >... > strSQL = "ALTER TABLE `HelpDesk`.`CALL` MODIFY COLUMN `id` INTEGER NOT NULL >DEFAULT 0 AUTO_INCREMENT;" > ' << Query failed: invalid default value for 'id' >> > ' when executing the previous request > hConnection.Exec(strSQL) >END > >Which version of MySQL do you use ? > >Note that there are mistakes in your use of Table.Fields.Create(). The second >argument is the GAMBAS datatype of the field, not the database datatype. I >mean, it must be gb.Integer, gb.Float, gb.Date, gb.String or gb.Boolean, >period. And the third argument is only used with gb.String. > >Regards, > > > Hi Benoit, I'm using 4.0.21-4.2 on a Suse 9.2 box. It never occured to me that the SQL might change for different versions of MySQL. I've attached a copy of the project that does not have the DEFAULT 0 part of the SQL. I see that I use gb.GeneralDate instead of just gb.Date. Is this incorrect? It shows up in the auto-complete list of choices so I just assumed that I could select it. Anyway I've corrected my errors and retested the behavior. It still has a problem. If there are only two items in the tableview and you delete the top item and refresh the view the bottom item disappears even though it is the top item that was deleted from the database. BTW I want to thank you for making gambas available. I think it is already useful and the fastest way I've found to deliver high quality database applications to my users. Thanks! -------------- next part -------------- A non-text attachment was scrubbed... Name: HelpDesk.tar.gz Type: application/x-tar Size: 19360 bytes Desc: not available URL: From edamron at ...776... Mon Feb 14 18:58:59 2005 From: edamron at ...776... (Eric Damron) Date: Mon, 14 Feb 2005 09:58:59 -0800 Subject: [Gambas-user] Bug in Tableview In-Reply-To: <25127470.1108400061375.JavaMail.www@...792...> References: <25127470.1108400061375.JavaMail.www@...792...> Message-ID: <4210E6E3.5050801@...776...> nigel at ...38... wrote: > I also do not believe that you can have a default value for an auto > increment...well in the version of mysql that I have, the command is > invalid unless you remove the DEFAULT 0 syntax. > > > > Nigel > > > > > > Message date : Feb 14 2005, 01:38 PM > > From : "Benoit Minisini" > > To : gambas-user at lists.sourceforge.net > > Copy to : > > Subject : Re: [Gambas-user] Bug in Tableview > > On Friday 11 February 2005 04:39, Eric Damron wrote: > > > I think there's a bug in the tableview component. I've included a > > > helpdesk project that I've just started. To run the project > you need a > > > MySQL server. > > > > > > 1. Run the project. It will bring up a logon form. > > > 2. Enter a username/passoword that has rights to create > databases. It > > > will detect that the helpdesk database does not exist and ask > you if you > > > want to create it. > > > 3. Answer by clicking on the "Yes" button. > > > 4. The program will create a database called helpdesk and > twelve tables > > > before opening the main form. (Note: I have my screen set to > 1162 X 864 > > > resolution so the main form will appear too large if you run > at a lesser > > > resolution.) > > > > The following request failed when creating the database: > > > > SUB CreateCALL() > > ... > > strSQL = "ALTER TABLE `HelpDesk`.`CALL` MODIFY COLUMN `id` > INTEGER NOT NULL > > DEFAULT 0 AUTO_INCREMENT;" > > ' << Query failed: invalid default value for 'id' >> > > ' when executing the previous request > > hConnection.Exec(strSQL) > > END > > > > Which version of MySQL do you use ? > > > > Note that there are mistakes in your use of > Table.Fields.Create(). The second > > argument is the GAMBAS datatype of the field, not the database > datatype. I > > mean, it must be gb.Integer, gb.Float, gb.Date, gb.String or > gb.Boolean, > > period. And the third argument is only used with gb.String. > > > > Regards, > > > > -- > > Benoit Minisini > > mailto:gambas at ...1... > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from > real users. > > Discover which products truly live up to the hype. Start reading > now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > Whatever you Wanadoo > > This email has been checked for most known viruses - find out more > here Thanks Nigel, I have removed that from the SQL. My version doesn't have a problem with it. In fact I used the MySQL-Administrator to set up one of the tables and just copied the SQL that it used. Never thought that different versions of MySQL wouldn't like it. From oystein at ...816... Mon Feb 14 19:38:38 2005 From: oystein at ...816... (Øystein Selbekk) Date: Mon, 14 Feb 2005 19:38:38 +0100 Subject: [Gambas-user] Trapping keyboard in text application Message-ID: On Saturday 12 February 2005 17:27, =D8ystein Selbekk wrote: > Hi everyone... Trying to make a text only app in Gambas. Im not sure on h= ow > to trap keyboard input from the user in text mode. Ex: Do Until strInput = <> > "" > strInput =3D someway_to_trap_user_input > Loop > > Any clues anyone? > > Regards Oystein Selbekk > The only way at the moment is using LINE INPUT. =2D-=20 Benoit Minisini mailto:gambas at ...1... Could you give me an example....? Examples in the help files shows how to do it with a com port, but not the keyboard. Regards Oystein Selbekk From sourceforge-raindog2 at ...94... Mon Feb 14 19:36:50 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 14 Feb 2005 13:36:50 -0500 Subject: [Gambas-user] Trapping keyboard in text application In-Reply-To: References: Message-ID: <200502141336.50965.sourceforge-raindog2@...94...> On Monday 14 February 2005 13:38, ?ystein Selbekk wrote: > Could you give me an example....? > Examples in the help files shows how to do it with a com port, > but not the keyboard. DO WHILE NOT Eof(File.In) LINE INPUT myString PRINT myString LOOP Rob From eilert-sprachen at ...221... Tue Feb 15 08:19:14 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 15 Feb 2005 08:19:14 +0100 Subject: [Gambas-user] Draw.Text adapted to DrawingArea ? In-Reply-To: <200502141518.46078.gambas@...1...> References: <4210870E.2000705@...221...> <200502141328.39634.lordheavy@...512...> <4210B19B.6030905@...221...> <200502141518.46078.gambas@...1...> Message-ID: <4211A272.30205@...221...> Thanks Benoit, that's it: Font.Resolution = Desktop.Resolution When I let it size the preview according to Desktop.Resolution, this will make the fonts appear in a natural way. Benoit Minisini schrieb: > On Monday 14 February 2005 15:11, Eilert wrote: > >>Ah Laurent, I think I didn't explain clear enough what I want. Let me >>say it this way: >> >>When I start my preview, I call a function that recalculates millimeters >>into screen pixels. The DrawingArea has to be adjusted in measures of >>screen pixels. My little function take the Desktop.Resolution and >>computes the necessary number of pixels to let the DrawingArea as wide >>and as long as necessary for an A4 page. >> >>The problem is that it miscalculates a bit (maybe 10 %) because >>"Desktop.Resolution" says something like 76, and it would be 82 to make >>a "real" A4 sheet (I compared it on the screen). >> >>So everything appears somewhat smaller than A4. No problem, BUT WITH FONTS: >> >>Fonts are sized in pts, i. e. points, and not screen pixels. The >>function behind this in Qt recalculates my "Courier 12" into the >>necessary number of screen pixels for a page with Desktop.Resolution 76, >>not 82. So on my somewhat smaller page, all fonts appear slightly too big. >> >>What I am looking for is an easy way to rescale the fonts to a size >>which fits to the scale of my DrawingArea, maybe something like a >>pts-to-screen-pixel ratio. >> >>Rolf >> > > > Font has its own resolution settings, that is used only when displaying on a > screen (not on a printer). > > I mean there is a Font.Resolution property that can be different from > Desktop.Resolution. By default, Font.Resolution = 96. But you can change it > if you need. > > Regards, > From eilert-sprachen at ...221... Tue Feb 15 08:28:49 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 15 Feb 2005 08:28:49 +0100 Subject: [Gambas-user] Values for LineStyle In-Reply-To: <200502141418.17241.gambas@...1...> References: <420B8CC0.6030803@...221...> <200502101750.06841.gambas@...1...> <421087D1.2020900@...221...> <200502141418.17241.gambas@...1...> Message-ID: <4211A4B1.1030405@...221...> Hi Benoit, thaaaaanks for the patch, runs wonderful :-) No more error messages, everything runs as expected. But again, where did I create a DrawingArea with width=height=0 ? (Maybe I can learn from it...) Rolf Benoit Minisini schrieb: > On Monday 14 February 2005 12:13, Eilert wrote: > >>Hi Benoit, >> >>did you get my tar-ed project? >> >>Rolf >> > > > Yes. The warning messages, and the bug (I think) come from the fact that you > try to create a DrawingArea with width=height=0 px. > > I patched the DrawingArea widget, so that when it is cached, the internal > bitmap cache is always at least one pixel by one pixel. > From smiefert at ...784... Tue Feb 15 09:08:32 2005 From: smiefert at ...784... (Stefan Miefert) Date: Tue, 15 Feb 2005 09:08:32 +0100 Subject: [Gambas-user] Missing module Message-ID: <200502150908.33512.smiefert@...784...> hello, where can i get this modul: gb.qt.kde gb.qt.kde.html gb.sdl ? how can i install them? From ottaviomacino at ...412... Tue Feb 15 11:10:00 2005 From: ottaviomacino at ...412... (pretore60) Date: Tue, 15 Feb 2005 11:10:00 +0100 Subject: [Gambas-user] "big" projects in Gambas In-Reply-To: <200502131140.10245.bundeshund@...467...> References: <200502081117.09140.gambas@...1...> <200502101957.32205.bundeshund@...467...> <420E237E.7080607@...412...> <200502131140.10245.bundeshund@...467...> Message-ID: <4211CA78.6050302@...412...> HMB ha scritto: >Salute Ottavio! > >Am Samstag, 12. Februar 2005 16:40 schrieb pretore60: > > > >>I'm very interesting to your job . I've proved to prepare some formulary >>for my database (mysql) for football amatorial society, but i don't able >>to. Can you send me some example? >>Thank's. >>Ottavio >> >> > >As this are two different parts, i am not sure what you mean. Do you mean >examples how to write a form and store datas from it into a mysql tabel using >gambas, or do you need examples for connecting to a mysql-db and use this >data for a form-letter with openoffice? > >HM > > > > > > >>HMB ha scritto: >> >> >>>uuups, sorry to dissapoint you all here, but i only store all datas into a >>>mysql-database with gambas and made some formulars in/with oo where i >>>connect to the mysql-db and print then form-letters or other documents. >>> >>>So sorry for that unclear writing. >>> >>>HM >>> >>>Am Donnerstag, 10. Februar 2005 18:17 schrieb Rob: >>> >>> >>>>On Thursday 10 February 2005 11:27, Eilert wrote: >>>> >>>> >>>>>Wow, how do you do that? Can you access OOo from Gambas? Or do >>>>>you produce text files to be read and formatted from OOo? >>>>> >>>>> >>>>Sorry to interject here, but I have looked into this myself and >>>>am curious about what HMB did as well. >>>> >>>>Using the gb.compress and gb.xml components, I believe it is >>>>possible to construct or modify OOo documents, though it would >>>>require A LOT of code to do so. There is a Perl module called >>>>OpenOffice::OODoc which I hope to use as a reference in writing >>>>a Gambas component to deal with OOo documents once Gambas >>>>supports writing components in Gambas. (I'll likely write a set >>>>of classes to include in various projects before then, but >>>>ultimately it should be a component to help with version >>>>management.) >>>> >>>>My own printing in Gambas has been very similar to my printing in >>>>VB... write a set of functions to maintain cursor position, >>>>handle printing text and boxes, etc. without having to have >>>>Draw.This and Draw.That in my business logic. Several of the >>>>banking apps I have written required printing with consistent >>>>text positioning (for printing on forms) and thankfully, Gambas >>>>has proven to be up to the task. >>>> >>>>Rob >>>> >>>> >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>SF email is sponsored by - The IT Product Guide >>>>Read honest & candid reviews on hundreds of IT Products from real users. >>>>Discover which products truly live up to the hype. Start reading now. >>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>>>_______________________________________________ >>>>Gambas-user mailing list >>>>Gambas-user at lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>>------------------------------------------------------- >>>SF email is sponsored by - The IT Product Guide >>>Read honest & candid reviews on hundreds of IT Products from real users. >>>Discover which products truly live up to the hype. Start reading now. >>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>>_______________________________________________ >>>Gambas-user mailing list >>>Gambas-user at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>I'm very interesting to your job . I've proved to prepare some formulary >>for my database (mysql) for football amatorial society, but i don't able >>to. Can you send me some example? >>Thank's. >>Ottavio >> >> > > > > > > >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Gambas-user mailing list >>Gambas-user at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > The first that you have told. Thank's Ottavio From naveenagrawal at ...43... Tue Feb 15 14:58:23 2005 From: naveenagrawal at ...43... (Naveen Agarawal) Date: Tue, 15 Feb 2005 05:58:23 -0800 (PST) Subject: [Gambas-user] Printing Support In-Reply-To: <200502141709.49484.lordheavy@...512...> Message-ID: <20050215135823.73081.qmail@...844...> How is it possible to send the output to printer. Say for example you run a query and extract the records in a table view. How these records can be printed on a printer? ===== Every body has his shares of ups and downs but one should never say no to life. __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo From lordheavy at ...512... Tue Feb 15 15:41:20 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Tue, 15 Feb 2005 15:41:20 +0100 Subject: [Gambas-user] FOSDEM interviews : =?iso-8859-1?q?Beno=EEt?= Minisini Message-ID: <200502151541.21577.lordheavy@...512...> Here is the links: http://it.slashdot.org/it/05/02/14/225201.shtml?tid=156&tid=8 http://www.fosdem.org/index/interviews/interviews_minisini Have fun, -- Laurent Carlier From sourceforge-raindog2 at ...94... Tue Feb 15 15:55:01 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 15 Feb 2005 09:55:01 -0500 Subject: [Gambas-user] Printing Support In-Reply-To: <20050215135823.73081.qmail@...844...> References: <20050215135823.73081.qmail@...844...> Message-ID: <200502150955.01553.sourceforge-raindog2@...94...> On Tuesday 15 February 2005 08:58, Naveen Agarawal wrote: > How is it possible to send the output to printer. Say > for example you run a query and extract the records in > a table view. How these records can be printed on a > printer? Currently, there is no automated way to do this. If you just want a screen grab of the table view control, you can just do something like draw.begin(Printer) draw.picture(0,0,myControl.Grab) ' syntax for the above is from memory and may be wrong draw.end but if you want to make a nice report you'll need to iterate through each column and each row, keeping track of the cursor position for each, and draw each of them to the printer using Draw.Text. It seems to me someone was working on a report generator applet in Gambas 6 or 8 months ago, but if one doesn't appear by the time it's possible to implement Gambas components natively in Gambas, I will probably write a component and add a report designer to the IDE. I had hoped that Openoffice Base would make such a thing unnecessary but after using it in OO.o 1.9, I think the Linux world is still in need of a more Access/Crystal-like report designer. Rob From pvera at ...729... Tue Feb 15 17:37:16 2005 From: pvera at ...729... (Pablo Vera) Date: Tue, 15 Feb 2005 10:37:16 -0600 Subject: [Gambas-user] Printing Support In-Reply-To: <200502150955.01553.sourceforge-raindog2@...94...> References: <20050215135823.73081.qmail@...844...> <200502150955.01553.sourceforge-raindog2@...94...> Message-ID: <4212253C.8080804@...729...> I developed a Report Generator in VB, that gave the final user of any application using the generator, the ability to modifiy the reports. I am not promising anything, but I will dedicate some time to port it to gambas. If I succeed, I will let you know. Saludos, Pablo Vera _____________________________________________________________________ Rob wrote: > On Tuesday 15 February 2005 08:58, Naveen Agarawal wrote: > >>How is it possible to send the output to printer. Say >>for example you run a query and extract the records in >>a table view. How these records can be printed on a >>printer? > > > Currently, there is no automated way to do this. If you just > want a screen grab of the table view control, you can just do > something like > > draw.begin(Printer) > draw.picture(0,0,myControl.Grab) > ' syntax for the above is from memory and may be wrong > draw.end > > but if you want to make a nice report you'll need to iterate > through each column and each row, keeping track of the cursor > position for each, and draw each of them to the printer using > Draw.Text. > > It seems to me someone was working on a report generator applet > in Gambas 6 or 8 months ago, but if one doesn't appear by the > time it's possible to implement Gambas components natively in > Gambas, I will probably write a component and add a report > designer to the IDE. I had hoped that Openoffice Base would > make such a thing unnecessary but after using it in OO.o 1.9, I > think the Linux world is still in need of a more > Access/Crystal-like report designer. > > Rob > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From Kevin.Lackey at ...845... Tue Feb 15 23:15:32 2005 From: Kevin.Lackey at ...845... (Kevin Devenport Lackey) Date: Tue, 15 Feb 2005 15:15:32 -0700 Subject: [Gambas-user] Collection of a form In-Reply-To: <200502150955.01553.sourceforge-raindog2@...94...> Message-ID: Is it possible to create a collection of a form? I am creating a form then in another form am declaring it Dim newForm as frmMyForm newForm = new frmMyForm myCollection.Add(newForm, idx) is telling me that newForm is a Null object Ideas? Thanks, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kevin.Lackey at ...845... Tue Feb 15 23:22:14 2005 From: Kevin.Lackey at ...845... (Kevin Devenport Lackey) Date: Tue, 15 Feb 2005 15:22:14 -0700 Subject: [Gambas-user] Collection of a form In-Reply-To: Message-ID: In answering my own question..... it looks like I do not need to use a collection, as it creates the forms just fine. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.kleindienst at ...20... Wed Feb 16 19:49:03 2005 From: t.kleindienst at ...20... (Thomas Kleindienst) Date: Wed, 16 Feb 2005 19:49:03 +0100 Subject: [Gambas-user] TableView -Multi-Mode- Get Selected rows Message-ID: <200502161949.03312.t.kleindienst@...20...> Hello List members I'm trying to set up an app to access a mysql-database. Everything went fine so far. Now I ran into a problem: I made a dialog in modal mode, where I want the user to select items from a list (represented by a tableview widget). It should be possible to select multiple items at once (The dialog will than pass back an integer[] with the corresponding id's from the selected items) So I set the tableview mode to "multi". Fine: I can do mutliple selections. _But: How can I read from the tableview widget, which rows are selected?_ In "single" mode it's easy: I just have to read the tableview.row variable. How do I get the needed information in "multi" mode? regards, Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas_tabkleview_multi_selection.png Type: image/png Size: 12220 bytes Desc: not available URL: From na2492 at ...9... Wed Feb 16 23:00:18 2005 From: na2492 at ...9... (Charlie Reinl) Date: Wed, 16 Feb 2005 23:00:18 00100 Subject: [Gambas-user] TableView -Multi-Mode- Get Selected rows Message-ID: <4213c272.22e8.0@...9...> > >Hello List members > >I'm trying to set up an app to access a mysql-database. Everything went fine >so far. > >Now I ran into a problem: >I made a dialog in modal mode, where I want the user to select items from a >list (represented by a tableview widget). >It should be possible to select multiple items at once (The dialog will than >pass back an integer[] with the corresponding id's from the selected items) > >So I set the tableview mode to "multi". Fine: I can do mutliple selections. > >_But: How can I read from the tableview widget, which rows are selected?_ > >In "single" mode it's easy: I just have to read the tableview.row variable. >How do I get the needed information in "multi" mode? > >regards, >Thomas > Salut Thomas, for shure it is not easy to find in help. You have to look at .TableViewRow , there you find Selected . You use it like that. PUBLIC SUB Button2_Click() DIM ni AS Integer FOR ni =0 TO tbvSelect.Rows.Count - 1 IF tbvSelect.Rows[ni].Selected THEN PRINT ni ENDIF NEXT END Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From arief at ...846... Thu Feb 17 13:22:34 2005 From: arief at ...846... (Arief Bayu Purwanto) Date: Thu, 17 Feb 2005 07:22:34 -0500 Subject: [Gambas-user] TableView -Multi-Mode- Get Selected rows Message-ID: > > > >Hello List members > > > >I'm trying to set up an app to access a mysql-database. Everything went > fine > >so far. > > > >Now I ran into a problem: > >I made a dialog in modal mode, where I want the user to select items from > > a > >list (represented by a tableview widget). > >It should be possible to select multiple items at once (The dialog will > than > >pass back an integer[] with the corresponding id's from the selected > items) > > > >So I set the tableview mode to "multi". Fine: I can do mutliple > selections. > > > >_But: How can I read from the tableview widget, which rows are selected?_ > > > > >In "single" mode it's easy: I just have to read the tableview.row > variable. > >How do I get the needed information in "multi" mode? > > > >regards, > >Thomas > > > Salut Thomas, > > for shure it is not easy to find in help. > You have to look at .TableViewRow , there you find Selected . > You use it like that. > > PUBLIC SUB Button2_Click() > DIM ni AS Integer > FOR ni =0 TO tbvSelect.Rows.Count - 1 > IF tbvSelect.Rows[ni].Selected THEN > PRINT ni > ENDIF > NEXT > END > To pass the value to another form, you could use like HTTPget Example (Using global class). > Amicalment > Charlie > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Arief Bayu Purwanto http://silentstudio.net/ From les.nemeths at ...11... Thu Feb 17 20:12:00 2005 From: les.nemeths at ...11... (exos) Date: Thu, 17 Feb 2005 20:12:00 +0100 Subject: [Gambas-user] Gambas et les impressions Message-ID: <200502172012.00754.les.nemeths@...11...> Bonjour ? tous, Nouveau sur gambas, je cherche ? imprimer, est-ce que draw.printer et la seul mani?re d'y parvenir ? Un exemple concret me serait d'une grande utilit?. Merci pour vos r?ponses From sourceforge-raindog2 at ...94... Thu Feb 17 20:57:45 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 17 Feb 2005 14:57:45 -0500 Subject: [Gambas-user] Gambas et les impressions In-Reply-To: <200502172012.00754.les.nemeths@...11...> References: <200502172012.00754.les.nemeths@...11...> Message-ID: <200502171457.45997.sourceforge-raindog2@...94...> On Thursday 17 February 2005 14:12, exos wrote: > Nouveau sur gambas, je cherche ? imprimer, est-ce que > draw.printer et la seul mani?re d'y parvenir ? I'm sorry, I don't understand French that well, but it sounds like you're asking how to print to a printer. The simplest example I can come up with is this: Draw.Begin(Printer) Draw.Text("Salut le Monde!",200,200) Draw.End A page should pop out of the printer with "Salut le Monde" printed near the upper left hand corner. Rob From gibsonsphoto at ...247... Thu Feb 17 23:48:13 2005 From: gibsonsphoto at ...247... (neil lewis) Date: Thu, 17 Feb 2005 22:48:13 +0000 Subject: [Gambas-user] small bug in ide Message-ID: <42151F2D.8030902@...247...> Dear all, I'm currently using Gambas version 0.99, so this may have been fixed already. If so, please forgive me. While using EXEC, I got an error at compile time "missing square" - missing square bracket. In fact there was no missing square bracket, but one of the arguments for the EXEC statement wasn't in quotation marks, so it would appear that the error message was misleading. Not a huge problem, but it took a few frustrating minutes staring at this one line of code looking for a missing square bracket before I spotted the real error! Thanks for a wonderful tool. Neil Lewis. From gambasfr at ...11... Fri Feb 18 00:34:13 2005 From: gambasfr at ...11... (Bodard Fabien) Date: Fri, 18 Feb 2005 00:34:13 +0100 Subject: [Gambas-user] small bug in ide In-Reply-To: <42151F2D.8030902@...247...> References: <42151F2D.8030902@...247...> Message-ID: <200502180034.13449.gambasfr@...11...> Le jeudi 17 F?vrier 2005 23:48, neil lewis a ?crit?: Hey you now what ?.... Gambas 1.0.3 is released ! And the 1.0 is here since the 1st january Regards, Fabien Bodard > Dear all, > > I'm currently using Gambas version 0.99 > , so this may have been fixed > already. If so, please forgive me. > > While using EXEC, I got an error at compile time "missing square" - > missing square bracket. > In fact there was no missing square bracket, but one of the arguments > for the EXEC statement wasn't in quotation marks, so it would appear > that the error message was misleading. > > Not a huge problem, but it took a few frustrating minutes staring at > this one line of code looking for a missing square bracket before I > spotted the real error! > > Thanks for a wonderful tool. > > Neil Lewis. > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From lduperval at ...626... Fri Feb 18 04:58:35 2005 From: lduperval at ...626... (Laurent Duperval) Date: Thu, 17 Feb 2005 22:58:35 -0500 Subject: [Gambas-user] Circular reference when quitting Message-ID: <870c8dd20502171958101bc4bb@...627...> Hi, I created a small database form and whenever I press my quit button (which executes the QUIT statement), I get a Console with this displayed: WARNING: circular references detected EntryForm (1) Mutex destroy failure: Device or resource busy WARNING: 31 allocation(s) non freed. What does it mean? Thanks, L From gambasfr at ...11... Fri Feb 18 12:44:38 2005 From: gambasfr at ...11... (Bodard Fabien) Date: Fri, 18 Feb 2005 12:44:38 +0100 Subject: [Gambas-user] small bug in ide In-Reply-To: <200502180034.13449.gambasfr@...11...> References: <42151F2D.8030902@...247...> <200502180034.13449.gambasfr@...11...> Message-ID: <200502181244.39058.gambasfr@...11...> Le vendredi 18 F?vrier 2005 00:34, Bodard Fabien a ?crit?: > Le jeudi 17 F?vrier 2005 23:48, neil lewis a ?crit?: > > Hey you now what ?.... Gambas 1.0.3 is released ! hem sorry i was tired yesteday ! not 'now' but 'know' > And the 1.0 is here since the 1st january > > Regards, > Fabien Bodard > > > Dear all, > > > > I'm currently using Gambas version 0.99 > > > > > > > > > > , so this may have been fixed > > already. If so, please forgive me. > > > > While using EXEC, I got an error at compile time "missing square" - > > missing square bracket. > > In fact there was no missing square bracket, but one of the arguments > > for the EXEC statement wasn't in quotation marks, so it would appear > > that the error message was misleading. > > > > Not a huge problem, but it took a few frustrating minutes staring at > > this one line of code looking for a missing square bracket before I > > spotted the real error! > > > > Thanks for a wonderful tool. > > > > Neil Lewis. > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=Click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From neil at ...233... Fri Feb 18 13:14:31 2005 From: neil at ...233... (neil lewis) Date: Fri, 18 Feb 2005 12:14:31 +0000 Subject: [Gambas-user] small bug in ide In-Reply-To: <200502181244.39058.gambasfr@...11...> References: <42151F2D.8030902@...247...> <200502180034.13449.gambasfr@...11...> <200502181244.39058.gambasfr@...11...> Message-ID: <4215DC27.3020704@...233...> Yes, I know there are some newer releases available, but I didn't know if anyone had noticed this problem before. If not, then I would guess it's still there. I'll have a go at building 1.0.3 tonight and see if it's fixed :-) Neil Lewis. Bodard Fabien wrote: >Le vendredi 18 F?vrier 2005 00:34, Bodard Fabien a ?crit : > > >>Le jeudi 17 F?vrier 2005 23:48, neil lewis a ?crit : >> >>Hey you now what ?.... Gambas 1.0.3 is released ! >> >> > >hem sorry i was tired yesteday ! not 'now' but 'know' > > > >>And the 1.0 is here since the 1st january >> >>Regards, >>Fabien Bodard >> >> >> >>>Dear all, >>> >>>I'm currently using Gambas version 0.99 >>> >>> >>> >>> >>>, so this may have been fixed >>>already. If so, please forgive me. >>> >>>While using EXEC, I got an error at compile time "missing square" - >>>missing square bracket. >>>In fact there was no missing square bracket, but one of the arguments >>>for the EXEC statement wasn't in quotation marks, so it would appear >>>that the error message was misleading. >>> >>>Not a huge problem, but it took a few frustrating minutes staring at >>>this one line of code looking for a missing square bracket before I >>>spotted the real error! >>> >>>Thanks for a wonderful tool. >>> >>>Neil Lewis. >>> >>> >>> >>>------------------------------------------------------- >>>SF email is sponsored by - The IT Product Guide >>>Read honest & candid reviews on hundreds of IT Products from real users. >>>Discover which products truly live up to the hype. Start reading now. >>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>>_______________________________________________ >>>Gambas-user mailing list >>>Gambas-user at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_ide95&alloc_id396&op=Click >>_______________________________________________ >>Gambas-user mailing list >>Gambas-user at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From ariafrancesco at ...86... Fri Feb 18 17:28:46 2005 From: ariafrancesco at ...86... (ariafrancesco@inwind.it) Date: Fri, 18 Feb 2005 17:28:46 +0100 Subject: [Gambas-user] (no subject) Message-ID: There is nothing that can implement in Gambas the LibNoDave ?? http://sourceforge.net/projects/libnodave/ I think that whit it gambas can will be the most important developed language in Industrial automation . ____________________________________________________________ Navighi a 2 MEGA e i primi 3 mesi sono GRATIS. Scegli Libero Adsl Flat senza limiti su http://www.libero.it From gibsonsphoto at ...247... Fri Feb 18 22:12:26 2005 From: gibsonsphoto at ...247... (neil lewis) Date: Fri, 18 Feb 2005 21:12:26 +0000 Subject: [Gambas-user] small bug in ide Message-ID: <42165A3A.20703@...247...> I've just downloaded/compiled/installed 1.0.3 and the error report is just the same as before. The IDE reports a missing square bracket when in fact the error is a missing pair of quotes around an argument to EXEC. I'll check it on 1.9.3 in a bit. Neil Lewis. From neil at ...233... Fri Feb 18 22:31:14 2005 From: neil at ...233... (neil lewis) Date: Fri, 18 Feb 2005 21:31:14 +0000 Subject: [Gambas-user] small bug in ide Message-ID: <42165EA2.9060103@...233...> Yup. Same problem still exists in current 1.9.3 version. Neil Lewis. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From christian.faurebouvard at ...357... Fri Feb 18 21:57:35 2005 From: christian.faurebouvard at ...357... (Christian Faure) Date: Fri, 18 Feb 2005 17:57:35 -0300 Subject: [Gambas-user] Re: Printing Support Message-ID: <200502181757.35760.christian.faurebouvard@...357...> Hello! i've worked on report generator and viewer (alpha version) in gambas, download: http://cfaure.com/DBReport/DBReportDatabase-0.0.3.tar.gz http://cfaure.com/DBReport/DBReportViewer-0.0.3.tar.gz http://cfaure.com/DBReport/DBReportDesigner-0.0.3.tar.gz Please, if you have time, test it. WARNING: no doc available now.... the first link is an app for generate the example database. Regards. Christian Faure From zjimward at ...626... Sat Feb 19 14:27:27 2005 From: zjimward at ...626... (Jim Ward) Date: Sat, 19 Feb 2005 07:27:27 -0600 Subject: [Gambas-user] Re: Printing Support In-Reply-To: <200502181757.35760.christian.faurebouvard@...357...> References: <200502181757.35760.christian.faurebouvard@...357...> Message-ID: <888242c1050219052749e16115@...627...> Looks good so far. I'm not real sure what the DBReportDatabase program is for yet. I like the layout of the Designer. I did add three files from my zipcode mysql table, but I couldn't preview it. The program raised a signal #11 and gave me a dialog that said too many arguements. Keep up the good work. On Fri, 18 Feb 2005 17:57:35 -0300, Christian Faure wrote: > Hello! > i've worked on report generator and viewer (alpha version) in gambas, > download: > > http://cfaure.com/DBReport/DBReportDatabase-0.0.3.tar.gz > http://cfaure.com/DBReport/DBReportViewer-0.0.3.tar.gz > http://cfaure.com/DBReport/DBReportDesigner-0.0.3.tar.gz > > Please, if you have time, test it. > WARNING: no doc available now.... > > the first link is an app for generate the example database. > > Regards. > Christian Faure > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From infobriefkasten at ...851... Sat Feb 19 18:00:55 2005 From: infobriefkasten at ...851... (infobriefkasten at ...851...) Date: Sat, 19 Feb 2005 18:00:55 +0100 (MET) Subject: [Gambas-user] VB to Gambas Message-ID: <4576.1108832455@...852...> Hey there, I want to convert my VisualBasic Project to Gambas. I use in VB following code: Public Type ProgType Name As String Pfad As String Verzeichnis As String End Type Global Prog1 as ProgType Global Prog2 as ProgType so i can use it like: Prog1.Name = "Editor" Prog1.Pfad = "c:\windows\editor.exe" Prog1.Verzeichnis = "c:\windows\" ... Prog2.Name = "notepad" Prog2.Pfad = "c:\windows\notepad.exe" Prog2.Verzeichnis = "c:\windows\" ....an so on. How can i declare and handle it in gambas?? Thanks a lot -- Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail From njmurphy1 at ...734... Sat Feb 19 20:11:25 2005 From: njmurphy1 at ...734... (njmurphy1 at ...734...) Date: Sat, 19 Feb 2005 11:11:25 -0800 Subject: [Gambas-user] small bug in ide Message-ID: <200502191111.25652.njmurphy1@...734...> Hi Neil I wouldn't worry about it to much. To really understand why a compiler gives an error message you need to understand how a compiler works. There is some condition in parsing the source that does not comply with the grammer of the language. The reality is if a compiler could exactly determine what is wrong with the source it could "fix" it and then there would be no need for the programmer at all. But a compiler is only a tool that takes what the programmer creates and attempts to make it into something that will execute. It really is up to the programmer to write correct source that the compiler can use. It's not up to the compiler to tell the programmer how to create correct source. Joseph From na2492 at ...9... Sat Feb 19 20:29:46 2005 From: na2492 at ...9... (Charlie Reinl) Date: Sat, 19 Feb 2005 20:29:46 00100 Subject: [Gambas-user] VB to Gambas Message-ID: <421793aa.1cf2.0@...9...> >Hey there, > >I want to convert my VisualBasic Project to Gambas. > >I use in VB following code: > >Public Type ProgType > Name As String > Pfad As String > Verzeichnis As String >End Type >Global Prog1 as ProgType >Global Prog2 as ProgType > >so i can use it like: > >Prog1.Name = "Editor" >Prog1.Pfad = "c:\windows\editor.exe" >Prog1.Verzeichnis = "c:\windows\" >... >Prog2.Name = "notepad" >Prog2.Pfad = "c:\windows\notepad.exe" >Prog2.Verzeichnis = "c:\windows\" > >....an so on. > >How can i declare and handle it in gambas?? > >Thanks a lot> Name As String > Pfad As String Salut, to replace the VBusertype , create a Class we call it ProgType ( the file will be ProgType.class) and fill like that ' Gambas class file STATIC PUBLIC Name AS String STATIC PUBLIC Pfad AS String STATIC PUBLIC Verzeichnis AS String Now in you project decleare. Global doesn't exist in gambas. See about in the list. PUBLIC Prog1 AS NEW ProgType PUBLIC Prog2 AS NEW ProgType Now you can use it like in your VB project. Prog1.Name = "Editor" Prog1.Pfad = "c:\windows\editor.exe" Prog1.Verzeichnis = "c:\windows\" ....an so on. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From oystein at ...816... Sat Feb 19 23:13:02 2005 From: oystein at ...816... (Øystein Selbekk) Date: Sat, 19 Feb 2005 23:13:02 +0100 Subject: [Gambas-user] Non GUI objects and events Message-ID: Hi.... Im trying to create a server in gambas that will recieve TCP connections. It needs to fire an event when a new connection is made to the server. I just cant figure out how to do this in gambas. In VB we have something called withevents. I have look a bit at the class event thing.... but i cant get it to work really.... Regards Oystein Selbekk From gambasfr at ...11... Sun Feb 20 10:40:27 2005 From: gambasfr at ...11... (Bodard Fabien) Date: Sun, 20 Feb 2005 10:40:27 +0100 Subject: [Gambas-user] Non GUI objects and events In-Reply-To: References: Message-ID: <200502201040.27566.gambasfr@...11...> Le samedi 19 F?vrier 2005 23:13, ?ystein Selbekk a ?crit?: > Hi.... Im trying to create a server in gambas that will recieve TCP > connections. It needs to fire an event when a new connection is made to the > server. I just cant figure out how to do this in gambas. In VB we have > something called withevents. I have look a bit at the class event thing.... > but i cant get it to work really.... > > Regards Oystein Selbekk Hi, Have you already look in the gambas exemple ? There is an exemple in the gambas IDE for that : 'ServerSocket' It show when the client where connected. event _Connect Regards, Fabien Bodard > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=Click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From christian.faurebouvard at ...357... Sun Feb 20 09:17:10 2005 From: christian.faurebouvard at ...357... (Christian Faure) Date: Sun, 20 Feb 2005 05:17:10 -0300 Subject: [Gambas-user] Re: Printing Support In-Reply-To: <888242c1050219052749e16115@...627...> References: <200502181757.35760.christian.faurebouvard@...357...> <888242c1050219052749e16115@...627...> Message-ID: <200502200517.10382.christian.faurebouvard@...357...> Salut Jim, El S?bado, 19 de Febrero de 2005 10:27, Jim Ward escribi?: > Looks good so far. I'm not real sure what the DBReportDatabase program > is for yet. DBReportDatabase create a test database for running examples Tested with SQLite. > I like the layout of the Designer. I did add three files > from my zipcode mysql table, but I couldn't preview it. The program > raised a signal #11 and gave me a dialog that said too many > arguements. Keep up the good work. > Raised signal #11 in DBReportViewer? or DBReportDesigner? The preview in Designer only work if you create an executable of DBReportPreview. I need more info to debug, Please, send me the xml report file, database structure, and version of gambas used. From neil at ...233... Sun Feb 20 13:19:17 2005 From: neil at ...233... (neil lewis) Date: Sun, 20 Feb 2005 12:19:17 +0000 Subject: [Gambas-user] small bug in ide In-Reply-To: <200502191111.25652.njmurphy1@...734...> References: <200502191111.25652.njmurphy1@...734...> Message-ID: <42188045.50304@...233...> Hi Joseph, I'm not excessively worried about this bug, it's just a small irritation in an otherwise fantastic system. Having said that, I don't really think I can agree with you that an "error correcting compiler" would make the programmer redundant. Surely the main focus for the programmer should be the creative part - designing the program, it's functionality and usability. For a compiler to attempt some degree of autocorrection really wouldn't be much different to the autocompletion which is already a feature, nor to using a spellchecker with autoreplace or a grammar checker in a wordprocessor. That's not meant as an excuse for sloppy code, just a recognition that as we are all human; we can easily make small mistakes when entering code. Forgetting the technical limitations for a moment, wouldn't it be useful if a compiler/IDE could correct obvious syntax errors while scanning the source? I really can't think of any good reason why a compiler should be prevented from having this sort of functionality. Neil Lewis. njmurphy1 at ...734... wrote: >Hi Neil > > I wouldn't worry about it to much. To really understand why a compiler gives >an error message you need to understand how a compiler works. There is some >condition in parsing the source that does not comply with the grammer of the >language. The reality is if a compiler could exactly determine what is wrong >with the source it could "fix" it and then there would be no need for the >programmer at all. But a compiler is only a tool that takes what the >programmer creates and attempts to make it into something that will execute. >It really is up to the programmer to write correct source that the compiler >can use. It's not up to the compiler to tell the programmer how to create >correct source. > >Joseph > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From oystein at ...816... Sun Feb 20 14:52:32 2005 From: oystein at ...816... (Øystein Selbekk) Date: Sun, 20 Feb 2005 14:52:32 +0100 Subject: [Gambas-user] Re: Re: Non GUI objects and events Message-ID: I dont think i did explain myself correctly. I get this to work just fine in a GUI environment. The problem appears when i declare the ServerSocket in a class like this: PUBLIC Server as NEW ServerSocket. This is when i dont get any events. And i need to do it in a class because this is not a GUI project. Regards Oystein Selbekk >From: Bodard Fabien >Re: Non GUI objects and events >2005-02-20 01:39 > > Le samedi 19 F?vrier 2005 23:13, ?ystein Selbekk a ?crit : > > Hi.... Im trying to create a server in gambas that will recieve TCP > > connections. It needs to fire an event when a new connection is made to the > > server. I just cant figure out how to do this in gambas. In VB we have > > something called withevents. I have look a bit at the class event thing... > > but i cant get it to work really.... > > > > Regards Oystein Selbekk > > Hi, > > Have you already look in the gambas exemple ? > > There is an exemple in the gambas IDE for that : "ServerSocket" > It show when the client where connected. event _Connect > > Regards, > Fabien Bodard From infobriefkasten at ...851... Sun Feb 20 19:00:06 2005 From: infobriefkasten at ...851... (infobriefkasten at ...851...) Date: Sun, 20 Feb 2005 19:00:06 +0100 (MET) Subject: [Gambas-user] VB to Gambas Message-ID: <31930.1108922406@...855...> Charlie Reinl schrieb: >>Hey there, >> >>I want to convert my VisualBasic Project to Gambas. >> >>I use in VB following code: >> >>Public Type ProgType >> Name As String >> Pfad As String >> Verzeichnis As String >>End Type >>Global Prog1 as ProgType >>Global Prog2 as ProgType >> >>so i can use it like: >> >>Prog1.Name = "Editor" >>Prog1.Pfad = "c:\windows\editor.exe" >>Prog1.Verzeichnis = "c:\windows\" >>... >>Prog2.Name = "notepad" >>Prog2.Pfad = "c:\windows\notepad.exe" >>Prog2.Verzeichnis = "c:\windows\" >> >>....an so on. >> >>How can i declare and handle it in gambas?? >> >>Thanks a lot> Name As String >> Pfad As String > > >Salut, > >to replace the VBusertype , create a Class >we call it ProgType ( the file will be ProgType.class) >and fill like that > >' Gambas class file >STATIC PUBLIC Name AS String >STATIC PUBLIC Pfad AS String >STATIC PUBLIC Verzeichnis AS String > >Now in you project decleare. > >Global doesn't exist in gambas. See about in the list. > >PUBLIC Prog1 AS NEW ProgType >PUBLIC Prog2 AS NEW ProgType > >Now you can use it like in your VB project. > >Prog1.Name = "Editor" >Prog1.Pfad = "c:\windows\editor.exe" >Prog1.Verzeichnis = "c:\windows\" >....an so on. > >Amicalment >Charlie >* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hey Charlie, thanks for your quick answer! It works. So I'm happy to converting my big Project ... :-D :-D :-D :-D :-D Horst -- DSL Komplett von GMX +++ Superg?nstig und stressfrei einsteigen! AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl From gambasfr at ...11... Sun Feb 20 19:34:25 2005 From: gambasfr at ...11... (Bodard Fabien) Date: Sun, 20 Feb 2005 19:34:25 +0100 Subject: [Gambas-user] GambasForge Message-ID: <200502201934.25492.gambasfr@...11...> Hi to all I've finished to update the gambasforge site and it work fine now without javascript. I think rob will be happy for that. You can add all the code you want and now i'm going to work on the possibility to change the update information or delete it ! The update date will be alway automatiquely set. don't forget that this site is in beta version. In a near time i want to add a search motor but they are not suffisely code at this time ! Please report me all you need and all the bug you can see. Tell me your ideas ... and with all of that the site can grown soon. I know they are many spelling fault. But before to correct anything i need to change the string place to a separate file with the define stuff. So after we can localize the site. Send me mails at gambasfr at ...11... And add the 'gambasforge' word to the subject ... so i can filter the sp?cific mail ! Fabien Bodard From lbaudio at ...172... Sun Feb 20 20:53:18 2005 From: lbaudio at ...172... (LB Audio) Date: Sun, 20 Feb 2005 16:53:18 -0300 (Hora oficial do Brasil) Subject: [Gambas-user] To associate file for my application References: <002701c4b823$1f77d650$e80aa8c0@...649...> Message-ID: <4218EAAE.000003.03936@...745...> Please. To associate file for my application in Gambas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From oliver_stieber at ...370... Sun Feb 20 21:04:04 2005 From: oliver_stieber at ...370... (Oliver Stieber) Date: Sun, 20 Feb 2005 20:04:04 +0000 (GMT) Subject: [Gambas-user] problem with dir... In-Reply-To: <31930.1108922406@...855...> Message-ID: <20050220200405.91508.qmail@...857...> Hi, Dir(directory, *) keeps giving me an error 'bad string conversion' I've tied it down to files with 8bit filenames e.g. Jean - Michel Jarre - Oxygne, being a forward '. ___________________________________________________________ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com From amh at ...859... Sun Feb 20 22:39:04 2005 From: amh at ...859... (Adrien Hernot) Date: Sun, 20 Feb 2005 22:39:04 +0100 Subject: [Gambas-user] Using FTPClient Message-ID: <20050220223904.A43442@...859...> Hi! I have been trying to use FTP client from inside Gambas to get my FTP account listing and to upload some files to it, but without full success. The autentification always work, but the data transfer happens only 1 out of 10 times and otherwise fails with a status of -1007 (Connection refused). Using ncftp to connect to my site and show th elisting always work, so it is probably not a network problem. Can someone help me with that issue? I included part of my code at the bottom. Adrien FtpClient1 = NEW FtpClient FtpClient1.User = "dsl54234" FtpClient1.Password = .... FtpClient1.URL = "ftp://users.cybercity.dk/" FtpClient1.Get( ) DO WHILE FtpClient1.Status >0 PRINT "waiting... (status = " & FtpClient1.Status & ")" WAIT (0.1) LOOP IF FtpClient1.Status < 0 THEN PRINT "Failed... (status = " & FtpClient1.Status & ")" Message("Error " & FtpClient1.Status) RETURN END IF READ #FtpClient1,sCad,Lof(FtpClient1) PRINT "dir returned: " & sCad From gambasfr at ...11... Sun Feb 20 23:04:56 2005 From: gambasfr at ...11... (Bodard Fabien) Date: Sun, 20 Feb 2005 23:04:56 +0100 Subject: [Gambas-user] problem with dir... In-Reply-To: <20050220200405.91508.qmail@...857...> References: <20050220200405.91508.qmail@...857...> Message-ID: <200502202304.56259.gambasfr@...11...> Le dimanche 20 F?vrier 2005 21:04, Oliver Stieber a ?crit?: > Hi, Dir(directory, *) keeps giving me an error 'bad > string conversion' I've tied it down to files with > 8bit filenames e.g. > Jean - Michel Jarre - Oxygne, being a forward i think you are trying to use a string you have typed on a texbox... type this: Dir(conv(directory, Desktop.Charset, System.Charset), *) in fact qt use the utf8 charset and the system another ! Fabien Bodard > > > > > > > > > ___________________________________________________________ > ALL-NEW Yahoo! Messenger - all new features - even more fun! > http://uk.messenger.yahoo.com > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From edamron at ...776... Mon Feb 21 06:32:18 2005 From: edamron at ...776... (Eric Damron) Date: Sun, 20 Feb 2005 21:32:18 -0800 Subject: [Gambas-user] Extended mode for Listview Message-ID: <42197262.3020109@...776...> What is the extended mode for a Listview and how does one use it? Thanks From edamron at ...776... Mon Feb 21 07:05:10 2005 From: edamron at ...776... (Eric Damron) Date: Sun, 20 Feb 2005 22:05:10 -0800 Subject: [Gambas-user] Which control? Message-ID: <42197A16.2060302@...776...> I would like a listbox-like control that the user can select and deselect multiple items using only the mouse. The ideal control would be a listbox that has a checkbox for each item. The selection should toggle on and off if clicked multiple times. Any suggestions? Thanks. From daniel.campos at ...338... Mon Feb 21 08:00:02 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Mon, 21 Feb 2005 08:00:02 +0100 Subject: [Gambas-user] Re: Re: Non GUI objects and events In-Reply-To: References: Message-ID: <421986F2.8000300@...338...> ?ystein Selbekk escribi?: >I dont think i did explain myself correctly. I get this to work just fine in a GUI environment. The problem appears when i declare the ServerSocket in a class like this: >PUBLIC Server as NEW ServerSocket. This is when i dont get any events. And i need to do it in a class because this is not a GUI project. > >Regards Oystein Selbekk > > Here you can find a complete example of ServerSocket: http://forja.linex.org/download.php/172/controlaula_0.5.4-1.tar.gz The package contains two programs: one of them, "sirvecole", is a non-gui application that user ServerSocket, i think you can find there all that you want to do. Regards, D. Campos > > >>From: Bodard Fabien >>Re: Non GUI objects and events >>2005-02-20 01:39 >> >>Le samedi 19 F?vrier 2005 23:13, ?ystein Selbekk a ?crit : >> >> >>>Hi.... Im trying to create a server in gambas that will recieve TCP >>>connections. It needs to fire an event when a new connection is made to the >>>server. I just cant figure out how to do this in gambas. In VB we have >>>something called withevents. I have look a bit at the class event thing... >>>but i cant get it to work really.... >>> >>>Regards Oystein Selbekk >>> >>> >>Hi, >> >>Have you already look in the gambas exemple ? >> >>There is an exemple in the gambas IDE for that : "ServerSocket" >>It show when the client where connected. event _Connect >> >>Regards, >>Fabien Bodard >> >> > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > From frankberg at ...390... Sun Feb 20 16:37:48 2005 From: frankberg at ...390... (Frank Berg) Date: Sun, 20 Feb 2005 16:37:48 +0100 Subject: [Gambas-user] ColumnView Message-ID: <000001c517eb$42fd7f30$c6f0fea9@...602...> Hi, i need an ColumnView where i are abel to show pictures (png) or Text free on each row or/and col. I wat try with the ColumnView1 but there are only the first column abel to show an picture (or not?) frank -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...94... Mon Feb 21 17:43:23 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 21 Feb 2005 11:43:23 -0500 Subject: [Gambas-user] Which control? In-Reply-To: <42197A16.2060302@...776...> References: <42197A16.2060302@...776...> Message-ID: <200502211142.02995.sourceforge-raindog2@...94...> On Monday 21 February 2005 01:05, Eric Damron wrote: > I would like a listbox-like control that the user can select > and deselect multiple items using only the mouse. The ideal > control would be a listbox that has a checkbox for each item. > The selection should toggle on and off if clicked multiple > times. I had to do that with a Columnview, and I did it by trapping the Click event and keeping my own list of which items were selected, and having two graphics (a cleared checkbox, and a checked one) which I assigned to each item as necessary. I'd post a snippet, but it was a contract gig and I don't presently have access to the code. I also suspect my code was needlessly complex, but at the time it was the only way that seemed obvious to me. Rob From eilert-sprachen at ...221... Mon Feb 21 17:53:43 2005 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 21 Feb 2005 17:53:43 +0100 Subject: [Gambas-user] Strange error with arrays Message-ID: <421A1217.1040009@...221...> Just run into a problem :-) In a module, there are several arrays of different datatypes: integer, string, float: PRIVATE myarr[20] AS INTEGER PRIVATE myarg[20] AS BOOLEAN PRIVATE myarx[20, 20] AS STRING and so on, then PUBLIC SUB aProcedure(something as integer) blablabla ... myarr[x] ... ... IF myarg[y] THEN ... ... myarx[x, y] = "hello" END Now, when the program comes to this procedure, it stops with a message "Program delivered 1" and a message in the direct window saying "Don't know how to copy arrays. Sorry :-( " So, what's wrong here? Rolf From sourceforge-raindog2 at ...94... Mon Feb 21 18:29:57 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 21 Feb 2005 12:29:57 -0500 Subject: [Gambas-user] Strange error with arrays In-Reply-To: <421A1217.1040009@...221...> References: <421A1217.1040009@...221...> Message-ID: <200502211229.57944.sourceforge-raindog2@...94...> On Monday 21 February 2005 11:53, Eilert wrote: > Now, when the program comes to this procedure, it stops with a > message "Program delivered 1" and a message in the direct > window saying "Don't know how to copy arrays. Sorry :-( " > > So, what's wrong here? Sure sounds like a bug or unimplemented feature in the interpreter, but I haven't a hope of figuring it out without seeing some compilable code that produces the error. I can't even tell where exactly it craps out from your description... Rob From jester.dev at ...734... Mon Feb 21 11:42:00 2005 From: jester.dev at ...734... (Lord Jester) Date: Mon, 21 Feb 2005 03:42:00 -0700 Subject: [Gambas-user] New to gambas. Have a few questions. Message-ID: <1108982520.27479.10.camel@...861...> I used to program in VB and then VB.NET and have even tried Mono and since switching to Linux full time, I've been looking for an alternative. I've also been looking for an alternative to Java till my books come in. I think I've found it with Gambas. I hope to be able to contribute a few tutorials and what not once I get settled in and learn the ropes. I do have a few questions. First off what exactly is Gambas capable of at this moment? I've had a project in my head for several years now, and after seeing Gambas I think that's where I'll start it. It's just a 'thing' of sorts with an all in one interface for web, text, etc. About fakebas, how exactly do I compile this? I see it's written in Java.. Perhaps just loading it up in Eclipse and compiling will work? Anyway, I think Gambas has some serious potential and I'd like to see it come full circle. Thanks for your time, Michael From grahame at ...457... Mon Feb 21 18:46:42 2005 From: grahame at ...457... (Grahame White) Date: Mon, 21 Feb 2005 17:46:42 +0000 Subject: [Gambas-user] New to gambas. Have a few questions. In-Reply-To: <1108982520.27479.10.camel@...861...> References: <1108982520.27479.10.camel@...861...> Message-ID: <200502211746.43052.grahame@...457...> On Monday 21 February 2005 10:42, Lord Jester wrote: > About fakebas, how exactly do I compile this? I see it's written in > Java.. Perhaps just loading it up in Eclipse and compiling will work? I was under the impression that fakebas was written in gambas and not java. Grahame From jester.dev at ...734... Mon Feb 21 12:04:00 2005 From: jester.dev at ...734... (Lord Jester) Date: Mon, 21 Feb 2005 04:04:00 -0700 Subject: [Gambas-user] New to gambas. Have a few questions. In-Reply-To: <200502211746.43052.grahame@...457...> References: <1108982520.27479.10.camel@...861...> <200502211746.43052.grahame@...457...> Message-ID: <1108983841.27479.11.camel@...861...> On Mon, 2005-02-21 at 17:46 +0000, Grahame White wrote: > On Monday 21 February 2005 10:42, Lord Jester wrote: > > > About fakebas, how exactly do I compile this? I see it's written in > > Java.. Perhaps just loading it up in Eclipse and compiling will work? > > I was under the impression that fakebas was written in gambas and not java. > > Grahame > Well that explains a bit then. ;) Suse was listing them as Java classes.. Thanks for the info, Michael From sourceforge-raindog2 at ...94... Mon Feb 21 18:57:56 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 21 Feb 2005 12:57:56 -0500 Subject: [Gambas-user] New to gambas. Have a few questions. In-Reply-To: <1108982520.27479.10.camel@...861...> References: <1108982520.27479.10.camel@...861...> Message-ID: <200502211255.07183.sourceforge-raindog2@...94...> On Monday 21 February 2005 05:42, Lord Jester wrote: > I do have a few questions. First off what exactly is Gambas > capable of at this moment? I've had a project in my head for > several years now, and after seeing Gambas I think that's > where I'll start it. It's just a 'thing' of sorts with an all > in one interface for web, text, etc. Gambas 1.x is suitable for most front-end type of applications, quite suitable for MySQL/Postgres/standalone database applications, and lots of us have used it for all kinds of more involved applications (see the "big projects in Gambas" thread from a couple weeks ago in the archives.) It's really pretty open-ended, and you can drive all kinds of background processes using SHELL and the Process object to access functionality that isn't native to Gambas yet. I wouldn't recommend Gambas 1.x for applications requiring heavy text processing (because I hadn't finished the pcre component by then), fast graphical performance (because there wasn't an SDL graphics component yet), or ODBC (ditto.) I'm sure there are other libraries out there that Gambas still needs components for, but all of the above are now present in the development versions of Gambas 2. I don't know if part of your goal is to implement a web browser, but I think the scripting will be a killer... there is a KDE-based web browser component, but I don't think it gives you access to the DOM and there's certainly no Javascript component available for Gambas yet. However, I have helped a client implement a highly customized text editor in Gambas, and I think for displaying static HTML documents (or using the browser as a preview, if you're writing an HTML editor) you'd do fine. > About fakebas, how exactly do I compile this? I see it's > written in Java.. Perhaps just loading it up in Eclipse and > compiling will work? Fakebas is actually written in Gambas (just as the Gambas IDE itself is.) There are .class files in there because Benoit chose .class as the file extension for Gambas classes. (oops...) If you have Gambas installed, go into the fakebas directory and type gbc gba gbc will compile it, and gba will make the fakebas executable. (Instead of gba, you could have run gbx and it would have run fakebas without making an executable.) Of course, the easiest way to compile a Gambas app is to load it up in gambas itself and select the "make executable" menu item, but since you're trying to compile an alternative Gambas IDE, I'm assuming you're not familiar with the original IDE that ships with Gambas. Rob From na2492 at ...9... Mon Feb 21 20:49:24 2005 From: na2492 at ...9... (Charlie Reinl) Date: Mon, 21 Feb 2005 20:49:24 00100 Subject: [Gambas-user] New to gambas. Have a few questions. Message-ID: <421a3b44.1816.0@...9...> >On Monday 21 February 2005 10:42, Lord Jester wrote: > >> About fakebas, how exactly do I compile this? I see it's written in >> Java.. Perhaps just loading it up in Eclipse and compiling will work? > >I was under the impression that fakebas was written in gambas and not java. *.class is shown as java files, thats all. fakebas as I'v seen and Rob sais is written in gambas. > >Grahame > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From na2492 at ...9... Mon Feb 21 21:05:29 2005 From: na2492 at ...9... (Charlie Reinl) Date: Mon, 21 Feb 2005 21:05:29 00100 Subject: [Gambas-user] Strange error with arrays Message-ID: <421a3f09.2274.0@...9...> >Just run into a problem :-) > >In a module, there are several arrays of different datatypes: integer, >string, float: > >PRIVATE myarr[20] AS INTEGER >PRIVATE myarg[20] AS BOOLEAN >PRIVATE myarx[20, 20] AS STRING > >and so on, then > >PUBLIC SUB aProcedure(something as integer) > > blablabla > > ... myarr[x] ... > ... IF myarg[y] THEN ... > ... myarx[x, y] = "hello" > >END > > >Now, when the program comes to this procedure, it stops with a message >"Program delivered 1" and a message in the direct window saying "Don't >know how to copy arrays. Sorry :-( " > >So, what's wrong here? > >Rolf > Salut Rolf, The "Don't know how to copy arrays" exists in gbx_value.c at VALUE_class_write as PUBLIC void VALUE_class_write(CLASS *class, VALUE *value, char *addr, CTYPE ctype) { if (ctype.id == T_OBJECT) { VALUE_write(value, addr, (ctype.value >= 0) ? (TYPE)class->load->class_ref[ctype.value] : T_OBJECT); } else if (ctype.id == T_ARRAY) { ERROR_panic("Don't know how to copy arrays"); } else VALUE_write(value, addr, (TYPE)ctype.id); } Would be nice to see your code. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From eilert-sprachen at ...221... Tue Feb 22 08:58:09 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 22 Feb 2005 08:58:09 +0100 Subject: [Gambas-user] Strange error with arrays In-Reply-To: <421a3f09.2274.0@...9...> References: <421a3f09.2274.0@...9...> Message-ID: <421AE611.1070305@...221...> Hi Rob, hi Charlie, Here you go: form.tgz includes 2 forms which can be displayed. Start the program (you'll be in the editor) and click on the "open file" icon, choose directory "formulare". First you should try the "ZeugnisZP4.frm", this runs well, so you see how it should work. Then try the other one, there is a table included. The table procedure (in elemente.module, called ZeichneTabelle) causes the error. But there is no indication where exactly the error arises. And this looks like a non-implemented feature to me, Charlie: > The "Don't know how to copy arrays" exists in gbx_value.c > at VALUE_class_write as > > PUBLIC void VALUE_class_write(CLASS *class, VALUE *value, char *addr, > CTYPE ctype) > { > if (ctype.id == T_OBJECT) > { > VALUE_write(value, addr, (ctype.value >= 0) ? > (TYPE)class->load->class_ref[ctype.value] : T_OBJECT); > } > else if (ctype.id == T_ARRAY) > { > ERROR_panic("Don't know how to copy arrays"); > } > else > VALUE_write(value, addr, (TYPE)ctype.id); > } > > Would be nice to see your code. > However, in the help, this way of introducing arrays is described, so why shouldn't it work? If it does not work this way, I'll rewrite them all as array objects, there is no big problem. Just thought it would be easier this way. Rolf From eilert-sprachen at ...221... Tue Feb 22 09:08:51 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 22 Feb 2005 09:08:51 +0100 Subject: [Gambas-user] Strange error with arrays In-Reply-To: <421a3f09.2274.0@...9...> References: <421a3f09.2274.0@...9...> Message-ID: <421AE893.1060605@...221...> Hi Rob, hi Charlie, Here you go: form.tgz includes 2 forms which can be displayed. Start the program (you'll be in the editor) and click on the "open file" icon, choose directory "formulare". First you should try the "ZeugnisZP4.frm", this runs well, so you see how it should work. Then try the other one, there is a table included. The table procedure (in elemente.module, called ZeichneTabelle) causes the error. But there is no indication where exactly the error arises. And this looks like a non-implemented feature to me, Charlie: > The "Don't know how to copy arrays" exists in gbx_value.c > at VALUE_class_write as > > PUBLIC void VALUE_class_write(CLASS *class, VALUE *value, char *addr, > CTYPE ctype) > { > if (ctype.id == T_OBJECT) > { > VALUE_write(value, addr, (ctype.value >= 0) ? > (TYPE)class->load->class_ref[ctype.value] : T_OBJECT); > } > else if (ctype.id == T_ARRAY) > { > ERROR_panic("Don't know how to copy arrays"); > } > else > VALUE_write(value, addr, (TYPE)ctype.id); > } > > Would be nice to see your code. > However, in the help, this way of introducing arrays is described, so why shouldn't it work? If it does not work this way, I'll rewrite them all as array objects, there is no big problem. Just thought it would be easier this way. Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: form.tgz Type: application/x-gtar Size: 52997 bytes Desc: not available URL: From nigel at ...38... Tue Feb 22 09:53:05 2005 From: nigel at ...38... (nigel at ...38...) Date: Tue, 22 Feb 2005 09:53:05 +0100 (CET) Subject: [Gambas-user] Extended mode for Listview Message-ID: <10788099.1109062385854.JavaMail.www@...713...> Eric, I suspect that ListView may work similar to ListBox (but have never used it). I would check the documentation for the gb.qt component and ListBox. There is a description of Multi and Extended Constants there - also an example on the Extended. Nigel > Message date : Feb 21 2005, 05:33 AM > From : "Eric Damron" > To : "Gambas Mail List" > Copy to : > Subject : [Gambas-user] Extended mode for Listview > What is the extended mode for a Listview and how does one use it? > > Thanks > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue Feb 22 11:07:20 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Feb 2005 11:07:20 +0100 Subject: [Gambas-user] Circular reference when quitting In-Reply-To: <870c8dd20502171958101bc4bb@...627...> References: <870c8dd20502171958101bc4bb@...627...> Message-ID: <200502221107.20246.gambas@...1...> On Friday 18 February 2005 04:58, Laurent Duperval wrote: > Hi, > > I created a small database form and whenever I press my quit button > (which executes the QUIT statement), I get a Console with this > displayed: > > WARNING: circular references detected > EntryForm (1) > Mutex destroy failure: Device or resource busy > WARNING: 31 allocation(s) non freed. > > What does it mean? > It means that you have used the QUIT instruction :-) Never use this instruction to terminate a program, because the program is roughly stopped. Close all forms instead. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 22 11:13:47 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Feb 2005 11:13:47 +0100 Subject: [Gambas-user] Re: Printing Support In-Reply-To: <200502200517.10382.christian.faurebouvard@...357...> References: <200502181757.35760.christian.faurebouvard@...357...> <888242c1050219052749e16115@...627...> <200502200517.10382.christian.faurebouvard@...357...> Message-ID: <200502221113.47456.gambas@...1...> On Sunday 20 February 2005 09:17, Christian Faure wrote: > Salut Jim, > > El S?bado, 19 de Febrero de 2005 10:27, Jim Ward escribi?: > > Looks good so far. I'm not real sure what the DBReportDatabase program > > is for yet. > > DBReportDatabase create a test database for running examples > Tested with SQLite. > > > I like the layout of the Designer. I did add three files > > from my zipcode mysql table, but I couldn't preview it. The program > > raised a signal #11 and gave me a dialog that said too many > > arguements. Keep up the good work. > > Raised signal #11 in DBReportViewer? or DBReportDesigner? > The preview in Designer only work if you create an executable of > DBReportPreview. > > I need more info to debug, > Please, send me the xml report file, database structure, and version of > gambas used. > > Signal #11 is an interpreter segmentation fault. It should never happen. It means that there is a bug in the interpreter. When you get that, try to isolate what code provokes the segfault, and send me the details. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 22 11:14:35 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Feb 2005 11:14:35 +0100 Subject: [Gambas-user] small bug in ide In-Reply-To: <42165EA2.9060103@...233...> References: <42165EA2.9060103@...233...> Message-ID: <200502221114.35673.gambas@...1...> On Friday 18 February 2005 22:31, neil lewis wrote: > Yup. Same problem still exists in current 1.9.3 version. > > Neil Lewis. > > Can you tell me what code raises an error, which error, and what error message you want instead ? Thanks in advance, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 22 11:16:39 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Feb 2005 11:16:39 +0100 Subject: [Gambas-user] Re: Re: Non GUI objects and events In-Reply-To: References: Message-ID: <200502221116.39632.gambas@...1...> On Sunday 20 February 2005 14:52, ?ystein Selbekk wrote: > I dont think i did explain myself correctly. I get this to work just fine > in a GUI environment. The problem appears when i declare the ServerSocket > in a class like this: PUBLIC Server as NEW ServerSocket. This is when i > dont get any events. And i need to do it in a class because this is not a > GUI project. > > Regards Oystein Selbekk > An object will raise events only if you give it an "event name": DIM Server AS ServerSocket Server = NEW ServerSocket AS "MyServer" Read the wiki documentation if you want more details about that, or the tips of the day. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Feb 22 11:17:10 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Feb 2005 11:17:10 +0100 Subject: [Gambas-user] ColumnView In-Reply-To: <000001c517eb$42fd7f30$c6f0fea9@...602...> References: <000001c517eb$42fd7f30$c6f0fea9@...602...> Message-ID: <200502221117.10140.gambas@...1...> On Sunday 20 February 2005 16:37, Frank Berg wrote: > Hi, > > i need an ColumnView where i are abel to show pictures (png) or Text free > on each row or/and col. I wat try with the ColumnView1 but there are only > the first column abel to show an picture (or not?) > > frank Yes. Try the GridView or the TableView insterad. -- Benoit Minisini mailto:gambas at ...1... From neil at ...233... Tue Feb 22 12:54:03 2005 From: neil at ...233... (neil lewis) Date: Tue, 22 Feb 2005 11:54:03 +0000 Subject: [Gambas-user] small bug in ide In-Reply-To: <200502221114.35673.gambas@...1...> References: <42165EA2.9060103@...233...> <200502221114.35673.gambas@...1...> Message-ID: <421B1D5B.1030506@...233...> Hi Benoit, The error was in the arguments to an EXEC statement. The statement originally looked something like EXEC ["-mogrify", "-scale", 350, filename] and this worked fine. It was changed to something like EXEC ["-mogrify", "-scale", 350x350, filename] Obviously the 350x350 part should now be inside quotes, but when I first altered the line I didn't notice the error. The interpreter diagnosed a missing square bracket instead of missing quotation marks, which meant it took a little longer than necessary to spot the real problem. I guess the interpreter is seeing the 350x350 argument without quotes as being part of a separate statement, so it thinks the EXEC statement should have been finished. It would be much more helpful if the interpreter could correctly diagnose that there was a syntax error in the EXEC statement. Like I said, it's just a small usability bug, and not anything substantial but it would be nice if the interpreter could diagnose this sort of error more helpfully. I originally noticed this behaviour on Gambas 0.99RC4, but have since found it on both the current stable and development versions, too. By the way, I think Gambas is progressing really well. It's a very exciting project for very many reasons, not least that it lets people with limited programming experience build real world applications. Also, you must know how often VB has been used to prototype custom applications for Win and I'm sure Gambas will also have a part to play in this sort of role for Linux. Thanks for taking the time to reply. Neil Lewis. Benoit Minisini wrote: >On Friday 18 February 2005 22:31, neil lewis wrote: > > >>Yup. Same problem still exists in current 1.9.3 version. >> >>Neil Lewis. >> >> >> >> > >Can you tell me what code raises an error, which error, and what error message >you want instead ? > >Thanks in advance, > > > From christian.faurebouvard at ...357... Tue Feb 22 09:45:32 2005 From: christian.faurebouvard at ...357... (Christian Faure) Date: Tue, 22 Feb 2005 05:45:32 -0300 Subject: [Gambas-user] Re: Printing Support In-Reply-To: <200502221113.47456.gambas@...1...> References: <200502181757.35760.christian.faurebouvard@...357...> <200502200517.10382.christian.faurebouvard@...357...> <200502221113.47456.gambas@...1...> Message-ID: <200502220545.32243.christian.faurebouvard@...357...> > > Signal #11 is an interpreter segmentation fault. It should never happen. It > means that there is a bug in the interpreter. > > When you get that, try to isolate what code provokes the segfault, and send > me the details. > > Regards, DBReport (Designer and viewer) alpha-0.0.3 are written for gambas 1.0 NOT RUN WITH Gambas2 i'am porting to gambas2 now... i've found a stack overflow in viewer due to change in virtual dispatch i need use the new "SUPER" keyword (new in Gambas2) to avoid an infinite recursion and other object relatives stuff... Regards, From daniel.campos at ...338... Tue Feb 22 13:49:51 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Tue, 22 Feb 2005 13:49:51 +0100 Subject: [Gambas-user] Using FTPClient In-Reply-To: <20050220223904.A43442@...859...> References: <20050220223904.A43442@...859...> Message-ID: <421B2A6F.3020505@...338...> Adrien Hernot escribi?: >Hi! > > I have been trying to use FTP client from inside Gambas to get my FTP account listing and to upload some files to it, but without full success. > The autentification always work, but the data transfer happens only 1 out of 10 times and otherwise fails with a status of -1007 (Connection refused). > >Using ncftp to connect to my site and show th elisting always work, so it is probably not a network problem. > >Can someone help me with that issue? I included part of my code at the bottom. > > > Could you try to connect using the "curl" command line utility? If it fails it is a problem from libcurl, otherwise I should see what's happening in then gb.net.curl component... Regards, D. Campos From sourceforge-raindog2 at ...94... Tue Feb 22 15:47:11 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 22 Feb 2005 09:47:11 -0500 Subject: [Gambas-user] Strange error with arrays In-Reply-To: <421AE893.1060605@...221...> References: <421a3f09.2274.0@...9...> <421AE893.1060605@...221...> Message-ID: <200502220947.11177.sourceforge-raindog2@...94...> On Tuesday 22 February 2005 03:08, Eilert wrote: > > else if (ctype.id == T_ARRAY) > > { > > ERROR_panic("Don't know how to copy arrays"); > > } > However, in the help, this way of introducing arrays is > described, so why shouldn't it work? If it does not work this > way, I'll rewrite them all as array objects, there is no big > problem. Just thought it would be easier this way. I see what you mean. Benoit, would it be possible to remove the internal array functionality, but leave the syntax there so it transparently manipulates array objects behind the scenes? I think we are in for lots of problems like this one with two parallel array implementations. Rob From eilert-sprachen at ...221... Tue Feb 22 18:11:32 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 22 Feb 2005 18:11:32 +0100 Subject: [Gambas-user] Strange error with arrays In-Reply-To: <200502220947.11177.sourceforge-raindog2@...94...> References: <421a3f09.2274.0@...9...> <421AE893.1060605@...221...> <200502220947.11177.sourceforge-raindog2@...94...> Message-ID: <421B67C4.5000800@...221...> Hi Rob, I have re-written everything to array objects, and it runs well this way. Rob schrieb: > On Tuesday 22 February 2005 03:08, Eilert wrote: > >>> else if (ctype.id == T_ARRAY) >>> { >>> ERROR_panic("Don't know how to copy arrays"); >>> } >> >>However, in the help, this way of introducing arrays is >>described, so why shouldn't it work? If it does not work this >>way, I'll rewrite them all as array objects, there is no big >>problem. Just thought it would be easier this way. > > > I see what you mean. Benoit, would it be possible to remove the > internal array functionality, but leave the syntax there so it > transparently manipulates array objects behind the scenes? I > think we are in for lots of problems like this one with two > parallel array implementations. Will be somewhat tricky, just think of multi-dimensional arrays with some value being 0: myarr(0,6) which I had here (changed it to [x * y] instead of [x, y] and made sure that 0 is always turned to 1...) Oh, and I missed Boolean[], so I took Byte[] instead. It works (I thought it won't take as much memory as integer[] :-) ) but would you have done the same? Rolf From amh at ...859... Tue Feb 22 20:11:22 2005 From: amh at ...859... (Adrien Hernot) Date: Tue, 22 Feb 2005 20:11:22 +0100 Subject: [Gambas-user] Using FTPClient In-Reply-To: <421B2A6F.3020505@...338...>; from daniel.campos@...338... on Tue, Feb 22, 2005 at 01:49:51PM +0100 References: <20050220223904.A43442@...859...> <421B2A6F.3020505@...338...> Message-ID: <20050222201122.A15639@...859...> Hi Daniel! I tried the command line utility as you suggested and it behave in the wrong way as well. That is it connects some times and some other times it fails. I use the command: curl ftp://users.cybercity.dk/ -u dsl54234 -l The error message is: curl: (7) Failed to connect to users.cybercity.dk IP number 2: 103 I forgot to say that I am using gambas 0.99 RC4 on a Mandrake 9.2 "curl --version" says: curl 7.10.7 (i586-mandrake-linux-gnu) libcurl/7.10.7 OpenSSL/0.9.7b zlib/1.1.4 I am going to look in there documentation if they are aware of a similar problem. But apart from upgrading libcurl, what are my options now? Cheers, Adrien On Tue, Feb 22, 2005 at 01:49:51PM +0100, Daniel Campos wrote: > Adrien Hernot escribi?: > > >Hi! > > > > I have been trying to use FTP client from inside Gambas to get my FTP account listing and to upload some files to it, but without full success. > > The autentification always work, but the data transfer happens only 1 out of 10 times and otherwise fails with a status of -1007 (Connection refused). > > > >Using ncftp to connect to my site and show th elisting always work, so it is probably not a network problem. > > > >Can someone help me with that issue? I included part of my code at the bottom. > > > > > > > Could you try to connect using the "curl" command line utility? If it fails > it is a problem from libcurl, otherwise I should see what's happening in > then gb.net.curl component... > > Regards, > > D. Campos > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&opick > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From na2492 at ...9... Tue Feb 22 21:02:34 2005 From: na2492 at ...9... (Charlie Reinl) Date: Tue, 22 Feb 2005 21:02:34 00100 Subject: [Gambas-user] Strange error with arrays Message-ID: <421b8fda.1c04.0@...9...> > >Hi Rob, hi Charlie, > >Here you go: form.tgz includes 2 forms which can be displayed. Start the >program (you'll be in the editor) and click on the "open file" icon, >choose directory "formulare". > >First you should try the "ZeugnisZP4.frm", this runs well, so you see >how it should work. Then try the other one, there is a table included. >The table procedure (in elemente.module, called ZeichneTabelle) causes >the error. But there is no indication where exactly the error arises. > >And this looks like a non-implemented feature to me, Charlie: > >> The "Don't know how to copy arrays" exists in gbx_value.c >> at VALUE_class_write as >> >> PUBLIC void VALUE_class_write(CLASS *class, VALUE *value, char *addr, >> CTYPE ctype) >> { >> if (ctype.id == T_OBJECT) >> { >> VALUE_write(value, addr, (ctype.value >= 0) ? >> (TYPE)class->load->class_ref[ctype.value] : T_OBJECT); >> } >> else if (ctype.id == T_ARRAY) >> { >> ERROR_panic("Don't know how to copy arrays"); >> } >> else >> VALUE_write(value, addr, (TYPE)ctype.id); >> } >> >> Would be nice to see your code. >> > >However, in the help, this way of introducing arrays is described, so >why shouldn't it work? If it does not work this way, I'll rewrite them >all as array objects, there is no big problem. Just thought it would be >easier this way. > >Rolf Salut Rolf, sorry on my box, can't run your project, got #11 by every Draw.ForeColor and the Draw.LineStyle in SeiteEinstellen(). Don't know why, never dit something with draw ???? Will have a look, about! Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From daniel.campos at ...338... Tue Feb 22 22:39:14 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Tue, 22 Feb 2005 22:39:14 +0100 Subject: [Gambas-user] Using FTPClient In-Reply-To: <20050222201122.A15639@...859...> References: <20050220223904.A43442@...859...> <421B2A6F.3020505@...338...> <20050222201122.A15639@...859...> Message-ID: <421BA682.6000108@...338...> > >The error message is: >curl: (7) Failed to connect to users.cybercity.dk IP number 2: 103 > >I forgot to say that I am using gambas 0.99 RC4 on a Mandrake 9.2 > >"curl --version" says: >curl 7.10.7 (i586-mandrake-linux-gnu) libcurl/7.10.7 OpenSSL/0.9.7b zlib/1.1.4 > >I am going to look in there documentation if they are aware of a similar problem. >But apart from upgrading libcurl, what are my options now? > >Cheers, >Adrien > > You MUST upgrade libcurl, as I know the 7.10.x versions had still many problems like to one you have. But if using the more recent version you still suffer that problem, you should report it to curl people ( look at http://curl.haxx.se ) , as only they can fix it. It is better that you report it instead of me, as you have access to the ftp server that causes the problem, and surely they will need to test the problem with that server... Regards, D. Campos > > > From sourceforge-raindog2 at ...94... Tue Feb 22 18:55:04 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 22 Feb 2005 12:55:04 -0500 Subject: [Gambas-user] Strange error with arrays In-Reply-To: <421B67C4.5000800@...221...> References: <421a3f09.2274.0@...9...> <200502220947.11177.sourceforge-raindog2@...94...> <421B67C4.5000800@...221...> Message-ID: <200502221255.04166.sourceforge-raindog2@...94...> On Tuesday 22 February 2005 12:11, Eilert wrote: > Will be somewhat tricky, just think of multi-dimensional > arrays with some value being 0: myarr(0,6) which I had here > (changed it to [x * y] instead of [x, y] and made sure that 0 > is always turned to 1...) Actually, I do that by creating an array of Object and assigning a new Array object of the desired type to each of the Object array's elements, so that I can refer to them like this: myArray[x][y] It requires a little more code to initialize them (a for loop) but seems to work fine. I guess this is a technique I brought over from perl, which doesn't have multi-dimensional arrays as such. Rob From eilert-sprachen at ...221... Wed Feb 23 08:23:52 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 23 Feb 2005 08:23:52 +0100 Subject: [Gambas-user] Strange error with arrays In-Reply-To: <421b8fda.1c04.0@...9...> References: <421b8fda.1c04.0@...9...> Message-ID: <421C2F88.1050107@...221...> Ha! You don't have the patch from Benoit! That's true, without that patch, the color switches don't run. Benoit explained it like this: --- Yes. The warning messages, and the bug (I think) come from the fact that you try to create a DrawingArea with width=height=0 px. I patched the DrawingArea widget, so that when it is cached, the internal bitmap cache is always at least one pixel by one pixel. Here is the patch... --- What he did not explain is how I could avoid this. Maybe I got him wrong, but if you see the reason just tell me. Well, I'll include the patch. If you want it, put it into the src/lib/qt and compile Gambas with it. Once you've got my program running, you have to press F9 to switch from editor into preview and back. Just forgot to mention that earlier :-) Rolf Charlie Reinl schrieb: > Salut Rolf, > > sorry on my box, can't run your project, got #11 by every > Draw.ForeColor and the Draw.LineStyle in SeiteEinstellen(). > > Don't know why, never dit something with draw ???? > Will have a look, about! > > Amicalment > Charlie > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: CDrawingArea.cpp URL: From amh at ...859... Wed Feb 23 08:44:17 2005 From: amh at ...859... (Adrien Hernot) Date: Wed, 23 Feb 2005 08:44:17 +0100 Subject: [Gambas-user] Using FTPClient In-Reply-To: <421BA682.6000108@...338...>; from daniel.campos@...338... on Tue, Feb 22, 2005 at 10:39:14PM +0100 References: <20050220223904.A43442@...859...> <421B2A6F.3020505@...338...> <20050222201122.A15639@...859...> <421BA682.6000108@...338...> Message-ID: <20050223084417.A32519@...859...> In fact, It works perfectly well with a newer version of the curl library. At least using the curl command line utility. But the upgrade of libcurl does not seem to affect my Gambas apllication. Is the libcurl statically linked in gambas? Thanks you for your support, Daniel. Adrien On Tue, Feb 22, 2005 at 10:39:14PM +0100, Daniel Campos wrote: > > > > >The error message is: > >curl: (7) Failed to connect to users.cybercity.dk IP number 2: 103 > > > >I forgot to say that I am using gambas 0.99 RC4 on a Mandrake 9.2 > > > >"curl --version" says: > >curl 7.10.7 (i586-mandrake-linux-gnu) libcurl/7.10.7 OpenSSL/0.9.7b zlib/1.1.4 > > > >I am going to look in there documentation if they are aware of a similar problem. > >But apart from upgrading libcurl, what are my options now? > > > >Cheers, > >Adrien > > > > > > You MUST upgrade libcurl, as I know the 7.10.x versions had still many > problems > like to one you have. But if using the more recent version you still > suffer that problem, > you should report it to curl people ( look at http://curl.haxx.se ) , as > only they can > fix it. It is better that you report it instead of me, as you have > access to the ftp > server that causes the problem, and surely they will need to test the > problem with > that server... > > > Regards, > > D. Campos > > > > > > > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From danielcampos at ...282... Wed Feb 23 08:58:04 2005 From: danielcampos at ...282... (Daniel Campos) Date: Wed, 23 Feb 2005 08:58:04 +0100 Subject: [Gambas-user] Using FTPClient In-Reply-To: <20050223084417.A32519@...859...> References: <20050220223904.A43442@...859...> <421B2A6F.3020505@...338...> <20050222201122.A15639@...859...> <421BA682.6000108@...338...> <20050223084417.A32519@...859...> Message-ID: <421C378C.7080106@...282...> Adrien Hernot escribi?: >In fact, It works perfectly well with a newer version of the curl library. >At least using the curl command line utility. > >But the upgrade of libcurl does not seem to affect my Gambas apllication. Is the libcurl statically linked in gambas? > >Thanks you for your support, Daniel. > >Adrien > > > > No, all in Gambas is dinamically linked. You should remove the old library from your system and may be create symbolic links to the new one: for example, if you look at /usr/lib and you find something like : /usr/lib/libcurl.a /usr/lib/libcurl.so.2 /usr/lib/libcurl.so.3.0.0* /usr/lib/libcurl.la* /usr/lib/libcurl.so.2.0.2* /usr/lib/libcurl.so /usr/lib/libcurl.so.3 You should remove (or better backup it in another safe place) all the *.so.2 files and create symlinks with these names to the *.so.3 ones, and then run 'ldconfig'. If even this does not work, you should recompile the gb.net.curl component if you installed Gambas from sources. Make './reconf' and './configure' at {gambas sources} folder, and, as root, go to {gambas sources/src/lib/net/curl} and perform 'make install'. gambas sources folder. Regards, D. Campos From eilert-sprachen at ...221... Wed Feb 23 08:55:38 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 23 Feb 2005 08:55:38 +0100 Subject: [Gambas-user] Strange error with arrays In-Reply-To: <200502221255.04166.sourceforge-raindog2@...94...> References: <421a3f09.2274.0@...9...> <200502220947.11177.sourceforge-raindog2@...94...> <421B67C4.5000800@...221...> <200502221255.04166.sourceforge-raindog2@...94...> Message-ID: <421C36FA.8000101@...221...> Hi Rob, sounds interesting, > Actually, I do that by creating an array of Object and assigning > a new Array object of the desired type to each of the Object > array's elements, so that I can refer to them like this: > > myArray[x][y] > > It requires a little more code to initialize them (a for loop) > but seems to work fine. I guess this is a technique I brought > over from perl, which doesn't have multi-dimensional arrays as > such. but could you post an example? I can't figure out where you make the connection between the array of objects and the object array. Tried this: DIM myArrObj AS Object[] myArrObj = NEW Object[] or can I just use DIM myArrObj AS NEW Object[] But what now? Rolf From gambas at ...1... Wed Feb 23 11:02:51 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Feb 2005 11:02:51 +0100 Subject: [Gambas-user] Strange error with arrays In-Reply-To: <421C2F88.1050107@...221...> References: <421b8fda.1c04.0@...9...> <421C2F88.1050107@...221...> Message-ID: <200502231102.51473.gambas@...1...> On Wednesday 23 February 2005 08:23, Eilert wrote: > Ha! > > You don't have the patch from Benoit! That's true, without that patch, > the color switches don't run. Benoit explained it like this: > > --- > Yes. The warning messages, and the bug (I think) come from the fact that > you > try to create a DrawingArea with width=height=0 px. > > I patched the DrawingArea widget, so that when it is cached, the internal > bitmap cache is always at least one pixel by one pixel. > > Here is the patch... > --- > > What he did not explain is how I could avoid this. Maybe I got him > wrong, but if you see the reason just tell me. > I don't know. You must put a breakpoint on the function start to see when exactly it is called, and why you set the DrawingArea width and height to zero sometimes. -- Benoit Minisini mailto:gambas at ...1... From na2492 at ...9... Wed Feb 23 11:17:22 2005 From: na2492 at ...9... (Charlie Reinl) Date: Wed, 23 Feb 2005 11:17:22 00100 Subject: [Gambas-user] Strange error with arrays Message-ID: <421c5832.11ec.0@...9...> >On Wednesday 23 February 2005 08:23, Eilert wrote: >> Ha! >> >> You don't have the patch from Benoit! That's true, without that patch, >> the color switches don't run. Benoit explained it like this: >> >> --- >> Yes. The warning messages, and the bug (I think) come from the fact that >> you >> try to create a DrawingArea with width=height=0 px. >> >> I patched the DrawingArea widget, so that when it is cached, the internal >> bitmap cache is always at least one pixel by one pixel. >> >> Here is the patch... >> --- >> >> What he did not explain is how I could avoid this. Maybe I got him >> wrong, but if you see the reason just tell me. >> > >I don't know. You must put a breakpoint on the function start to see when >exactly it is called, and why you set the DrawingArea width and height to >zero sometimes. > >-- >Benoit Minisini >mailto:gambas at ...1... Salut Rolf, thanks for the patch, will try it. What I figured out was , when I set the Seite.cached property to false it ran, but I can't see the result only for a short moment. Will see what happend with the patch. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From eilert-sprachen at ...221... Wed Feb 23 13:27:48 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 23 Feb 2005 13:27:48 +0100 Subject: [Gambas-user] Problem: Size of printed image Message-ID: <421C76C4.1020103@...221...> Now, everything runs perfect in my program even with printing, i. e. all things I see in the preview appear on the paper at correct positions and in correct sizes. Only images don't print correct. In the original VB program, my firm's logo appears "real big", because it was scanned in a rather high resolution. So I introduced a percentage to scale the image to a size which looks good in the document. Now in Gambas, when I do not scale the image it will appear only about 10 % larger than wanted, not "real big". When I scale it down with the formula from the VB pendant, it becomes tiny or even disappears. In VB the code reads about like this: pWidth = Form1.Image1.Width pHeight = Form1.Image1.Height pWidth = pWidth / 100 * percent pHeight = pHeight / 100 * percent where percent is the percentage from the form (user-given). Well, I tried to do it like this in Gambas, but it doesn't work, as described above. In the preview, it works well - same algorithm, but Draw.Begin(Preview) instead of Draw.Begin(Printer). In Gambas (here it is myImage) it reads Draw.Image(myImage.Stretch(pHeight, pWidth), x, y) What I think is that in VB the scale is somewhat different than in Gambas. If you ask Gambas about the size of the image, it gives 520 for Width and 640 for Height. But what 520??? Pixels? It should be much more, as it was scanned with 600 dpi as far as I remember. That's why it's printed so large in VB if not scaled down. Any ideas? Rolf From gambas at ...1... Wed Feb 23 13:50:12 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Feb 2005 13:50:12 +0100 Subject: [Gambas-user] Problem: Size of printed image In-Reply-To: <421C76C4.1020103@...221...> References: <421C76C4.1020103@...221...> Message-ID: <200502231350.12229.gambas@...1...> On Wednesday 23 February 2005 13:27, Eilert wrote: > Now, everything runs perfect in my program even with printing, i. e. all > things I see in the preview appear on the paper at correct positions and > in correct sizes. > > Only images don't print correct. In the original VB program, my firm's > logo appears "real big", because it was scanned in a rather high > resolution. So I introduced a percentage to scale the image to a size > which looks good in the document. > > Now in Gambas, when I do not scale the image it will appear only about > 10 % larger than wanted, not "real big". When I scale it down with the > formula from the VB pendant, it becomes tiny or even disappears. > > In VB the code reads about like this: > > pWidth = Form1.Image1.Width > pHeight = Form1.Image1.Height > pWidth = pWidth / 100 * percent > pHeight = pHeight / 100 * percent > > where percent is the percentage from the form (user-given). > > Well, I tried to do it like this in Gambas, but it doesn't work, as > described above. In the preview, it works well - same algorithm, but > Draw.Begin(Preview) instead of Draw.Begin(Printer). > > In Gambas (here it is myImage) it reads > > > Draw.Image(myImage.Stretch(pHeight, pWidth), x, y) > > What I think is that in VB the scale is somewhat different than in > Gambas. If you ask Gambas about the size of the image, it gives 520 for > Width and 640 for Height. But what 520??? Pixels? It should be much > more, as it was scanned with 600 dpi as far as I remember. That's why > it's printed so large in VB if not scaled down. > > Any ideas? > > Rolf > All Width and Height properties are in pixels. Check the size of your picture with GIMP. Form.Image1.Width is the width of the Image1 control. It has nothing to do with the width of the picture in it. Use Form.Image1.Picture.Width instead. Regards, -- Benoit Minisini mailto:gambas at ...1... From ronstk at ...239... Wed Feb 23 15:55:27 2005 From: ronstk at ...239... (ron) Date: Wed, 23 Feb 2005 15:55:27 +0100 Subject: [Gambas-user] GambasForge In-Reply-To: <200502201934.25492.gambasfr@...11...> References: <200502201934.25492.gambasfr@...11...> Message-ID: <200502231555.28109.ronstk@...239...> On Sunday 20 February 2005 19:34, Bodard Fabien wrote: > Hi to all > > I've finished to update the gambasforge site and it work fine now without > javascript. I think rob will be happy for that. > Totally without? :D It looks much betterrrrrrrr now. > You can add all the code you want and now i'm going to work on the > possibility to change the update information or delete it ! ... > > I know they are many spelling fault. But before to correct anything i need > to change the string place to a separate file with the define stuff. > So after we can localize the site. Happens me tu :D > > Send me mails at gambasfr at ...11... And add the 'gambasforge' word to the > subject ... so i can filter the sp?cific mail ! > > Fabien Bodard > After the firewall changes made by Leo to his server, the site is now working for me directly. No proxy server in old IP range anymore :D Thanks Leo, the phone talk was nice. Now running mandrake 10.1 OE SuSE9.2 in the background, find out how to get it ?working? in the bootmenu. I?m very busy now, so have less time to play with gambas :( From amh at ...859... Wed Feb 23 20:51:55 2005 From: amh at ...859... (Adrien Hernot) Date: Wed, 23 Feb 2005 20:51:55 +0100 Subject: [Gambas-user] Using FTPClient In-Reply-To: <421C378C.7080106@...282...>; from danielcampos@...282... on Wed, Feb 23, 2005 at 08:58:04AM +0100 References: <20050220223904.A43442@...859...> <421B2A6F.3020505@...338...> <20050222201122.A15639@...859...> <421BA682.6000108@...338...> <20050223084417.A32519@...859...> <421C378C.7080106@...282...> Message-ID: <20050223205155.A45119@...859...> Hi Again, I have now installed libcurl-7.11.0 and curl-7.11.0. The connection to the FTP server works at each attemp with the curl utility but fails very often with gambas. I have only one libcurl, it is /usr/lib/libcurl.so.2.0.2 and a synlink to it named libcurl.so.2. I made sure that /usr/bin/curl uses that lib and also that /usr/lib/gambas/lib.gb.net.curl.so and similar uses that lib (using the ldd command). I have not tryed to recompile Gambas from source. But how can that help? Cheers, Adrien On Wed, Feb 23, 2005 at 08:58:04AM +0100, Daniel Campos wrote: > Adrien Hernot escribi?: > > >In fact, It works perfectly well with a newer version of the curl library. > >At least using the curl command line utility. > > > >But the upgrade of libcurl does not seem to affect my Gambas apllication. Is the libcurl statically linked in gambas? > > > >Thanks you for your support, Daniel. > > > >Adrien > > > > > > > > > No, all in Gambas is dinamically linked. You should remove the old > library from your system > and may be create symbolic links to the new one: for example, if you > look at /usr/lib and you > find something like : > > /usr/lib/libcurl.a > /usr/lib/libcurl.so.2 > /usr/lib/libcurl.so.3.0.0* > /usr/lib/libcurl.la* > /usr/lib/libcurl.so.2.0.2* > /usr/lib/libcurl.so > /usr/lib/libcurl.so.3 > > You should remove (or better backup it in another safe place) all the > *.so.2 files and > create symlinks with these names to the *.so.3 ones, and then run > 'ldconfig'. > > If even this does not work, you should recompile the gb.net.curl component > if you installed Gambas from sources. Make './reconf' and './configure' > at {gambas sources} folder, > and, as root, go to {gambas sources/src/lib/net/curl} and perform 'make > install'. > gambas sources folder. > > Regards, > > D. Campos > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&opick > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ronstk at ...239... Thu Feb 24 15:45:51 2005 From: ronstk at ...239... (ron) Date: Thu, 24 Feb 2005 15:45:51 +0100 Subject: [Gambas-user] Create new folder for project Message-ID: <200502241545.51317.ronstk@...239...> I have gambas 1.0.3 installed on mandrake 10.1 OE :) Start a new project and arriving in my home directory. The root entry is selected to be the place where it must be. Then I want to create a folder for projects and press the new folder button. I know, root?, but this should be for 'root' The folder is created but it fails and can't changed to real name. Select a existing folder and press 'New folder' works and creates it just inside that folder, so my asumption to chose 'root' was correct. When I click in the white space below the last folder the highlite is gone of the previous selected folder and press the 'New Folder' it is created in the previous selected folder. I belive it should work as do create in the selected folder, that it is highlited. If none is highlited it should not work at al, or made in the root of the visible tree, aka 'root' here. It is not a matter of rights/permisions as the folder is created, the popup warning could be, regarding the rights, but then ? Maybe it is just the name 'New Folder 2' contains a space and is not quoted. Thanks rob for the precompiled mandrake, I can't, missing the -devel ATM. Sorry for the to big screenshot, but missing some utils as I had with SuSE. -------------- next part -------------- A non-text attachment was scrubbed... Name: gambaserror3.jpg Type: image/jpeg Size: 29824 bytes Desc: not available URL: From ronstk at ...239... Thu Feb 24 16:28:54 2005 From: ronstk at ...239... (ron) Date: Thu, 24 Feb 2005 16:28:54 +0100 Subject: [Gambas-user] Wish: Items property for Combobox and ColumnView +devirates. Message-ID: <200502241628.54605.ronstk@...239...> sub fillbox(theCBox as combobox, CBselect as integer) WITH ComboBox1 'or theCBox .Clear .Add("koffie") .Add("thee") .Add("limonade") .Sorted=TRUE .ReadOnly=TRUE .Text= combobox1[1].Text <--- in this case the with does not make sense .Text= theCBox[1].text .Text= .Items(1).text <--- this is what I wish .Text= .Items(CBselect).Text END WITH end I wish the tree/list/column view have a .Items() property Also the Combobox and Listbox, or say where the controlobject[]. exist. It is not posible to get the Combobox[1] items in a With object. My imagination tells me that object.Items(index as integer) is the same as using object[index] or usage for the .Items(x {,y{,z}} ] can implement the object[x {,y {,z}} ] ? In fact VB works the same way. msListbox(rowindex).text or msListbox.Items(rowindex).text note the square brackets versus the parenthesis. From Karl.Reinl at ...9... Thu Feb 24 22:19:14 2005 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 24 Feb 2005 22:19:14 +0100 Subject: [Gambas-user] BIG BUG in IDE or Dialog.Filter Message-ID: <200502242219.14135.Karl.Reinl@...9...> Salut, if you set Dialog.Filter like selExisting.Filters = ("Text files") & "|*.txt,*.text,*.html|" & ("All files") & "|*.*" and you choose 'All files' , you don't see files without a DOT in , like COPYING or ChangeLog. So all (the most of them) Dialog.Filter in the IDE for 'All files' have to be * or the Dialog.Filter has to be changed, to show even files without a DOT in! This is on gambas-1.0.3 Amicalment Charlie From bwells at ...475... Fri Feb 25 01:41:07 2005 From: bwells at ...475... (Brant Wells) Date: Thu, 24 Feb 2005 19:41:07 -0500 Subject: [Gambas-user] gbRawSocket Message-ID: <200502241941.08035.bwells@...475...> Hi All... I have here a neat little gem for anyone trying to create (or decode) their own transport protocol... It's nothing fancy, IE: no encryption, etc... It listens on a configurable port and will connect you to the server, where in turn you connect your client to your local PC, and the port you assigned... And it displays the data in separate text boxes... It was programmed in Gambas2 (v1.9.2)... I sincerely hope that the code I'm sharing is helping somebody...!!! I wrote this, because I am in the process of writing an IRCd with Gambas... If anybody would like to help, or just wants to be notified when there is a home page for the system, please let me know... Thanks! ~Brant -------------- next part -------------- A non-text attachment was scrubbed... Name: gbRawSocket-0.0.1.tar.gz Type: application/x-tgz Size: 1367 bytes Desc: not available URL: From gambasfr at ...11... Fri Feb 25 20:06:53 2005 From: gambasfr at ...11... (Bodard Fabien) Date: Fri, 25 Feb 2005 20:06:53 +0100 Subject: [Gambas-user] BIG BUG in IDE or Dialog.Filter In-Reply-To: <200502242219.14135.Karl.Reinl@...9...> References: <200502242219.14135.Karl.Reinl@...9...> Message-ID: <200502252006.53208.gambasfr@...11...> Le jeudi 24 F?vrier 2005 22:19, Charlie Reinl a ?crit?: > Salut, > > if you set Dialog.Filter like > selExisting.Filters = ("Text files") & "|*.txt,*.text,*.html|" & ("All > files") & "|*.*" > and you choose 'All files' , you don't see files without a DOT in , like > COPYING or ChangeLog. Hi Charlie, it's not a bug but a feature :) try selExisting.Filters = ("Text files") & "|*.txt,*.text,*.html|" & ("All files") & "|*" Because you say at the system to find a file with an extention file-point-ext = *.* me i say find all file = * that's all Regards, Fabien Bodard > > So all (the most of them) Dialog.Filter in the IDE for 'All files' have to > be * or the Dialog.Filter has to be changed, to show even files without a > DOT in! > > This is on gambas-1.0.3 > > Amicalment > Charlie > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From na2492 at ...9... Fri Feb 25 21:38:31 2005 From: na2492 at ...9... (Charlie Reinl) Date: Fri, 25 Feb 2005 21:38:31 00100 Subject: [Gambas-user] BIG BUG in IDE or Dialog.Filter Message-ID: <421f8cc7.1959.0@...9...> >Le jeudi 24 F?vrier 2005 22:19, Charlie Reinl a ?crit?: >> Salut, >> >> if you set Dialog.Filter like >> selExisting.Filters = ("Text files") & "|*.txt,*.text,*.html|" & ("All >> files") & "|*.*" >> and you choose 'All files' , you don't see files without a DOT in , like >> COPYING or ChangeLog. > >Hi Charlie, > >it's not a bug but a feature :) >try >selExisting.Filters = ("Text files") & "|*.txt,*.text,*.html|" & ("All > files") & "|*" > >Because you say at the system to find a file with an extention >file-point-ext = *.* >me i say find all file = * > >that's all > >Regards, >Fabien Bodard > >> >> So all (the most of them) Dialog.Filter in the IDE for 'All files' have to >> be * or the Dialog.Filter has to be changed, to show even files without a >> DOT in! >> >> This is on gambas-1.0.3 >> >> Amicalment >> Charlie >> Sorry Fabian, I do not understand what you mean. I said/say the *.* is wrong, because it don't show you in Dialog file, who have not a DOT in name. like COPYING or Changlog. So the right has to be a simple * With *.* you see only files with at less one DOT in name. You see 'my.class' or even 'this.file.is.shown' with '*.*' But if you want to see 'COPYING' you have to use '*' So I do not know where the bug is. In the IDE Filters or in the gambas Dialog function. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From gambasfr at ...11... Fri Feb 25 22:03:32 2005 From: gambasfr at ...11... (Bodard Fabien) Date: Fri, 25 Feb 2005 22:03:32 +0100 Subject: [Gambas-user] BIG BUG in IDE or Dialog.Filter In-Reply-To: <421f8cc7.1959.0@...9...> References: <421f8cc7.1959.0@...9...> Message-ID: <200502252203.32810.gambasfr@...11...> Le vendredi 25 F?vrier 2005 22:38, Charlie Reinl a ?crit?: > >Le jeudi 24 F?vrier 2005 22:19, Charlie Reinl a ?crit?: > >> Salut, > >> > >> if you set Dialog.Filter like > >> selExisting.Filters = ("Text files") & "|*.txt,*.text,*.html|" & ("All > >> files") & "|*.*" > >> and you choose 'All files' , you don't see files without a DOT in , > > like > > >> COPYING or ChangeLog. > > > >Hi Charlie, > > > >it's not a bug but a feature :) > >try > >selExisting.Filters = ("Text files") & "|*.txt,*.text,*.html|" & ("All > > files") & "|*" > > > >Because you say at the system to find a file with an extention > >file-point-ext = *.* > >me i say find all file = * > > > >that's all > > > >Regards, > >Fabien Bodard > > > >> So all (the most of them) Dialog.Filter in the IDE for 'All files' have > > to > > >> be * or the Dialog.Filter has to be changed, to show even files > > without a > > >> DOT in! > >> > >> This is on gambas-1.0.3 > >> > >> Amicalment > >> Charlie > > Sorry Fabian, > > I do not understand what you mean. > I said/say the *.* is wrong, because it don't show you in Dialog file, > who have not a DOT in name. like COPYING or Changlog. > So the right has to be a simple * > With *.* you see only files with at less one DOT in name. > You see 'my.class' or even 'this.file.is.shown' with '*.*' > But if you want to see 'COPYING' you have to use '*' > > So I do not know where the bug is. In the IDE Filters or in the > gambas Dialog function. oups... sorry i'm so tired ...so i haven't read your mailcorrectly ! i have explain the same thing than you ! the bug is in the ide... just do a find/replace from *.* to * on all the gambas ide code And benoit, if you heard me, please do the same thing ! Bug fixed ! Thank Charlie > Amicalment > Charlie > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=Click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From njmurphy1 at ...734... Sat Feb 26 03:39:36 2005 From: njmurphy1 at ...734... (njmurphy1 at ...734...) Date: Fri, 25 Feb 2005 18:39:36 -0800 Subject: [Gambas-user] BIG BUG in IDE or Dialog.Filter Message-ID: <200502251839.36250.njmurphy1@...734...> Hi Charlie That's not a bug it's UNIX. The "*.*" doesn't mean "All Files", it means all files that have zero or more characters before a "." and zero or more characters after a ".". The correct expression is to use a "*". This means give me all files with zero or more characters. You might want to google about regular expressions for a more indepth explanation. Joseph From sourceforge-raindog2 at ...94... Sat Feb 26 05:10:31 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 25 Feb 2005 23:10:31 -0500 Subject: [Gambas-user] BIG BUG in IDE or Dialog.Filter In-Reply-To: <200502251839.36250.njmurphy1@...734...> References: <200502251839.36250.njmurphy1@...734...> Message-ID: <200502252310.31487.sourceforge-raindog2@...94...> On Friday 25 February 2005 21:39, njmurphy1 at ...734... wrote: > That's not a bug it's UNIX. The "*.*" doesn't mean "All > Files", it means all files that have zero or more characters In this case, though, it is an IDE bug, because "All files (*.*)" is appropriate for Windows systems, but Gambas is a Unixy program and it should be "All files (*)". Rob From ronstk at ...239... Sat Feb 26 07:26:59 2005 From: ronstk at ...239... (ron) Date: Sat, 26 Feb 2005 07:26:59 +0100 Subject: [Gambas-user] Fakebas Mandrake Message-ID: <200502260726.59316.ronstk@...239...> Hi Rob, I just installed Fakebas and found the menu entry under: More Aplications/Development/Development environments/Fakebas it shoulde be More Aplications/Development/Development Environments/Fakebas This is the place Gambas is installed, and other stuff. :D The diff is the capital E in environments. Grtz Ron. BTW If I chose the KDE menu it is not there, Gambas/Fakebas. The Bittorrent however from Mandrake is in the KDE menu but not in Mandrake menu. The same shit behaviour as SuSE :D From sourceforge-raindog2 at ...94... Sat Feb 26 07:45:40 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 26 Feb 2005 01:45:40 -0500 Subject: [Gambas-user] Fakebas Mandrake In-Reply-To: <200502260726.59316.ronstk@...239...> References: <200502260726.59316.ronstk@...239...> Message-ID: <200502260145.40363.sourceforge-raindog2@...94...> On Saturday 26 February 2005 01:26, ron wrote: > I just installed Fakebas and found the menu entry under: > More Aplications/Development/Development environments/Fakebas > it shoulde be > More Aplications/Development/Development Environments/Fakebas > This is the place Gambas is installed, and other stuff. :D > The diff is the capital E in environments. I think that may actually be a bug in my original Gambas packages, because I packaged Fakebas using the Gambas IDE's packaging wizard and as far as I know it uses the real Mandrake list of categories. Do you know how to find out which one is "the right one"? Rob From gambasfr at ...11... Sat Feb 26 15:57:03 2005 From: gambasfr at ...11... (Bodard Fabien) Date: Sat, 26 Feb 2005 15:57:03 +0100 Subject: [Gambas-user] BIG BUG in IDE or Dialog.Filter In-Reply-To: <200502251839.36250.njmurphy1@...734...> References: <200502251839.36250.njmurphy1@...734...> Message-ID: <200502261557.03843.gambasfr@...11...> Le samedi 26 F?vrier 2005 03:39, njmurphy1 at ...734... a ?crit?: > Hi Charlie > > That's not a bug it's UNIX. The "*.*" doesn't mean "All Files", it means > all files that have zero or more characters before a "." and zero or more > characters after a ".". The correct expression is to use a "*". This > means give me all files with zero or more characters. You might want to > google about regular expressions for a more indepth explanation. > > Joseph hum ... i've already say that and charlie say the same think in fact..; i think it's time to close this message tree arm. > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From na2492 at ...9... Sat Feb 26 22:40:31 2005 From: na2492 at ...9... (Charlie Reinl) Date: Sat, 26 Feb 2005 22:40:31 00100 Subject: [Gambas-user] BIG BUG in IDE or Dialog.Filter Message-ID: <4220eccf.6933.0@...9...> I fixed and dated up the extented IDE for gambas-1.0.2 and gambas-1.0.3 at http://www.binara.com/gambas-wiki/bin/view/Gambas/ForGambas-102 Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From Karl.Reinl at ...9... Sat Feb 26 23:40:04 2005 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 26 Feb 2005 23:40:04 +0100 Subject: [Gambas-user] TableView PB's Message-ID: <200502262340.04962.Karl.Reinl@...9...> Salut Benoit, need to know, on which Row/Column I have a mousedown or click event. Inside the TableView I have that with row,column. But whats about the columns-headers and rows-headers, get always the last row/column of the last pressed row/columns value from inside. what I wana do is, on mouse-down in a cell inside the TableView , I want to edit the celles value, that workes fine, with row,col I find the cells value . a mouse-down on Columns-Header, should raise a searchbox to find the value given to the column where I clicked the header ? But the value given back after a header-mouse_down is wrong. As I said it gives back the last Value from inside the TV. Any hinds for that ? Amicalment Charlie From ronstk at ...239... Sun Feb 27 04:06:24 2005 From: ronstk at ...239... (ron) Date: Sun, 27 Feb 2005 04:06:24 +0100 Subject: [Gambas-user] TableView PB's In-Reply-To: <200502262340.04962.Karl.Reinl@...9...> References: <200502262340.04962.Karl.Reinl@...9...> Message-ID: <200502270406.25075.ronstk@...239...> On Saturday 26 February 2005 23:40, Charlie Reinl wrote: > Salut Benoit, > > need to know, on which Row/Column I have a mousedown or click event. > > Inside the TableView I have that with row,column. > > But whats about the columns-headers and rows-headers, get always the last > row/column of the last pressed row/columns value from inside. > > what I wana do is, on mouse-down in a cell inside the TableView , I want to > edit the celles value, that workes fine, with row,col I find the cells > value . > a mouse-down on Columns-Header, should raise a searchbox to find the value > given to the column where I clicked the header ? > But the value given back after a header-mouse_down is wrong. As I said it > gives back the last Value from inside the TV. > > Any hinds for that ? > > Amicalment > Charlie > Use the RowAt() and ColAt() function. xpos=mouse.x if rowheader is visible then add/substract the width to it ypos=mouse.y if columnheader is visible add/substract the height of it I'm unsure it was add/substract and can't look atm in the code where I have used it. RowAt(ypos) returns the actual rownumber in the table view and ColAt(xpos) returns the column number I had in a very long time ago the same problem and add this 2 functions and they where acepted by benoit. :) row=tbv.RowAt(ypos + (tbv.columnheader.visible * tbv.columnheader.height) ) .visible returns true/false and is -1 or 0 :) Ron From ronstk at ...239... Sun Feb 27 04:21:08 2005 From: ronstk at ...239... (ron) Date: Sun, 27 Feb 2005 04:21:08 +0100 Subject: [Gambas-user] Fakebas Mandrake In-Reply-To: <200502260145.40363.sourceforge-raindog2@...94...> References: <200502260726.59316.ronstk@...239...> <200502260145.40363.sourceforge-raindog2@...94...> Message-ID: <200502270421.08862.ronstk@...239...> On Saturday 26 February 2005 07:45, Rob wrote: > On Saturday 26 February 2005 01:26, ron wrote: > > I just installed Fakebas and found the menu entry under: > > More Aplications/Development/Development environments/Fakebas > > it shoulde be > > More Aplications/Development/Development Environments/Fakebas > > This is the place Gambas is installed, and other stuff. :D > > The diff is the capital E in environments. > > I think that may actually be a bug in my original Gambas > packages, because I packaged Fakebas using the Gambas IDE's > packaging wizard and as far as I know it uses the real Mandrake > list of categories. Do you know how to find out which one is > "the right one"? > > Rob > This where the entries after freshinstall: m More Aplications/Development/Development Environments e More Aplications/Development/Development Environments/Gambas e More Aplications/Development/Development Environments/IDLE m More Aplications/Development/Development environments/Tools e More Aplications/Development/Development environments/Tools/Gdb Yours apear now on top of these as: m More Aplications/Development/Development environments e More Aplications/Development/Development environments/Fakebas m=menu e=entry From sourceforge-raindog2 at ...94... Sun Feb 27 18:21:21 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 27 Feb 2005 12:21:21 -0500 Subject: [Gambas-user] Fakebas Mandrake In-Reply-To: <200502270421.08862.ronstk@...239...> References: <200502260726.59316.ronstk@...239...> <200502260145.40363.sourceforge-raindog2@...94...> <200502270421.08862.ronstk@...239...> Message-ID: <200502271221.21919.sourceforge-raindog2@...94...> On Saturday 26 February 2005 22:21, ron wrote: > > Mandrake list of categories. Do you know how to find out > > which one is "the right one"? > This where the entries after freshinstall: Well, we've established that fakebas (created by the Gambas package manager) and gdb have the same category, whereas Gambas (created by me, by hand) and IDLE have the same category. I take this to mean there is no "correct" category, and different packagers do things inconsistently. But we're still no closer to finding out which is "the right one". Rob From karl.reinl at ...9... Mon Feb 28 00:00:48 2005 From: karl.reinl at ...9... (Charlie) Date: Mon, 28 Feb 2005 00:00:48 +0100 Subject: [Gambas-user] TableView PB's References: <200502262340.04962.Karl.Reinl@...9...> <200502270406.25075.ronstk@...239...> Message-ID: <42225120.8080303@...9...> ron schrieb: >On Saturday 26 February 2005 23:40, Charlie Reinl wrote: > > >>Salut Benoit, >> >>need to know, on which Row/Column I have a mousedown or click event. >> >>Inside the TableView I have that with row,column. >> >>But whats about the columns-headers and rows-headers, get always the last >>row/column of the last pressed row/columns value from inside. >> >>what I wana do is, on mouse-down in a cell inside the TableView , I want to >>edit the celles value, that workes fine, with row,col I find the cells >>value . >> a mouse-down on Columns-Header, should raise a searchbox to find the value >>given to the column where I clicked the header ? >>But the value given back after a header-mouse_down is wrong. As I said it >>gives back the last Value from inside the TV. >> >>Any hinds for that ? >> >>Amicalment >>Charlie >> >> >> > >Use the RowAt() and ColAt() function. > >xpos=mouse.x >if rowheader is visible then add/substract the width to it > >ypos=mouse.y >if columnheader is visible add/substract the height of it > >I'm unsure it was add/substract and can't look atm in the code >where I have used it. > >RowAt(ypos) returns the actual rownumber in the table view and >ColAt(xpos) returns the column number >I had in a very long time ago the same problem and add this 2 functions >and they where acepted by benoit. :) > >row=tbv.RowAt(ypos + (tbv.columnheader.visible * tbv.columnheader.height) ) >.visible returns true/false and is -1 or 0 :) > > >Ron > > Thanks Ron, that was what I needed. Amicalment charlie From t.kleindienst at ...20... Mon Feb 28 15:27:22 2005 From: t.kleindienst at ...20... (Thomas Kleindienst) Date: Mon, 28 Feb 2005 14:27:22 +0000 Subject: [Gambas-user] Handle Binary Data with gb.db Message-ID: <200502281427.22466.t.kleindienst@...20...> Hello List! Is there any possibility to write a blob into a database? I've binary information (it's a png-file) in a byte[] array. I want to store this in my database as a blob, but I don't know how to do it with gambas... Any help appreciated... btw... Is there a possibility for image or picture to load the image not from file but from byte[] ? Thanks and regards, Thomas From naveenagrawal at ...43... Mon Feb 28 18:01:13 2005 From: naveenagrawal at ...43... (Naveen Agarawal) Date: Mon, 28 Feb 2005 09:01:13 -0800 (PST) Subject: [Gambas-user] gambas and mysql In-Reply-To: <200502281427.22466.t.kleindienst@...20...> Message-ID: <20050228170113.71530.qmail@...866...> Hello I am trying to write a small application using mysql and gambas. I have got three forms. First form is a login form which asks the user to login using a user name and a password. It opens another form if the user gives correct user name and password. In the second form I have a combobox to be populated with a field in a table. My problem is that the variable conn which I defined in the first form is not visible in second and third form. I have added the line Private conn as new connection as the first line. Any solution? Thanks in advance Thomas Kleindienst wrote: Hello List! Is there any possibility to write a blob into a database? I've binary information (it's a png-file) in a byte[] array. I want to store this in my database as a blob, but I don't know how to do it with gambas... Any help appreciated... btw... Is there a possibility for image or picture to load the image not from file but from byte[] ? Thanks and regards, Thomas ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Every body has his shares of ups and downs but one should never say no to life. --------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.kleindienst at ...20... Mon Feb 28 19:03:17 2005 From: t.kleindienst at ...20... (Thomas Kleindienst) Date: Mon, 28 Feb 2005 18:03:17 +0000 Subject: [Gambas-user] gambas and mysql In-Reply-To: <20050228170113.71530.qmail@...866...> References: <20050228170113.71530.qmail@...866...> Message-ID: <200502281803.18038.t.kleindienst@...20...> Dear Naveen, may you please not reply to my mail when in fact starting a new thread? I think your problem my have it's roots in the differences between VisualBasic an Gambas. If I understood it correctly you expect your Variable "conn" to be global, which is not true in Gambas (but may work in VB) I suggest taking a look at the documentation. It's well explained how to pass data from one form to another (The most elegant way is to give the variable as an option to the constructor of the new form) regards, Thomas <--- this is from the help files: ---> From eeller at ...826... Mon Feb 28 23:12:05 2005 From: eeller at ...826... (Eldon Eller) Date: Mon, 28 Feb 2005 14:12:05 -0800 Subject: [Gambas-user] vb2vg Message-ID: <42239735.1080001@...826...> I want to do a Gambas version of a VB app I have written. I downloaded and extracted vb2vg. I now have a directory ~/Documents/vb2vg with three files: vb2vg.pl, Frm2Class.pm, and Frm2Form.pm, to which I have copied the file I want to convert, QD2.frm. As I understand, the usage should be vb2vg QD2.frm. If I open a terminal and cd to ~/Documents/vb2vg and type "vb2vg ~/Documents/vb2vg/QD2.frm", I get the message "bash: vb2vg: command not found." What am I doing wrong? Any suggestions will be appreciated. EEE