From richard.j.walker at ...247... Thu Feb 1 00:00:42 2007 From: richard.j.walker at ...247... (Richard) Date: Wed, 31 Jan 2007 23:00:42 +0000 Subject: [Gambas-user] RadioButton events (1.9.46a) & simplified In-Reply-To: <200701312341.46734.rospolosco@...152...> References: <45BE4540.10605@...981...> <200701311925.37145.richard.j.walker@...247...> <200701312341.46734.rospolosco@...152...> Message-ID: <200701312300.42413.richard.j.walker@...247...> On Wednesday 31 Jan 2007 22:41, Stefano Palmeri wrote: > Alle 20:25, mercoled? 31 gennaio 2007, Richard ha scritto: > > Thank you both very much for setting me straight. Stefano, I'd love to > > know how you knew to change a RadioButton value by setting the value of > > another RadioButton. I stared at it for hours without guessing that > > approach. > > This is from the Gambas help: > --------------------------------------------------------- > RadioButton > > This implements a radio button control. > Radio buttons having the same parent are mutually exclusive. Only one can > be selected at the same time. > ---------------------------------------------------------- > > > They are different from CheckBoxes, which are not mutually exclusive. > > Ciao, > > Stefano Thanks Stefano, I had understood the operation, I just hadn't realised that I wouldn't be allowed to toggle the TRUE button in a pair. By choosing just one to set to either TRUE or FALSE, I had expected that the "other" button would become the complement of the one I was assigning a value. My program is switching between mono and stereo for both the input and the output. I am storing the required mode in two boolean variables; one for input and one for output. I was updating the form controls by writing the value of each variable into one of the input and one of the output RadioButton controls. This depended on the mono/stereo pairs of RadioButtons being updated in a way not supported by Gambas. Following your advice I have added two more event handlers (for the "mono" buttons) and a few extra lines to figure out which RadioButton must be set to TRUE. It is a lot less "elegant" but has the distinct advantage of working properly :~) Richard From sbungay at ...981... Thu Feb 1 05:48:36 2007 From: sbungay at ...981... (sbungay) Date: Wed, 31 Jan 2007 23:48:36 -0500 Subject: [Gambas-user] Drag & Drop In-Reply-To: <200701311756.14230.gambas@...1...> References: <45BE4540.10605@...981...> <200701311756.14230.gambas@...1...> Message-ID: <45C17124.9040807@...981...> You're the best Benoit. If I had extra cash I'd be sponsoring this project. Benoit Minisini wrote: > On Monday 29 January 2007 20:04, sbungay wrote: > >>The image of the item being dragged appears to the lower right of the >>mouse cursor. What I want to do is have it work like in the ide. When >>you drag a control around on a form it appears to be held by the mouse >>at the spot where you pressed the mouse button on it. >> I have grepped through the class files of gambas2 for 'drag' to see >>if I could locate it's events and work-out how it accomplishes the task >>but came up empty. If anyone can point me in the right direction I'd >>appreciate it. >> >>Steve. >> > > > I will add a Drag.IconX and a Draw.IconY properties to define the drag icon > hot spot. > > Regards, > From leonardo at ...1237... Thu Feb 1 10:33:27 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 01 Feb 2007 10:33:27 +0100 Subject: [Gambas-user] Aligning widgets In-Reply-To: <20070130204454.M57980@...1382...> References: <870c8dd20701300953t3bcf06bbg61f9586a25aa7fcb@...627...> <1170184959.5406.3.camel@...40...> <20070130204454.M57980@...1382...> Message-ID: <45C1B3E7.4060608@...1237...> nando ha scritto: > I would like to know if Benoit is thinking of allowing wigets > to be 'locked' (on a per-form basis) so that they cannot be accidentally moved. > Don't hit me if I were to mention that was available on VB5 and > was very handy..especially with many wigets on screen. > > Fernando > I would like it too... I think it could be very useful, i.e., when you put a widget non aligned with the grid but in different coordinates: sometime, when you select it, the IDE realignes it at the grid.... -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gambas at ...1... Thu Feb 1 19:37:58 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 1 Feb 2007 19:37:58 +0100 Subject: [Gambas-user] Aligning widgets In-Reply-To: <45C1B3E7.4060608@...1237...> References: <870c8dd20701300953t3bcf06bbg61f9586a25aa7fcb@...627...> <20070130204454.M57980@...1382...> <45C1B3E7.4060608@...1237...> Message-ID: <200702011937.58591.gambas@...1...> On Thursday 01 February 2007 10:33, Leonardo Miliani wrote: > nando ha scritto: > > I would like to know if Benoit is thinking of allowing wigets > > to be 'locked' (on a per-form basis) so that they cannot be accidentally > > moved. Don't hit me if I were to mention that was available on VB5 and > > was very handy..especially with many wigets on screen. > > > > Fernando > > I would like it too... > I think it could be very useful, i.e., when you put a widget non aligned > with the grid but in different coordinates: sometime, when you select > it, the IDE realignes it at the grid.... You have the lock functionality in the SVN trunk now! Regards, -- Benoit Minisini From shannon at ...1633... Fri Feb 2 12:20:12 2007 From: shannon at ...1633... (Shannon Fang) Date: Fri, 02 Feb 2007 19:20:12 +0800 Subject: [Gambas-user] Gambas over GTK... In-Reply-To: <200702011937.58591.gambas@...1...> References: <870c8dd20701300953t3bcf06bbg61f9586a25aa7fcb@...627...> <20070130204454.M57980@...1382...> <45C1B3E7.4060608@...1237...> <200702011937.58591.gambas@...1...> Message-ID: <45C31E6C.3040903@...1633...> Hi there, Thanks for the help, especially from Jonathan Astolfi, and the online compile-howto... now Gambas2 is running on my Edgy. I have again few more questions :) 1) I heard that gambas2 now support GTK, I would like to let *the IDE itself to use GTK* so that it fit with my gnome theme, is that possible? 2) in the readme, it says make install will install to /opt/gambas, but in fact it is spreaded into the system (somewhere I don't know), 'which gambas2' will tell me under /usr/local/bin. can I do a *make uninstall*, and *make install --prefix=/opt/gambas* to rectify this problem? 3) I found a few cosmetic "bugs" in the IDE (e.g., partially shown buttons etc), shall I report to the mailing list? Or the developers are now focusing on more important things and will not deal with these at the moment? Thanks a lot! Shannon From jredrejo at ...626... Fri Feb 2 15:46:11 2007 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Fri, 2 Feb 2007 15:46:11 +0100 Subject: [Gambas-user] Gambas over GTK... In-Reply-To: <45C31E6C.3040903@...1633...> References: <870c8dd20701300953t3bcf06bbg61f9586a25aa7fcb@...627...> <20070130204454.M57980@...1382...> <45C1B3E7.4060608@...1237...> <200702011937.58591.gambas@...1...> <45C31E6C.3040903@...1633...> Message-ID: <8eb28a500702020646j7d174bc9h2224bc2bc6e11226@...627...> 2007/2/2, Shannon Fang : > > Hi there, > > Thanks for the help, especially from Jonathan Astolfi, and the online > compile-howto... now Gambas2 is running on my Edgy. > > I have again few more questions :) > > 1) I heard that gambas2 now support GTK, I would like to let *the IDE > itself to use GTK* so that it fit with my gnome theme, is that possible? Not yet. The gtk component doesn't support all the events, methods and properties the qt component does. His development is not so complete, so you can not use it to build the IDE. I hope it will be possible in the medium term. 2) in the readme, it says make install will install to /opt/gambas, but > in fact it is spreaded into the system (somewhere I don't know), 'which > gambas2' will tell me under /usr/local/bin. can I do a *make uninstall*, > and *make install --prefix=/opt/gambas* to rectify this problem? Yes 3) I found a few cosmetic "bugs" in the IDE (e.g., partially shown > buttons etc), shall I report to the mailing list? Or the developers are > now focusing on more important things and will not deal with these at > the moment? I suspect the "partially shown buttons" are not really bugs. When using the gtk component, or the Gnome view for the IDE, the stock icons are defined for the last gtk version. If you are using a previous version you will miss some of those icons. That's why in the gambas2 Debian packages I apply a patch [1] to the gtk stock icons to avoid that behaviour with the current gtk version [1] in Debian Sid/Etch. If you are also using gtk < 2.10 you should apply some Debian patches to make the cosmetic behave according to the 2.10 version. That's part of the work of packaging and application to the specific Distribution issues, and maybe in the future somebody will take those packages from Debian to Ubuntu as they did with the stable gambas version. Regards. Jos? L. [2] http://packages.debian.org/changelogs/pool/main/g/gambas2/gambas2_1.9.46-1/changelog [2] http://packages.debian.org/testing/source/gtk+2.0 From nando_f at ...951... Fri Feb 2 18:30:33 2007 From: nando_f at ...951... (nando) Date: Fri, 2 Feb 2007 12:30:33 -0500 Subject: [Gambas-user] Aligning widgets In-Reply-To: <200702011937.58591.gambas@...1...> References: <870c8dd20701300953t3bcf06bbg61f9586a25aa7fcb@...627...> <20070130204454.M57980@...1382...> <45C1B3E7.4060608@...1237...> <200702011937.58591.gambas@...1...> Message-ID: <20070202172845.M35968@...1382...> Thank you Benoit. Eventhough I don't know what a SVN trunk is, I'll go look for it. :) ---------- Original Message ----------- From: Benoit Minisini To: mailing list for gambas users Sent: Thu, 1 Feb 2007 19:37:58 +0100 Subject: Re: [Gambas-user] Aligning widgets > On Thursday 01 February 2007 10:33, Leonardo Miliani wrote: > > nando ha scritto: > > > I would like to know if Benoit is thinking of allowing wigets > > > to be 'locked' (on a per-form basis) so that they cannot be accidentally > > > moved. Don't hit me if I were to mention that was available on VB5 and > > > was very handy..especially with many wigets on screen. > > > > > > Fernando > > > > I would like it too... > > I think it could be very useful, i.e., when you put a widget non aligned > > with the grid but in different coordinates: sometime, when you select > > it, the IDE realignes it at the grid.... > > You have the lock functionality in the SVN trunk now! > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From timothy.marshal-nichols at ...247... Sun Feb 4 10:26:45 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Sun, 4 Feb 2007 09:26:45 -0000 Subject: [Gambas-user] Control-C and a Process Message-ID: <000001c7483e$97e30bc0$6401a8c0@...1587...> Hello, Is there a way of sending a Control-C to a process. I have declared the process something like this: PRIVATE MyProcess as Process ... MyProcess = SHELL "MyCommand" FOR READ WRITE When it comes to quiting the process early the man page for the command I am using recommends using a Control-C. I have tried things like: Print #MyProcess, Chr(3) and a few other variations, but these do not appear to work. In fact no control codes appear to be usable. If all else fails I can Kill the process. But this seems overkill - bad pun intended :-) Any ideas? By the way I have just found the Quote.Shell method. I like this. Thanks 8-{)} Timothy Marshal-Nichols From gambas at ...1... Sun Feb 4 10:57:08 2007 From: gambas at ...1... (Benoit Minisini) Date: Sun, 4 Feb 2007 10:57:08 +0100 Subject: [Gambas-user] Control-C and a Process In-Reply-To: <000001c7483e$97e30bc0$6401a8c0@...1587...> References: <000001c7483e$97e30bc0$6401a8c0@...1587...> Message-ID: <200702041057.09045.gambas@...1...> On Sunday 04 February 2007 10:26, timothy wrote: > Hello, > > Is there a way of sending a Control-C to a process. I have declared the > process something like this: > > PRIVATE MyProcess as Process > > ... > > MyProcess = SHELL "MyCommand" FOR READ WRITE > > When it comes to quiting the process early the man page for the command > I am using recommends using a Control-C. I have tried things like: > > Print #MyProcess, Chr(3) > > and a few other variations, but these do not appear to work. In fact no > control codes appear to be usable. If all else fails I can Kill the > process. But this seems overkill - bad pun intended :-) > > Any ideas? > > By the way I have just found the Quote.Shell method. I like this. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > CTRL+C in a shell has nothing to do with characters sent to the process input. It is related to job control and the terminal emulation done by Linux. There is no support for that at the moment. CTRL+C send the SIGINT signal to the process, whereas Process.Kill() sends the SIGKILL signal. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Sun Feb 4 21:27:40 2007 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 4 Feb 2007 15:27:40 -0500 Subject: [Gambas-user] Control-C and a Process In-Reply-To: <200702041057.09045.gambas@...1...> References: <000001c7483e$97e30bc0$6401a8c0@...1587...> <200702041057.09045.gambas@...1...> Message-ID: <200702041527.41068.sourceforge-raindog2@...94...> On Sunday 04 February 2007 04:57, Benoit Minisini wrote: > CTRL+C send the SIGINT signal to the process, whereas > Process.Kill() sends the SIGKILL signal. We had talked on the list previously about adding an optional integer argument to Process.Kill() to choose a signal number (Process.Kill() actually sends SIGTERM (15) by default, I think, not SIGKILL (9).) Maybe that would accomplish what he wants? In the meantime, Shell("kill -INT " & myprocess.Id) ought to do it, I think... assuming he wants the usual results of a Ctrl-C and not just send a keystroke that does something in an application, such as Emacs. Rob From gambas at ...1... Sun Feb 4 22:44:51 2007 From: gambas at ...1... (Benoit Minisini) Date: Sun, 4 Feb 2007 22:44:51 +0100 Subject: [Gambas-user] Control-C and a Process In-Reply-To: <200702041527.41068.sourceforge-raindog2@...94...> References: <000001c7483e$97e30bc0$6401a8c0@...1587...> <200702041057.09045.gambas@...1...> <200702041527.41068.sourceforge-raindog2@...94...> Message-ID: <200702042244.52086.gambas@...1...> On Sunday 04 February 2007 21:27, Rob wrote: > On Sunday 04 February 2007 04:57, Benoit Minisini wrote: > > CTRL+C send the SIGINT signal to the process, whereas > > Process.Kill() sends the SIGKILL signal. > > We had talked on the list previously about adding an optional > integer argument to Process.Kill() to choose a signal number > (Process.Kill() actually sends SIGTERM (15) by default, I think, > not SIGKILL (9).) Maybe that would accomplish what he wants? > > In the meantime, Shell("kill -INT " & myprocess.Id) ought to do > it, I think... assuming he wants the usual results of a Ctrl-C > and not just send a keystroke that does something in an > application, such as Emacs. > > Rob > > At the moment, I don't want to add the signal notion to the Gambas language. Otherwise, I will have to support more than just sending a signal (for coherency reasons), and I don't want at the moment. Regards, -- Benoit Minisini From Karl.Reinl at ...9... Mon Feb 5 00:14:32 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 05 Feb 2007 00:14:32 +0100 Subject: [Gambas-user] Aligning widgets In-Reply-To: <45C1B3E7.4060608@...1237...> References: <870c8dd20701300953t3bcf06bbg61f9586a25aa7fcb@...627...> <1170184959.5406.3.camel@...40...> <20070130204454.M57980@...1382...> <45C1B3E7.4060608@...1237...> Message-ID: <1170630872.11947.23.camel@...40...> Am Donnerstag, den 01.02.2007, 10:33 +0100 schrieb Leonardo Miliani: > nando ha scritto: > > I would like to know if Benoit is thinking of allowing wigets > > to be 'locked' (on a per-form basis) so that they cannot be accidentally moved. > > Don't hit me if I were to mention that was available on VB5 and > > was very handy..especially with many wigets on screen. > > > > Fernando > > > > I would like it too... > I think it could be very useful, i.e., when you put a widget non aligned > with the grid but in different coordinates: sometime, when you select > it, the IDE realignes it at the grid.... > Salut, I'v a question to all those who like to have locked-forms. I aske that, to know what should be locked if a form is locked, and what should be possible to do on a locked form. Today (if you have the svn-trunk) you can mark controles and copy them to the clipboard, or work on the forms class. I think it is usefull, that locking a form means: 1. NO possibillity to move components with the mouse. 2. NO resize of the form. but 3. changing properties of a control only in the property-window 4. or alignments with multible controls 5. or 'same' actions with multible controls 6. save these changes AND 7. remember whether the form was set to locked. -- Amicalment Charlie From sbungay at ...981... Mon Feb 5 16:24:12 2007 From: sbungay at ...981... (sbungay) Date: Mon, 05 Feb 2007 10:24:12 -0500 Subject: [Gambas-user] Checking values in a variable from a Gambas Shell... Message-ID: <45C74C1C.7020801@...981...> Applolgies in advance for the length of the post. I noticed an interesting behaviour that I never noticed before, and perhaps it is just the first time I noticed this. A form which instantiates a module level public variable as a new instance of a class populates that variable with data. After the variable has been populated and the form is waiting for more events you are unable to use the Gambas shell to display values that have been stored in the variable. For example lets say we have a class called 'ClassCustomer' and it is defined as follows; ' Gambas Class file. PUBLIC LastName AS String PUBLIC FirstName AS String And then we have a form which has an OK and Cancel button on it and some logic in it that goes something like this... 'Gambas Class file PUBLIC mCustomer AS NEW ClassCustomer PUBLIC SUB ButtonOK_Click() mCustomer.LastName = "Doe" mCustomer.FirstName = "John" END PUBLIC SUB ButtonCancel_Click() STOP END Set a break point on the second assignment statement in ButtonOK_Click and run the program. Click on OK and when execution stops at the break point open the Gambas shell and type; ? mCustomer.LastName Doe No problem there. If we press F5 and let the program continue (the form does not close) and we go back to the Gambas shell and type; ? mCustomer.LastName We get nothing. No result... if we type; ? FormName.mCustomer.LastName We get nothing again... as if mCustomer has ceased to exist. Clicking on the Cancel button program execution stops (because of the STOP stqtement in the event). Back to the Gambas shell, if we type ? mCustomer.LastName Doe I get the expected response. So the data is indeed there. Question Why can't the Gambas shell see the values that are stored in mCustomer when the form in which mCustomer exists is sitting waiting for an event? Steve. From gambas at ...1... Mon Feb 5 20:08:04 2007 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 Feb 2007 20:08:04 +0100 Subject: [Gambas-user] Decompile Gambas Compiled Project In-Reply-To: References: Message-ID: <200702052008.04588.gambas@...1...> On Wednesday 31 January 2007 10:10, afroehlke at ...784... wrote: > Hello, > > is there a way to decompile a project wich is written and compiled with > gambas? > > Thanks for answers > > Regards, Andreas > It is possible. It is just a matter of writing a decompiler! Why do you need that? -- Benoit Minisini From gambas at ...1... Mon Feb 5 20:09:43 2007 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 Feb 2007 20:09:43 +0100 Subject: [Gambas-user] Aligning widgets In-Reply-To: <870c8dd20701301311h2aefb85ane56498a5d9518838@...627...> References: <870c8dd20701300953t3bcf06bbg61f9586a25aa7fcb@...627...> <1170184959.5406.3.camel@...40...> <870c8dd20701301311h2aefb85ane56498a5d9518838@...627...> Message-ID: <200702052009.44070.gambas@...1...> On Tuesday 30 January 2007 22:11, Laurent Duperval wrote: > On 1/30/07, Charlie Reinl wrote: > > Salut Laurent, > > Salut Charlie, > > > hold the Ctrl-Key down and mark with the mouse the buttons. > > > Then (the Ctrl-Key is still down) open the context-menu (right mouse > > button) there you will found the needed. > > Not quite. I tried this but it doesn't quite work as I want. Or else, I > don't know how to do it correctly. For example, try this: > > Create 12 buttons. Now set them up in three rows and four columns. All > buttons need to have the same height, and the same spacing between the > buttons. Unless I do manual calculations and set the X/Y positions > manually, I don't see how to do this. > > What I would like to do is to select them and tell Gambas to arrange them > automatically in an orderly fashion. > > WIth other toolkits, you can create a layout manager that manages how > widgets are placed on screen. Instead of giving each witget a position on > the form, you put it in the grid manager and give the manager placement > rules, and it figures out how to place the widgets correctly. > > Think of an HTML table: you create the table layout, tell the table how to > manage column widths and lengths and it does it automatically as you add > data to it. > > L > > Amicalment > There is no grid arrangement in Gambas, but you can do that by putting many HBox control in a VBox. For example, you can create four HBox containers, put three buttons in each of them, and put these four HBox containers in one VBox. Regards, -- Benoit Minisini From Karl.Reinl at ...9... Mon Feb 5 22:55:17 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 05 Feb 2007 22:55:17 +0100 Subject: [Gambas-user] Aligning widgets In-Reply-To: <200702052009.44070.gambas@...1...> References: <870c8dd20701300953t3bcf06bbg61f9586a25aa7fcb@...627...> <1170184959.5406.3.camel@...40...> <870c8dd20701301311h2aefb85ane56498a5d9518838@...627...> <200702052009.44070.gambas@...1...> Message-ID: <1170712517.6421.6.camel@...40...> Am Montag, den 05.02.2007, 20:09 +0100 schrieb Benoit Minisini: > On Tuesday 30 January 2007 22:11, Laurent Duperval wrote: > > On 1/30/07, Charlie Reinl wrote: > > > Salut Laurent, > > > > Salut Charlie, > > > > > > hold the Ctrl-Key down and mark with the mouse the buttons. > > > > > Then (the Ctrl-Key is still down) open the context-menu (right mouse > > > button) there you will found the needed. > > > > Not quite. I tried this but it doesn't quite work as I want. Or else, I > > don't know how to do it correctly. For example, try this: > > > > Create 12 buttons. Now set them up in three rows and four columns. All > > buttons need to have the same height, and the same spacing between the > > buttons. Unless I do manual calculations and set the X/Y positions > > manually, I don't see how to do this. > > > > What I would like to do is to select them and tell Gambas to arrange them > > automatically in an orderly fashion. > > > > WIth other toolkits, you can create a layout manager that manages how > > widgets are placed on screen. Instead of giving each witget a position on > > the form, you put it in the grid manager and give the manager placement > > rules, and it figures out how to place the widgets correctly. > > > > Think of an HTML table: you create the table layout, tell the table how to > > manage column widths and lengths and it does it automatically as you add > > data to it. > > > > L > > > > Amicalment > > > > There is no grid arrangement in Gambas, but you can do that by putting many > HBox control in a VBox. > > For example, you can create four HBox containers, put three buttons in each of > them, and put these four HBox containers in one VBox. > > Regards, > Salut, he is talking about, what exists in MS-VB, you can mark some (more then 2) controls and say 'same space between each control' and after you have 'increase space' and 'decrease space' -- Amicalment Charlie From sbungay at ...981... Tue Feb 6 05:15:52 2007 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 5 Feb 2007 23:15:52 -0500 Subject: [Gambas-user] Iterating through and enabling and disabling controls on a form... Message-ID: <200702052315.53025.sbungay@...981...> ControlHandle.Enabled = True doesn't set Enabled to True if the form has Enabled set to False by default. However, if Enabled is set to True by default then ControlHandle.Enabled can successfully toggle the value, thus Disabling and Enabling the control. Is this a bug? ' Iterate through the buttons on a form and Enable or Disable them ' depending on if their tag value exists in the SkillSet Collection. PRIVATE SUB SetControlsState() DIM ControlHandle AS Control DIM X AS Integer FOR EACH ControlHandle IN ME.Controls SELECT CASE Object.Type(ControlHandle) CASE "Button" ' SkillSet is a collection. FOR X = 1 TO ME.SkillSet.Count IF CInt(ControlHandle.Tag) = ME.SkillSet[X].ID THEN ControlHandle.Enabled = TRUE ControlHandle.BackColor = Color.Green ELSE ControlHandle.Enabled = FALSE ControlHandle.BackColor = Color.DarkGreen END IF NEXT END SELECT NEXT END From nando_f at ...951... Tue Feb 6 07:17:59 2007 From: nando_f at ...951... (nando) Date: Tue, 6 Feb 2007 01:17:59 -0500 Subject: [Gambas-user] Aligning widgets In-Reply-To: <1170712517.6421.6.camel@...40...> References: <870c8dd20701300953t3bcf06bbg61f9586a25aa7fcb@...627...> <1170184959.5406.3.camel@...40...> <870c8dd20701301311h2aefb85ane56498a5d9518838@...627...> <200702052009.44070.gambas@...1...> <1170712517.6421.6.camel@...40...> Message-ID: <20070206061636.M29107@...1382...> I have done this by selecting the wigets I want to have a common value and in the Property page set the same value (once) for all by typing it in. -Fernando ---------- Original Message ----------- From: Charlie Reinl To: mailing list for gambas users Sent: Mon, 05 Feb 2007 22:55:17 +0100 Subject: Re: [Gambas-user] Aligning widgets > Am Montag, den 05.02.2007, 20:09 +0100 schrieb Benoit Minisini: > > On Tuesday 30 January 2007 22:11, Laurent Duperval wrote: > > > On 1/30/07, Charlie Reinl wrote: > > > > Salut Laurent, > > > > > > Salut Charlie, > > > > > > > > > hold the Ctrl-Key down and mark with the mouse the buttons. > > > > > > > Then (the Ctrl-Key is still down) open the context-menu (right mouse > > > > button) there you will found the needed. > > > > > > Not quite. I tried this but it doesn't quite work as I want. Or else, I > > > don't know how to do it correctly. For example, try this: > > > > > > Create 12 buttons. Now set them up in three rows and four columns. All > > > buttons need to have the same height, and the same spacing between the > > > buttons. Unless I do manual calculations and set the X/Y positions > > > manually, I don't see how to do this. > > > > > > What I would like to do is to select them and tell Gambas to arrange them > > > automatically in an orderly fashion. > > > > > > WIth other toolkits, you can create a layout manager that manages how > > > widgets are placed on screen. Instead of giving each witget a position on > > > the form, you put it in the grid manager and give the manager placement > > > rules, and it figures out how to place the widgets correctly. > > > > > > Think of an HTML table: you create the table layout, tell the table how to > > > manage column widths and lengths and it does it automatically as you add > > > data to it. > > > > > > L > > > > > > Amicalment > > > > > > > There is no grid arrangement in Gambas, but you can do that by putting many > > HBox control in a VBox. > > > > For example, you can create four HBox containers, put three buttons in each of > > them, and put these four HBox containers in one VBox. > > > > Regards, > > > Salut, > > he is talking about, what exists in MS-VB, you can mark some (more then > 2) controls and say 'same space between each control' and after you have > 'increase space' and 'decrease space' > -- > Amicalment > Charlie > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > 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... Tue Feb 6 08:03:45 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 6 Feb 2007 08:03:45 +0100 Subject: [Gambas-user] Iterating through and enabling and disabling controls on a form... In-Reply-To: <200702052315.53025.sbungay@...981...> References: <200702052315.53025.sbungay@...981...> Message-ID: <200702060803.45967.gambas@...1...> On Tuesday 06 February 2007 05:15, Stephen Bungay wrote: > ControlHandle.Enabled = True doesn't set Enabled to True if the form has > Enabled set to False by default. However, if Enabled is set to True by > default then ControlHandle.Enabled can successfully toggle the value, thus > Disabling and Enabling the control. Is this a bug? > No, it is a feature. A disabled container automatically disabled its children. Regards, -- Benoit Minisini From gambas at ...1... Tue Feb 6 08:10:49 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 6 Feb 2007 08:10:49 +0100 Subject: [Gambas-user] Checking values in a variable from a Gambas Shell... In-Reply-To: <45C74C1C.7020801@...981...> References: <45C74C1C.7020801@...981...> Message-ID: <200702060810.49371.gambas@...1...> On Monday 05 February 2007 16:24, sbungay wrote: > Applolgies in advance for the length of the post. > I noticed an interesting behaviour that I never noticed before, and > perhaps it is just the first time I noticed this. > A form which instantiates a module level public variable as a new > instance of a class populates that variable with data. After the > variable has been populated and the form is waiting for more events you > are unable to use the Gambas shell to display values that have been > stored in the variable. > For example lets say we have a class called 'ClassCustomer' and it is > defined as follows; > > ' Gambas Class file. > PUBLIC LastName AS String > PUBLIC FirstName AS String > > > And then we have a form which has an OK and Cancel button on it and some > logic in it that goes something like this... > > 'Gambas Class file > PUBLIC mCustomer AS NEW ClassCustomer > > PUBLIC SUB ButtonOK_Click() > mCustomer.LastName = "Doe" > mCustomer.FirstName = "John" > END > > PUBLIC SUB ButtonCancel_Click() > STOP > END > > > Set a break point on the second assignment statement in > ButtonOK_Click and run the program. Click on OK and when execution stops > at the break point open the Gambas shell and type; > > ? mCustomer.LastName > Doe > > No problem there. If we press F5 and let the program continue (the > form does not close) and we go back to the Gambas shell and type; > > ? mCustomer.LastName > > We get nothing. No result... if we type; > > ? FormName.mCustomer.LastName > > We get nothing again... as if mCustomer has ceased to exist. Clicking > on the Cancel button program execution stops (because of the STOP > stqtement in the event). Back to the Gambas shell, if we type > > ? mCustomer.LastName > Doe > > I get the expected response. So the data is indeed there. > > Question > Why can't the Gambas shell see the values that are stored in > mCustomer when the form in which mCustomer exists is sitting waiting for > an event? > > Steve. > The debugger is embedded in the program being debugged, and communicates with the IDE with named pipes. When your program is in the event loop, the debugger cannot be raised, and so cannot send to the IDE the value of the expressions you are requested. You must stop the program before. This is just an implementation problem! :-) Regards, -- Benoit Minisini From gambas.fr at ...626... Tue Feb 6 12:28:18 2007 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 6 Feb 2007 12:28:18 +0100 Subject: [Gambas-user] Iterating through and enabling and disabling controls on a form... In-Reply-To: <200702052315.53025.sbungay@...981...> References: <200702052315.53025.sbungay@...981...> Message-ID: <6324a42a0702060328vd772317sc2125d2786db0c0f@...627...> 2007/2/6, Stephen Bungay : > > ControlHandle.Enabled = True doesn't set Enabled to True if the form has > Enabled set to False by default. However, if Enabled is set to True by > default then ControlHandle.Enabled can successfully toggle the value, thus > Disabling and Enabling the control. Is this a bug? > > ' Iterate through the buttons on a form and Enable or Disable them > ' depending on if their tag value exists in the SkillSet Collection. > PRIVATE SUB SetControlsState() > DIM ControlHandle AS Control > DIM X AS Integer > > FOR EACH ControlHandle IN ME.Controls > SELECT CASE Object.Type(ControlHandle) > CASE "Button" > ' SkillSet is a collection. > FOR X = 1 TO ME.SkillSet.Count > IF CInt(ControlHandle.Tag) = ME.SkillSet[X].ID THEN > ControlHandle.Enabled = TRUE > ControlHandle.BackColor = Color.Green > ELSE > ControlHandle.Enabled = FALSE > ControlHandle.BackColor = Color.DarkGreen > END IF > NEXT > END SELECT > NEXT > END In fact why do you want to enable a control when his container is not.... it's not logical ! no ? ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Tue Feb 6 15:51:43 2007 From: sbungay at ...981... (sbungay) Date: Tue, 06 Feb 2007 09:51:43 -0500 Subject: [Gambas-user] Iterating through and enabling and disabling controls on a form... In-Reply-To: <200702060803.45967.gambas@...1...> References: <200702052315.53025.sbungay@...981...> <200702060803.45967.gambas@...1...> Message-ID: <45C895FF.4010907@...981...> Thanks for the reply Benoit. I can live with this, but isn't the Control the child of the Form? The way it works now means that the programmer can not default controls on a form to Disabled at design time and (eaisly) selectivley enable them on Form_Open by iterating through them. To achieve the desired functionality everything must be done at run time. A routine to initialize the controls to a Disabled State is executed on Form_Open, then a second routine iterates through the controls and enables those which the user has rights to use. Two passes through the controls and two places to make program changes = more places to change code as controls are removed or added to a form and more places for errors to creep in. Steve. Benoit Minisini wrote: > On Tuesday 06 February 2007 05:15, Stephen Bungay wrote: > >>ControlHandle.Enabled = True doesn't set Enabled to True if the form has >>Enabled set to False by default. However, if Enabled is set to True by >>default then ControlHandle.Enabled can successfully toggle the value, thus >>Disabling and Enabling the control. Is this a bug? >> > > > No, it is a feature. A disabled container automatically disabled its children. > > Regards, > From sbungay at ...981... Tue Feb 6 15:53:24 2007 From: sbungay at ...981... (sbungay) Date: Tue, 06 Feb 2007 09:53:24 -0500 Subject: [Gambas-user] Iterating through and enabling and disabling controls on a form... In-Reply-To: <200702060803.45967.gambas@...1...> References: <200702052315.53025.sbungay@...981...> <200702060803.45967.gambas@...1...> Message-ID: <45C89664.3050306@...981...> SOrry for the ambiguity in my initial message.. it reads "if the form has enabled set to false", it should read "if the control on the form is set to false at design time". My bad. Steve. Benoit Minisini wrote: > On Tuesday 06 February 2007 05:15, Stephen Bungay wrote: > >>ControlHandle.Enabled = True doesn't set Enabled to True if the form has >>Enabled set to False by default. However, if Enabled is set to True by >>default then ControlHandle.Enabled can successfully toggle the value, thus >>Disabling and Enabling the control. Is this a bug? >> > > > No, it is a feature. A disabled container automatically disabled its children. > > Regards, > From sbungay at ...981... Tue Feb 6 20:57:57 2007 From: sbungay at ...981... (sbungay) Date: Tue, 06 Feb 2007 14:57:57 -0500 Subject: [Gambas-user] Iterating through and enabling and disabling controls on a form... In-Reply-To: <6324a42a0702060328vd772317sc2125d2786db0c0f@...627...> References: <200702052315.53025.sbungay@...981...> <6324a42a0702060328vd772317sc2125d2786db0c0f@...627...> Message-ID: <45C8DDC5.9040605@...981...> Hi Fabien. I goofed on the semantics of the email. The form is enabled, it is the control in the form that is not enabled, having set Enabled=False at design time. The sentence; >>ControlHandle.Enabled = True doesn't set Enabled to True if the form >>has Enabled set to False by default. Should actually read >>ControlHandle.Enabled = True doesn't set Enabled to True if the >>control on the form had its' Enabled property set to False at design >>time. Sorry for the confusion, thanks for the reply. Steve. Fabien Bodard wrote: > 2007/2/6, Stephen Bungay : > >>ControlHandle.Enabled = True doesn't set Enabled to True if the form has >>Enabled set to False by default. However, if Enabled is set to True by >>default then ControlHandle.Enabled can successfully toggle the value, thus >>Disabling and Enabling the control. Is this a bug? >> >>' Iterate through the buttons on a form and Enable or Disable them >>' depending on if their tag value exists in the SkillSet Collection. >>PRIVATE SUB SetControlsState() >> DIM ControlHandle AS Control >> DIM X AS Integer >> >> FOR EACH ControlHandle IN ME.Controls >> SELECT CASE Object.Type(ControlHandle) >> CASE "Button" >> ' SkillSet is a collection. >> FOR X = 1 TO ME.SkillSet.Count >> IF CInt(ControlHandle.Tag) = ME.SkillSet[X].ID THEN >> ControlHandle.Enabled = TRUE >> ControlHandle.BackColor = Color.Green >> ELSE >> ControlHandle.Enabled = FALSE >> ControlHandle.BackColor = Color.DarkGreen >> END IF >> NEXT >> END SELECT >> NEXT >>END > > > > In fact why do you want to enable a control when his container is not.... > it's not logical ! no ? > > ------------------------------------------------------------------------- > >>Using Tomcat but need to do more? Need to support web services, security? >>Get stuff done quickly with pre-integrated technology to make your job >>easier. >>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>_______________________________________________ >>Gambas-user mailing list >>Gambas-user at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Tue Feb 6 21:04:11 2007 From: sbungay at ...981... (sbungay) Date: Tue, 06 Feb 2007 15:04:11 -0500 Subject: [Gambas-user] Checking values in a variable from a Gambas Shell... In-Reply-To: <200702060810.49371.gambas@...1...> References: <45C74C1C.7020801@...981...> <200702060810.49371.gambas@...1...> Message-ID: <45C8DF3B.9020401@...981...> I kind of thought it was a pipe and event loop servicing issue, it was the only way I could make sense of the behaviour. Something to keep in mind when using the Gambas shell to check values in variables. Steve. Benoit Minisini wrote: > On Monday 05 February 2007 16:24, sbungay wrote: > >> Applolgies in advance for the length of the post. >> I noticed an interesting behaviour that I never noticed before, and >>perhaps it is just the first time I noticed this. >> A form which instantiates a module level public variable as a new >>instance of a class populates that variable with data. After the >>variable has been populated and the form is waiting for more events you >>are unable to use the Gambas shell to display values that have been >>stored in the variable. >> For example lets say we have a class called 'ClassCustomer' and it is >>defined as follows; >> >>' Gambas Class file. >>PUBLIC LastName AS String >>PUBLIC FirstName AS String >> >> >>And then we have a form which has an OK and Cancel button on it and some >>logic in it that goes something like this... >> >>'Gambas Class file >>PUBLIC mCustomer AS NEW ClassCustomer >> >>PUBLIC SUB ButtonOK_Click() >> mCustomer.LastName = "Doe" >> mCustomer.FirstName = "John" >>END >> >>PUBLIC SUB ButtonCancel_Click() >> STOP >>END >> >> >> Set a break point on the second assignment statement in >>ButtonOK_Click and run the program. Click on OK and when execution stops >>at the break point open the Gambas shell and type; >> >>? mCustomer.LastName >>Doe >> >> No problem there. If we press F5 and let the program continue (the >>form does not close) and we go back to the Gambas shell and type; >> >>? mCustomer.LastName >> >> We get nothing. No result... if we type; >> >>? FormName.mCustomer.LastName >> >> We get nothing again... as if mCustomer has ceased to exist. Clicking >>on the Cancel button program execution stops (because of the STOP >>stqtement in the event). Back to the Gambas shell, if we type >> >>? mCustomer.LastName >>Doe >> >> I get the expected response. So the data is indeed there. >> >>Question >> Why can't the Gambas shell see the values that are stored in >>mCustomer when the form in which mCustomer exists is sitting waiting for >>an event? >> >>Steve. >> > > > The debugger is embedded in the program being debugged, and communicates with > the IDE with named pipes. > > When your program is in the event loop, the debugger cannot be raised, and so > cannot send to the IDE the value of the expressions you are requested. You > must stop the program before. > > This is just an implementation problem! :-) > > Regards, > From gambas.fr at ...626... Tue Feb 6 21:53:43 2007 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 6 Feb 2007 21:53:43 +0100 Subject: [Gambas-user] Gambas on FreeNodes Message-ID: <6324a42a0702061253jc8d9a6y69af7cb785f0dd5c@...627...> Hi to all the gambasian I wan't to remember to those want help that a channel exist on the freenodes irc servers. Channel: #gambas, and #gambas-fr I'm on it every time i can, to help people... but there is often 5 or 6 other person that can do that too . As much there is people on irc to get or give help as much the communauty of users can be active and grow. In the same idea, i've gived the hand to a man, Yudi, to remake the sourceshare site of gambas, that is a pace to exchange programs, examples, tutorials, and mabe more but we have not defined what :) The site already exist but it have many littke bug... it need to be rewritted. http://www.gambasforge.net Regards, Fabien Bodard From leonardo at ...1237... Wed Feb 7 23:44:51 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 07 Feb 2007 23:44:51 +0100 Subject: [Gambas-user] Closing signals Message-ID: <45CA5663.3010607@...1237...> Hello everybody. I would like to know if there's a way to intercept what is trying to close a Gambas application. I remember that in VB there was a way to read the closing signal to know if the application had been closed from the user by clicking on the "X" icon or if the system was shutting down and was sending all the applications the terminating signal. I would like to write a check in my applications to close them in a safe way if they intercept a terminating signal from the system, i.e. during shutdowns or reboots, to avoyd data loosing. Thanks. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From nando_f at ...951... Wed Feb 7 23:55:37 2007 From: nando_f at ...951... (nando) Date: Wed, 7 Feb 2007 17:55:37 -0500 Subject: [Gambas-user] Closing signals In-Reply-To: <45CA5663.3010607@...1237...> References: <45CA5663.3010607@...1237...> Message-ID: <20070207224806.M25418@...1382...> Recently, I had placed a breakpoint in _close to track down a clean app close. Clicking 'X' makes the code run in _close But, in the IDE, hitting STOP will not _close. I would like to know if the IDE takes care of closing files,pipes,etc that a program creates or openes when running in the IDE? Is it possible to (optionally perhaps) have STOP button allow run _close code? Perhaps a _Stop or _Quit event for IDE programs when the stop button pressed which will allow some type of cleanup possible (just thinking out loud) -Fernando ---------- Original Message ----------- From: Leonardo Miliani To: mailing list for gambas users Sent: Wed, 07 Feb 2007 23:44:51 +0100 Subject: [Gambas-user] Closing signals > Hello everybody. > I would like to know if there's a way to intercept what is trying to > close a Gambas application. > I remember that in VB there was a way to read the closing signal to know > if the application had been closed from the user by clicking on the "X" > icon or if the system was shutting down and was sending all the > applications the terminating signal. > > I would like to write a check in my applications to close them in a safe > way if they intercept a terminating signal from the system, i.e. during > shutdowns or reboots, to avoyd data loosing. > Thanks. > > -- > Ciao. > Leo. > > Web: www.leonardomiliani.com > E-mail: leonardo at ...1237... > Scegli software opensource - Choose opensource software > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From b.vigneshkumar at ...1635... Thu Feb 8 09:40:54 2007 From: b.vigneshkumar at ...1635... (vignesh kumar) Date: Thu, 08 Feb 2007 14:10:54 +0530 Subject: [Gambas-user] Gambas GTK help Message-ID: <45CAE216.4020509@...1635...> Regarding Gambas, I able to program using Gambas 1.9 Development Version hassle free. When I use gtk programming and create an executable file. As the gb.gtk uses gtk+ library to program I am not able to use the executeable code created in GAMBAS on a different system which does not have the GAMBAS tool installed. Is there any way to create a file with such a requirment as the other system has the GTK development libraries installed them. Regards Vignesh Kumar From timothy.marshal-nichols at ...247... Thu Feb 8 10:14:12 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Thu, 8 Feb 2007 09:14:12 -0000 Subject: [Gambas-user] Closing signals In-Reply-To: <45CA5663.3010607@...1237...> Message-ID: <000001c74b61$863723e0$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of Leonardo Miliani > Sent: Wednesday, 07 February 2007 10:45 PM > To: mailing list for gambas users > Subject: [Gambas-user] Closing signals > > Hello everybody. > I would like to know if there's a way to intercept what is trying to > close a Gambas application. > I remember that in VB there was a way to read the closing signal to know > if the application had been closed from the user by clicking on the "X" > icon or if the system was shutting down and was sending all the > applications the terminating signal. > > I would like to write a check in my applications to close them in a safe > way if they intercept a terminating signal from the system, i.e. during > shutdowns or reboots, to avoyd data loosing. > Thanks. > > -- > Ciao. > Leo. > Hi, Not sure if this is what you are getting at. But STOP EVENT will stop a form closing if it is used in a Form's Close event. So if all you need is to handle the user clicking the X on a window then this will do the job. Suppose we have a variable to tell us if changes to our have not been saved: PRIVATE dataChanged AS Boolean We then set this if the user changes something. And also clear it if the user saves. Then we can put this in our Form close event. PRIVATE dataChanged AS Boolean PUBLIC SUB Form_Close() DIM result AS Integer dataChanged = TRUE IF dataChanged THEN result = Message.Question("Are you sure?", "Quit without saving", "Save then quit", "Cancel") IF result = 2 THEN ' If save is selected then save before quitting PRINT "Do save here" ELSE IF result = 3 THEN ' If cancel is pressed then cancel close form event STOP EVENT END IF END IF END Thanks 8-{)} Timothy Marshal-Nichols From leonardo at ...1237... Thu Feb 8 12:06:34 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 08 Feb 2007 12:06:34 +0100 Subject: [Gambas-user] Closing signals In-Reply-To: <000001c74b61$863723e0$6401a8c0@...1587...> References: <000001c74b61$863723e0$6401a8c0@...1587...> Message-ID: <45CB043A.2090008@...1237...> timothy wrote: >> -----Original Message----- >> From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- >> bounces at lists.sourceforge.net] On Behalf Of Leonardo Miliani >> Sent: Wednesday, 07 February 2007 10:45 PM >> To: mailing list for gambas users >> Subject: [Gambas-user] Closing signals >> >> Hello everybody. >> I would like to know if there's a way to intercept what is trying to >> close a Gambas application. >> I remember that in VB there was a way to read the closing signal to > know >> if the application had been closed from the user by clicking on the > "X" >> icon or if the system was shutting down and was sending all the >> applications the terminating signal. >> >> I would like to write a check in my applications to close them in a > safe >> way if they intercept a terminating signal from the system, i.e. > during >> shutdowns or reboots, to avoyd data loosing. >> Thanks. >> >> -- >> Ciao. >> Leo. >> > > > Hi, > > Not sure if this is what you are getting at. But STOP EVENT will stop a > form closing if it is used in a Form's Close event. So if all you need > is to handle the user clicking the X on a window then this will do the > job. > > Suppose we have a variable to tell us if changes to our have not been > saved: > > PRIVATE dataChanged AS Boolean > > We then set this if the user changes something. And also clear it if the > user saves. Then we can put this in our Form close event. > > PRIVATE dataChanged AS Boolean > > PUBLIC SUB Form_Close() > DIM result AS Integer > dataChanged = TRUE > IF dataChanged THEN > result = Message.Question("Are you sure?", "Quit without saving", > "Save then quit", "Cancel") > IF result = 2 THEN > ' If save is selected then save before quitting > PRINT "Do save here" > ELSE IF result = 3 THEN > ' If cancel is pressed then cancel close form event > STOP EVENT > END IF > END IF > END > > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > That's not my case. I know about STOP EVENT and use it to stop the user when he tries to close the program before saving datas. But, if the user terminates the working session closing KDE and he forgets my program opened, this one is brutally closed by the system and the user looses its datas. I would like to know if in Gambas there's a method or a register that collects the system messages, so when the user closes KDE and my program is still running, it collects the system shutdown and automatically saves all the data avoiding data loosing. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gambas.fr at ...626... Thu Feb 8 13:57:06 2007 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 8 Feb 2007 13:57:06 +0100 Subject: [Gambas-user] Gambas GTK help In-Reply-To: <45CAE216.4020509@...1635...> References: <45CAE216.4020509@...1635...> Message-ID: <6324a42a0702080457q33b30868ladb6cc74f6078685@...627...> you need to install the Gambas interpreters and lib on these systems as gambas is an interpreted language like vb. You have a pcode interpreted by an interpreter. 2007/2/8, vignesh kumar : > > Regarding Gambas, > > I able to program using Gambas 1.9 Development Version hassle free. When > I use gtk programming and create an executable file. As the gb.gtk uses > gtk+ library to program I am not able to use the executeable code > created in GAMBAS on a different system which does not have the GAMBAS > tool installed. Is there any way to create a file with such a requirment > as the other system has the GTK development libraries installed them. > > Regards > Vignesh Kumar > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jj at ...1636... Thu Feb 8 21:01:35 2007 From: jj at ...1636... (jj at ...1636...) Date: Thu, 08 Feb 2007 21:01:35 +0100 Subject: [Gambas-user] Problem with lcdnumber - don't show decimal point Message-ID: <20070208210135.duikh8rsvms4s4cg@...1637...> Hi All! I've created a display for a Point of sale, but when I press the point decimal, the display with lcd number not show the decimal. This is the code for the display button (click event). -------- PUBLIC SUB botones_display_Click() SELECT CASE LAST.get_action() CASE "C" TPV.display.Value = 0 CASE "0" TO "9" IF Len(CString(TPV.display.Value)) < 10 THEN TPV.display.Value = TPV.display.value & CFloat(LAST.tag) END IF CASE "." IF (InStr(CString(TPV.display.Value), ".") = 0) THEN TPV.display.Value = TPV.display.Value & "." --> DONT WORK! END IF .... it's possible show "1.0" in the lcdnumber?? and "1."?? I can do this? how? thank you!! From sbungay at ...981... Thu Feb 8 22:32:44 2007 From: sbungay at ...981... (sbungay) Date: Thu, 08 Feb 2007 16:32:44 -0500 Subject: [Gambas-user] Problem with lcdnumber - don't show decimal point In-Reply-To: <20070208210135.duikh8rsvms4s4cg@...1637...> References: <20070208210135.duikh8rsvms4s4cg@...1637...> Message-ID: <45CB96FC.8000406@...981...> Hmmm looks like you're tryiong to push the string "." tp the LCD control... that won't work. It will display a decimal point though, so if you entered the value "12.83" into a string and then perform a LCD.Value = Cfloat(String) it will work fine. Steve. jj at ...1636... wrote: > Hi All! > > I've created a display for a Point of sale, but when I > press the point decimal, the display with lcd number not show the > decimal. > > This is the code for the display button (click event). > > -------- > PUBLIC SUB botones_display_Click() > > SELECT CASE LAST.get_action() > CASE "C" > TPV.display.Value = 0 > > CASE "0" TO "9" > > IF Len(CString(TPV.display.Value)) < 10 THEN > TPV.display.Value = TPV.display.value & CFloat(LAST.tag) > END IF > > CASE "." > > IF (InStr(CString(TPV.display.Value), ".") = 0) THEN > TPV.display.Value = TPV.display.Value & "." --> DONT WORK! > END IF > .... > > it's possible show "1.0" in the lcdnumber?? and "1."?? I can do this? > how? > > thank you!! > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jj at ...1636... Thu Feb 8 22:52:48 2007 From: jj at ...1636... (jj at ...1636...) Date: Thu, 08 Feb 2007 22:52:48 +0100 Subject: [Gambas-user] Problem with lcdnumber - don't show decimal point In-Reply-To: <45CB96FC.8000406@...981...> References: <20070208210135.duikh8rsvms4s4cg@...1637...> <45CB96FC.8000406@...981...> Message-ID: <20070208225248.dvckbgpikgw0wkgg@...1637...> Exactly. That's the problem. From sbungay at ...981... Fri Feb 9 02:34:54 2007 From: sbungay at ...981... (sbungay) Date: Thu, 08 Feb 2007 20:34:54 -0500 Subject: [Gambas-user] Problem with lcdnumber - don't show decimal point In-Reply-To: <20070208225248.dvckbgpikgw0wkgg@...1637...> References: <20070208210135.duikh8rsvms4s4cg@...1637...> <45CB96FC.8000406@...981...> <20070208225248.dvckbgpikgw0wkgg@...1637...> Message-ID: <45CBCFBE.3050607@...981...> OK. So don't manipulate the LCD directly, always move the data through a string first and only send the values in the string to the LCD after a numeric keypress. So your code would change a little... I haven't tried this out yet, but it SHOULD work :) ' This is at the Class declaration level. PRIVATE mTPVString AS String PUBLIC SUB botones_display_Click() SELECT CASE LAST.get_action() CASE "C" TPV.display.Value = 0 ' This part can remain the same. CASE "0" TO "9" ' I am assuming that you want 10 digits INCLUDING the decimal? ' This would be 7 numbers before the decimal and 2 afterward. If len(mTPVString) + len(LAST.tag) < 10 then mTPVString = mTPVString & LAST.tag TPV.display.Value = CFloat(mTPVString) end if ' ' IF Len(CString(TPV.display.Value)) < 10 THEN ' TPV.display.Value = TPV.display.value & CFloat(LAST.tag) ' END IF ' CASE "." ' We don't push the decimal point to TPV, just add it ' to mTPVString mHoldString = mHoldString & "." ' Olde Code ' IF (InStr(CString(TPV.display.Value), ".") = 0) THEN ' TPV.display.Value = TPV.display.Value & "." --> DONT WORK! ' END IF ' Steve jj at ...1636... wrote: > Exactly. That's the problem. > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jj at ...1636... Fri Feb 9 09:00:03 2007 From: jj at ...1636... (jj at ...1636...) Date: Fri, 09 Feb 2007 09:00:03 +0100 Subject: [Gambas-user] Problem with lcdnumber - don't show decimal point In-Reply-To: <45CBCFBE.3050607@...981...> References: <20070208210135.duikh8rsvms4s4cg@...1637...> <45CB96FC.8000406@...981...> <20070208225248.dvckbgpikgw0wkgg@...1637...> <45CBCFBE.3050607@...981...> Message-ID: <20070209090003.sqztrkoqiowkk080@...1637...> Perfect Steve! Thank you! Example code: # Gambas Form File 1.0 { Form Form MoveScaled(0,0,31,31) 'Move(0,0,341,341) Text = ("") { Button1 Button botones Name = "Button1" MoveScaled(5,5,5,3) 'Move(55,55,55,33) Tag = "1" Text = ("1") } { Button2 Button botones Name = "Button2" MoveScaled(11,5,6,3) 'Move(121,55,66,33) Tag = "2" Text = ("2") } { Button3 Button botones Name = "Button3" MoveScaled(18,5,6,3) 'Move(198,55,66,33) Tag = "3" Text = ("3") } { Button4 Button botones Name = "Button4" MoveScaled(5,9,5,3) 'Move(55,99,55,33) Tag = "4" Text = ("4") } { Button5 Button botones Name = "Button5" MoveScaled(11,9,6,3) 'Move(121,99,66,33) Tag = "5" Text = ("5") } { Button6 Button botones Name = "Button6" MoveScaled(18,9,6,3) 'Move(198,99,66,33) Tag = "6" Text = ("6") } { Button7 Button botones Name = "Button7" MoveScaled(5,13,5,3) 'Move(55,143,55,33) Tag = "c" Text = ("c") } { Button9 Button botones Name = "Button9" MoveScaled(18,13,6,3) 'Move(198,143,66,33) Tag = "." Text = (".") } { display LCDNumber MoveScaled(5,17,19,8) 'Move(55,187,209,88) Background = &HD0D0D0& Foreground = &HFFFFFF& Digits = 10 SmallDecimalPoint = True } } The class: ' Gambas class file PRIVATE mTPVString AS String PUBLIC SUB _new() END PUBLIC SUB Form_Open() END PUBLIC SUB botones_Click() SELECT CASE LAST.tag CASE "0" TO "9" IF Len(mTPVString) + Len(LAST.tag) < 10 THEN mTPVString = mTPVString & LAST.tag display.Value = CFloat(mTPVString) END IF CASE "c" display.value = "0" mTPVString = "" CASE "." IF (InStr(CString(display.Value), ".") = 0) THEN mTPVString = mTPVString & "." END IF END SELECT END From sbungay at ...981... Fri Feb 9 16:03:29 2007 From: sbungay at ...981... (sbungay) Date: Fri, 09 Feb 2007 10:03:29 -0500 Subject: [Gambas-user] Problem with lcdnumber - don't show decimal point In-Reply-To: <20070209090003.sqztrkoqiowkk080@...1637...> References: <20070208210135.duikh8rsvms4s4cg@...1637...> <45CB96FC.8000406@...981...> <20070208225248.dvckbgpikgw0wkgg@...1637...> <45CBCFBE.3050607@...981...> <20070209090003.sqztrkoqiowkk080@...1637...> Message-ID: <45CC8D41.30508@...981...> Glad I could help. Steve. jj at ...1636... wrote: > Perfect Steve! Thank you! > From sbungay at ...981... Fri Feb 9 22:03:48 2007 From: sbungay at ...981... (sbungay) Date: Fri, 09 Feb 2007 16:03:48 -0500 Subject: [Gambas-user] Reparenting a form on a tabstrip.... Message-ID: <45CCE1B4.60102@...981...> Goal: To reparent an instance of a form on the tabstrip index of my choice. The code snippet is below. ' Gambas class file PRIVATE mForm1 AS Form Private SUB Form2_Open() mForm1 = NEW Form1 With mForm1 .Reparent(TabStrip1[1]) ' This will give ' Invalid Use of Virtual Class .Reparent(TabStrip1) ' This works fine but the form ' Only appears on the first tab. End With END This is kind of (but not exactly) like what I would do if I created an activex control (now I have to wash my hands) and hosted it on a form in the container of my choosing. Steve. From dcamposf at ...626... Fri Feb 9 23:00:17 2007 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 9 Feb 2007 23:00:17 +0100 Subject: [Gambas-user] Reparenting a form on a tabstrip.... In-Reply-To: <45CCE1B4.60102@...981...> References: <45CCE1B4.60102@...981...> Message-ID: <7259b5ae0702091400w50dde936m1cc6f6e56592b980@...627...> Not a bad idea, I think nobody thought in it before... 2007/2/9, sbungay : > Goal: To reparent an instance of a form on the tabstrip index of my > choice. The code snippet is below. > > ' Gambas class file > PRIVATE mForm1 AS Form > > Private SUB Form2_Open() > mForm1 = NEW Form1 > > With mForm1 > .Reparent(TabStrip1[1]) ' This will give > ' Invalid Use of Virtual Class > .Reparent(TabStrip1) ' This works fine but the form > ' Only appears on the first tab. > End With > END > > > This is kind of (but not exactly) like what I would do if I created > an activex control (now I have to wash my hands) and hosted it on a form > in the container of my choosing. > > Steve. > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Feb 10 00:18:25 2007 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 Feb 2007 00:18:25 +0100 Subject: [Gambas-user] Reparenting a form on a tabstrip.... In-Reply-To: <7259b5ae0702091400w50dde936m1cc6f6e56592b980@...627...> References: <45CCE1B4.60102@...981...> <7259b5ae0702091400w50dde936m1cc6f6e56592b980@...627...> Message-ID: <200702100018.25424.gambas@...1...> On Friday 09 February 2007 23:00, Daniel Campos wrote: > Not a bad idea, I think nobody thought in it before... This is what gb.form.mdi does! > > 2007/2/9, sbungay : > > Goal: To reparent an instance of a form on the tabstrip index of my > > choice. The code snippet is below. > > > > ' Gambas class file > > PRIVATE mForm1 AS Form > > > > Private SUB Form2_Open() > > mForm1 = NEW Form1 > > > > With mForm1 > > .Reparent(TabStrip1[1]) ' This will give > > ' Invalid Use of Virtual Class > > .Reparent(TabStrip1) ' This works fine but the form > > ' Only appears on the first tab. > > End With > > END > > > > > > This is kind of (but not exactly) like what I would do if I created > > an activex control (now I have to wash my hands) and hosted it on a form > > in the container of my choosing. > > > > Steve. > > You must set the TabStrip index before doing the reparenting. Regards, -- Benoit Minisini From dcamposf at ...626... Sat Feb 10 00:21:00 2007 From: dcamposf at ...626... (Daniel Campos) Date: Sat, 10 Feb 2007 00:21:00 +0100 Subject: [Gambas-user] Reparenting a form on a tabstrip.... In-Reply-To: <200702100018.25424.gambas@...1...> References: <45CCE1B4.60102@...981...> <7259b5ae0702091400w50dde936m1cc6f6e56592b980@...627...> <200702100018.25424.gambas@...1...> Message-ID: <7259b5ae0702091521j6e3fb8beh3f3fcfb07a90ad2@...627...> 2007/2/10, Benoit Minisini : > On Friday 09 February 2007 23:00, Daniel Campos wrote: > > Not a bad idea, I think nobody thought in it before... > > This is what gb.form.mdi does! > Well, I never saw it before :-)) From sbungay at ...981... Sat Feb 10 04:26:08 2007 From: sbungay at ...981... (sbungay) Date: Fri, 09 Feb 2007 22:26:08 -0500 Subject: [Gambas-user] Reparenting a form on a tabstrip.... In-Reply-To: <200702100018.25424.gambas@...1...> References: <45CCE1B4.60102@...981...> <7259b5ae0702091400w50dde936m1cc6f6e56592b980@...627...> <200702100018.25424.gambas@...1...> Message-ID: <45CD3B50.9040509@...981...> I see. I would never have guessed to set the tab index first, like the data bound controls, I was once again expecting to explicitly point one object to another :/. I'll have to watch that. Steve :) Benoit Minisini wrote: > On Friday 09 February 2007 23:00, Daniel Campos wrote: > >>Not a bad idea, I think nobody thought in it before... > > > This is what gb.form.mdi does! > > >>2007/2/9, sbungay : >> >>> Goal: To reparent an instance of a form on the tabstrip index of my >>>choice. The code snippet is below. >>> >>> ' Gambas class file >>> PRIVATE mForm1 AS Form >>> >>> Private SUB Form2_Open() >>> mForm1 = NEW Form1 >>> >>> With mForm1 >>> .Reparent(TabStrip1[1]) ' This will give >>> ' Invalid Use of Virtual Class >>> .Reparent(TabStrip1) ' This works fine but the form >>> ' Only appears on the first tab. >>> End With >>> END >>> >>> >>> This is kind of (but not exactly) like what I would do if I created >>>an activex control (now I have to wash my hands) and hosted it on a form >>>in the container of my choosing. >>> >>>Steve. >>> > > > You must set the TabStrip index before doing the reparenting. > > Regards, > From timothy.marshal-nichols at ...247... Mon Feb 12 09:56:27 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Mon, 12 Feb 2007 08:56:27 -0000 Subject: [Gambas-user] Reparenting a form on a tabstrip.... In-Reply-To: <45CD3B50.9040509@...981...> Message-ID: <000001c74e83$b2af1750$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of sbungay > Sent: Saturday, 10 February 2007 03:26 AM > To: mailing list for gambas users > Subject: Re: [Gambas-user] Reparenting a form on a tabstrip.... > > I see. I would never have guessed to set the tab index first, like > the data bound controls, I was once again expecting to explicitly point > one object to another :/. I'll have to watch that. > > Steve :) > > > Benoit Minisini wrote: > > On Friday 09 February 2007 23:00, Daniel Campos wrote: > > > >>Not a bad idea, I think nobody thought in it before... > > > > > > This is what gb.form.mdi does! > > > > > >>2007/2/9, sbungay : > >> > >>> Goal: To reparent an instance of a form on the tabstrip index of my > >>>choice. The code snippet is below. > >>> > >>> ' Gambas class file > >>> PRIVATE mForm1 AS Form > >>> > >>> Private SUB Form2_Open() > >>> mForm1 = NEW Form1 > >>> > >>> With mForm1 > >>> .Reparent(TabStrip1[1]) ' This will give > >>> ' Invalid Use of Virtual Class > >>> .Reparent(TabStrip1) ' This works fine but the form > >>> ' Only appears on the first tab. > >>> End With > >>> END > >>> > >>> > >>> This is kind of (but not exactly) like what I would do if I created > >>>an activex control (now I have to wash my hands) and hosted it on a > form > >>>in the container of my choosing. > >>> > >>>Steve. > >>> > > > > > > You must set the TabStrip index before doing the reparenting. > > > > Regards, > > > In one of my apps I have a number of forms. I then load one of them into a ScrollView container on a main form based upon what the user select from a ComboBox. Here is the code that clears the previous form and loads the new selection. ' Show form based upon item selected in ComboBox PRIVATE SUB ShowDemo() DIM ctrl AS Control DIM oldForm AS Form DIM newForm AS Form ' Close any previous form FOR EACH ctrl IN ScrollViewWindow.Children oldForm = ctrl oldForm.Close() NEXT ' Create a new form SELECT CASE ComboBoxWindows.Index CASE 0 ' Add, Delete and Find items newForm = NEW FormAddDelete(ScrollViewWindow) CASE 1 ' Auto Add newForm = NEW FormAutoAdd(ScrollViewWindow) CASE 2 ' Sorting newForm = NEW FormSorting(ScrollViewWindow) CASE 3 ' Save and Open Lists newForm = NEW FormSave(ScrollViewWindow) CASE 4 ' Fonts newForm = NEW FormFonts(ScrollViewWindow) CASE 5 ' Drag and Drop newForm = NEW FormDragAndDrop(ScrollViewWindow) END SELECT ' Display the new form newForm.Move(0, 0) newForm.Show() END Of course, as Benoit says, you could use a Workspace from gb.form.mdi Thanks 8-{)} Timothy Marshal-Nichols From leonardo at ...1237... Tue Feb 13 18:44:04 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 13 Feb 2007 18:44:04 +0100 Subject: [Gambas-user] Closing signals In-Reply-To: <45CA5663.3010607@...1237...> References: <45CA5663.3010607@...1237...> Message-ID: <45D1F8E4.3050107@...1237...> Leonardo Miliani wrote: > Hello everybody. > I would like to know if there's a way to intercept what is trying to > close a Gambas application. > I remember that in VB there was a way to read the closing signal to know > if the application had been closed from the user by clicking on the "X" > icon or if the system was shutting down and was sending all the > applications the terminating signal. > > I would like to write a check in my applications to close them in a safe > way if they intercept a terminating signal from the system, i.e. during > shutdowns or reboots, to avoyd data loosing. > Thanks. > Up.. Any suggestion? -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gambas at ...1... Tue Feb 13 21:10:56 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 Feb 2007 21:10:56 +0100 Subject: [Gambas-user] Closing signals In-Reply-To: <45CB043A.2090008@...1237...> References: <000001c74b61$863723e0$6401a8c0@...1587...> <45CB043A.2090008@...1237...> Message-ID: <200702132110.56375.gambas@...1...> On jeudi 8 f?vrier 2007, Leonardo Miliani wrote: > timothy wrote: > >> -----Original Message----- > >> From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > >> bounces at lists.sourceforge.net] On Behalf Of Leonardo Miliani > >> Sent: Wednesday, 07 February 2007 10:45 PM > >> To: mailing list for gambas users > >> Subject: [Gambas-user] Closing signals > >> > >> Hello everybody. > >> I would like to know if there's a way to intercept what is trying to > >> close a Gambas application. > >> I remember that in VB there was a way to read the closing signal to > > > > know > > > >> if the application had been closed from the user by clicking on the > > > > "X" > > > >> icon or if the system was shutting down and was sending all the > >> applications the terminating signal. > >> > >> I would like to write a check in my applications to close them in a > > > > safe > > > >> way if they intercept a terminating signal from the system, i.e. > > > > during > > > >> shutdowns or reboots, to avoyd data loosing. > >> Thanks. > >> > >> -- > >> Ciao. > >> Leo. > > > > Hi, > > > > Not sure if this is what you are getting at. But STOP EVENT will stop a > > form closing if it is used in a Form's Close event. So if all you need > > is to handle the user clicking the X on a window then this will do the > > job. > > > > Suppose we have a variable to tell us if changes to our have not been > > saved: > > > > PRIVATE dataChanged AS Boolean > > > > We then set this if the user changes something. And also clear it if the > > user saves. Then we can put this in our Form close event. > > > > PRIVATE dataChanged AS Boolean > > > > PUBLIC SUB Form_Close() > > DIM result AS Integer > > dataChanged = TRUE > > IF dataChanged THEN > > result = Message.Question("Are you sure?", "Quit without saving", > > "Save then quit", "Cancel") > > IF result = 2 THEN > > ' If save is selected then save before quitting > > PRINT "Do save here" > > ELSE IF result = 3 THEN > > ' If cancel is pressed then cancel close form event > > STOP EVENT > > END IF > > END IF > > END > > > > > > Thanks > > > > 8-{)} Timothy Marshal-Nichols > > > > > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > That's not my case. > I know about STOP EVENT and use it to stop the user when he tries to > close the program before saving datas. > But, if the user terminates the working session closing KDE and he > forgets my program opened, this one is brutally closed by the system and > the user looses its datas. > > I would like to know if in Gambas there's a method or a register that > collects the system messages, so when the user closes KDE and my program > is still running, it collects the system shutdown and automatically > saves all the data avoiding data loosing. If you close your session, your program will be closed exactly as if his main window is closed by the user, so you will be warned by the Form_Close() event. But there is no support for session management (i.e. automatic closing and restore at session startup). Regards, -- Benoit Minisini From leandro_anthonioz at ...43... Thu Feb 15 21:41:33 2007 From: leandro_anthonioz at ...43... (Leandro Anthonioz Blanc) Date: Thu, 15 Feb 2007 12:41:33 -0800 (PST) Subject: [Gambas-user] Problem with databound controls Message-ID: <235401.41591.qm@...1638...> Hi everybody. I have a problem in Gambas 1.9.47. I open the ?Database? example and connect to a MySQL 5.0 without problems. Using ?Database? example, I create the ?Test? database. Then create ?color? and ?test? tables and fill them with records. Good. However, if I click the ?Bound controls example ? button, then this message is shown: ?Unknown symbol ?UnSelect? in class ?.GridViewRows??. Can anybody help me? Thank you very much. ____________________________________________________________________________________ The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php From hofmann.rainmaker at ...1601... Fri Feb 16 09:30:50 2007 From: hofmann.rainmaker at ...1601... (Dieter Hofmann) Date: Fri, 16 Feb 2007 09:30:50 +0100 Subject: [Gambas-user] Problem with databound controls In-Reply-To: <235401.41591.qm@...1638...> References: <235401.41591.qm@...1638...> Message-ID: <200702160930.50529.hofmann.rainmaker@...1601...> Am Donnerstag, 15. Februar 2007 21:41 schrieb Leandro Anthonioz Blanc: > Hi everybody. I have a problem in Gambas 1.9.47. I open the ?Database? > example and connect to a MySQL 5.0 without problems. Using ?Database? > example, I create the ?Test? database. Then create ?color? and ?test? > tables and fill them with records. Good. However, if I click the ?Bound > controls example ? button, then this message is shown: ?Unknown symbol > ?UnSelect? in class ?.GridViewRows??. Can anybody help me? Thank you very > much. I have the same problem with gambas 1.9.47 on kubuntu 6.10 edgy eft. I get the same error, when i try tu use any of the databasecontrols inside a datasource. I did ask for a solution in every gambas-forum. But no answer since 4 Weeks!!! Please help us :) Dieter H. From Karl.Reinl at ...9... Fri Feb 16 12:34:43 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 16 Feb 2007 12:34:43 +0100 Subject: [Gambas-user] Problem with databound controls In-Reply-To: <200702160930.50529.hofmann.rainmaker@...1601...> References: <235401.41591.qm@...1638...> <200702160930.50529.hofmann.rainmaker@...1601...> Message-ID: <1171625683.5377.16.camel@...40...> Salut, this is a BUG in the gb.db.form component. You can load /your-path-to-gambas2-1.9.47/comp/src/gb.db.form into the gambas IDE and searching for UnSelect. You will find it twice in DataView.class, at line 117 and 313. Just out comment these 2 lines. Then save your changes, go back to the /your-path-to-gambas2-1.9.47/ and make a su -c 'make install' to install the new gb.db.form component Amicalment Charlie Am Freitag, den 16.02.2007, 09:30 +0100 schrieb Dieter Hofmann: > Am Donnerstag, 15. Februar 2007 21:41 schrieb Leandro Anthonioz Blanc: > > Hi everybody. I have a problem in Gambas 1.9.47. I open the ?Database? > > example and connect to a MySQL 5.0 without problems. Using ?Database? > > example, I create the ?Test? database. Then create ?color? and ?test? > > tables and fill them with records. Good. However, if I click the ?Bound > > controls example?? button, then this message is shown: ?Unknown symbol > > ?UnSelect? in class ?.GridViewRows??. Can anybody help me? Thank you very > > much. > > I have the same problem with gambas 1.9.47 on kubuntu 6.10 edgy eft. I get the > same error, when i try tu use any of the databasecontrols inside a > datasource. > I did ask for a solution in every gambas-forum. But no answer since 4 Weeks!!! > > Please help us :) > > > Dieter H. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leonardo at ...1237... Fri Feb 16 18:01:55 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 16 Feb 2007 18:01:55 +0100 Subject: [Gambas-user] Closing signals In-Reply-To: <200702132110.56375.gambas@...1...> References: <000001c74b61$863723e0$6401a8c0@...1587...> <45CB043A.2090008@...1237...> <200702132110.56375.gambas@...1...> Message-ID: <45D5E383.2000208@...1237...> Benoit Minisini wrote: > If you close your session, your program will be closed exactly as if his main > window is closed by the user, so you will be warned by the Form_Close() > event. > Do you think to implement any kind of desktop events manager to intercept the system signals? So anyone could recognize if it was the user to close the program (maybe alerting him that he's going to loose his work) or a shutdown signal from the system (so, the program can automatically save its data before closing). > But there is no support for session management (i.e. automatic closing and > restore at session startup). No, thanks. I wasn't looking for a restoring management. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gambas at ...1... Fri Feb 16 23:56:16 2007 From: gambas at ...1... (Benoit Minisini) Date: Fri, 16 Feb 2007 23:56:16 +0100 Subject: [Gambas-user] Problem with databound controls In-Reply-To: <200702160930.50529.hofmann.rainmaker@...1601...> References: <235401.41591.qm@...1638...> <200702160930.50529.hofmann.rainmaker@...1601...> Message-ID: <200702162356.16812.gambas@...1...> On vendredi 16 f?vrier 2007, Dieter Hofmann wrote: > Am Donnerstag, 15. Februar 2007 21:41 schrieb Leandro Anthonioz Blanc: > > Hi everybody. I have a problem in Gambas 1.9.47. I open the ?Database? > > example and connect to a MySQL 5.0 without problems. Using ?Database? > > example, I create the ?Test? database. Then create ?color? and ?test? > > tables and fill them with records. Good. However, if I click the ?Bound > > controls example ? button, then this message is shown: ?Unknown symbol > > ?UnSelect? in class ?.GridViewRows??. Can anybody help me? Thank you very > > much. > > I have the same problem with gambas 1.9.47 on kubuntu 6.10 edgy eft. I get > the same error, when i try tu use any of the databasecontrols inside a > datasource. > I did ask for a solution in every gambas-forum. But no answer since 4 > Weeks!!! > > Please help us :) > > > Dieter H. > This has been fixed by Fabien in the SVN. There are problems with selection interfaces between controls: things are not really coherent. Sorry anyway for the delay, I'm currently very busy with my job, and with theater. Regards, -- Benoit Minisini From femia.giuseppe at ...324... Sat Feb 17 16:01:50 2007 From: femia.giuseppe at ...324... (Femia.giuseppe) Date: Sat, 17 Feb 2007 16:01:50 +0100 Subject: [Gambas-user] Request Message-ID: <9d29bf1de69f75c073ea7556465fd6dc@...1639...> I have a problem in Gambas 1.9.47. I open the "Database" example and if i click on "connect" button i try message error "Cannot find driver for database: mysql". Can anybody help me? Thank you very much. -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Un originale invito a cena per i tuoi amici e un gioco divertente per vincere subito un wok in rame di Ballarini! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6223&d=20070217 From Karl.Reinl at ...9... Sat Feb 17 16:34:12 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 17 Feb 2007 16:34:12 +0100 Subject: [Gambas-user] Request In-Reply-To: <9d29bf1de69f75c073ea7556465fd6dc@...1639...> References: <9d29bf1de69f75c073ea7556465fd6dc@...1639...> Message-ID: <1171726452.5398.2.camel@...40...> Salut, how did you install gambas2-1.9.47 and what is you Distro ? Amicalment Charlie Am Samstag, den 17.02.2007, 16:01 +0100 schrieb Femia.giuseppe: > I have a problem in Gambas 1.9.47. I open the "Database" example > and if i click on "connect" button i try message error > "Cannot find driver for database: mysql". > Can anybody help me? Thank you very much. > -- > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > Sponsor: > Un originale invito a cena per i tuoi amici e un gioco divertente per > vincere subito un wok in rame di Ballarini! > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6223&d=20070217 > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From yaco at ...181... Sat Feb 17 16:57:55 2007 From: yaco at ...181... (Franco Iacomella) Date: Sat, 17 Feb 2007 07:57:55 -0800 Subject: [Gambas-user] Embedder control usage Message-ID: <4aaa42cc0702170757o674db052ue79e139e0b5edd7f@...627...> HI, Im traying to learn how to use embedder control. I couldnt find any documentation out there. Can anyone link me to some example or explication? Thanks and regards, -- Franco Iacomella [ GNU Project ] From simonart.dominique at ...11... Sat Feb 17 18:00:21 2007 From: simonart.dominique at ...11... (Dominique Simonart) Date: Sat, 17 Feb 2007 18:00:21 +0100 Subject: [Gambas-user] Install problem of 1.9.47 on SUSE 10.2 Message-ID: <45D734A5.9040309@...11...> Hi everybody, I'm fairly new in Linux although I use SUSE since 9.3! First, I've carefully follow the procedure described by Timothy Marshal-Nichols about prerequisite packages, and I choice the easy way ("Extras" and all with the devel suffixe) with Yast. Then I downloaded the gambas2-1.9.47.tar.bz2 file and extract it in /home/Download/ Finally, I started the ./configure to get this message at the end "These components are disabled gb.corba gb.db.firebird gb.qte " What are the missing packages? Thanks in advance for your help Dominique Simonart (sunny France) From Karl.Reinl at ...9... Sat Feb 17 18:57:56 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 17 Feb 2007 18:57:56 +0100 Subject: [Gambas-user] Install problem of 1.9.47 on SUSE 10.2 In-Reply-To: <45D734A5.9040309@...11...> References: <45D734A5.9040309@...11...> Message-ID: <1171735076.5398.13.camel@...40...> Salut Dominique, like in often with linux, you need not all to run it. Also there is no need to have all components to run gambas. You have the moste common components. Here a short description of your components which are disabled gb.corba for handle with corba lib gb.db.firebird a database driver for firebird database gb.qte Embedded Linux (PDA's etc) If you need more informations about that components search in wickipetia. You can start working, I think Amicalment Charlie Am Samstag, den 17.02.2007, 18:00 +0100 schrieb Dominique Simonart: > Hi everybody, > > I'm fairly new in Linux although I use SUSE since 9.3! > First, I've carefully follow the procedure described by Timothy > Marshal-Nichols about prerequisite packages, and I choice the easy way > ("Extras" and all with the devel suffixe) with Yast. > Then I downloaded the gambas2-1.9.47.tar.bz2 file and extract it in > /home/Download/ > Finally, I started the ./configure to get this message at the end > "These components are disabled > gb.corba > gb.db.firebird > gb.qte " > > What are the missing packages? > > Thanks in advance for your help > Dominique Simonart (sunny France) > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From simonart.dominique at ...11... Sat Feb 17 22:11:49 2007 From: simonart.dominique at ...11... (Dominique Simonart) Date: Sat, 17 Feb 2007 22:11:49 +0100 Subject: [Gambas-user] Install problem of 1.9.47 on SUSE 10.2 In-Reply-To: <1171735076.5398.13.camel@...40...> References: <45D734A5.9040309@...11...> <1171735076.5398.13.camel@...40...> Message-ID: <45D76F95.9040100@...11...> Salut Charlie, Thanks for your reply! In fact,I've already tried to run make and make install, but this did'nt product anythink I could run I noticed with konqueror that OS is Linux 2.6.18.2-34-default i686, but System is openSUSE 10.2 (i586) is this anything important? I tried to find the missing libraries with google but there are so many answers wich I don't understand! amicalement, Dominique Simonart Charlie Reinl a ?crit : > Salut Dominique, > > like in often with linux, you need not all to run it. > Also there is no need to have all components to run gambas. > You have the moste common components. > > Here a short description of your components which are disabled > gb.corba for handle with corba lib > gb.db.firebird a database driver for firebird database > gb.qte Embedded Linux (PDA's etc) > > If you need more informations about that components search in wickipetia. > > You can start working, I think > > Amicalment > Charlie > From leonardo at ...1237... Sat Feb 17 22:54:06 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 17 Feb 2007 22:54:06 +0100 Subject: [Gambas-user] Install problem of 1.9.47 on SUSE 10.2 In-Reply-To: <45D76F95.9040100@...11...> References: <45D734A5.9040309@...11...> <1171735076.5398.13.camel@...40...> <45D76F95.9040100@...11...> Message-ID: <45D7797E.4000309@...1237...> Ciao Dominique, I'm using the same system and I think I can help you :-) For gb.corba you need the packages omniORB e omniORB-devel; for gb.db.firebird you need the firebird database: http://prdownloads.sourceforge.net/firebird/FirebirdCS-1.5.4.4910-0.i686.rpm for gb.qte.... I don't know! Some weeks ago I asked the same question but I didn't find nothing that could help me to compile that component... sorry. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From Karl.Reinl at ...9... Sun Feb 18 00:50:04 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 18 Feb 2007 00:50:04 +0100 Subject: [Gambas-user] Install problem of 1.9.47 on SUSE 10.2 In-Reply-To: <45D76F95.9040100@...11...> References: <45D734A5.9040309@...11...> <1171735076.5398.13.camel@...40...> <45D76F95.9040100@...11...> Message-ID: <1171756204.21443.11.camel@...40...> Salut Dominique, I'v read you mail several times, but now I think I'v understood your problem. You look for the gambas application, right ? Just open a terminal and type 'gambas2.gambas' and the gambas IDE will start. After you can look where it is placed and create your a link on your desktop. (/usr/local/bin/gambas2.gambas) Even if you don't have all these components. You don't need all components, which come with gambas. Amicalment Charlie Am Samstag, den 17.02.2007, 22:11 +0100 schrieb Dominique Simonart: > Salut Charlie, > > Thanks for your reply! > In fact,I've already tried to run make and make install, but this did'nt > product anythink I could run > > I noticed with konqueror that OS is Linux 2.6.18.2-34-default i686, but > System is openSUSE 10.2 (i586) > is this anything important? > > I tried to find the missing libraries with google but there are so many > answers wich I don't understand! > > amicalement, > Dominique Simonart > > Charlie Reinl a ?crit : > > Salut Dominique, > > > > like in often with linux, you need not all to run it. > > Also there is no need to have all components to run gambas. > > You have the moste common components. > > > > Here a short description of your components which are disabled > > gb.corba for handle with corba lib > > gb.db.firebird a database driver for firebird database > > gb.qte Embedded Linux (PDA's etc) > > > > If you need more informations about that components search in wickipetia. > > > > You can start working, I think > > > > Amicalment > > Charlie > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leandro_anthonioz at ...43... Sun Feb 18 04:34:38 2007 From: leandro_anthonioz at ...43... (Leandro Anthonioz Blanc) Date: Sat, 17 Feb 2007 19:34:38 -0800 (PST) Subject: [Gambas-user] Thank you! In-Reply-To: Message-ID: <431252.21441.qm@...1642...> Hi folks! I applied Charlie's fix and databound controls problem disappears. Thank you very much Charlie! And thanks to Fabien and Benoit too for include the patch in main source code. This fix is very important to me because I need start a data-centric project with Gambas and MySQL. Thank you! > From: Charlie Reinl > Subject: Re: [Gambas-user] Problem with databound controls > To: mailing list for gambas users > Message-ID: <1171625683.5377.16.camel at ...40...> > Content-Type: text/plain; charset=utf-8 > > Salut, > > this is a BUG in the gb.db.form component. > > You can load /your-path-to-gambas2-1.9.47/comp/src/gb.db.form into the > gambas IDE and searching for UnSelect. > You will find it twice in DataView.class, at line 117 and 313. > Just out comment these 2 lines. > Then save your changes, go back to the /your-path-to-gambas2-1.9.47/ and > make a > su -c 'make install' > to install the new gb.db.form component > > Amicalment > Charlie > > Am Freitag, den 16.02.2007, 09:30 +0100 schrieb Dieter Hofmann: > > Am Donnerstag, 15. Februar 2007 21:41 schrieb Leandro Anthonioz Blanc: > > > Hi everybody. I have a problem in Gambas 1.9.47. I open the ?Database? > > > example and connect to a MySQL 5.0 without problems. Using ?Database? > > > example, I create the ?Test? database. Then create ?color? and ?test? > > > tables and fill them with records. Good. However, if I click the ?Bound > > > controls example?? button, then this message is shown: ?Unknown symbol > > > ?UnSelect? in class ?.GridViewRows??. Can anybody help me? Thank you very > > > much. > > > From: Benoit Minisini > Subject: Re: [Gambas-user] Problem with databound controls > To: mailing list for gambas users > Message-ID: <200702162356.16812.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-1" > > This has been fixed by Fabien in the SVN. There are problems with selection > interfaces between controls: things are not really coherent. > > Sorry anyway for the delay, I'm currently very busy with my job, and with > theater. > > Regards, > > -- > Benoit Minisini > ____________________________________________________________________________________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html From ronstk at ...239... Sun Feb 18 08:10:52 2007 From: ronstk at ...239... (ron) Date: Sun, 18 Feb 2007 08:10:52 +0100 Subject: [Gambas-user] Install problem of 1.9.47 on SUSE 10.2 In-Reply-To: <1171756204.21443.11.camel@...40...> References: <45D734A5.9040309@...11...> <45D76F95.9040100@...11...> <1171756204.21443.11.camel@...40...> Message-ID: <200702180810.53218.ronstk@...239...> On Sunday 18 February 2007 00:50, Charlie Reinl wrote: > Salut Dominique, > > I'v read you mail several times, but now I think I'v understood your > problem. > > You look for the gambas application, right ? > > Just open a terminal and type 'gambas2.gambas' and the gambas IDE will > start. > > After you can look where it is placed and create your a link on your > desktop. (/usr/local/bin/gambas2.gambas) SuSE intercept something at ./configure If you did not use './configure -C --prefix=/usr/local' your best place is to look in '/opt/gambas' for SuSE, in my case with SuSE 8.2 till 9.2 using only './configure -C' SuSE prefix nothing /opt/gambas/bin /usr/local/bin /usr/bin In '/usr/bin' there should be a symlink named 'gambas' or 'gambas2' so entering in console 'gambas2' should be sufficient. > > Even if you don't have all these components. > You don't need all components, which come with gambas. > > Amicalment > Charlie > in attachment a little how-to to add the desktop file and mimetype It's my old one for SuSE, now using kubuntu and still no 'gambas :( Ron -------------- next part -------------- A non-text attachment was scrubbed... Name: gbr2.desktop Type: application/x-desktop Size: 308 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: x-gambas2.desktop Type: application/x-desktop Size: 125 bytes Desc: not available URL: -------------- next part -------------- On Monday 01 May 2006 17:32, Leonardo Miliani wrote: > I would like to ask why I have problems running Gambas executables on my > Suse 9.3 & KDE 3.5.2 > > When I write a program with Gambas 2 and I create the executable file > (Project/Create executable), after that if I click on the generated file > from a Konqueror window the program doesn't start (of course, I > specified to open it with gb2x), ?But if I open a console and I try to > type the name of the program, ?it starts with no problems.... > Is there any option to specify from Konqueror to get the Gambas > executable running? > I did add it to suse9.2 with KDE 3.5.2 Got to Personal Settings Select KDE Components->File Associations Press Add... Select Group:Applications Type name:x-gambas2 At General tab Click Add... Enter :*.gambas Enter in the Description box :Gambas2 executable At Application Preference Order click Add.. enter as application gbr2 (do nor browse the tree) press OK Select under Application Preference Order your entered app. click Edit Go to General tab and enter something usefull At Application tab Name:gbr2 (if not there) Command:gbr2 (if not there) By supported filetypes there should be ? Application/x-gambas2 ? Gambas Executable ================================== or you can do next: in the two .desktop files replace '/home/ron/.kde/' eventualy to '/opt/kde3/' for system wide. (SuSE) but check the content in the files for correct paths. You can put gbr2.dexktop in /home/ron/.kde/share/applnk/.hidden You can put x-gambas2.desktop in /home/ron/.kde/share/mimelnk/application/x-gambas2.desktop run from commandline: kbuildsycoca Now it should be working A click on the 'yourproject.gambas' should start 'yourproject' ================================== Hope this will help you Ron From timothy.marshal-nichols at ...247... Sun Feb 18 09:22:43 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Sun, 18 Feb 2007 08:22:43 -0000 Subject: [Gambas-user] Install problem of 1.9.47 on SUSE 10.2 In-Reply-To: <200702180810.53218.ronstk@...239...> Message-ID: <000901c75335$f81bebe0$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of ron > Sent: Sunday, 18 February 2007 07:11 AM > To: mailing list for gambas users > Subject: Re: [Gambas-user] Install problem of 1.9.47 on SUSE 10.2 > > On Sunday 18 February 2007 00:50, Charlie Reinl wrote: > > Salut Dominique, > > > > I'v read you mail several times, but now I think I'v understood your > > problem. > > > > You look for the gambas application, right ? > > > > Just open a terminal and type 'gambas2.gambas' and the gambas IDE will > > start. > > > > After you can look where it is placed and create your a link on your > > desktop. (/usr/local/bin/gambas2.gambas) > > SuSE intercept something at ./configure > > If you did not use './configure -C --prefix=/usr/local' your best place is > to > look in '/opt/gambas' for SuSE, in my case with SuSE 8.2 till 9.2 using > only './configure -C' > > SuSE prefix nothing > /opt/gambas/bin /usr/local/bin /usr/bin > > In '/usr/bin' there should be a symlink named 'gambas' or 'gambas2' so > entering in console 'gambas2' should be sufficient. > > > > > Even if you don't have all these components. > > You don't need all components, which come with gambas. > > > > Amicalment > > Charlie > > > > in attachment a little how-to to add the desktop file and mimetype > It's my old one for SuSE, now using kubuntu and still no 'gambas :( > > Ron One other point: when you do the 'make install' step do it as root user. You use 'su' for this. E.g. su -c "make install" this will then prompt you for the root password. In the other steps you can be yourself. Thanks 8-{)} Timothy Marshal-Nichols From Karl.Reinl at ...9... Sun Feb 18 18:15:47 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 18 Feb 2007 18:15:47 +0100 Subject: [Gambas-user] running "su -c 'make uninstall'" prevents SIG 11 Message-ID: <200702181815.48120.Karl.Reinl@...9...> Salut, from time to time when I looked into old projects and ran them, I'v got when I closed them, an SIG 11. Today I found why. I had in /usr/local/lib/gambas2/ an old no more supported 'gb.qt.editor' this came from before gambas2.1.9.31 and It was still in the .project file. Today, (I actually clean up my box,)the first time since I work with gambas, I made a "su -c 'make uninstall'" and found after this 'gb.qt.editor.so' and some other files in /usr/local/lib/gambas2/ After having reinstalled gambas2-1.9.47, I tried to load one of these 'problem' projects, and gambas claimed 'gb.qt.editor' not found. I cloudn't run that project. While the files for gb.qt.editor were no more in /usr/local/lib/gambas2/ so it were also no more in the component Window. The only way to make the project running was by editing the .project file. Amicalment Charlie From simonart.dominique at ...11... Sun Feb 18 21:24:02 2007 From: simonart.dominique at ...11... (Dominique Simonart) Date: Sun, 18 Feb 2007 21:24:02 +0100 Subject: [Gambas-user] Install problem of 1.9.47 on SUSE 10.2 In-Reply-To: <000901c75335$f81bebe0$6401a8c0@...1587...> References: <000901c75335$f81bebe0$6401a8c0@...1587...> Message-ID: <45D8B5E2.9080104@...11...> Hi everybody, Thanks to all of the helpers! >> On Sunday 18 February 2007 00:50, Charlie Reinl wrote: >> >>> Salut Dominique, >>> >>> I'v read you mail several times, but now I think I'v understood your >>> problem. >>> >>> You look for the gambas application, right ? No Charlie, your first understanding was correct, I just want to install Gambas itself. I managed to download omniORB pakages, but what is the correct environment, i586 or x86_64? I've a AMD Athlon 64 3500+ and Konqueror show the OS is linux 2.6.18.2-34 default i686 I noticed gb.qte is searching for qt3 libs. in my openSUSE 10.2 qt4 is fully installed plus some qt3 components (qt3 itself is showed as installed in Yast) may be this is the source of the problem? > One other point: when you do the 'make install' step do it as root user. > You use 'su' for this. E.g. > > su -c "make install" > > this will then prompt you for the root password. In the other steps you > can be yourself. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > Thanks Timothy, and yes, I made it as the readme said. Well, I believed Gambas was not installed!, but it was! The first time I started it, it would not but I remembered I've installed gambas 1.9.34 integrated in openSUSE 10.2 (it never worked!)! After I removed all the components and reinstalled Gambas 1.9.47 it started good!! Now I've another problem so I will start a new post shortly. This one is ended! :) Thanks to the community of Gambas! Dominique Simonart From simonart.dominique at ...11... Sun Feb 18 21:52:46 2007 From: simonart.dominique at ...11... (Dominique Simonart) Date: Sun, 18 Feb 2007 21:52:46 +0100 Subject: [Gambas-user] Loading an old project in gambas 1.9.47 Message-ID: <45D8BC9E.2090106@...11...> Hi everybody, remember me? I just finished to install gambas 1.9.47 with your help! I immediatly want to reload an old project developped with gambas 1.9.23 (if I remember well) After half an hour (cpu 100%) it wasn't finished to load so I killed it! I could see the gambas icon with the text "loading informations on gb.qt.ext component..." (I translate it because it is in french on my screen!) What can I do? Is there a chance to get it working without rewrite it from scratch (total size of class files is about 115Kb)? Thanks for your help Dominique Simonart From timothy.marshal-nichols at ...247... Sun Feb 18 22:09:20 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Sun, 18 Feb 2007 21:09:20 -0000 Subject: [Gambas-user] Loading an old project in gambas 1.9.47 In-Reply-To: <45D8BC9E.2090106@...11...> Message-ID: <000001c753a1$10551540$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of Dominique Simonart > Sent: Sunday, 18 February 2007 08:53 PM > To: mailing list for gambas users > Subject: [Gambas-user] Loading an old project in gambas 1.9.47 > > Hi everybody, > > remember me? I just finished to install gambas 1.9.47 with your help! > I immediatly want to reload an old project developped with gambas 1.9.23 > (if I remember well) > After half an hour (cpu 100%) it wasn't finished to load so I killed it! > I could see the gambas icon with the text "loading informations on > gb.qt.ext component..." (I translate it because it is in french on my > screen!) > > What can I do? Is there a chance to get it working without rewrite it > from scratch (total size of class files is about 115Kb)? > > Thanks for your help > Dominique Simonart > > There are two things you can do with old projects. Both of these options are to be found in the "Project" menu: 1) Do a "Clean up". 2) Do a "Compile All" These might highlight some things you need to fix because of changes in Gambas. Thanks 8-{)} Timothy Marshal-Nichols From gambas at ...1... Sun Feb 18 22:20:03 2007 From: gambas at ...1... (Benoit Minisini) Date: Sun, 18 Feb 2007 22:20:03 +0100 Subject: [Gambas-user] Loading an old project in gambas 1.9.47 In-Reply-To: <45D8BC9E.2090106@...11...> References: <45D8BC9E.2090106@...11...> Message-ID: <200702182220.03653.gambas@...1...> On dimanche 18 f?vrier 2007, Dominique Simonart wrote: > Hi everybody, > > remember me? I just finished to install gambas 1.9.47 with your help! > I immediatly want to reload an old project developped with gambas 1.9.23 > (if I remember well) > After half an hour (cpu 100%) it wasn't finished to load so I killed it! > I could see the gambas icon with the text "loading informations on > gb.qt.ext component..." (I translate it because it is in french on my > screen!) > > What can I do? Is there a chance to get it working without rewrite it > from scratch (total size of class files is about 115Kb)? > > Thanks for your help > Dominique Simonart > Before burning everything, try to remove from the .project files the "Library=" lines (they tell the IDE the components used by the project). Then try to open it: if it is successful, you will be able to add the components back from the project property dialog. Regards, -- Benoit Minisini From simonart.dominique at ...11... Sun Feb 18 22:25:41 2007 From: simonart.dominique at ...11... (Dominique Simonart) Date: Sun, 18 Feb 2007 22:25:41 +0100 Subject: [Gambas-user] Loading an old project in gambas 1.9.47 In-Reply-To: <000001c753a1$10551540$6401a8c0@...1587...> References: <000001c753a1$10551540$6401a8c0@...1587...> Message-ID: <45D8C455.3050001@...11...> Hi Timothy, timothy a ?crit : > There are two things you can do with old projects. Both of these options > are to be found in the "Project" menu: > > 1) Do a "Clean up". > > 2) Do a "Compile All" > > These might highlight some things you need to fix because of changes in > Gambas. Well Timothy, in fact my project is never loaded (it don't finish to load!) Sure enough, after I could load it I will follow your advices! Thanks, Dominique Simonart From el.carly at ...626... Mon Feb 19 00:10:47 2007 From: el.carly at ...626... (Carlos Cuello) Date: Sun, 18 Feb 2007 23:10:47 +0000 Subject: [Gambas-user] Installing Gambas2 on a Debian based Distro Message-ID: Hi! I'm trying to install the gambas2 version, I've tried the steps that are indicated in the gambas website to do it using apt-get. But when I run the apt-get install gambas2 It shows me that there some failed to fulfill dependecies, in the forums of the distro that I use (is Tuquito, and is an Argentinian Debian Based Distro) adviced me to use the -t unstable option with the apt-get command, but when I do this, it shows me that it will change o lot of modules, including Xfree, Amarok, between others. And I don't believe that those are dependencies of Gambas, but maybe you could bring me some clarity to this matter. Thanks in advance. Carlos Cuello From dcamposf at ...626... Mon Feb 19 00:35:29 2007 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 19 Feb 2007 00:35:29 +0100 Subject: [Gambas-user] Installing Gambas2 on a Debian based Distro In-Reply-To: References: Message-ID: <7259b5ae0702181535t4dc7812ay7fd714a662989827@...627...> Try adding gnuLinEx packages, if you're running a Debian Sarge based distribution you'll probably need that to update some base libraries for Gambas deb http://apt.linex.org/linex2006 sarge linex2006 Daniel 2007/2/19, Carlos Cuello : > Hi! I'm trying to install the gambas2 version, I've tried the steps that are > indicated in the gambas website to do it using apt-get. But when I run the > apt-get install gambas2 It shows me that there some failed to fulfill > dependecies, in the forums of the distro that I use (is Tuquito, and is an > Argentinian Debian Based Distro) adviced me to use the -t unstable option > with the apt-get command, but when I do this, it shows me that it will > change o lot of modules, including Xfree, Amarok, between others. And I > don't believe that those are dependencies of Gambas, but maybe you could > bring me some clarity to this matter. > Thanks in advance. > > Carlos Cuello > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jonathan.astolfi at ...626... Mon Feb 19 00:38:43 2007 From: jonathan.astolfi at ...626... (Jonathan Astolfi) Date: Mon, 19 Feb 2007 00:38:43 +0100 Subject: [Gambas-user] Installing Gambas2 on a Debian based Distro In-Reply-To: References: Message-ID: <45D8E383.7060905@...626...> I use gambas2 on Ubuntu 6.10 and before compiling it i do this: sudo apt-get install build-essential libsdl-gfx1.2-dev libsdl-ttf2.0-dev libomniorb4-dev libldap2-dev libcurl3-gnutls-dev libpq-dev libgtkhtml2-dev kdepim-dev unixodbc-dev libdbd-sqlite libsqlite0-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsqlite3-dev libmysqlclient15-dev This will take (in /var/cache/apt.... ) and install all library you need. Try it with debian ... the rock undeer ubuntu ... Ok ? Carlos Cuello ha scritto: > Hi! I'm trying to install the gambas2 version, I've tried the steps that are > indicated in the gambas website to do it using apt-get. But when I run the > apt-get install gambas2 It shows me that there some failed to fulfill > dependecies, in the forums of the distro that I use (is Tuquito, and is an > Argentinian Debian Based Distro) adviced me to use the -t unstable option > with the apt-get command, but when I do this, it shows me that it will > change o lot of modules, including Xfree, Amarok, between others. And I > don't believe that those are dependencies of Gambas, but maybe you could > bring me some clarity to this matter. > Thanks in advance. > > Carlos Cuello > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From el.carly at ...626... Mon Feb 19 00:54:43 2007 From: el.carly at ...626... (Carlos Cuello) Date: Sun, 18 Feb 2007 23:54:43 +0000 Subject: [Gambas-user] Installing Gambas2 on a Debian based Distro In-Reply-To: <45D8E383.7060905@...626...> References: <45D8E383.7060905@...626...> Message-ID: Jonathan, I'll try that. At this moment my conection is really LAME!!! the apt-get update is running at B/s so maybe tomorrow. Daniel, the Distro is Etch based :S......that is what I can realise from looking at my sources.list where the majority of the mirrors are etch and there is one sid.....I don't know a better way of saying. Will your advice still work? Regards Carlos Cuello 2007/2/18, Jonathan Astolfi : > > I use gambas2 on Ubuntu 6.10 and before compiling it i do this: > > sudo apt-get install build-essential libsdl-gfx1.2-dev libsdl-ttf2.0-dev > libomniorb4-dev libldap2-dev libcurl3-gnutls-dev libpq-dev > libgtkhtml2-dev kdepim-dev unixodbc-dev libdbd-sqlite libsqlite0-dev > libsdl-image1.2-dev libsdl-mixer1.2-dev libsqlite3-dev > libmysqlclient15-dev > > This will take (in /var/cache/apt.... ) and install all library you need. > > Try it with debian ... the rock undeer ubuntu ... > > Ok ? > > > > Carlos Cuello ha scritto: > > Hi! I'm trying to install the gambas2 version, I've tried the steps that > are > > indicated in the gambas website to do it using apt-get. But when I run > the > > apt-get install gambas2 It shows me that there some failed to fulfill > > dependecies, in the forums of the distro that I use (is Tuquito, and is > an > > Argentinian Debian Based Distro) adviced me to use the -t unstable > option > > with the apt-get command, but when I do this, it shows me that it will > > change o lot of modules, including Xfree, Amarok, between others. And I > > don't believe that those are dependencies of Gambas, but maybe you could > > bring me some clarity to this matter. > > Thanks in advance. > > > > Carlos Cuello > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From simonart.dominique at ...11... Mon Feb 19 00:58:36 2007 From: simonart.dominique at ...11... (Dominique Simonart) Date: Mon, 19 Feb 2007 00:58:36 +0100 Subject: [Gambas-user] Loading an old project in gambas 1.9.47 In-Reply-To: <200702182220.03653.gambas@...1...> References: <45D8BC9E.2090106@...11...> <200702182220.03653.gambas@...1...> Message-ID: <45D8E82C.4070201@...11...> Hi Benoit, Gratefully thanks, it loaded! Benoit Minisini a ?crit : > Before burning everything, try to remove from the .project files > the "Library=" lines (they tell the IDE the components used by the project). > Then try to open it: if it is successful, you will be able to add the > components back from the project property dialog. I saved the .project file before and then I've compared with the new one. The only differences about libraries are the order and the sdl component I don't know if this is relevant. before it was gb.debug gb.qt gb.form gb.qt.ext gb.qt.kde gb.sdl gb.qt.kde.html now it is gb.qt gb.debug gb.form gb.qt.ext gb.qt.kde gb.qt.kde.html gb.sdl.sound Thanks again Dominique Simonart From el.carly at ...626... Mon Feb 19 01:13:54 2007 From: el.carly at ...626... (Carlos Cuello) Date: Mon, 19 Feb 2007 00:13:54 +0000 Subject: [Gambas-user] Installing Gambas2 on a Debian based Distro In-Reply-To: References: <45D8E383.7060905@...626...> Message-ID: Well, my connection has miracle got faster. So I tried Jonathan's suggestion, but I only get more unfulfill dependencies, and when I tried to fulfill those, I got more unfulfilled dependencies. So I'm stuck here. Any ideas? :( Carlos 2007/2/18, Carlos Cuello : > > Jonathan, I'll try that. At this moment my conection is really LAME!!! the > apt-get update is running at B/s so maybe tomorrow. > Daniel, the Distro is Etch based :S......that is what I can realise from > looking at my sources.list where the majority of the mirrors are etch and > there is one sid.....I don't know a better way of saying. > Will your advice still work? Regards > > Carlos Cuello > > 2007/2/18, Jonathan Astolfi < jonathan.astolfi at ...626...>: > > > > I use gambas2 on Ubuntu 6.10 and before compiling it i do this: > > > > sudo apt-get install build-essential libsdl-gfx1.2-dev libsdl-ttf2.0-dev > > libomniorb4-dev libldap2-dev libcurl3-gnutls-dev libpq-dev > > libgtkhtml2-dev kdepim-dev unixodbc-dev libdbd-sqlite libsqlite0-dev > > libsdl-image1.2-dev libsdl-mixer1.2-dev libsqlite3-dev > > libmysqlclient15-dev > > > > This will take (in /var/cache/apt.... ) and install all library you > > need. > > > > Try it with debian ... the rock undeer ubuntu ... > > > > Ok ? > > > > > > > > Carlos Cuello ha scritto: > > > Hi! I'm trying to install the gambas2 version, I've tried the steps > > that are > > > indicated in the gambas website to do it using apt-get. But when > > I run the > > > apt-get install gambas2 It shows me that there some failed to fulfill > > > dependecies, in the forums of the distro that I use (is Tuquito, and > > is an > > > Argentinian Debian Based Distro) adviced me to use the -t unstable > > option > > > with the apt-get command, but when I do this, it shows me that it will > > > change o lot of modules, including Xfree, Amarok, between others. And > > I > > > don't believe that those are dependencies of Gambas, but maybe you > > could > > > bring me some clarity to this matter. > > > Thanks in advance. > > > > > > Carlos Cuello > > > > > ------------------------------------------------------------------------- > > > Take Surveys. Earn Cash. Influence the Future of IT > > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > > opinions on IT & business topics through brief surveys-and earn cash > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------- > > > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys-and earn cash > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > From dcamposf at ...626... Mon Feb 19 09:10:07 2007 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 19 Feb 2007 09:10:07 +0100 Subject: [Gambas-user] Installing Gambas2 on a Debian based Distro In-Reply-To: References: <45D8E383.7060905@...626...> Message-ID: <7259b5ae0702190010p4140ce6fyb439de480e92b73e@...627...> I think: May be you should add the deb-src sources from Gambas to sources.list, download the debian source packages (apt-get source ....), and then rebuild the packages for your distribution. The Gambas packages are for SID, not ETCH, so that seems the problem. Recompiling the packages should work, it works even for Ubuntu... :-) Daniel 2007/2/19, Carlos Cuello : > Well, my connection has miracle got faster. So I tried Jonathan's > suggestion, but I only get more unfulfill dependencies, and when I tried to > fulfill those, I got more unfulfilled dependencies. So I'm stuck here. Any > ideas? :( > > Carlos > > 2007/2/18, Carlos Cuello : > > > > Jonathan, I'll try that. At this moment my conection is really LAME!!! the > > apt-get update is running at B/s so maybe tomorrow. > > Daniel, the Distro is Etch based :S......that is what I can realise from > > looking at my sources.list where the majority of the mirrors are etch and > > there is one sid.....I don't know a better way of saying. > > Will your advice still work? Regards > > > > Carlos Cuello > > > > 2007/2/18, Jonathan Astolfi < jonathan.astolfi at ...626...>: > > > > > > I use gambas2 on Ubuntu 6.10 and before compiling it i do this: > > > > > > sudo apt-get install build-essential libsdl-gfx1.2-dev libsdl-ttf2.0-dev > > > libomniorb4-dev libldap2-dev libcurl3-gnutls-dev libpq-dev > > > libgtkhtml2-dev kdepim-dev unixodbc-dev libdbd-sqlite libsqlite0-dev > > > libsdl-image1.2-dev libsdl-mixer1.2-dev libsqlite3-dev > > > libmysqlclient15-dev > > > > > > This will take (in /var/cache/apt.... ) and install all library you > > > need. > > > > > > Try it with debian ... the rock undeer ubuntu ... > > > > > > Ok ? > > > > > > > > > > > > Carlos Cuello ha scritto: > > > > Hi! I'm trying to install the gambas2 version, I've tried the steps > > > that are > > > > indicated in the gambas website to do it using apt-get. But when > > > I run the > > > > apt-get install gambas2 It shows me that there some failed to fulfill > > > > dependecies, in the forums of the distro that I use (is Tuquito, and > > > is an > > > > Argentinian Debian Based Distro) adviced me to use the -t unstable > > > option > > > > with the apt-get command, but when I do this, it shows me that it will > > > > change o lot of modules, including Xfree, Amarok, between others. And > > > I > > > > don't believe that those are dependencies of Gambas, but maybe you > > > could > > > > bring me some clarity to this matter. > > > > Thanks in advance. > > > > > > > > Carlos Cuello > > > > > > > ------------------------------------------------------------------------- > > > > Take Surveys. Earn Cash. Influence the Future of IT > > > > Join SourceForge.net's Techsay panel and you'll get the chance to > > > share your > > > > opinions on IT & business topics through brief surveys-and earn cash > > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > Take Surveys. Earn Cash. Influence the Future of IT > > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > > your > > > opinions on IT & business topics through brief surveys-and earn cash > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leonardo at ...1237... Mon Feb 19 17:32:00 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 19 Feb 2007 17:32:00 +0100 Subject: [Gambas-user] Bug in Gambas version :-) Message-ID: <45D9D100.2090109@...1237...> I use Gambas 1.9.47, as I can see from the menu "?/About Gambas"... But if I open a console and type "? application.version" I get 1.9.46 :-))) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From leandro_anthonioz at ...43... Tue Feb 20 03:35:03 2007 From: leandro_anthonioz at ...43... (Leandro Anthonioz Blanc) Date: Mon, 19 Feb 2007 18:35:03 -0800 (PST) Subject: [Gambas-user] Could be this change included? Message-ID: <442461.94537.qm@...1647...> Hi folks. I needed get a resultset from a MySQL stored procedure. However, when I execute a line like this: hResult = hConn.Exec("CALL MyStoredProcedure(2)") I get the following error: "PROCEDURE MyStoredProcedure can't return a result set in the given context" Later, I read in MySQL documentation ("24.2.9. C API Handling of Multiple Statement Execution") this: "The mysql_real_connect() function has a flags argument for which two option values are relevent: * CLIENT_MULTI_RESULTS enables the client program to process multiple results. This option must be enabled if you execute CALL statements for stored procedures that produce result sets. Otherwise, such procedures result in an error Error 1312 (0A000): PROCEDURE proc_name can't return a result set in the given context." Therefore, I edit open_database() function in gb.db.mysql/src/main.c file. I modify the mysql_real_connect call changing last argument (0) to CLIENT_MULTI_RESULTS constant and works fine. Could be this change included in future versions of Gambas please? Thank you very much. ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com From sbungay at ...981... Tue Feb 20 05:00:59 2007 From: sbungay at ...981... (sbungay) Date: Mon, 19 Feb 2007 23:00:59 -0500 Subject: [Gambas-user] Trapping events from dynamically created controls.... Message-ID: <45DA727B.8000004@...981...> How can one capture events from controls that are created on the fly? In my case I am creating buttons and want to capture the mousemove event or click event of the control that was just created. I think if I was able to add each programatically created control to a special group then that group could capture and process the events. Is this possible? Steve. From timothy.marshal-nichols at ...247... Tue Feb 20 10:20:42 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Tue, 20 Feb 2007 09:20:42 -0000 Subject: [Gambas-user] Trapping events from dynamically created controls.... In-Reply-To: <45DA727B.8000004@...981...> Message-ID: <000001c754d0$66547410$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of sbungay > Sent: Tuesday, 20 February 2007 04:01 AM > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Trapping events from dynamically created > controls.... > > How can one capture events from controls that are created on the fly? > In my case I am creating buttons and want to capture the mousemove event > or click event of the control that was just created. > I think if I was able to add each programatically created control to a > special group then that group could capture and process the events. Is > this possible? > > Steve. > Here is an example that creates a number of buttons and places them on a form. We create a new button, the ME parameter to NEW tells the button which container it should live in. You could use any other container e.g. a ScrollView. The AS "KeyButton" gives us the name to use when handling the buttons events. We also set some other properties of the button. We have set the Form.Arrangement property to make the buttons look a bit nicer for this example. The button click event is handled by the KeyButton_Click procedure - this must match the AS "KeyButton" statement. We get the button object using the LAST keyword. Here we just display the Name and Tag using a Message box. *************** PUBLIC SUB Form_Open() DIM b AS Button DIM i AS Integer ' Fill the form with buttons for ' ASCII codes 33 to 126 FOR i = 33 TO 126 b = NEW Button(ME) AS "KeyButton" b.Font.Size = 32 b.Width = 56 b.Height = 56 IF Chr(i) LIKE "&" THEN b.Text = "&&" ELSE b.Text = Chr(i) END IF b.Tag = i b.ToolTip = "ASCII: 0x" & Hex(i, 2) NEXT ' Set the form arrangement so the buttons ' fill the form area right to left. Note thet ' when you resize the form the button fill the ' available space ME.Arrangement = Arrange.LeftRight END ' Handle button click event PUBLIC SUB KeyButton_Click() Message.Info("Button Tag: " & LAST.Tag & "\nButton Text: " & LAST.Text) END ****************** From: http://www.linuxbasic.net/index.php?topic=117.0 Thanks 8-{)} Timothy Marshal-Nichols From el.carly at ...626... Tue Feb 20 15:06:06 2007 From: el.carly at ...626... (Carlos Cuello) Date: Tue, 20 Feb 2007 14:06:06 +0000 Subject: [Gambas-user] Bug in Gambas version :-) In-Reply-To: <45D9D100.2090109@...1237...> References: <45D9D100.2090109@...1237...> Message-ID: I'm currently using Gambas 1.0.16 and if do the same thing that you do I get 1.0.109 :P Greetings Carlos 2007/2/19, Leonardo Miliani : > > I use Gambas 1.9.47, as I can see from the menu "?/About Gambas"... > But if I open a console and type "? application.version" I get 1.9.46:-))) > > -- > Ciao. > Leo. > > Web: www.leonardomiliani.com > E-mail: leonardo at ...1237... > Scegli software opensource - Choose opensource software > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...9... Tue Feb 20 17:58:22 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 20 Feb 2007 17:58:22 +0100 Subject: [Gambas-user] Bug in Gambas version :-) In-Reply-To: References: <45D9D100.2090109@...1237...> Message-ID: <1171990702.5479.6.camel@...40...> Salut, no that's not a BUG, that's the Application Version from the IDE, you can see at Properties first page Version. But 1.0.109 ?? should be 0.1.8 or less (0.1.8 is from gambas 1.0.17). Amicalment Charlie Am Dienstag, den 20.02.2007, 14:06 +0000 schrieb Carlos Cuello: > I'm currently using Gambas 1.0.16 and if do the same thing that you do I get > 1.0.109 :P > > Greetings > > Carlos > > 2007/2/19, Leonardo Miliani : > > > > I use Gambas 1.9.47, as I can see from the menu "?/About Gambas"... > > But if I open a console and type "? application.version" I get 1.9.46:-))) > > > > -- > > Ciao. > > Leo. > > > > Web: www.leonardomiliani.com > > E-mail: leonardo at ...1237... > > Scegli software opensource - Choose opensource software > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Tue Feb 20 20:12:26 2007 From: sbungay at ...981... (sbungay) Date: Tue, 20 Feb 2007 14:12:26 -0500 Subject: [Gambas-user] Trapping events from dynamically created controls.... In-Reply-To: <000001c754d0$66547410$6401a8c0@...1587...> References: <000001c754d0$66547410$6401a8c0@...1587...> Message-ID: <45DB481A.1060607@...981...> Thank you Timothy! I was appending an index number to the end of the button name like so bh = NEW Button(LAST) AS "SkillButton" & CSTR(IndexID) My thinking was that the button names all had to be unique. Wrong wrong. Benoit, how can Gambas allow us to create controls on the fly that all have the same name when the IDE does not? It gives me the results I want and that's great, now I'm just wondering how this works internally. Steve. timothy wrote: >>-----Original Message----- >>From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- >>bounces at lists.sourceforge.net] On Behalf Of sbungay >>Sent: Tuesday, 20 February 2007 04:01 AM >>To: gambas-user at lists.sourceforge.net >>Subject: [Gambas-user] Trapping events from dynamically created >>controls.... >> >> How can one capture events from controls that are created on the > > fly? > >>In my case I am creating buttons and want to capture the mousemove > > event > >>or click event of the control that was just created. >>I think if I was able to add each programatically created control to a >>special group then that group could capture and process the events. Is >>this possible? >> >>Steve. >> > > > > Here is an example that creates a number of buttons and places them on a > form. We create a new button, the ME parameter to NEW tells the button > which container it should live in. You could use any other container > e.g. a ScrollView. The AS "KeyButton" gives us the name to use when > handling the buttons events. We also set some other properties of the > button. > > We have set the Form.Arrangement property to make the buttons look a bit > nicer for this example. > > The button click event is handled by the KeyButton_Click procedure - > this must match the AS "KeyButton" statement. We get the button object > using the LAST keyword. Here we just display the Name and Tag using a > Message box. > > *************** > > PUBLIC SUB Form_Open() > DIM b AS Button > DIM i AS Integer > ' Fill the form with buttons for > ' ASCII codes 33 to 126 > FOR i = 33 TO 126 > b = NEW Button(ME) AS "KeyButton" > b.Font.Size = 32 > b.Width = 56 > b.Height = 56 > IF Chr(i) LIKE "&" THEN > b.Text = "&&" > ELSE > b.Text = Chr(i) > END IF > b.Tag = i > b.ToolTip = "ASCII: 0x" & Hex(i, 2) > NEXT > ' Set the form arrangement so the buttons > ' fill the form area right to left. Note thet > ' when you resize the form the button fill the > ' available space > ME.Arrangement = Arrange.LeftRight > END > > ' Handle button click event > PUBLIC SUB KeyButton_Click() > Message.Info("Button Tag: " & LAST.Tag & "\nButton Text: " & > LAST.Text) > END > > ****************** > > From: http://www.linuxbasic.net/index.php?topic=117.0 > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Feb 20 20:30:12 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 20 Feb 2007 20:30:12 +0100 Subject: [Gambas-user] =?iso-8859-1?q?Trapping_events_from_dynamically_cre?= =?iso-8859-1?q?ated=09controls=2E=2E=2E=2E?= In-Reply-To: <45DB481A.1060607@...981...> References: <000001c754d0$66547410$6401a8c0@...1587...> <45DB481A.1060607@...981...> Message-ID: <200702202030.12570.gambas@...1...> On mardi 20 f?vrier 2007, sbungay wrote: > Thank you Timothy! > > I was appending an index number to the end of the button name like so > > bh = NEW Button(LAST) AS "SkillButton" & CSTR(IndexID) > > My thinking was that the button names all had to be unique. Wrong wrong. > > Benoit, how can Gambas allow us to create controls on the fly that > all have the same name when the IDE does not? The IDE does. It just names that "control group". > It gives me the results I > want and that's great, now I'm just wondering how this works internally. Every gambas object has an "event name" that is just used at object creation, and that is forgotten after. Moreover, every gambas name has a "Name" property that is initialized with the same string used for the event name, unless the control has a control group. In that case, the name defined in the IDE is used. You must understand that the *.form files are transformed in Gambas source code by the compiler. So all you see in the IDE can be done by writing code by hand. Regards, -- Benoit Minisini From sbungay at ...981... Wed Feb 21 01:46:37 2007 From: sbungay at ...981... (sbungay) Date: Tue, 20 Feb 2007 19:46:37 -0500 Subject: [Gambas-user] Trapping events from dynamically created controls.... In-Reply-To: <200702202030.12570.gambas@...1...> References: <000001c754d0$66547410$6401a8c0@...1587...> <45DB481A.1060607@...981...> <200702202030.12570.gambas@...1...> Message-ID: <45DB966D.6000701@...981...> Ahh,... I see. Thanks for the info. Steve. Benoit Minisini wrote: > On mardi 20 f?vrier 2007, sbungay wrote: > >> Thank you Timothy! >> >> I was appending an index number to the end of the button name like so >> >>bh = NEW Button(LAST) AS "SkillButton" & CSTR(IndexID) >> >> My thinking was that the button names all had to be unique. Wrong wrong. >> >> Benoit, how can Gambas allow us to create controls on the fly that >>all have the same name when the IDE does not? > > > The IDE does. It just names that "control group". > > >>It gives me the results I >>want and that's great, now I'm just wondering how this works internally. > > > Every gambas object has an "event name" that is just used at object creation, > and that is forgotten after. > > Moreover, every gambas name has a "Name" property that is initialized with the > same string used for the event name, unless the control has a control group. > In that case, the name defined in the IDE is used. > > You must understand that the *.form files are transformed in Gambas source > code by the compiler. So all you see in the IDE can be done by writing code > by hand. > > Regards, > From gambas at ...1... Wed Feb 21 13:19:50 2007 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Feb 2007 13:19:50 +0100 Subject: [Gambas-user] =?iso-8859-1?q?Trapping_events_from_dynamically_cre?= =?iso-8859-1?q?ated=09controls=2E=2E=2E=2E?= In-Reply-To: <200702202030.12570.gambas@...1...> References: <000001c754d0$66547410$6401a8c0@...1587...> <45DB481A.1060607@...981...> <200702202030.12570.gambas@...1...> Message-ID: <200702211319.50641.gambas@...1...> On mardi 20 f?vrier 2007, Benoit Minisini wrote: > On mardi 20 f?vrier 2007, sbungay wrote: > > Thank you Timothy! > > > > I was appending an index number to the end of the button name like so > > > > bh = NEW Button(LAST) AS "SkillButton" & CSTR(IndexID) > > > > My thinking was that the button names all had to be unique. Wrong > > wrong. > > > > Benoit, how can Gambas allow us to create controls on the fly that > > all have the same name when the IDE does not? > > The IDE does. It just names that "control group". > > > It gives me the results I > > want and that's great, now I'm just wondering how this works internally. > > Every gambas object has an "event name" that is just used at object > creation, and that is forgotten after. > > Moreover, every gambas name... Sorry, read "every gambas control" instead! -- Benoit Minisini From gambas at ...1... Wed Feb 21 13:37:19 2007 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Feb 2007 13:37:19 +0100 Subject: [Gambas-user] Could be this change included? In-Reply-To: <442461.94537.qm@...1647...> References: <442461.94537.qm@...1647...> Message-ID: <200702211337.20024.gambas@...1...> On mardi 20 f?vrier 2007, Leandro Anthonioz Blanc wrote: > Hi folks. I needed get a resultset from a MySQL stored procedure. However, > when I execute a line like this: > > hResult = hConn.Exec("CALL MyStoredProcedure(2)") > > I get the following error: > > "PROCEDURE MyStoredProcedure can't return a result set in the given > context" > > Later, I read in MySQL documentation ("24.2.9. C API Handling of Multiple > Statement Execution") this: > > "The mysql_real_connect() function has a flags argument for which two > option values are relevent: * CLIENT_MULTI_RESULTS enables the client > program to process multiple results. This option must be enabled if you > execute CALL statements for stored procedures that produce result sets. > Otherwise, such procedures result in an error Error 1312 (0A000): PROCEDURE > proc_name can't return a result set in the given context." > > Therefore, I edit open_database() function in gb.db.mysql/src/main.c file. > I modify the mysql_real_connect call changing last argument (0) to > CLIENT_MULTI_RESULTS constant and works fine. Could be this change included > in future versions of Gambas please? Thank you very much. > Done in the SVN trunk! -- Benoit Minisini From sbungay at ...981... Wed Feb 21 15:56:23 2007 From: sbungay at ...981... (sbungay) Date: Wed, 21 Feb 2007 09:56:23 -0500 Subject: [Gambas-user] Trapping events from dynamically created controls.... In-Reply-To: <200702211319.50641.gambas@...1...> References: <000001c754d0$66547410$6401a8c0@...1587...> <45DB481A.1060607@...981...> <200702202030.12570.gambas@...1...> <200702211319.50641.gambas@...1...> Message-ID: <45DC5D97.7070305@...981...> I knew what you meant. Thx. Benoit Minisini wrote: > On mardi 20 f?vrier 2007, Benoit Minisini wrote: > >>On mardi 20 f?vrier 2007, sbungay wrote: >> >>> Thank you Timothy! >>> >>> I was appending an index number to the end of the button name like so >>> >>>bh = NEW Button(LAST) AS "SkillButton" & CSTR(IndexID) >>> >>> My thinking was that the button names all had to be unique. Wrong >>>wrong. >>> >>> Benoit, how can Gambas allow us to create controls on the fly that >>>all have the same name when the IDE does not? >> >>The IDE does. It just names that "control group". >> >> >>>It gives me the results I >>>want and that's great, now I'm just wondering how this works internally. >> >>Every gambas object has an "event name" that is just used at object >>creation, and that is forgotten after. >> >>Moreover, every gambas name... > > > Sorry, read "every gambas control" instead! > From fidojones at ...805... Wed Feb 21 16:03:07 2007 From: fidojones at ...805... (Lorenzo Tejera) Date: Wed, 21 Feb 2007 16:03:07 +0100 Subject: [Gambas-user] Bug or bad use of gb.net.curl? Message-ID: <19cca6e50702210703u7ed5bf48r403850400825eb0f@...627...> I'm using the net.curl componente, but I have a problem that I can't resolv. I'm doing an application that retreive some .wma files from a specific web, but when I stored the file appears two bytes more that not belong to the file in the head of the file. But I did some probes and only occurs when I use the funcion Lof to define the size of the buffer I must to read. If lof is not use the head of file is saved perfect, but I not get all the buffer and the file is incompleted. For example: This is what I obtiain: ??GIF89a But it should be: GIF89a The rest of file is saved perfect. This is the lines of code I used to read httpclient and write to a file in hard disk. IF Lof(HttpDescarga) THEN READ #HttpDescarga, Buffer, Lof(HttpDescarga) WRITE #gFichero, Buffer, Lof(HttpDescarga) END IF If I read with this code I read good, but not entire buffer. READ #HttpDescarga, Buffer I use gambas 1.9.47. Why I obtain this unsolicited two bytes when I read the buffer? it's a bug? regards lorenzo From leonardo at ...1237... Wed Feb 21 18:23:02 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 21 Feb 2007 18:23:02 +0100 Subject: [Gambas-user] Bug in Gambas version :-) In-Reply-To: <1171990702.5479.6.camel@...40...> References: <45D9D100.2090109@...1237...> <1171990702.5479.6.camel@...40...> Message-ID: <45DC7FF6.2000506@...1237...> Charlie Reinl wrote: > Salut, > > no that's not a BUG, that's the Application Version from the IDE, you > can see at Properties first page Version. So, if I get 1.9.46 on Gambas 1.9.47 it's correct? -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gambas at ...1... Wed Feb 21 18:32:35 2007 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Feb 2007 18:32:35 +0100 Subject: [Gambas-user] Bug in Gambas version :-) In-Reply-To: <45DC7FF6.2000506@...1237...> References: <45D9D100.2090109@...1237...> <1171990702.5479.6.camel@...40...> <45DC7FF6.2000506@...1237...> Message-ID: <200702211832.35880.gambas@...1...> On mercredi 21 f?vrier 2007, Leonardo Miliani wrote: > Charlie Reinl wrote: > > Salut, > > > > no that's not a BUG, that's the Application Version from the IDE, you > > can see at Properties first page Version. > > So, if I get 1.9.46 on Gambas 1.9.47 it's correct? The version you see in the about dialog is what is returned by 'gbx2 -V'. So maybe there is something weird in your installation? Regards, -- Benoit Minisini From Karl.Reinl at ...9... Wed Feb 21 20:38:24 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 21 Feb 2007 20:38:24 +0100 Subject: [Gambas-user] Bug in Gambas version :-) In-Reply-To: <200702211832.35880.gambas@...1...> References: <45D9D100.2090109@...1237...> <1171990702.5479.6.camel@...40...> <45DC7FF6.2000506@...1237...> <200702211832.35880.gambas@...1...> Message-ID: <1172086704.5429.35.camel@...40...> Am Mittwoch, den 21.02.2007, 18:32 +0100 schrieb Benoit Minisini: > On mercredi 21 f?vrier 2007, Leonardo Miliani wrote: > > Charlie Reinl wrote: > > > Salut, > > > > > > no that's not a BUG, that's the Application Version from the IDE, you > > > can see at Properties first page Version. > > > > So, if I get 1.9.46 on Gambas 1.9.47 it's correct? > > The version you see in the about dialog is what is returned by 'gbx2 -V'. So > maybe there is something weird in your installation? > > Regards, > Salut, every thing works right. he see 1.9.47 when he start gambas2.gambas (came from gbx2 -V) then he opens the console in the IDE and make "? application.version" That returns as said, the version of the IDE and 1.9.46 is the right version of the IDE and not the Version of gambas2-1.9.47. 46 is the build of the IDE. The bad luck is, that the version of the IDE where as near and lower then the version of gambas2. But if you make 5 times more an executable and out of the IDE the ? application.version would return 1.9.51 Look at the gambas2 IDE, menu at Project/properties on the first Tab Version : 1.9.46 that's returned Amicalment Charlie From jorge at ...1626... Thu Feb 22 18:27:16 2007 From: jorge at ...1626... (meph) Date: Thu, 22 Feb 2007 18:27:16 +0100 Subject: [Gambas-user] Controlpanel icon disappeared Message-ID: <45DDD274.9000802@...1626...> Hello list, I'm a linex2006 user and this distribution has a control panel developed with gambas. I updated accross controlpanel and after that when I restarted my tablet pc the control panel icon didn't works. Also the icon don't appears in the toolbar, I think the problem is related with gambas. It could be?, and, what can I do?, it's very important for me. Thank you. -------------- next part -------------- A non-text attachment was scrubbed... Name: jorge.vcf Type: text/x-vcard Size: 56 bytes Desc: not available URL: From dcamposf at ...626... Thu Feb 22 19:07:14 2007 From: dcamposf at ...626... (Daniel Campos) Date: Thu, 22 Feb 2007 19:07:14 +0100 Subject: [Gambas-user] Controlpanel icon disappeared In-Reply-To: <45DDD274.9000802@...1626...> References: <45DDD274.9000802@...1626...> Message-ID: <7259b5ae0702221007xe8ad6cqbfdb33c8e516a93a@...627...> Hi: Please try as root: apt-get install --reinstall gambas2* apt-get install --reinstall actualizar-linex If it does not work, please use the Linex help system: http://cucha.linex.org/CUCHAPublico/ ...as it is a Linex support related problem. I think I'll can provide you more feedback there :-)) Daniel Campos 2007/2/22, meph : > Hello list, I'm a linex2006 user and this distribution has a control > panel developed with gambas. > I updated accross controlpanel and after that when I restarted my > tablet pc the control panel icon didn't works. Also the icon don't > appears in the toolbar, I think the problem is related with gambas. It > could be?, and, what can I do?, it's very important for me. Thank you. > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From sbungay at ...981... Sat Feb 24 15:26:24 2007 From: sbungay at ...981... (sbungay) Date: Sat, 24 Feb 2007 09:26:24 -0500 Subject: [Gambas-user] Resizing revisited... Message-ID: <45E04B10.6010102@...981...> Two frames in a splitter ceach contain controls. When the splitter is resized the frames within it resize automatically, however the controls within the frames do not resize, making for an ugly interface. How can one automagically rezise the controls that are within the frame which is within the splitter? From chrism at ...1648... Sun Feb 25 17:20:23 2007 From: chrism at ...1648... (Chris) Date: Sun, 25 Feb 2007 16:20:23 +0000 Subject: [Gambas-user] Serial Port issues. Message-ID: <45E1B747.8070003@...1648...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I'm having some odd issues with the serial port class. Whenever I try to WRITE or PRINT to the serial port, it starts to send, and then soon after errors with an "unexpected signal #6" message. Does anyone know how to fix this? Chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF4bdHqLdeHpjNN3MRAuW6AJ9WCOT74mpXKJzdoNj+GgxXwarjJACg3DK2 FCZ3gv26pq8A2xA+YBOa8mU= =t53r -----END PGP SIGNATURE----- From lordheavy at ...512... Sun Feb 25 18:33:08 2007 From: lordheavy at ...512... (Laurent Carlier) Date: Sun, 25 Feb 2007 18:33:08 +0100 Subject: [Gambas-user] Serial Port issues. In-Reply-To: <45E1B747.8070003@...1648...> References: <45E1B747.8070003@...1648...> Message-ID: <200702251833.08526.lordheavy@...512...> Le Sunday 25 February 2007 17:20:23 Chris, vous avez ?crit?: > Hello, > I'm having some odd issues with the serial port class. > Whenever I try to WRITE or PRINT to the serial port, it starts to send, > and then soon after errors with an "unexpected signal #6" message. > > Does anyone know how to fix this? > > Chris > This mean that the signal SIGABRT was raised somewhere. see http://en.wikipedia.org/wiki/SIGABRT A good way to help debugging is to provide gdb output of the problem. go in the directory of your project, in a terminal do : - gdb gbx2 (or gbx if under gambas 1) Under gdb : - run -p When your app stop on the error, do : - bt Send the output :-) ++ From chrism at ...1648... Sun Feb 25 20:00:22 2007 From: chrism at ...1648... (Chris) Date: Sun, 25 Feb 2007 19:00:22 +0000 Subject: [Gambas-user] Serial Port issues. In-Reply-To: <200702251833.08526.lordheavy@...512...> References: <45E1B747.8070003@...1648...> <200702251833.08526.lordheavy@...512...> Message-ID: <45E1DCC6.7030701@...1648...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Really weird, Under GDB, the app HANGS, as opposed to crashing. The last statement printed is: *** glibc detected *** /usr/bin/gbx: double free or corruption (fasttop): 0x080f6430 *** GBX version: 2.0.17 (ubuntu) GBX2 reports the double free or corruption rather than gdb, then hangs the app. Chris Laurent Carlier wrote: > Le Sunday 25 February 2007 17:20:23 Chris, vous avez ?crit : >> Hello, >> I'm having some odd issues with the serial port class. >> Whenever I try to WRITE or PRINT to the serial port, it starts to send, >> and then soon after errors with an "unexpected signal #6" message. >> >> Does anyone know how to fix this? >> >> Chris >> > > This mean that the signal SIGABRT was raised somewhere. > see http://en.wikipedia.org/wiki/SIGABRT > > A good way to help debugging is to provide gdb output of the problem. > > go in the directory of your project, in a terminal do : > - gdb gbx2 (or gbx if under gambas 1) > Under gdb : > - run -p > When your app stop on the error, do : > - bt > Send the output :-) > > ++ > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF4dzFqLdeHpjNN3MRAr7jAJ49eCcNR5nuBfJ0Pyiu5wnO7bfnygCfdSEw qnAPCnajK5HnO83tYNCBkzo= =bOOn -----END PGP SIGNATURE----- From simonart.dominique at ...11... Mon Feb 26 01:20:41 2007 From: simonart.dominique at ...11... (Dominique Simonart) Date: Mon, 26 Feb 2007 01:20:41 +0100 Subject: [Gambas-user] Multiple monitors Message-ID: <45E227D9.6020509@...11...> Hi, I've a 2-displays configuration (very handy to develop :-) ). My choices for the configuration result for gambas with a desktop.width = 2560 and desktop.Height = 1024 (each display is 1280x1024). Is there a property to test this situation (2 monitors) inside Gambas? The problem appears when you maximize a window (it overlaps the 2 screens!). Actually, I test only the desktop.height and I assume the width should be the standard one, that is 1280 for the 1024 heigth Now, how to manage with the full screen situation? Thanks for your help Dominique Simonart From gambas at ...1... Mon Feb 26 09:54:14 2007 From: gambas at ...1... (Benoit Minisini) Date: Mon, 26 Feb 2007 09:54:14 +0100 Subject: [Gambas-user] Bug or bad use of gb.net.curl? In-Reply-To: <19cca6e50702210703u7ed5bf48r403850400825eb0f@...627...> References: <19cca6e50702210703u7ed5bf48r403850400825eb0f@...627...> Message-ID: <200702260954.14414.gambas@...1...> On mercredi 21 f?vrier 2007, Lorenzo Tejera wrote: > I'm using the net.curl componente, but I have a problem that I can't > resolv. I'm doing an application that retreive some .wma files from a > specific web, but when I stored the file appears two bytes more that not > belong to the file in the head of the file. But I did some probes and only > occurs when I use the funcion Lof to define the size of the buffer I must > to read. If lof is not use the head of file is saved perfect, but I not get > all the buffer and the file is incompleted. > > For example: > > This is what I obtiain: > > ??GIF89a > > But it should be: > > GIF89a > > The rest of file is saved perfect. > > This is the lines of code I used to read httpclient and write to a file in > hard disk. > > IF Lof(HttpDescarga) THEN > READ #HttpDescarga, Buffer, Lof(HttpDescarga) Can you print the contents of Buffer at this place to see if the problem is in the READ command or in the WRITE command ? > WRITE #gFichero, Buffer, Lof(HttpDescarga) > END IF > ... Thanks in advance, -- Benoit Minisini From gambas.fr at ...626... Mon Feb 26 18:03:52 2007 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 26 Feb 2007 18:03:52 +0100 Subject: [Gambas-user] Resizing revisited... In-Reply-To: <45E04B10.6010102@...981...> References: <45E04B10.6010102@...981...> Message-ID: <6324a42a0702260903k788d5167h4033e1ec12734deb@...627...> hi, in your frame, the controls must be sized with the arrange/expand properties.., some time you need to play with empty container expended... i think you must to open an empty project and play with these properties. So when you understand how its work you can see that is no need of resize event. All the gambas interface is based on it 2007/2/24, sbungay : > > Two frames in a splitter ceach contain controls. When the splitter is > resized the frames within it resize automatically, however the controls > within the frames do not resize, making for an ugly interface. > How can one automagically rezise the controls that are within the > frame which is within the splitter? > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Tue Feb 27 17:39:05 2007 From: sbungay at ...981... (sbungay) Date: Tue, 27 Feb 2007 11:39:05 -0500 Subject: [Gambas-user] Umm... a little help here? Message-ID: <45E45EA9.10200@...981...> Just saved a project and closed Gambas. Came back to work on the project, opened Gambas and clicked on the project name and it all wen't horribly wrong... "Cannot open project file : /home/Ubungayst/QuestWare File or directory does not exist Project.GetFileIcon.433" The directory does exist, and there is a .project file in it. I did a 'cat' on the .project file and it appears OK. All of the class files are present so I could create the project from scratch.... but then I'd not get to learn anything and that's just a whole lot of no-fun. :) Environment: Gambas 2-1.9.47 Fedora Core 5 Steve. From sbungay at ...981... Tue Feb 27 18:09:16 2007 From: sbungay at ...981... (sbungay) Date: Tue, 27 Feb 2007 12:09:16 -0500 Subject: [Gambas-user] Umm... a little help here? In-Reply-To: <45E45EA9.10200@...981...> References: <45E45EA9.10200@...981...> Message-ID: <45E465BC.8070007@...981...> OK. I figured it out... (and now I'm talking to myself on-line). The last thing I had done was copy a png file to a folder called Icons within the Questware folder. This png file was the problem. It was copied from use/share/icons and was zero bytes long. In addition it was owned by root. Removed the file and copied it in again. This time it was not zero bytes in length and owned by me. So it appears (and I'm guessing at this) that if the IDE can't iterate through all of the files within it's scope that rather than skip the file in question, it refuses to load the project and produces the error message given below. The project once again loads properly. :) Steve. sbungay wrote: > Just saved a project and closed Gambas. Came back to work on the > project, opened Gambas and clicked on the project name and it all wen't > horribly wrong... > > "Cannot open project file : > /home/Ubungayst/QuestWare > > File or directory does not exist > Project.GetFileIcon.433" > > The directory does exist, and there is a .project file in it. I did a > 'cat' on the .project file and it appears OK. > > > All of the class files are present so I could create the project from > scratch.... but then I'd not get to learn anything and that's just a > whole lot of no-fun. :) > > Environment: > Gambas 2-1.9.47 > Fedora Core 5 > > > Steve. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From timothy.marshal-nichols at ...247... Tue Feb 27 23:19:16 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Tue, 27 Feb 2007 22:19:16 -0000 Subject: [Gambas-user] Umm... a little help here? In-Reply-To: <45E465BC.8070007@...981...> Message-ID: <000201c75abd$570b5df0$6401a8c0@...1587...> > OK. I figured it out... (and now I'm talking to myself on-line). They say talking to your self is the first sign of madness. But what about us lot listening to you talk to your self :) Have fun. > The last thing I had done was copy a png file to a folder called Icons > within the Questware folder. This png file was the problem. It was > copied from use/share/icons and was zero bytes long. In addition it was > owned by root. Removed the file and copied it in again. This time it was > not zero bytes in length and owned by me. > So it appears (and I'm guessing at this) that if the IDE can't > iterate through all of the files within it's scope that rather than skip > the file in question, it refuses to load the project and produces the > error message given below. > The project once again loads properly. :) > > Steve. > Thanks 8-{)} Timothy Marshal-Nichols From sbungay at ...981... Wed Feb 28 22:15:37 2007 From: sbungay at ...981... (sbungay) Date: Wed, 28 Feb 2007 16:15:37 -0500 Subject: [Gambas-user] Web browser component... Message-ID: <45E5F0F9.1000405@...981...> I am wondering if this component can use the same plugins as, oh, lets say, Konqueror. Thereby enabeling it to present things like ShockWave Flash files, PDFs etc. Anyone know if this is possible? Steve.