Re: [Gambas-user] re-setting several radiobuttons to false ?how
On Wednesday 05 August 2009, Charlie Reinl wrote: Am Mittwoch, den 05.08.2009, 17:48 +1000 schrieb richard terry: If one has say 3 radiobuttons in a container is there anyway to set them all back to false ? If I try this code to clear some textboxes, checkboxes and radiobuttons contained within a hbox, the tetboxes clear and checkboxes clear, but not the radiobuttons: Dim hCtrl As Control Dim hb As HBox Dim tb As TextBox Dim cb As CheckBox Dim rb As RadioButton For Each hctrl In Vbox1.children If hctrl Is hbox Then hb = hctrl For Each hCtrl In HB.Children If hctrl Is textbox Then tb = hctrl tb.Clear() Else If hctrl Is RadioButton Then rb = hctrl rb.value = False Else If hctrl Is checkbox Then cb = hctrl cb.value = False End If Next End If Next If I directly address the radiobutton in the group by name, it still dosn't clear. any help appreciated. Richard Salut Richard, https://secure.wikimedia.org/wikipedia/en/wiki/Radiobutton The Apple Human Interface Guidelines specify that one item of a radio button group must always be selected. Charlie You can add a forth radio button in the group and set it hidden. By setting this 4'th to true the others go false. More correct is to set the 4'th not hidden but label it as 'None of the others' Not only the 'Apple Human Interface Guidelines' but many other say the same. Only on web pages the _browser_ (specific IE) does allow none is true. In fact it is the fault of the web page developer to not set one to true. Best regards, Ron_1st --- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] re-setting several radiobuttons to false ?how
On Wed, 5 Aug 2009 08:04:16 pm Stefano Palmeri wrote: Il mercoledì 5 agosto 2009 11:16:32 Charlie Reinl ha scritto: Am Mittwoch, den 05.08.2009, 17:48 +1000 schrieb richard terry: If one has say 3 radiobuttons in a container is there anyway to set them all back to false ? If I try this code to clear some textboxes, checkboxes and radiobuttons contained within a hbox, the tetboxes clear and checkboxes clear, but not the radiobuttons: Dim hCtrl As Control Dim hb As HBox Dim tb As TextBox Dim cb As CheckBox Dim rb As RadioButton For Each hctrl In Vbox1.children If hctrl Is hbox Then hb = hctrl For Each hCtrl In HB.Children If hctrl Is textbox Then tb = hctrl tb.Clear() Else If hctrl Is RadioButton Then rb = hctrl rb.value = False Else If hctrl Is checkbox Then cb = hctrl cb.value = False End If Next End If Next If I directly address the radiobutton in the group by name, it still dosn't clear. any help appreciated. Richard Salut Richard, https://secure.wikimedia.org/wikipedia/en/wiki/Radiobutton The Apple Human Interface Guidelines specify that one item of a radio button group must always be selected. Charlie Some time ago we talked about it. If you wanna clear all radiobuttons there's an easy workaround. Add a radiobutton (say HiddenRadioButton) in the group and set its Visible property FALSE. So when you want to clear radiobuttons, just select the hidden radiobutton, HiddenRadioButton.Value = TRUE and all others in the group will be cleared. Ciao, Stefano - -- --- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --- --- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Good solution. thanks -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Executing commands as root
Hi all, Time ago, someone asked about executing commands as root and pass the root password to SHELL, does anybody remember the solution? Regards -- David -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Executing commands as root
Not sure its possible. 2009/8/5 David Villalobos Cambronero david_villalobo...@yahoo.com Hi all, Time ago, someone asked about executing commands as root and pass the root password to SHELL, does anybody remember the solution? Regards -- David -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- joshua higgins -- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Executing commands as root
hey David, I'm using Debian Lenny 5.0.2 and Gambas 2.14 for me this command works fine SHELL gksudo gnome-commander but I think it's Gnome specific I hope it helps Regards Dimitris On Wed, Aug 5, 2009 at 8:50 AM, Joshua Higgins joshigg...@googlemail.comwrote: Not sure its possible. 2009/8/5 David Villalobos Cambronero david_villalobo...@yahoo.com Hi all, Time ago, someone asked about executing commands as root and pass the root password to SHELL, does anybody remember the solution? Regards -- David -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- joshua higgins -- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Executing commands as root
Joshua Higgins schrieb: Not sure its possible. 2009/8/5 David Villalobos Cambronero david_villalobo...@yahoo.com Hi all, Time ago, someone asked about executing commands as root and pass the root password to SHELL, does anybody remember the solution? Regards -- David Maybe sudo could help? Rolf -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Executing commands as root
Il mercoledì 5 agosto 2009 15:45:24 David Villalobos Cambronero ha scritto: Hi all, Time ago, someone asked about executing commands as root and pass the root password to SHELL, does anybody remember the solution? Regards -- David He was me. My error was I opened the shell process FOR READ WRITE instead of INPUT OUTPUT. I attache a little example so it will be clear howto. The example is a form with a textbox. You type the root password and confirm and you execute cat /etc/sudoers as root (you'll see the output on Gambas console). It's just an example, you can try any other root command. Other solutions includes using gtksu or kdesu, but this way you depend on desktop. Ciao, Stefano --- --- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user su-0.0.2.tar.gz Description: application/tgz -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Column auto reseize in tables views.
Am Mittwoch, den 05.08.2009, 15:58 +0200 schrieb Benoît Minisini: Salut Benoit, while talking GridView. I think that belongs to that subject. I moving a gambas1 project to gambas2, and remarked, that with GridView you can't have EmptySpace at right in a Grid (gambas1.png) At that time I used the TableView component. With GridView from gambas2 (gambas2.15.2) even the Field which is set during creation like that : ME.Columns[ME.Columns.Count - 1].Width = 0 ME.Columns[ME.Columns.Count - 1].Resizable = FALSE is now visible.(gambas2.png) Do you have a hint for that. You didn't send the gambas2.png screenshot. Can you post it so that I can see what you are talking about? Sorry, this time I send both. This is what I found in ChangeLog --- 8 -- --- gambas2-2.11 - 28 Jan 2009 --- --- 8 -- * BUG: The last GridView column should be correctly stretched when its width is explicitely set now. --- 8 -- Charlie OK. As a workaround, don't put the hidden column last, so that it keeps its null with. -- Benoît -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Executing commands as root
hey David, I'm using Debian Lenny 5.0.2 and Gambas 2.14 for me this command works fine SHELL gksudo gnome-commander but I think it's Gnome specific I hope it helps Regards Dimitris By using the INPUT/OUTPUT option of SHELL, you can run su or sudo inside a terminal and try to analyze its output to see if you must send a password or not, and create a GUI for that. It should work - I have never done that. On the other way, you can use the work already done by desktop environment. But I think these things are going to be removed (it is already done in KDE4 apparently) and will be replaced by PolicyKit. Regards, -- Benoît -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Column auto reseize in tables views.
Am Mittwoch, den 05.08.2009, 17:29 +0200 schrieb Benoît Minisini: Am Mittwoch, den 05.08.2009, 15:58 +0200 schrieb Benoît Minisini: Salut Benoit, while talking GridView. I think that belongs to that subject. I moving a gambas1 project to gambas2, and remarked, that with GridView you can't have EmptySpace at right in a Grid (gambas1.png) At that time I used the TableView component. With GridView from gambas2 (gambas2.15.2) even the Field which is set during creation like that : ME.Columns[ME.Columns.Count - 1].Width = 0 ME.Columns[ME.Columns.Count - 1].Resizable = FALSE is now visible.(gambas2.png) Do you have a hint for that. You didn't send the gambas2.png screenshot. Can you post it so that I can see what you are talking about? Sorry, this time I send both. This is what I found in ChangeLog --- 8 -- --- gambas2-2.11 - 28 Jan 2009 --- --- 8 -- * BUG: The last GridView column should be correctly stretched when its width is explicitely set now. --- 8 -- Charlie OK. As a workaround, don't put the hidden column last, so that it keeps its null with. Thanks, I was afraid, that this is the answer. mais pas joli. attachment: gambas2-01.png-- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Executing commands as root
I used this : SHELL kdesu Chr(34) /usr/sbin/lpadmin -p request_ps -v 'pipe:/bin/cat -User.Home /request/work/tempfile.ps' -m PostscriptColor.ppd -E Chr(34) WAIT (to install a printer) cheers, steven Le mercredi 05 août 2009 à 17:07 +0200, Stefano Palmeri a écrit : Il mercoledì 5 agosto 2009 15:45:24 David Villalobos Cambronero ha scritto: Hi all, Time ago, someone asked about executing commands as root and pass the root password to SHELL, does anybody remember the solution? Regards -- David He was me. My error was I opened the shell process FOR READ WRITE instead of INPUT OUTPUT. I attache a little example so it will be clear howto. The example is a form with a textbox. You type the root password and confirm and you execute cat /etc/sudoers as root (you'll see the output on Gambas console). It's just an example, you can try any other root command. Other solutions includes using gtksu or kdesu, but this way you depend on desktop. Ciao, Stefano --- --- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Executing commands as root
Hey Thanks to all, very helpful Regards -- David - Original Message From: Steven revimmo ste...@revimmo.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Wednesday, August 5, 2009 9:30:46 AM Subject: Re: [Gambas-user] Executing commands as root I used this : SHELL kdesu Chr(34) /usr/sbin/lpadmin -p request_ps -v 'pipe:/bin/cat -User.Home /request/work/tempfile.ps' -m PostscriptColor.ppd -E Chr(34) WAIT (to install a printer) cheers, steven Le mercredi 05 août 2009 à 17:07 +0200, Stefano Palmeri a écrit : Il mercoledì 5 agosto 2009 15:45:24 David Villalobos Cambronero ha scritto: Hi all, Time ago, someone asked about executing commands as root and pass the root password to SHELL, does anybody remember the solution? Regards -- David He was me. My error was I opened the shell process FOR READ WRITE instead of INPUT OUTPUT. I attache a little example so it will be clear howto. The example is a form with a textbox. You type the root password and confirm and you execute cat /etc/sudoers as root (you'll see the output on Gambas console). It's just an example, you can try any other root command. Other solutions includes using gtksu or kdesu, but this way you depend on desktop. Ciao, Stefano --- --- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] gbs web application debugging - find line numbers?
Hi, I'm building a web application, but its currently a pain to debug the scripts. Everything is working fine (Apache and etc) and file permissions are okay, but a pesky line in my script is throwing a file not found error, and I cannot find which one. This is the output catched in apache's error.log MMain._PrintPage.45: #45: File or directory does not exist 0: MMain._PrintPage.45 1: MMain.Main.6 How do I find out which line number is the offending line? 45 and 6 don't relate to any lines in my script file. Thanks. -- joshua higgins -- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gbs web application debugging - find line numbers?
Hi, I'm building a web application, but its currently a pain to debug the scripts. Everything is working fine (Apache and etc) and file permissions are okay, but a pesky line in my script is throwing a file not found error, and I cannot find which one. This is the output catched in apache's error.log MMain._PrintPage.45: #45: File or directory does not exist 0: MMain._PrintPage.45 1: MMain.Main.6 How do I find out which line number is the offending line? 45 and 6 don't relate to any lines in my script file. Thanks. Mmm, it is not practical. You can do that to see the generated code: $ gbs3 -v -c /path/to/my/page It will verbosely recompile the page. Then you may be able to find the line #45 in the _PrintPage generated function. A better solution should be found. Maybe some sort of annotation inside the generated code, so that you can get the line number of the original file inside the error message... I don't know at the moment. Regards, -- Benoît -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Java for Webkit?
I noted in the browser example, no java? WebSettings seems to have mention of these but I can't set them. Any help appreciated. Thanks. richard -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user