From rterry at ...627... Thu Mar 4 11:04:17 2010 From: rterry at ...627... (richard terry) Date: Thu, 4 Mar 2010 21:04:17 +1100 Subject: [Gambas-devel] [Gambas-user] Dumb question - testing for an empty text box In-Reply-To: <4B8F8327.4000100@...4...> References: <201003041057.32703.rterry@...627...> <4B8F8327.4000100@...4...> Message-ID: <201003042104.17527.rterry@...627...> On Thursday 04 March 2010 20:53:43 you wrote: > richard terry a ?crit : > > I almost feel embarrassed to ask this having programmed in gambas for so > > long, but here goes. > > > > simplest syntax for testing for no text in a textbox. > > > > I currently to > > > > if Trim(textbox1.text) = "" then > > salut Richard, > > if isnull(Textbox1.text) is an another way. > > Jack I wonder if there is a speed difference in any of these methods? From gambas at ...1... Thu Mar 4 15:52:39 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 4 Mar 2010 15:52:39 +0100 Subject: [Gambas-devel] [Gambas-user] Dumb question - testing for an empty text box In-Reply-To: <201003042104.17527.rterry@...627...> References: <201003041057.32703.rterry@...627...> <4B8F8327.4000100@...4...> <201003042104.17527.rterry@...627...> Message-ID: <201003041552.39612.gambas@...1...> > On Thursday 04 March 2010 20:53:43 you wrote: > > richard terry a ?crit : > > > I almost feel embarrassed to ask this having programmed in gambas for > > > so long, but here goes. > > > > > > simplest syntax for testing for no text in a textbox. > > > > > > I currently to > > > > > > if Trim(textbox1.text) = "" then > > > > salut Richard, > > > > if isnull(Textbox1.text) is an another way. > > > > Jack > > I wonder if there is a speed difference in any of these methods? > Yes, but someone should measure it! And Trim() removes spaces, IsNull() does not. -- Beno?t Minisini From rterry at ...627... Sat Mar 13 00:54:13 2010 From: rterry at ...627... (richard terry) Date: Sat, 13 Mar 2010 10:54:13 +1100 Subject: [Gambas-devel] [Gambas-user] de-selecting a multi-select filechooser [Solved] In-Reply-To: <201003122350.51535.rospolosco@...29...> References: <201003130930.44486.rterry@...627...> <201003122350.51535.rospolosco@...29...> Message-ID: <201003131054.13265.rterry@...627...> On Saturday 13 March 2010 09:50:51 you wrote: > Il venerd? 12 marzo 2010 23:30:44 richard terry ha scritto: > > I wondered if it was possible programatically to deselect a users multi > > select > > > > ie, if I've an checkbox as an option for the user to set the > > Filechoose1.multi=true, and they change their mind > click it off, how > > does one remove the highlighted multiple selected files? > > > > Regards > > > > Richard > > FileChooser1.SelectedPath = User.Home 'or the path you want to restart from > > Stefano Turns out this is not needed. I it was my faulty logic in the click event of my chekcbox - it works as you would expect, simply by setting the multi to false it automatcally removes the multiple file select. Doing as you suggest makes no difference on my machine at the end of the day. Thanks and regards Richard > > > ------------------------------------------------------------------------- > > -- > > > >--- Download Intel® Parallel Studio Eval > > > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...627... Tue Mar 16 09:39:23 2010 From: rterry at ...627... (richard terry) Date: Tue, 16 Mar 2010 19:39:23 +1100 Subject: [Gambas-devel] filechooser component question Message-ID: <201003161939.23242.rterry@...627...> i wondered if there was anyway of setting the hide property on the bottom textbox which lists the filename when you click on it in the list. I enclose a picture. Its taking up valuable screen real estate and i don't need it. any help appreciated. Richard From rterry at ...627... Wed Mar 17 11:40:26 2010 From: rterry at ...627... (richard terry) Date: Wed, 17 Mar 2010 21:40:26 +1100 Subject: [Gambas-devel] How to get debugging symbols in the exe Message-ID: <201003172140.26968.rterry@...627...> Hi list, I'm trying to track down why my ide is freezing, and seems from the terminal messages I have no debugging symbols, so wondered how to go about that richard ~/gambas3-svn/src/trunk/app/src/gambas3 $ gdb gbx3 GNU gdb (GDB) 7.0.1 Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/bin/gbx3...(no debugging symbols found)...done. (gdb) set args -p (gdb) run Starting program: /usr/bin/gbx3 -p Apart from that, I seem to be getting there in terms of being more useful to report bugs. Thanks Richard From rterry at ...627... Fri Mar 19 02:50:06 2010 From: rterry at ...627... (richard terry) Date: Fri, 19 Mar 2010 12:50:06 +1100 Subject: [Gambas-devel] [Gambas-user] Refreshing a Filechooser control [Solved] In-Reply-To: <6324a42a1003181030g2f74b654gbb11ff78d3d4354@...178...> References: <201003182130.22160.rterry@...627...> <201003182324.22886.rterry@...627...> <6324a42a1003181030g2f74b654gbb11ff78d3d4354@...178...> Message-ID: <201003191250.06672.rterry@...627...> On Friday 19 March 2010 04:30:39 Fabien Bodard wrote: > try that ... > o.FileView.reload() Dim o As Object o = FileChooser1.Children[0] o.FileView.reload() This works perfectly, thanks Fabian. Would it be possible to have this inserted in this control as a property? Regards richard > 2010/3/18 richard terry : > > On Thursday 18 March 2010 22:28:09 you wrote: > >> me :) > >> > >> DIM o AS Object > >> o = FileChooser1.Children[0] > >> o.DirView.reload() > > > > Thanks for replying. > > > > didn't crash, but didn't refresh the file list. > > > > I'm writing a document archiver and I know the file was gone because I'd > > moved it to another directory and I checked using file manager - > > definately not in the directory but remained in the list infilechoose > > after that code. > > > > Did you try it yourself? > > > > ??maybe I screwed up. > > > > Regards > > > > Richard > > > >> 2010/3/18 richard terry : > >> > >From its properites it looks like Filechooser1.Reload may refresh the > >> > >file > >> > > >> > list, but it dosn't seem to work. > >> > > >> > Has anyone who has used this control got to refresh it > >> > programatically? > >> > > >> > Thanks. > >> > > >> > Richard > >> > > >> > ---------------------------------------------------------------------- > >> > --- ----- Download Intel® Parallel Studio Eval > >> > Try the new software tools for yourself. Speed compiling, find bugs > >> > proactively, and fine-tune applications for parallel performance. > >> > See why Intel Parallel Studio got high marks during beta. > >> > http://p.sf.net/sfu/intel-sw-dev > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Mar 19 03:16:38 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 19 Mar 2010 03:16:38 +0100 Subject: [Gambas-devel] [Gambas-user] Refreshing a Filechooser control [Solved] In-Reply-To: <201003191250.06672.rterry@...627...> References: <201003182130.22160.rterry@...627...> <6324a42a1003181030g2f74b654gbb11ff78d3d4354@...178...> <201003191250.06672.rterry@...627...> Message-ID: <201003190316.38842.gambas@...1...> > On Friday 19 March 2010 04:30:39 Fabien Bodard wrote: > > try that ... > > o.FileView.reload() > > Dim o As Object > o = FileChooser1.Children[0] > o.FileView.reload() > > This works perfectly, thanks Fabian. > > Would it be possible to have this inserted in this control as a property? > > Regards > > richard > Fixing the FileChooser.Reload() method is better. That should be the case in revision #2809. Regards, -- Beno?t Minisini