From gambas.fr at ...626... Tue Jan 1 00:23:34 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 1 Jan 2008 00:23:34 +0100 Subject: [Gambas-user] Happy new year 2008 Message-ID: <200801010023.37537.gambas.fr@...626...> To all the Gambas Users and future ones !! :-) -- Fabien Bodard From epileg at ...626... Tue Jan 1 00:41:16 2008 From: epileg at ...626... (=?ISO-8859-1?Q?Ep=EDleg?=) Date: Tue, 01 Jan 2008 00:41:16 +0100 Subject: [Gambas-user] Happy new year 2008 In-Reply-To: <200801010023.37537.gambas.fr@...626...> References: <200801010023.37537.gambas.fr@...626...> Message-ID: <47797E1C.4060206@...626...> En/na Fabien Bodard ha escrit: > To all the Gambas Users and future ones !! :-) > > > -- > Fabien Bodard And for all the Gambas Developers!! Futures ones too!!! :-) Best regards, Ep?leg. From ct1egh at ...626... Tue Jan 1 01:06:04 2008 From: ct1egh at ...626... (Antonio Pereira) Date: Tue, 1 Jan 2008 00:06:04 +0000 Subject: [Gambas-user] Happy new year 2008 In-Reply-To: <200801010023.37537.gambas.fr@...626...> References: <200801010023.37537.gambas.fr@...626...> Message-ID: <9692f0970712311606x6661a03co97d61218b7967416@...627...> Happy New Year to all Ant?nio Pereira On Dec 31, 2007 11:23 PM, Fabien Bodard wrote: > To all the Gambas Users and future ones !! :-) > > > -- > Fabien Bodard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue Jan 1 13:27:31 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 1 Jan 2008 13:27:31 +0100 Subject: [Gambas-user] for this new year: Message-ID: <200801011327.31993.gambas.fr@...626...> This is a sympathic gambas demo, that show the class and object model power: this class encapsulate a gridview and give it multi formating ability... it is join with two classes: CFormat : An easy way to transport complex format information via a string (like in css ans the font class) this work this way : CFormat[Value as String] as CFormat When you pass a Format string it fill a new instanciate CFormat class You can instanciate a cformat class this way too: hFormat = New CFormat The format string can contain : Font as a font string (ex: Arial,Bold,10) BackColor ForeColor Alignment (it use all the Align Class Keywords by calling them directly) Format (Format$ pattern) Width Height Padding CFormat["BackColor: &HFF55FF; ForeColor: &HDD11DD; Font: Bold,10;"] etc CFormat.ToString return a formated string So To copy a CFormat : hFormat = CFormat[oldFormat.ToString] to store a format Setting["format"] = hFormat.ToString To restore hFormat = CFormat[Setting["Format"]] To get a value : me.Width = hFormat.Width Now the Contdition DB system : A condition : hCondtion new Conditions(Field, what, value, iftrue, iffalse) a second condition imbricated condition (= to the AND keyword) hConditions.Add(Field, what, value) what = condtion comparison mode ex: Condtions.IsEqual In The RichDataGrid only the ifTrue Value is used and you need to pass a CFormat class. The Rich DadaGrid now : to set the Table $hGrid = New RichDataGrid(GridView1) $hGrid.Table = "MyTable" $hGrid.Fields = ["Field1", "Field2", "Field3"] 'set the header shown text $hGrid.Display = ["myName1", "MyName2",..] $hGrid.Header = GidView.Horizontal 'here set a hcondtions class $hGrid.CondFormats.add(hCondition) you can add multiple conditions 'to setup the column format: $hGrid.colFormat = [CFormat[...], CFormat[...], ...] I think i have forgotten many things here but can work a little bit to find how all of that work. Fabien Bodard NOTE: The test database is required for the example ! From gambas.fr at ...626... Tue Jan 1 13:28:42 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 1 Jan 2008 13:28:42 +0100 Subject: [Gambas-user] for this new year: Message-ID: <200801011328.42896.gambas.fr@...626...> This is a sympathic gambas demo, that show the class and object model power: this class encapsulate a gridview and give it multi formating ability... it is join with two classes: CFormat : An easy way to transport complex format information via a string (like in css ans the font class) this work this way : CFormat[Value as String] as CFormat When you pass a Format string it fill a new instanciate CFormat class You can instanciate a cformat class this way too: hFormat = New CFormat The format string can contain : Font as a font string (ex: Arial,Bold,10) BackColor ForeColor Alignment (it use all the Align Class Keywords by calling them directly) Format (Format$ pattern) Width Height Padding CFormat["BackColor: &HFF55FF; ForeColor: &HDD11DD; Font: Bold,10;"] etc CFormat.ToString return a formated string So To copy a CFormat : hFormat = CFormat[oldFormat.ToString] to store a format Setting["format"] = hFormat.ToString To restore hFormat = CFormat[Setting["Format"]] To get a value : me.Width = hFormat.Width Now the Contdition DB system : A condition : hCondtion new Conditions(Field, what, value, iftrue, iffalse) a second condition imbricated condition (= to the AND keyword) hConditions.Add(Field, what, value) what = condtion comparison mode ex: Condtions.IsEqual In The RichDataGrid only the ifTrue Value is used and you need to pass a CFormat class. The Rich DadaGrid now : to set the Table $hGrid = New RichDataGrid(GridView1) $hGrid.Table = "MyTable" $hGrid.Fields = ["Field1", "Field2", "Field3"] 'set the header shown text $hGrid.Display = ["myName1", "MyName2",..] $hGrid.Header = GidView.Horizontal 'here set a hcondtions class $hGrid.CondFormats.add(hCondition) you can add multiple conditions 'to setup the column format: $hGrid.colFormat = [CFormat[...], CFormat[...], ...] I think i have forgotten many things here but can work a little bit to find how all of that work. Fabien Bodard NOTE: The test database is required for the example ! -------------- next part -------------- A non-text attachment was scrubbed... Name: RichDataGrid-0.0.8.tar.gz Type: application/x-tgz Size: 12514 bytes Desc: not available URL: From leonardo at ...1237... Tue Jan 1 18:07:41 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 01 Jan 2008 18:07:41 +0100 Subject: [Gambas-user] 64bits/32bits Xen (was 3D webCam) In-Reply-To: <4777F438.9080800@...1740...> References: <4777F438.9080800@...1740...> Message-ID: <477A735D.6000404@...1237...> Ron ha scritto: > Some distro's have better Xen support than others (I use CentOS 5.1 at > the moment) Other virtualization projects that are freely usable under Linux are Qemu and VirtualBox. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From piresl at ...626... Tue Jan 1 18:09:40 2008 From: piresl at ...626... (lozza1978) Date: Tue, 1 Jan 2008 09:09:40 -0800 (PST) Subject: [Gambas-user] progress bar and shell command which takes ages In-Reply-To: <7259b5ae0712240903x51916f0ah6c3dca276e8dd5f8@...627...> References: <37c460f60712240647h7a06c945ye616dbe87cd71d0c@...627...> <7259b5ae0712240903x51916f0ah6c3dca276e8dd5f8@...627...> Message-ID: <14568220.post@...1379...> Hi there, Thanks for your reply, I have tried the following code but im still not sure how to implement the progress bar, please bare with me while i try and explain the issues im having. When the user clicks the button, it launches StartTheProcess() this then updates the progress bar to ProgressBar1.Value= "0.2" But the progress bar never updates anymore (stays at 2%) and im wondering if the EXEC is actually still running the command? hProc=Exec[Application,param1,param2...] FOR INPUT Object.Attach(hProc,Me,"hProc") Should the Progress bar update while the EXEC command is still running? Thanks so much for your help. Daniel Campos-3 wrote: > > May you could do it without loops, use EXEC FOR INPUT or FOR READ, and > read the progress from the application (I assume the console > application pushes a text progress bar or a percentage indicator > during the process), then refresh the ProgressBar anytime you find a > Process_Read() event, something like > > PUBLIC hProc AS Process > > PUBLIC SUB hProc_Read() > > Dim Buf as String > > READ #hProc,Buf,Lof(hProc) > > ' Parse the buffer here > > ProgressBar1.Value=whatever > > END > > PUBLIC SUB StartTheProcess() > > hProc=Exec[Application,param1,param2...] FOR INPUT > Object.Attach(hProc,Me,"hProc") > > END > > > > > 2007/12/24, lawrence pires : >> i would like to integrate a progress bar but not 100% sure how to do >> this, >> >> I am using EXEC command to convert a music file from WAA to MP3 this >> process >> can take 3-4 minutes, and i would some how like to use the progress bar >> to >> show the progress of the conversion. (is it possible?) >> >> Am I right in saying the the progress bar will only work with a loop? & >> how >> would i do the loop with the EXEC command? >> >> thanks for reading >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- View this message in context: http://www.nabble.com/progress-bar-and-shell-command-which-takes-ages-tp14488332p14568220.html Sent from the gambas-user mailing list archive at Nabble.com. From leonardo at ...1237... Tue Jan 1 18:09:45 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 01 Jan 2008 18:09:45 +0100 Subject: [Gambas-user] Subversion repository renaming In-Reply-To: <200712301812.19290.gambas@...1...> References: <200712301758.48788.gambas@...1...> <8eb28a500712300907u1f1b5035n3df293a0c7ece18f@...627...> <200712301812.19290.gambas@...1...> Message-ID: <477A73D9.2090400@...1237...> Benoit Minisini ha scritto: > On dimanche 30 d?cembre 2007, Jos? Luis Redrejo wrote: >> Does these changes mean that the final release of version 2.0 is very >> close? >> >> On the other hand, I would like to put some more "pressure" on you for >> version 3.0: gambas working with 64 bits is today a total need for the >> future and present of the language and for all of us who like to use it and >> everyday are being blocked with that barrier. In the gambas roadmap that >> should be the first item to be achieved in my opinion, and checking last >> emails in the list, there are a lot of people with the same need. So, here >> goes another vote for it. >> >> Merry christmas to you all. >> > > As Gambas 1 were release a January, 1st, I find logical to release Gambas 2 > January, 2th. :-) > > As for the 64 bits version, as it implies many changes in the interpreter, I > had to release this version first, before starting to deal with it. > > And yes, it should be the first thing I will work on, but I can't tell how > much time it will take. > > Regards, > Veeeery interesting :-P -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From piresl at ...626... Tue Jan 1 19:56:59 2008 From: piresl at ...626... (lawrence pires) Date: Tue, 1 Jan 2008 18:56:59 +0000 Subject: [Gambas-user] How 2 align text in message boxes? Message-ID: <37c460f60801011056r2c3a5f1fmd8059817765dbe4b@...627...> Hi All Just need some quick help, Im trying to align some text in a Message.Infopop up box. Here my code Message.Info("LNP Simple DVD Creator \n Report any bugs To \n email at ...1827... ") The text is not aligning centre, what am I doing wrong? Thanks for reading From gambas.fr at ...626... Tue Jan 1 20:28:44 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 1 Jan 2008 20:28:44 +0100 Subject: [Gambas-user] How 2 align text in message boxes? In-Reply-To: <37c460f60801011056r2c3a5f1fmd8059817765dbe4b@...627...> References: <37c460f60801011056r2c3a5f1fmd8059817765dbe4b@...627...> Message-ID: <200801012028.44890.gambas.fr@...626...> Le Tuesday 01 January 2008 19:56:59 lawrence pires, vous avez ?crit?: > Hi All > > Just need some quick help, Im trying to align some text in a > Message.Infopop up box. > > Here my code > > Message.Info("LNP Simple DVD Creator \n Report any bugs > To \n email at ...1827... ") ave you try Message.Info("
LNP Simple DVD Creator \n Report any bugs To \n email at ...1827...
") or Message.Info("LNP Simple DVD Creator \n Report any bugs To \n email at ...1827... ") > > The text is not aligning centre, what am I doing wrong? > > Thanks for reading > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From piresl at ...626... Tue Jan 1 20:41:27 2008 From: piresl at ...626... (lozza1978) Date: Tue, 1 Jan 2008 11:41:27 -0800 (PST) Subject: [Gambas-user] Application goes wierd when running large EXEC command (with pic) Message-ID: <14569382.post@...1379...> Hi All, in my application i have to run a large Exec command The command is EXEC ["mencoder", "-oac", "lavc", "-ovc", "lavc", "-of", "mpeg", "-mpegopts", "format=dvd", "-vf", "scale=720:576,harddup", "-srate", "48000", "-af", "lavcresample=48000", "-lavcopts", "vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:aspect=16/9:acodec=ac3:abitrate=192", "-ofps", "25", "-o", dvdmovie, Textbox1.Text] WAIT the command above converts sound & movie to DVD format When running the command, my application seems to lockup, picture below http://www.nabble.com/file/p14569382/snapshot9.png I have found during debug that the application is still processing the EXEC command, but is there a way to stop the application to look as though it has locked up? It could have something to do with me using the WAIT on the EXEC line, but if I do not use the wait the there is no way for the end user to know when the process has finished. Can anyone help shed some light on this for a newbie? thanks for reading. -- View this message in context: http://www.nabble.com/Application-goes-wierd-when-running-large-EXEC-command-%28with-pic%29-tp14569382p14569382.html Sent from the gambas-user mailing list archive at Nabble.com. From piresl at ...626... Tue Jan 1 20:48:55 2008 From: piresl at ...626... (lozza1978) Date: Tue, 1 Jan 2008 11:48:55 -0800 (PST) Subject: [Gambas-user] How 2 align text in message boxes? In-Reply-To: <200801012028.44890.gambas.fr@...626...> References: <37c460f60801011056r2c3a5f1fmd8059817765dbe4b@...627...> <200801012028.44890.gambas.fr@...626...> Message-ID: <14569386.post@...1379...> Hello Fabien, Thank you for your fast reply. I have tested
and it works perfectly, how did you find that out? can you point me to any documention on other tags that can also be used? Thanks Again. Fabien Bodard-4 wrote: > > Le Tuesday 01 January 2008 19:56:59 lawrence pires, vous avez ?crit?: >> Hi All >> >> Just need some quick help, Im trying to align some text in a >> Message.Infopop up box. >> >> Here my code >> >> Message.Info("LNP Simple DVD Creator \n Report any bugs >> To \n email at ...1827... ") > > > ave you try > Message.Info("
LNP Simple DVD Creator \n Report any bugs To \n > email at ...1827...
") > or > Message.Info("LNP Simple DVD Creator \n Report any > bugs To \n email at ...1827... ") > > >> >> The text is not aligning centre, what am I doing wrong? >> >> Thanks for reading >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- View this message in context: http://www.nabble.com/How-2-align-text-in-message-boxes--tp14569179p14569386.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Tue Jan 1 21:10:49 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 1 Jan 2008 21:10:49 +0100 Subject: [Gambas-user] How 2 align text in message boxes? In-Reply-To: <14569386.post@...1379...> References: <37c460f60801011056r2c3a5f1fmd8059817765dbe4b@...627...> <200801012028.44890.gambas.fr@...626...> <14569386.post@...1379...> Message-ID: <200801012110.49344.gambas.fr@...626...> Le Tuesday 01 January 2008 20:48:55 lozza1978, vous avez ?crit?: > Hello Fabien, > > Thank you for your fast reply. > > I have tested
and it works perfectly, how did you find > that out? can you point me to any documention on other tags that can also > be used? > look at the html doc ! > Thanks Again. > > Fabien Bodard-4 wrote: > > Le Tuesday 01 January 2008 19:56:59 lawrence pires, vous avez ?crit?: > >> Hi All > >> > >> Just need some quick help, Im trying to align some text in a > >> Message.Infopop up box. > >> > >> Here my code > >> > >> Message.Info("LNP Simple DVD Creator \n Report any bugs > >> To \n email at ...1827... ") > > > > ave you try > > Message.Info("
LNP Simple DVD Creator \n Report any bugs To \n > > email at ...1827...
") > > or > > Message.Info("LNP Simple DVD Creator \n Report any > > bugs To \n email at ...1827... ") > > > >> The text is not aligning centre, what am I doing wrong? > >> > >> Thanks for reading > >> ------------------------------------------------------------------------ > >>- This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2005. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Tue Jan 1 21:26:40 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 1 Jan 2008 21:26:40 +0100 Subject: [Gambas-user] Application goes wierd when running large EXEC command (with pic) In-Reply-To: <14569382.post@...1379...> References: <14569382.post@...1379...> Message-ID: <200801012126.40514.gambas.fr@...626...> Le Tuesday 01 January 2008 20:41:27 lozza1978, vous avez ?crit?: > Hi All, > > in my application i have to run a large Exec command > The command is > EXEC ["mencoder", "-oac", "lavc", "-ovc", "lavc", "-of", "mpeg", > "-mpegopts", "format=dvd", "-vf", "scale=720:576,harddup", > "-srate", "48000", "-af", "lavcresample=48000", "-lavcopts", > "vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint= >15:aspect=16/9:acodec=ac3:abitrate=192", "-ofps", "25", "-o", dvdmovie, > Textbox1.Text] WAIT > > the command above converts sound & movie to DVD format > When running the command, my application seems to lockup, picture below > http://www.nabble.com/file/p14569382/snapshot9.png > > I have found during debug that the application is still processing the EXEC > command, but is there a way to stop the application to look as though it > has locked up? > yes remove the WAIT command... it block the program since the exec process is not ended then use process stream management to watch and drive the process Like this : EXEC ["mencoder", "-oac", "lavc", "-ovc", "lavc", "-of", "mpeg", "-mpegopts", "format=dvd", "-vf", "scale=720:576,harddup", "-srate", "48000", "-af", "lavcresample=48000", "-lavcopts", "vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint= 15:aspect=16/9:acodec=ac3:abitrate=192", "-ofps", "25", "-o", dvdmovie, Textbox1.Text] AS "Mencoder" PUBLIC SUB MenCoder_Error() Dim sLine as String Print "there is an error on processing" READ #LAST, sLine, -256 Print sLine END PUBLIC SUB MemCoder_Read() DIM sLine AS String READ #LAST, sLine, -256 Print sLine END PUBLIC SUB Contents_Kill() PRINT "Fin du processus" END http://gambasdoc.org/help/comp/gb/process > It could have something to do with me using the WAIT on the EXEC line, but > if I do not use the wait the there is no way for the end user to know when > the process has finished. > > Can anyone help shed some light on this for a newbie? > thanks for reading. From rterry at ...1822... Wed Jan 2 05:11:43 2008 From: rterry at ...1822... (richard terry) Date: Wed, 2 Jan 2008 15:11:43 +1100 Subject: [Gambas-user] Where's the most appropriate place for a scad of questions Message-ID: <200801021511.43506.rterry@...1822...> I've only recently installed Gambas2 (after looking at Gambas in its infancy a long time ago) and I must say I'm really impressed. Yes, I'm aware I can post to this list or the forums. Some quick background. Though a medical doctor by trade, and a self taught programmer since the early 1980's (cut my teeth on assembler and FORTH, I programmed in VB from VB3-VB6 for a long period, and wrote a number of apps some of which are still used by the commerical organisations I wrote them for back in the late 90's - VB/Access based. My own apps run here at work (General Practice in Australia) - a medical records system written in VB which has been in use now for 10yrs), and I've been looking to replace/update them for some time. I've been involved with gnumed (www.gnumed.net) for a few years, which has made only very slow and incremental progress, and upskilled myself on postgres and wxPython, where I can pretty much code any complex gui I want by hand. Time however has beaten me as my workload is so heavy, so I was pleasantly surprised at just how good gambas2 has become, and am tempted to start some experimental development in that. So to the point - not having programmed in VB for 10 years, but being familar with that, I've been writing down a number of observations/questions/ as I've started to explore gambas, and wondered who/where, I could direct them to. My experience with lists/forums over the years has been variable, and of course, whilst I'm more than happy to post 'in expectation' to the list, often ones questions are not answered so I wondered if there was anyone on the list who has a deep and extensive knowledge of gambas and who actually writes apps for the real world, who would be prepared to field a few questions personally via email. Also, as I've picked up bugs as I've gone, if I persist with gambas, I'd like to be able to contribute to the community by bug reporting/suggestions. I did download the svn, but for some reason couldn't get it to work. I wondered how far ahead of the 1.9.90 release in terms of functionality would be the SVN code. My linux distribution (best in the world of course is ARCHLINUX, so I used the package from community to install gambas2. Any comments/help/suggestions appreciated. Richard From gambas at ...1... Wed Jan 2 09:50:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Jan 2008 09:50:32 +0100 Subject: [Gambas-user] Where's the most appropriate place for a scad of questions In-Reply-To: <200801021511.43506.rterry@...1822...> References: <200801021511.43506.rterry@...1822...> Message-ID: <200801020950.32499.gambas@...1...> On mercredi 2 janvier 2008, richard terry wrote: > I've only recently installed Gambas2 (after looking at Gambas in its > infancy a long time ago) and I must say I'm really impressed. Yes, I'm > aware I can post to this list or the forums. > > Some quick background. > > Though a medical doctor by trade, and a self taught programmer since the > early 1980's (cut my teeth on assembler and FORTH, I programmed in VB from > VB3-VB6 for a long period, and wrote a number of apps some of which are > still used by the commerical organisations I wrote them for back in the > late 90's - VB/Access based. > > My own apps run here at work (General Practice in Australia) - a medical > records system written in VB which has been in use now for 10yrs), and I've > been looking to replace/update them for some time. > > I've been involved with gnumed (www.gnumed.net) for a few years, which has > made only very slow and incremental progress, and upskilled myself on > postgres and wxPython, where I can pretty much code any complex gui I want > by hand. Time however has beaten me as my workload is so heavy, so I was > pleasantly surprised at just how good gambas2 has become, and am tempted to > start some experimental development in that. > > So to the point - not having programmed in VB for 10 years, but being > familar with that, I've been writing down a number of > observations/questions/ as I've started to explore gambas, and wondered > who/where, I could direct them to. > > My experience with lists/forums over the years has been variable, and of > course, whilst I'm more than happy to post 'in expectation' to the list, > often ones questions are not answered so I wondered if there was anyone on > the list who has a deep and extensive knowledge of gambas and who actually > writes apps for the real world, who would be prepared to field a few > questions personally via email. > > Also, as I've picked up bugs as I've gone, if I persist with gambas, I'd > like to be able to contribute to the community by bug > reporting/suggestions. I did download the svn, but for some reason couldn't > get it to work. I wondered how far ahead of the 1.9.90 release in terms of > functionality would be the SVN code. > > My linux distribution (best in the world of course is ARCHLINUX, so I used > the package from community to install gambas2. > > Any comments/help/suggestions appreciated. > > Richard > Just use this mailing-list to post your questions/comment/bug reports. Alternatively, for bug reports, you can use the gambasrad.org web site. Personally, I prefer the mailing-list so that everything is public and archived, and because every people can answer your problems, not only me. Regards, -- Benoit Minisini From gambas at ...1... Wed Jan 2 11:13:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Jan 2008 11:13:32 +0100 Subject: [Gambas-user] Release of Gambas 2 Message-ID: <200801021113.32378.gambas@...1...> Happy new year for every people using the gregorian calendar! After three year of development (and not two as I wrote before), Gambas 2 is finally released. I have updated the Gambas 2 article on the wiki so that it can be used for introducing this release. Gambas 2 becomes now the stable version, and the 1.0 version is deprecated. The changes since 2.0 RC2 are mainly bug fixes. The main one are: * The IDE find list was redesigned. * A 3D PDF presentation example and a 3D webcam example were added. * The offline help was updated to the last online version. * The Session class now correctly deals with Long values. * The GlArea control was fixed. As usual, read the ChangeLog for detailed information. I tried to follow the KDE SVN structure for the Gambas repository, even I don't find it really practical: /trunk is the last development version. /tags/X.Y.Z is the X.Y.Z release. /branches/X.0 is the old trunk, used for fixing bugs in the aim of a new release of the stable version. Let's start Gambas 3 now! -- Benoit Minisini From rospolosco at ...152... Wed Jan 2 12:26:29 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 2 Jan 2008 12:26:29 +0100 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <200801021113.32378.gambas@...1...> References: <200801021113.32378.gambas@...1...> Message-ID: <200801021226.29866.rospolosco@...152...> Alle 11:13, mercoled? 2 gennaio 2008, Benoit Minisini ha scritto: > Happy new year for every people using the gregorian calendar! > > After three year of development (and not two as I wrote before), Gambas 2 > is finally released. > > I have updated the Gambas 2 article on the wiki so that it can be used for > introducing this release. > > Gambas 2 becomes now the stable version, and the 1.0 version is deprecated. > > The changes since 2.0 RC2 are mainly bug fixes. The main one are: > * The IDE find list was redesigned. > * A 3D PDF presentation example and a 3D webcam example were added. > * The offline help was updated to the last online version. > * The Session class now correctly deals with Long values. > * The GlArea control was fixed. > > As usual, read the ChangeLog for detailed information. > > I tried to follow the KDE SVN structure for the Gambas repository, even I > don't find it really practical: > > /trunk is the last development version. > > /tags/X.Y.Z is the X.Y.Z release. > > /branches/X.0 is the old trunk, used for fixing bugs in the aim of a new > release of the stable version. > > Let's start Gambas 3 now! Happy new year to you too and to all Gambas fanatics. In the article you're still talking about release candidate: "After three of development, I am happy to announce the first release candidate of Gambas 2." I've updated the italian version. Congratulations for your new reached goal. Best regards, Stefano Palmeri From gambas at ...1... Wed Jan 2 12:34:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Jan 2008 12:34:50 +0100 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <200801021226.29866.rospolosco@...152...> References: <200801021113.32378.gambas@...1...> <200801021226.29866.rospolosco@...152...> Message-ID: <200801021234.51337.gambas@...1...> On mercredi 2 janvier 2008, Stefano Palmeri wrote: > > Happy new year to you too and to all Gambas fanatics. > > In the article you're still talking about release candidate: > > "After three of development, I am happy to announce the first release > candidate of Gambas 2." Oops, fixed! -- Benoit Minisini From ron at ...1740... Wed Jan 2 12:45:50 2008 From: ron at ...1740... (Ron) Date: Wed, 02 Jan 2008 12:45:50 +0100 Subject: [Gambas-user] IDE treeview issue Message-ID: <477B796E.10803@...1740...> Hi, Best wishes for 2008. I have just noticed that class/form etc. objects which you have asigned to a parent when created, are not implodable in the IDE treeview at the left. They are exploded by default and stay that way if you click on the minus sign in front of them. Is this a bug? If yes I will file a report with more info if needed. I'm running Gambas2 from svn from a week ago (RC2 I think) on CentOS 5.1. Regards, Ron. From gambas at ...1... Wed Jan 2 12:50:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Jan 2008 12:50:39 +0100 Subject: [Gambas-user] IDE treeview issue In-Reply-To: <477B796E.10803@...1740...> References: <477B796E.10803@...1740...> Message-ID: <200801021250.39774.gambas@...1...> On mercredi 2 janvier 2008, Ron wrote: > Hi, > > Best wishes for 2008. > > I have just noticed that class/form etc. objects which you have asigned > to a parent when created, are not implodable in the IDE treeview at the > left. > They are exploded by default and stay that way if you click on the minus > sign in front of them. > > Is this a bug? No it is a feature. Since September 2006! -- Benoit Minisini From sourceforge-raindog2 at ...94... Wed Jan 2 15:42:24 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 2 Jan 2008 09:42:24 -0500 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <200801021113.32378.gambas@...1...> References: <200801021113.32378.gambas@...1...> Message-ID: <200801020942.25313.sourceforge-raindog2@...94...> On Wednesday 02 January 2008 05:13, Benoit Minisini wrote: > After three year of development (and not two as I wrote before), > Gambas 2 is finally released. Congratulations! I submitted it to Slashdot and Digg again so we'll see how it goes. Rob From iggy.budiman.it at ...626... Wed Jan 2 16:55:03 2008 From: iggy.budiman.it at ...626... (Ignatius Budiman H.) Date: Wed, 2 Jan 2008 22:55:03 +0700 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <200801021113.32378.gambas@...1...> References: <200801021113.32378.gambas@...1...> Message-ID: <315c36260801020755s193d0da0h5b07760d00bed812@...627...> On Jan 2, 2008 5:13 PM, Benoit Minisini wrote: > Happy new year for every people using the gregorian calendar! > > After three year of development (and not two as I wrote before), Gambas 2 > is > finally released. > > Congratulation for the release of Gambas 2. I hope will be not much bug left. I tried to download, but it seems that the mirror of sourceforge had not update for it yet (the file was not available to download), may be few hours later. What are the next roadmap to Gambas 3? What more features do you have in your mind? salam -iggy From jedsoftware at ...626... Wed Jan 2 18:07:06 2008 From: jedsoftware at ...626... (John Dizaro) Date: Wed, 2 Jan 2008 15:07:06 -0200 Subject: [Gambas-user] howto use datacombo Message-ID: <11c2d5210801020907m370b5b44kcd122c28dc58d8c5@...627...> Please can someone show me how to use "datacombo" in gambas? Thanks for all. -- John Evan Dizaro Fone: 0xx (41) 3333-3333 Fone: (41) 9244-4603 Rua: Chile, 2211 Bebou?as Curitiba - PR - Brasil From jedsoftware at ...626... Wed Jan 2 18:12:27 2008 From: jedsoftware at ...626... (John Dizaro) Date: Wed, 2 Jan 2008 09:12:27 -0800 Subject: [Gambas-user] John Dizaro quer conversar Message-ID: <11c2d5210801020912v1a8b24ffn@...627...> ----------------------------------------------------------------------- John Dizaro deseja manter mais contato com voc? usando os novos produtos do Google. Se voc? j? tem o Gmail ou o Google Talk, visite: http://mail.google.com/mail/b-425688a034-cf45cb9218-420e7e041b75a25b Clique neste link para poder conversar com John Dizaro. Para obter o Gmail ? uma conta de e-mail gr?tis do Google com mais de 2.600 megabytes de armazenamento ? e conversar com John Dizaro, visite: http://mail.google.com/mail/a-425688a034-cf45cb9218-f3390011f9 Ofertas do Gmail: - Prote??o avan?ada contra spam - Pesquisa integrada para localiza??o de mensagens e uma forma pr?tica de organizar e-mails como "conversas" - Livre-se dos pop-ups ou banners n?o direcionados; s?o apresentados apenas pequenos an?ncios em texto e informa??es relacionadas ao conte?do das suas mensagens - Recurso de mensagens instant?neas dentro do Gmail. E tudo isso ? de gra?a. Mas n?o ? s? isso. Voc? tamb?m pode ter o Google Talk: http://www.google.com/talk/intl/pt-BR/ ? um breve download para Windows* que faz liga??es para os seus amigos via computador gratuitamente. ? simples e limpo e funciona com qualquer alto-falante e microfone de computador. O Gmail e o Google Talk ainda est?o em fase de desenvolvimento. Estamos trabalhando muito para adicionar novos recursos e fazer melhorias, por isso, ?s vezes pediremos seus coment?rios e sugest?es. Agradecemos a sua ajuda para tornar nossos produtos ainda melhores! Obrigado, A Equipe Google Para saber mais sobre o Gmail e o Google Talk, visite: http://mail.google.com/mail/help/intl/pt_BR/about.html http://www.google.com/talk/intl/pt-BR/about.html (Se voc? clicar nos URLs desta mensagem e eles n?o funcionarem, copie-os e cole-os na barra de endere?os de seu navegador.) * Voc? n?o ? usu?rio do Windows? N?o tem problema. O servi?o Google Talk pode ser usado em qualquer plataforma e com clientes de e-mail de outros fornecedores (http://www.google.com/talk/intl/pt-BR/otherclients.html). From gambas.fr at ...626... Wed Jan 2 18:46:00 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 2 Jan 2008 18:46:00 +0100 Subject: [Gambas-user] howto use datacombo In-Reply-To: <11c2d5210801020907m370b5b44kcd122c28dc58d8c5@...627...> References: <11c2d5210801020907m370b5b44kcd122c28dc58d8c5@...627...> Message-ID: <200801021846.01074.gambas.fr@...626...> Le Wednesday 02 January 2008 18:07:06 John Dizaro, vous avez ?crit?: > Please can someone show me how to use "datacombo" in gambas? > > Thanks for all. create a Module MMain.module wich is the Main In it put : Private hCon as New Connection Public sub Main() hCon.type="mysql" hCon.Host="localhost" hCon.Login = "Root" hCon.PassWord="" MyForm.Show END in MyForm, just configure the properties of the Datacombo.. From eilert-sprachen at ...221... Wed Jan 2 19:12:15 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 02 Jan 2008 19:12:15 +0100 Subject: [Gambas-user] Gambas on 64 Bit system Message-ID: <477BD3FF.5000807@...221...> Hi folks, just a happy new year to everyone first. This is my question: Is there a chance to get Gambas (1 and 2) running on a 64 Bit system? Would it be instable or would there be any limitation? As I'm setting up a new server with a lot of RAM, it would be nice to have it running in 64 Bit mode. Gambas is "the one app" I cannot do without, so if it's not possible to run it there, I'd have to use a PAE system. Thanks for your advice. Rolf From rospolosco at ...152... Wed Jan 2 19:27:38 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 2 Jan 2008 19:27:38 +0100 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <200801021234.51337.gambas@...1...> References: <200801021113.32378.gambas@...1...> <200801021226.29866.rospolosco@...152...> <200801021234.51337.gambas@...1...> Message-ID: <200801021927.38464.rospolosco@...152...> I would like to know all the great authors of Gambas2 ;-) See attached jpg. Stefano -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas2.jpg Type: image/jpeg Size: 32934 bytes Desc: not available URL: From jedsoftware at ...626... Wed Jan 2 19:30:55 2008 From: jedsoftware at ...626... (John Dizaro) Date: Wed, 2 Jan 2008 16:30:55 -0200 Subject: [Gambas-user] howto use datacombo In-Reply-To: <200801021846.01074.gambas.fr@...626...> References: <11c2d5210801020907m370b5b44kcd122c28dc58d8c5@...627...> <200801021846.01074.gambas.fr@...626...> Message-ID: <11c2d5210801021030j695ed824tc867612c3efe24b4@...627...> Tanks this part i know but how to configure the propreties and how to to put data in "datacombo" 2008/1/2, Fabien Bodard : > > Le Wednesday 02 January 2008 18:07:06 John Dizaro, vous avez ?crit: > > Please can someone show me how to use "datacombo" in gambas? > > > > Thanks for all. > > create a Module MMain.module wich is the Main > > In it put : > > > Private hCon as New Connection > Public sub Main() > > hCon.type="mysql" > hCon.Host="localhost" > hCon.Login = "Root" > hCon.PassWord="" > > MyForm.Show > > END > > in MyForm, just configure the properties of the Datacombo.. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- John Evan Dizaro JED Desensolvimento de Software - Windows e Linux O software do jeito que voc? precisa Fone: (41) 3334-3001 Fone: (41) 9244-4603 Rua: Chile, 2211 Bebou?as Curitiba - PR - Brasil From gambas.fr at ...626... Wed Jan 2 19:42:33 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 2 Jan 2008 19:42:33 +0100 Subject: [Gambas-user] howto use datacombo In-Reply-To: <11c2d5210801021030j695ed824tc867612c3efe24b4@...627...> References: <11c2d5210801020907m370b5b44kcd122c28dc58d8c5@...627...> <200801021846.01074.gambas.fr@...626...> <11c2d5210801021030j695ed824tc867612c3efe24b4@...627...> Message-ID: <200801021942.33677.gambas.fr@...626...> Le Wednesday 02 January 2008 19:30:55 John Dizaro, vous avez ?crit?: > Tanks this part i know but how to configure the propreties and how to > to put data in "datacombo" > in the left of the ide set the table property the datafield one and the display one and normaly you can't put data in it > 2008/1/2, Fabien Bodard : > > Le Wednesday 02 January 2008 18:07:06 John Dizaro, vous avez ?crit: > > > Please can someone show me how to use "datacombo" in gambas? > > > > > > Thanks for all. > > > > create a Module MMain.module wich is the Main > > > > In it put : > > > > > > Private hCon as New Connection > > Public sub Main() > > > > hCon.type="mysql" > > hCon.Host="localhost" > > hCon.Login = "Root" > > hCon.PassWord="" > > > > MyForm.Show > > > > END > > > > in MyForm, just configure the properties of the Datacombo.. > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From piresl at ...626... Wed Jan 2 19:47:12 2008 From: piresl at ...626... (lozza1978) Date: Wed, 2 Jan 2008 10:47:12 -0800 (PST) Subject: [Gambas-user] Application goes wierd when running large EXEC command (with pic) In-Reply-To: <200801012126.40514.gambas.fr@...626...> References: <14569382.post@...1379...> <200801012126.40514.gambas.fr@...626...> Message-ID: <14583658.post@...1379...> Thank You for your example, I can now get the exec command running in the background with a tweak, I tried the exec command with AS MenCoder, but this failed to even launch the app, so I added "FOR READ AS "Mencoder" and it is now working. (Should I be using FOR READ AS)? However, now the the command is running in the background, there is no way for the end user to know wheather the EXEC command is running or finished, Whats the best/easyest way for me to inform the user than the command is still working and inform the user when its finished? Here what I got so far working. EXEC ["mencoder", "-oac", "lavc", "-ovc", "lavc", "-of", "mpeg", "-mpegopts", "format=dvd", "-vf", "scale=720:576,harddup", "-srate", "48000", "-af", "lavcresample=48000", "-lavcopts", "vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:aspect=16/9:acodec=ac3:abitrate=192", "-ofps", "25", "-o", dvdmovie, Textbox1.Text] FOR READ AS "Contents" 'test code PUBLIC SUB Contents_Read() DIM sLine AS String READ #LAST, sLine, -256 sOutput &= sLine PRINT sOutput END PUBLIC SUB Contents_Kill() PRINT sOutput END Thanks To You All Fabien Bodard-4 wrote: > > Le Tuesday 01 January 2008 20:41:27 lozza1978, vous avez ?crit?: >> Hi All, >> >> in my application i have to run a large Exec command >> The command is >> EXEC ["mencoder", "-oac", "lavc", "-ovc", "lavc", "-of", "mpeg", >> "-mpegopts", "format=dvd", "-vf", "scale=720:576,harddup", >> "-srate", "48000", "-af", "lavcresample=48000", "-lavcopts", >> "vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint= >>15:aspect=16/9:acodec=ac3:abitrate=192", "-ofps", "25", "-o", dvdmovie, >> Textbox1.Text] WAIT >> >> the command above converts sound & movie to DVD format >> When running the command, my application seems to lockup, picture below >> http://www.nabble.com/file/p14569382/snapshot9.png >> >> I have found during debug that the application is still processing the >> EXEC >> command, but is there a way to stop the application to look as though it >> has locked up? >> > > yes remove the WAIT command... it block the program since the exec process > is > not ended > > then use process stream management to watch and drive the process > Like this : > > EXEC ["mencoder", "-oac", "lavc", "-ovc", "lavc", "-of", "mpeg", > "-mpegopts", "format=dvd", "-vf", "scale=720:576,harddup", > "-srate", "48000", "-af", "lavcresample=48000", "-lavcopts", > > "vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint= > 15:aspect=16/9:acodec=ac3:abitrate=192", "-ofps", "25", "-o", dvdmovie, > Textbox1.Text] AS "Mencoder" > > PUBLIC SUB MenCoder_Error() > Dim sLine as String > Print "there is an error on processing" > READ #LAST, sLine, -256 > Print sLine > END > > > PUBLIC SUB MemCoder_Read() > > DIM sLine AS String > > READ #LAST, sLine, -256 > > Print sLine > > END > > PUBLIC SUB Contents_Kill() > > PRINT "Fin du processus" > > END > > http://gambasdoc.org/help/comp/gb/process >> It could have something to do with me using the WAIT on the EXEC line, >> but >> if I do not use the wait the there is no way for the end user to know >> when >> the process has finished. >> >> Can anyone help shed some light on this for a newbie? >> thanks for reading. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- View this message in context: http://www.nabble.com/Application-goes-wierd-when-running-large-EXEC-command-%28with-pic%29-tp14569382p14583658.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Wed Jan 2 20:58:20 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 2 Jan 2008 20:58:20 +0100 Subject: [Gambas-user] Application goes wierd when running large EXEC command (with pic) In-Reply-To: <14583658.post@...1379...> References: <14569382.post@...1379...> <200801012126.40514.gambas.fr@...626...> <14583658.post@...1379...> Message-ID: <200801022058.20439.gambas.fr@...626...> Le Wednesday 02 January 2008 19:47:12 lozza1978, vous avez ?crit?: > PUBLIC SUB Contents_Kill() > > ? PRINT sOutput > > END this event is generated when the process is ended... you can use itto advertise your users... The ending of a process can have different origin... normal, crash, other you can know that by testing the LAST.State For exemple LAST.State = Process.Stopped http://gambasdoc.org/help/comp/gb/process From sourceforge-raindog2 at ...94... Wed Jan 2 20:58:37 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 2 Jan 2008 14:58:37 -0500 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <200801021927.38464.rospolosco@...152...> References: <200801021113.32378.gambas@...1...> <200801021234.51337.gambas@...1...> <200801021927.38464.rospolosco@...152...> Message-ID: <200801021458.37552.sourceforge-raindog2@...94...> On Wednesday 02 January 2008 13:27, Stefano Palmeri wrote: > I would like to know all the great authors of Gambas2 ;-) > See attached jpg. Awww, and I forgot to send in my own headshot at all. Rob From gambas.fr at ...626... Wed Jan 2 21:20:12 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 2 Jan 2008 21:20:12 +0100 Subject: [Gambas-user] Where's the most appropriate place for a scad of questions In-Reply-To: <200801021511.43506.rterry@...1822...> References: <200801021511.43506.rterry@...1822...> Message-ID: <200801022120.13112.gambas.fr@...626...> Le Wednesday 02 January 2008 05:11:43 richard terry, vous avez ?crit?: > Also, as I've picked up bugs as I've gone, if I persist with gambas, I'd > like to be able to contribute to the community by bug > reporting/suggestions. I did download the svn, but for some reason couldn't > get it to work. I wondered how far ahead of the 1.9.90 release in terms of > functionality would be the SVN code. > > My linux distribution (best in the world of course is ARCHLINUX, so I used > the package from community to install gambas2. > > Any comments/help/suggestions appreciated. Welcome to the Gambas Mailing list, We are trying to answer to all we can.... But sometime, some query have not answer.... because there is no answer, because the man that know the answer is in holiday, or because anything else :-P Regards, Fabien Bodard From gambas.fr at ...626... Wed Jan 2 21:35:00 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 2 Jan 2008 21:35:00 +0100 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <200801021458.37552.sourceforge-raindog2@...94...> References: <200801021113.32378.gambas@...1...> <200801021927.38464.rospolosco@...152...> <200801021458.37552.sourceforge-raindog2@...94...> Message-ID: <200801022135.01398.gambas.fr@...626...> Le Wednesday 02 January 2008 20:58:37 Rob, vous avez ?crit?: > On Wednesday 02 January 2008 13:27, Stefano Palmeri wrote: > > I would like to know all the great authors of Gambas2 ;-) > > See attached jpg. > > Awww, and I forgot to send in my own headshot at all. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Jan 2 21:35:23 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 2 Jan 2008 21:35:23 +0100 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <200801021458.37552.sourceforge-raindog2@...94...> References: <200801021113.32378.gambas@...1...> <200801021927.38464.rospolosco@...152...> <200801021458.37552.sourceforge-raindog2@...94...> Message-ID: <200801022135.23331.gambas.fr@...626...> Le Wednesday 02 January 2008 20:58:37 Rob, vous avez ?crit?: > On Wednesday 02 January 2008 13:27, Stefano Palmeri wrote: > > I would like to know all the great authors of Gambas2 ;-) > > See attached jpg. > > Awww, and I forgot to send in my own headshot at all. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user author.txt is missing in the svn too From gambas at ...1... Wed Jan 2 23:11:42 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Jan 2008 23:11:42 +0100 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <200801022135.23331.gambas.fr@...626...> References: <200801021113.32378.gambas@...1...> <200801021458.37552.sourceforge-raindog2@...94...> <200801022135.23331.gambas.fr@...626...> Message-ID: <200801022311.42943.gambas@...1...> On mercredi 2 janvier 2008, Fabien Bodard wrote: > Le Wednesday 02 January 2008 20:58:37 Rob, vous avez ?crit?: > > On Wednesday 02 January 2008 13:27, Stefano Palmeri wrote: > > > I would like to know all the great authors of Gambas2 ;-) > > > See attached jpg. > > > > Awww, and I forgot to send in my own headshot at all. > > > > Rob > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > author.txt is missing in the svn too > No, I did that on purpose, because almost nobody sent me his headshot. :-) -- Benoit Minisini From gambas.fr at ...626... Wed Jan 2 23:21:23 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 2 Jan 2008 23:21:23 +0100 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <200801022311.42943.gambas@...1...> References: <200801021113.32378.gambas@...1...> <200801022135.23331.gambas.fr@...626...> <200801022311.42943.gambas@...1...> Message-ID: <200801022321.24069.gambas.fr@...626...> Le Wednesday 02 January 2008 23:11:42 Benoit Minisini, vous avez ?crit?: > On mercredi 2 janvier 2008, Fabien Bodard wrote: > > Le Wednesday 02 January 2008 20:58:37 Rob, vous avez ?crit?: > > > On Wednesday 02 January 2008 13:27, Stefano Palmeri wrote: > > > > I would like to know all the great authors of Gambas2 ;-) > > > > See attached jpg. > > > > > > Awww, and I forgot to send in my own headshot at all. > > > > > > Rob > > > > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > author.txt is missing in the svn too > > No, I did that on purpose, because almost nobody sent me his headshot. :-) i don't remember if i've done that... From gambas at ...1... Wed Jan 2 23:29:04 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Jan 2008 23:29:04 +0100 Subject: [Gambas-user] 2.0.0 package updated Message-ID: <200801022329.04854.gambas@...1...> Hi, I have updated the gambas-2.0.0 package by adding the forgotten authors file. Download the package again to get it. Sorry for the inconvenience. Regards, -- Benoit Minisini From leandro.anthonioz at ...626... Thu Jan 3 01:27:01 2008 From: leandro.anthonioz at ...626... (Leandro Anthonioz) Date: Wed, 02 Jan 2008 21:27:01 -0300 Subject: [Gambas-user] Gambas 2 final release In-Reply-To: References: Message-ID: <477C2BD5.1020301@...626...> Congratulations for this great milestone! Thank you Benoit and all Gambas contributors! Best regards, Leandro Anthonioz From sourceforge-raindog2 at ...94... Thu Jan 3 04:14:21 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 2 Jan 2008 22:14:21 -0500 Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <200801020942.25313.sourceforge-raindog2@...94...> References: <200801021113.32378.gambas@...1...> <200801020942.25313.sourceforge-raindog2@...94...> Message-ID: <200801022214.21614.sourceforge-raindog2@...94...> On Wednesday 02 January 2008 09:42, Rob wrote: > Congratulations! I submitted it to Slashdot and Digg again so > we'll see how it goes. Well, 12 hours later, it's still pending on slashdot and there's only 1 digg on digg (and it's mine.) Doesn't fill me with a lot of optimism. http://digg.com/programming/Gambas_2_0_IDE_Released_Now_Toolkit_Independent Of course, I'd totally be screwing my company's web/mail server if we got slashdotted and dugg to death at the same time, but that's not looking too likely. Rob From iggy.budiman.it at ...626... Thu Jan 3 06:52:29 2008 From: iggy.budiman.it at ...626... (Ignatius Budiman H.) Date: Thu, 3 Jan 2008 12:52:29 +0700 Subject: [Gambas-user] Question about using gb.report, need help. Message-ID: <315c36260801022152t3503ae5bt948a6f495a0f0347@...627...> I'd like to make a printout using gb.report, lets say it's an invoice. I have 3 results, one is customer information (name, address), one is item list, and last is summary of invoice (amount, tax, total) The record count of item list result was quite a lot (56 records), so the report created 3 pages. The output of gb.report was all three results, printed on each pages. - Customer information (one record only) was printed on each top pages with all the same data, - followed by item list, 20 first records on first page, another 20 following records on second page, then last 16 records on last page, - the summary of invoice (one record only) was printed on each bottom pages with all the same data. I would like to print - the customer information will be printed only on top of first page, - followed by item list on page 1-3 - then closed by summary result only on bottom of last page. What should I do for that? Thanks in advance. salam -iggy From rterry at ...1822... Thu Jan 3 07:29:12 2008 From: rterry at ...1822... (richard terry) Date: Thu, 3 Jan 2008 17:29:12 +1100 Subject: [Gambas-user] Missing help pages Message-ID: <200801031729.12468.rterry@...1822...> I've just installed version 2 (fromsvn), but also noticed this with the last version I had (1.9.90) Number of entries in the help file,as per example below seem to be missing help pages, which is extremely frustrating when trying to learn a new developemnt environment. Any idea's. file:///usr/share/gambas2/help/help/comp/gb+qt/control/+keypress.html: Richard From warren at ...1582... Thu Jan 3 07:35:51 2008 From: warren at ...1582... (Bob Warren) Date: Thu, 03 Jan 2008 04:35:51 -0200 Subject: [Gambas-user] Release of Gambas 2 Message-ID: <477C8247.1080505@...1582...> Before starting work on Gambas 3, I would suggest paying attention to 2 items: (a) Always give greatest priority to perfection of the stability of Gambas 2. (b) Facilitate as much as you can the simplicity of distribution and installation of Gambas 2 on the various Linux distros. Perhaps these things are not so exciting as new development work, but I feel that they are very important for the progress of Gambas in general. Best regards, Bob Warren From sourceforge-raindog2 at ...94... Thu Jan 3 07:47:13 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 3 Jan 2008 01:47:13 -0500 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <477C8247.1080505@...1582...> References: <477C8247.1080505@...1582...> Message-ID: <200801030147.13642.sourceforge-raindog2@...94...> On Thursday 03 January 2008 01:35, Bob Warren wrote: > (a) Always give greatest priority to perfection of the stability of > Gambas 2. > > (b) Facilitate as much as you can the simplicity of distribution > and installation of Gambas 2 on the various Linux distros. I agree about (a), but I don't see what more Benoit could do about making Gambas 2 available on a lot of distros beyond what he's already done.... namely, to provide packaging instructions for a consistent set of Gambas 2 packages. Gambas is available for more distros now than ever before, and they're all packaged more or less the same way by their respective maintainers. That's a good thing. Rob From leonardo at ...1237... Thu Jan 3 08:51:55 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 03 Jan 2008 08:51:55 +0100 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <315c36260801020755s193d0da0h5b07760d00bed812@...627...> References: <200801021113.32378.gambas@...1...> <315c36260801020755s193d0da0h5b07760d00bed812@...627...> Message-ID: <477C941B.2030106@...1237...> Ignatius Budiman H. ha scritto: > I tried to download, but it seems that the mirror of sourceforge had not > update for it yet (the file was not available to download), may be few hours > later. I tried to download Gambas 2.0 on several mirrors but always received an error concerning "file missing". So I opened by myself different links and I noticed that the file gambas2-2.0.0.tar.bz2 was present on the servers. So I've looked at the name that Sourceforge tries to start downloading is "gambas-2.0.0.tar.bz2" but the file is "gambas2-2.0.0.tar.bz2". I found this problem on almost all the servers... Could this be corrected, because nobody won't download Gambas2... -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From leonardo at ...1237... Thu Jan 3 09:13:26 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 03 Jan 2008 09:13:26 +0100 Subject: [Gambas-user] Maybe a bug in class Key of gb.gtk component In-Reply-To: <477663AA.2040205@...1237...> References: <477663AA.2040205@...1237...> Message-ID: <477C9926.1060706@...1237...> Leonardo Miliani ha scritto: > I'm using Gambas 1.9.92 on Ubuntu 7.10. > I think I had discovered a little bug in class Key of gb.gtk component. > If I try to get the code of a pressed key (using the keypress event) I > get this error: > "No keyboard event data". > > But if I build the same project with the gb.qt component, my code works > fine. > > > I can easily reproduce the bug creating a new GTK project and in the > form right-click and choose "Event/KeyPress". After that, write in the > event block this code: > message (key.code) > > Now run it.... > After that, open the Project/Properties from the menu, deselect the > gb.gtk component, select the gb.qt, and try again. > Up... Does anybody know why using Gtk isn't possible to manage the key events? -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From leonardo at ...1237... Thu Jan 3 09:18:28 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 03 Jan 2008 09:18:28 +0100 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <200801021113.32378.gambas@...1...> References: <200801021113.32378.gambas@...1...> Message-ID: <477C9A54.6050705@...1237...> I partecipate in "spreading the word" just writing on my personal blog about the release of Gambas 2. I hope that some other Linux italian users will come to get a try at Gambas ;-) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gambas at ...1... Thu Jan 3 10:56:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Jan 2008 10:56:06 +0100 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <477C941B.2030106@...1237...> References: <200801021113.32378.gambas@...1...> <315c36260801020755s193d0da0h5b07760d00bed812@...627...> <477C941B.2030106@...1237...> Message-ID: <200801031056.06572.gambas@...1...> On jeudi 3 janvier 2008, Leonardo Miliani wrote: > Ignatius Budiman H. ha scritto: > > I tried to download, but it seems that the mirror of sourceforge had not > > update for it yet (the file was not available to download), may be few > > hours later. > > I tried to download Gambas 2.0 on several mirrors but always received an > error concerning "file missing". > So I opened by myself different links and I noticed that the file > gambas2-2.0.0.tar.bz2 was present on the servers. > > So I've looked at the name that Sourceforge tries to start downloading > is "gambas-2.0.0.tar.bz2" but the file is "gambas2-2.0.0.tar.bz2". > I found this problem on almost all the servers... Could this be > corrected, because nobody won't download Gambas2... I know it is weird, but this is the standard way of naming. The package name is gambas2, and not just gambas, so that you can install both version on the same system. Otherwise it wouldn't be possible. Regards, -- Benoit Minisini From gambas at ...1... Thu Jan 3 10:57:51 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Jan 2008 10:57:51 +0100 Subject: [Gambas-user] Missing help pages In-Reply-To: <200801031729.12468.rterry@...1822...> References: <200801031729.12468.rterry@...1822...> Message-ID: <200801031057.51380.gambas@...1...> On jeudi 3 janvier 2008, richard terry wrote: > I've just installed version 2 (fromsvn), but also noticed this with the > last version I had (1.9.90) > > Number of entries in the help file,as per example below seem to be missing > help pages, which is extremely frustrating when trying to learn a new > developemnt environment. > > Any idea's. > > file:///usr/share/gambas2/help/help/comp/gb+qt/control/+keypress.html: > > Richard > They are not missing, it is a bug in the IDE that was fixed since. To get the page you must replace "+keypress.html" by "_keypress.html". Regards, -- Benoit Minisini From gambas at ...1... Thu Jan 3 11:08:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Jan 2008 11:08:21 +0100 Subject: [Gambas-user] Maybe a bug in class Key of gb.gtk component In-Reply-To: <477C9926.1060706@...1237...> References: <477663AA.2040205@...1237...> <477C9926.1060706@...1237...> Message-ID: <200801031108.21434.gambas@...1...> On jeudi 3 janvier 2008, Leonardo Miliani wrote: > Leonardo Miliani ha scritto: > > I'm using Gambas 1.9.92 on Ubuntu 7.10. > > I think I had discovered a little bug in class Key of gb.gtk component. > > If I try to get the code of a pressed key (using the keypress event) I > > get this error: > > "No keyboard event data". > > > > But if I build the same project with the gb.qt component, my code works > > fine. > > > > > > I can easily reproduce the bug creating a new GTK project and in the > > form right-click and choose "Event/KeyPress". After that, write in the > > event block this code: > > message (key.code) > > > > Now run it.... > > After that, open the Project/Properties from the menu, deselect the > > gb.gtk component, select the gb.qt, and try again. > > Up... > Does anybody know why using Gtk isn't possible to manage the key events? Apparently a bug. Or, better, a missing feature, as Form_KeyPress must be internally implemented in a special way. Regards, -- Benoit Minisini From gambas at ...1... Thu Jan 3 11:12:22 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Jan 2008 11:12:22 +0100 Subject: [Gambas-user] Gambas on 64 Bit system In-Reply-To: <477BD3FF.5000807@...221...> References: <477BD3FF.5000807@...221...> Message-ID: <200801031112.22197.gambas@...1...> On mercredi 2 janvier 2008, Rolf-Werner Eilert wrote: > Hi folks, > > just a happy new year to everyone first. This is my question: > > Is there a chance to get Gambas (1 and 2) running on a 64 Bit system? > Would it be instable or would there be any limitation? > > As I'm setting up a new server with a lot of RAM, it would be nice to > have it running in 64 Bit mode. Gambas is "the one app" I cannot do > without, so if it's not possible to run it there, I'd have to use a PAE > system. > > Thanks for your advice. > > Rolf > Gambas 1 & 2 do not work on a 64 bits system. I will start working on the 64 bits soon. The 64 bits version will consume more memory than the 32 bits version. And it will be slower. But you should not notice it! Regards, -- Benoit Minisini From gambas.fr at ...626... Thu Jan 3 13:41:09 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 3 Jan 2008 13:41:09 +0100 Subject: [Gambas-user] Question about using gb.report, need help. In-Reply-To: <315c36260801022152t3503ae5bt948a6f495a0f0347@...627...> References: <315c36260801022152t3503ae5bt948a6f495a0f0347@...627...> Message-ID: <6324a42a0801030441g4ff1ec1awa1d0a0a445c3ec0@...627...> ARrrrghhh :-) i will start to re-work on gb.report on the svn/trunk... i'm going to see if i can find a way with the static tools this evening for you... wait 2008/1/3, Ignatius Budiman H. : > > I'd like to make a printout using gb.report, lets say it's an invoice. > I have 3 results, one is customer information (name, address), one is > item list, and last is summary of invoice (amount, tax, total) > The record count of item list result was quite a lot (56 records), so > the report created 3 pages. > > The output of gb.report was all three results, printed on each pages. > - Customer information (one record only) was printed on each top pages > with all the same data, > - followed by item list, 20 first records on first page, another 20 > following records on second page, then last 16 records on last page, > - the summary of invoice (one record only) was printed on each bottom > pages with all the same data. > > I would like to print > - the customer information will be printed only on top of first page, > - followed by item list on page 1-3 > - then closed by summary result only on bottom of last page. > > What should I do for that? > Thanks in advance. > > salam > -iggy > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1822... Thu Jan 3 09:01:39 2008 From: rterry at ...1822... (richard terry) Date: Thu, 3 Jan 2008 19:01:39 +1100 Subject: [Gambas-user] Gambas IDE popup completion text size too small Message-ID: <200801031901.39834.rterry@...1822...> Gambas IDE popup completion text size is tool small to comfortably read (not the editor text which I can adjust but the auto-completion popup. Can this be somehow adjusted? See the piccie -------------- next part -------------- A non-text attachment was scrubbed... Name: popup_small_text.png Type: image/png Size: 16815 bytes Desc: not available URL: From rterry at ...1822... Thu Jan 3 21:49:25 2008 From: rterry at ...1822... (richard terry) Date: Fri, 4 Jan 2008 07:49:25 +1100 Subject: [Gambas-user] Extracting text from the html of TextEdit control Message-ID: <200801040749.25760.rterry@...1822...> Is there a way to extract just the text you see in the control as opposed to the total html: See the piccie, where I have typed one two three into the textedit control the code mystring = textedit1.text, gives the resultant html, whereas I want to be able to manipulate just the text, or use reading just the text to do other things (like popup auto-complete, spell check, insert diagrams etc). Any help appreciated. Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: temp.png Type: image/png Size: 25169 bytes Desc: not available URL: From rterry at ...1822... Thu Jan 3 21:49:46 2008 From: rterry at ...1822... (richard terry) Date: Fri, 4 Jan 2008 07:49:46 +1100 Subject: [Gambas-user] Row gap anomalies in TextEdit control again with piccies Message-ID: <200801040749.46542.rterry@...1822...> I think I posted on this before but got no reply, so I include some piccies. Last thing one wants in a text editor when hitting the enter key, is to get a paragraph response, which is what this thing seems to be set up to (Not so in QT designer (3.3.8 on my machine), which does a carriage return not a paragraph. I enclose a screen dump of what happens before and after a .Clear of this control. Any comments appreciated. If anyone really understands this control and has done any extensive work with it, I'd like to correspond with them as I want to write an enhanced html editor for a project to include popups with keywords and picture embedding etc. Regards. Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: TextEdit_rowgap_anomalies.png Type: image/png Size: 62575 bytes Desc: not available URL: From rterry at ...1822... Thu Jan 3 22:12:52 2008 From: rterry at ...1822... (richard terry) Date: Fri, 4 Jan 2008 08:12:52 +1100 Subject: [Gambas-user] Detecting Ctrl+another key combinations Message-ID: <200801040812.52927.rterry@...1822...> This example is given in the documentation for detecting a control key: PUBLIC SUB Form_KeyPress() ' Control KeyPress event will often pass through to this Form event. DIM CntrlDown AS Boolean TRY CntrlDown = Key.Control CntrlDown = IIf( ERROR , FALSE, CntrlDown) IF CntrlDown THEN ME.Text = CString(Time) & " True: Control key is being held down" ELSE ME.Text = CString(Time) & " False: Control key was not held down" ENDIF END How does one detect say Ctrl_A or say Shift + other key combinations etc Thanks in anticipation. Richard From gambas.fr at ...626... Thu Jan 3 22:27:32 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 3 Jan 2008 22:27:32 +0100 Subject: [Gambas-user] Row gap anomalies in TextEdit control again with piccies In-Reply-To: <200801040749.46542.rterry@...1822...> References: <200801040749.46542.rterry@...1822...> Message-ID: <200801032227.32474.gambas.fr@...626...> I've noticed that too Benoit ??? From sourceforge-raindog2 at ...94... Thu Jan 3 22:33:41 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 3 Jan 2008 16:33:41 -0500 Subject: [Gambas-user] Detecting Ctrl+another key combinations In-Reply-To: <200801040812.52927.rterry@...1822...> References: <200801040812.52927.rterry@...1822...> Message-ID: <200801031633.41185.sourceforge-raindog2@...94...> On Thursday 03 January 2008 16:12, richard terry wrote: > TRY CntrlDown = Key.Control > How does one detect say Ctrl_A or say Shift + other key > combinations etc Well, you could always add DIM ShiftDown as Boolean DIM AltDown as Boolean DIM CtrlShiftDown as Boolean ... TRY ShiftDown = Key.Shift TRY AltDown = Key.Alt CtrlShiftDown = ShiftDown AND CntrlDown ' etc. IF (Key.Code = Asc("A")) AND CtrlShiftDown THEN ' Ctrl-Shift-A pressed ' I don't remember if you're supposed to use uppercase ' or lowercase A in the Asc() call above END IF They're boolean variables, so you can use boolean operators on them. You can also use Key.State to get all the modifier keys' states at once, but if I'm not mistaken, that's deprecated. Regarding your post about TextEdit: I looked back in my Gambas list archives, and if you posted about that previously using this same email address, I didn't receive it. Rob From gambas.fr at ...626... Thu Jan 3 22:38:24 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 3 Jan 2008 22:38:24 +0100 Subject: [Gambas-user] Extracting text from the html of TextEdit control In-Reply-To: <200801040749.25760.rterry@...1822...> References: <200801040749.25760.rterry@...1822...> Message-ID: <200801032238.24714.gambas.fr@...626...> Le Thursday 03 January 2008 21:49:25 richard terry, vous avez ?crit?: > Is there a way to extract just the text you see in the control as opposed > to the total html: > > See the piccie, where I have typed one two three into the textedit control > > the code mystring = textedit1.text, gives the resultant html, whereas I > want to be able to manipulate just the text, or use reading just the text > to do other things (like popup auto-complete, spell check, insert diagrams > etc). > > Any help appreciated. > > Richard This is true, For now there is just basic feature... Maybe you can find a workaround for that ... I don't know, but maybe these missing feature will be added in a future version... Fabien From gambas.fr at ...626... Thu Jan 3 22:42:08 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 3 Jan 2008 22:42:08 +0100 Subject: [Gambas-user] Gambas IDE popup completion text size too small In-Reply-To: <200801031901.39834.rterry@...1822...> References: <200801031901.39834.rterry@...1822...> Message-ID: <200801032242.09143.gambas.fr@...626...> Le Thursday 03 January 2008 09:01:39 richard terry, vous avez ?crit?: > Gambas IDE popup completion text size is tool small to comfortably read > (not the editor text which I can adjust but the auto-completion popup. > > Can this be somehow adjusted? > > See the piccie The font is fixed to 8... i think it's an error ... as the font need to be scalable here ... Benoit ? From rterry at ...1822... Thu Jan 3 22:44:12 2008 From: rterry at ...1822... (richard terry) Date: Fri, 4 Jan 2008 08:44:12 +1100 Subject: [Gambas-user] Extracting text from the html of TextEdit control Message-ID: <200801040844.13038.rterry@...1822...> Given that this is a qt control, is it just that the property has not been exposed in Gambas? I guess a workaround is possible but tedious - e.g stripping out all the html code except text, doing something and re-constituting. I've mucked around a bit with it and I can read keywords and use them to trigger ?popping up something else like list or picture box with say diagrams on it, select one, then post the html back to the control and embed the picture - that's fairly easy, though obviously I cant re-retrieve the embedded picture. Hopefully someone else will know. Problem is with this sort of stuff is thay it is effective a "show stopper", ie if you can't do it, and your app needs a degree of sophistication, then it is pointless proceeding. Regards Richard > Le Thursday 03 January 2008 21:49:25 richard terry, vous avez ?crit?: > > Is there a way to extract just the text you see in the control as opposed > > to the total html: > > > > See the piccie, where I have typed one two three into the textedit > > control > > > > the code mystring = textedit1.text, gives the resultant html, whereas I > > want to be able to manipulate just the text, or use reading just the text > > to do other things (like popup auto-complete, spell check, insert > > diagrams etc). > > > > Any help appreciated. > > > > Richard > > This is true, > For now there is just basic feature... Maybe you can find a workaround for > that ... > > I don't know, but maybe these missing feature will be added in a future > version... > > Fabien > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1822... Thu Jan 3 22:47:24 2008 From: rterry at ...1822... (richard terry) Date: Fri, 4 Jan 2008 08:47:24 +1100 Subject: [Gambas-user] Does anyone have a mini-drawing program Message-ID: <200801040847.25019.rterry@...1822...> I want to be able to load a background picture, and then use the mouse to draw over the top of it, then save the result back to file either as the reference to the diagram (the piccie) + what one put added (the extra information), or perhaps a single composite file which would be more wasteful of database space. Has anyone done this (I see there is an example of loadin a picture and the system drawing little boxes all over it), but I mean does anyone have the code already of using the mouse. Regards Richard From rterry at ...1822... Thu Jan 3 22:56:35 2008 From: rterry at ...1822... (richard terry) Date: Fri, 4 Jan 2008 08:56:35 +1100 Subject: [Gambas-user] ?Bug: IDE bring to foreground on popup menu Message-ID: <200801040856.35360.rterry@...1822...> I've a situation where I've set the **ignore property** of a control to true, made it invisible, then later used code to pop it up (ie it is not a modal form but remains in its parents form) when I want it. I've noticed that if I select that control, then menu item arrangement, then bring to foreground, it visually brings it to the top of the other controls. Then (even if saving the program) when one hits run, it is instantly put straight away to the background again. The only way around this is to Cut the control from the form, give the form focus again, then paste it back onto the form. I probably should put my system info in my postings as well I guess: LINUX: archlinux kernel inux 2.6.23-ARCH KDE: 3.5.8 Gambas 2.0.0 qt; 3.3.8 Richard From gambas at ...1... Thu Jan 3 23:12:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Jan 2008 23:12:28 +0100 Subject: [Gambas-user] Detecting Ctrl+another key combinations In-Reply-To: <200801031633.41185.sourceforge-raindog2@...94...> References: <200801040812.52927.rterry@...1822...> <200801031633.41185.sourceforge-raindog2@...94...> Message-ID: <200801032312.28866.gambas@...1...> On jeudi 3 janvier 2008, Rob wrote: > On Thursday 03 January 2008 16:12, richard terry wrote: > > TRY CntrlDown = Key.Control > > How does one detect say Ctrl_A or say Shift + other key > > combinations etc > > Well, you could always add > > DIM ShiftDown as Boolean > DIM AltDown as Boolean > DIM CtrlShiftDown as Boolean > > ... > > TRY ShiftDown = Key.Shift > TRY AltDown = Key.Alt > CtrlShiftDown = ShiftDown AND CntrlDown > ' etc. > > IF (Key.Code = Asc("A")) AND CtrlShiftDown THEN Do not do that. You must type: IF Key.Code = Key["A"] ... Regards, -- Benoit Minisini From gambas at ...1... Thu Jan 3 23:14:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Jan 2008 23:14:32 +0100 Subject: [Gambas-user] Row gap anomalies in TextEdit control again with piccies In-Reply-To: <200801040749.46542.rterry@...1822...> References: <200801040749.46542.rterry@...1822...> Message-ID: <200801032314.32336.gambas@...1...> On jeudi 3 janvier 2008, richard terry wrote: > I think I posted on this before but got no reply, so I include some > piccies. > > Last thing one wants in a text editor when hitting the enter key, is to get > a paragraph response, which is what this thing seems to be set up to (Not > so in QT designer (3.3.8 on my machine), which does a carriage return not a > paragraph. > > I enclose a screen dump of what happens before and after a .Clear of this > control. > > Any comments appreciated. > > If anyone really understands this control and has done any extensive work > with it, I'd like to correspond with them as I want to write an enhanced > html editor for a project to include popups with keywords and picture > embedding etc. > > Regards. > > Richard Can you send me a little project about that ? -- Benoit Minisini From tcallawa at ...34... Thu Jan 3 23:12:45 2008 From: tcallawa at ...34... (Tom "spot" Callaway) Date: Thu, 03 Jan 2008 17:12:45 -0500 Subject: [Gambas-user] Compilation error Message-ID: <477D5DDD.7000501@...34...> Hi gambas folks, I'm getting an error trying to compile gambas 2.0.0 on Fedora rawhide (x86_64): gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl -DGBX_INFO -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -O0 -MT gb_la-gbx_c_error.lo -MD -MP -MF .deps/gb_la-gbx_c_error.Tpo -c gbx_c_error.c -DPIC -o .libs/gb_la-gbx_c_error.o gbx_c_error.c:123: error: initializer element is not computable at load time gbx_c_error.c:123: error: (near initialization for ?NATIVE_Error[3].val1?) gbx_c_error.c:124: error: initializer element is not computable at load time gbx_c_error.c:124: error: (near initialization for ?NATIVE_Error[4].val1?) gbx_c_error.c:125: error: initializer element is not computable at load time gbx_c_error.c:125: error: (near initialization for ?NATIVE_Error[5].val1?) gbx_c_error.c:126: error: initializer element is not computable at load time gbx_c_error.c:126: error: (near initialization for ?NATIVE_Error[6].val1?) gbx_c_error.c:127: error: initializer element is not computable at load time gbx_c_error.c:127: error: (near initialization for ?NATIVE_Error[7].val1?) gbx_c_error.c:130: error: initializer element is not computable at load time gbx_c_error.c:130: error: (near initialization for ?NATIVE_Error[9].val3?) gcc version 4.1.2 20071124 (Red Hat 4.1.2-36) Any ideas? ~spot From sourceforge-raindog2 at ...94... Thu Jan 3 23:21:31 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 3 Jan 2008 17:21:31 -0500 Subject: [Gambas-user] Does anyone have a mini-drawing program In-Reply-To: <200801040847.25019.rterry@...1822...> References: <200801040847.25019.rterry@...1822...> Message-ID: <200801031721.31400.sourceforge-raindog2@...94...> On Thursday 03 January 2008 16:47, richard terry wrote: > Has anyone done this (I see there is an example of loadin a picture > and the system drawing little boxes all over it), but I mean does > anyone have the code already of using the mouse. Here, I hacked the ImageViewer example to do this. I had to switch it from gb.gtk to gb.qt because I'm running 1.9.90 on this machine. Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: ImageDrawer-0.0.1.tar.gz Type: application/x-tgz Size: 12271 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Thu Jan 3 23:22:54 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 3 Jan 2008 17:22:54 -0500 Subject: [Gambas-user] Detecting Ctrl+another key combinations In-Reply-To: <200801032312.28866.gambas@...1...> References: <200801040812.52927.rterry@...1822...> <200801031633.41185.sourceforge-raindog2@...94...> <200801032312.28866.gambas@...1...> Message-ID: <200801031722.54142.sourceforge-raindog2@...94...> On Thursday 03 January 2008 17:12, Benoit Minisini wrote: > Do not do that. You must type: IF Key.Code = Key["A"] ... OK, but I copied the Asc() straight from the docs: http://gambasdoc.org/help/comp/gb.qt/key/code Rob From rterry at ...1822... Thu Jan 3 23:22:53 2008 From: rterry at ...1822... (richard terry) Date: Fri, 4 Jan 2008 09:22:53 +1100 Subject: [Gambas-user] The most annoying (lackof) feature of property editor Message-ID: <200801040922.53636.rterry@...1822...> Observation: ======= Lack of heading on the property editor indicating which control it refers to - see the piccies: Reason its a problem ============ When working with multiple controls on a form and jumping back and forth to the property editor one 'loses sight' of which control one is working on. This wouldn't be so much of a problem if the properties in the property editor were always those of the object you think you are working on but there seems to be a little instabiltiy of the IDE e.g sometimes can be difficult to 'unclick' and object which has focus, or one could have been working with an object, move back to the property editor and it has been reset to the properties of another control Check out the comparison between the vb editor pw (with it's heading) and gambas Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas_property_editor_no_heading1.png Type: image/png Size: 23186 bytes Desc: not available URL: From gambas at ...1... Thu Jan 3 23:26:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 3 Jan 2008 23:26:13 +0100 Subject: [Gambas-user] Detecting Ctrl+another key combinations In-Reply-To: <200801031722.54142.sourceforge-raindog2@...94...> References: <200801040812.52927.rterry@...1822...> <200801032312.28866.gambas@...1...> <200801031722.54142.sourceforge-raindog2@...94...> Message-ID: <200801032326.13441.gambas@...1...> On jeudi 3 janvier 2008, Rob wrote: > On Thursday 03 January 2008 17:12, Benoit Minisini wrote: > > Do not do that. You must type: IF Key.Code = Key["A"] ... > > OK, but I copied the Asc() straight from the docs: > > http://gambasdoc.org/help/comp/gb.qt/key/code > > Rob I didn't write that - I fix it. -- Benoit Minisini From gambas at ...1828... Fri Jan 4 00:51:17 2008 From: gambas at ...1828... (manuel viet) Date: Thu, 3 Jan 2008 15:51:17 -0800 (PST) Subject: [Gambas-user] Extracting text from the html of TextEdit control Message-ID: <14607192.post@...1379...> Richard Terry-2 wrote: > > Is there a way to extract just the text you see in the control as opposed > to > the total html: > > See the piccie, where I have typed one two three into the textedit control > > the code mystring = textedit1.text, gives the resultant html, whereas I > want > to be able to manipulate just the text, or use reading just the text to do > other things (like popup auto-complete, spell check, insert diagrams etc). > Not foolproof, but you can do something like : PUBLIC SUB Button2_Click() TextEdit1.SelectAll() TextEdit1.Copy() TextEdit1.Unselect() Editor1.Paste() END I didn't try it with embeded images, though. -- View this message in context: http://www.nabble.com/Extracting-text-from-the-html-of-TextEdit-control-tp14605155p14607192.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Fri Jan 4 06:49:34 2008 From: rterry at ...1822... (richard terry) Date: Fri, 4 Jan 2008 16:49:34 +1100 Subject: [Gambas-user] Continuing difficulty with gambas2 documentation Message-ID: <200801041649.34222.rterry@...1822...> Both local and on-line. e.g something simple TextArea documentation listed on-line as ./copy (in italics) brings up a logon dialog for the server ?perhaps this doc dosn't exist. I did an updatedb on my local machine and _copy.html dosn't seem to exist. Perhaps I have some concept wrong. The other comment I'd make about gambas documentation is that is essentially useless for a beginner, ie there seems no keyword search. Documentation which I feel function best for the novice user, are those like used in QT, or windows .chm files, as the novice just dosn't know where to start looking. For someone like myself in full time employement working 60 hrs per week, to spend an hour trying to track down some simple documentation is so offputting that in the individuals such as myself as lost to the language/user base. I think someone else put in a recent post that rather than moving into more complex things in version 3, perhaps some effort should be put into fixing existing areas which need attention. I've some experience with help systems (I used a wxPython help compiler HelpBlocks to generate some files from html for a medical lecture series I organised here last year). Anyway, just a few thoughts. Richard From rterry at ...1822... Fri Jan 4 08:32:57 2008 From: rterry at ...1822... (richard terry) Date: Fri, 4 Jan 2008 18:32:57 +1100 Subject: [Gambas-user] Line wrapping in the IDE editor Message-ID: <200801041832.57361.rterry@...1822...> In most ide's you can wrap long lines in the editor, is this possible in gambas, if so, how (eg if you have a long string in inverted comma's that you want to assign to something) Thanks Richard From rospolosco at ...152... Fri Jan 4 10:31:31 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 4 Jan 2008 10:31:31 +0100 Subject: [Gambas-user] Line wrapping in the IDE editor In-Reply-To: <200801041832.57361.rterry@...1822...> References: <200801041832.57361.rterry@...1822...> Message-ID: <200801041031.31347.rospolosco@...152...> Alle 08:32, venerd? 4 gennaio 2008, richard terry ha scritto: > In most ide's you can wrap long lines in the editor, is this possible in > gambas, if so, how (eg if you have a long string in inverted comma's that > you want to assign to something) > > Thanks > > Richard > My English is terrible. You mean this: DIM sString AS String sString = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" & "ccccccccccccccccccccccccccccccccccccccccc" PRINT sString Bye > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Fri Jan 4 10:47:48 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 4 Jan 2008 10:47:48 +0100 Subject: [Gambas-user] Continuing difficulty with gambas2 documentation In-Reply-To: <200801041649.34222.rterry@...1822...> References: <200801041649.34222.rterry@...1822...> Message-ID: <200801041047.48168.rospolosco@...152...> Alle 06:49, venerd? 4 gennaio 2008, richard terry ha scritto: > Both local and on-line. > > e.g something simple TextArea documentation > listed on-line as ./copy (in italics) brings up a logon dialog for the > server ?perhaps this doc dosn't exist. > Look for TextArea documentation under gb.qt. Probably you looked in gb.gtk and the file seems missing. Stefano > I did an updatedb on my local machine and _copy.html dosn't seem to exist. > > Perhaps I have some concept wrong. > > The other comment I'd make about gambas documentation is that is > essentially useless for a beginner, ie there seems no keyword search. > Documentation which I feel function best for the novice user, are those > like used in QT, or windows .chm files, as the novice just dosn't know > where to start looking. > > For someone like myself in full time employement working 60 hrs per week, > to spend an hour trying to track down some simple documentation is so > offputting that in the individuals such as myself as lost to the > language/user base. > > I think someone else put in a recent post that rather than moving into more > complex things in version 3, perhaps some effort should be put into fixing > existing areas which need attention. > > I've some experience with help systems (I used a wxPython help compiler > HelpBlocks to generate some files from html for a medical lecture series I > organised here last year). > > Anyway, just a few thoughts. > > Richard > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Fri Jan 4 11:08:14 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 4 Jan 2008 11:08:14 +0100 Subject: [Gambas-user] Compilation error In-Reply-To: <477D5DDD.7000501@...34...> References: <477D5DDD.7000501@...34...> Message-ID: <200801041108.14379.rospolosco@...152...> Alle 23:12, gioved? 3 gennaio 2008, Tom "spot" Callaway ha scritto: > Hi gambas folks, > > I'm getting an error trying to compile gambas 2.0.0 on Fedora rawhide > (x86_64): > > gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl -DGBX_INFO -O2 -g > -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 > -m64 -mtune=generic -pipe -Wall -Wno-unused-value -fvisibility=hidden -g > -Os -O0 -MT gb_la-gbx_c_error.lo -MD -MP -MF .deps/gb_la-gbx_c_error.Tpo > -c gbx_c_error.c -DPIC -o .libs/gb_la-gbx_c_error.o > gbx_c_error.c:123: error: initializer element is not computable at load > time gbx_c_error.c:123: error: (near initialization for > ?NATIVE_Error[3].val1?) gbx_c_error.c:124: error: initializer element is > not computable at load time gbx_c_error.c:124: error: (near initialization > for ?NATIVE_Error[4].val1?) gbx_c_error.c:125: error: initializer element > is not computable at load time gbx_c_error.c:125: error: (near > initialization for ?NATIVE_Error[5].val1?) gbx_c_error.c:126: error: > initializer element is not computable at load time gbx_c_error.c:126: > error: (near initialization for ?NATIVE_Error[6].val1?) gbx_c_error.c:127: > error: initializer element is not computable at load time > gbx_c_error.c:127: error: (near initialization for ?NATIVE_Error[7].val1?) > gbx_c_error.c:130: error: initializer element is not computable at load > time gbx_c_error.c:130: error: (near initialization for > ?NATIVE_Error[9].val3?) > > gcc version 4.1.2 20071124 (Red Hat 4.1.2-36) > > Any ideas? > > ~spot > Gambas2 doesn't compile on 64 bit systems. > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Fri Jan 4 11:29:58 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 4 Jan 2008 11:29:58 +0100 Subject: [Gambas-user] The most annoying (lackof) feature of property editor In-Reply-To: <200801040922.53636.rterry@...1822...> References: <200801040922.53636.rterry@...1822...> Message-ID: <200801041129.58847.rospolosco@...152...> Alle 23:22, gioved? 3 gennaio 2008, richard terry ha scritto: > Observation: > ======= > Lack of heading on the property editor indicating which control it refers > to - see the piccies: > > Reason its a problem > ============ > When working with multiple controls on a form and jumping back and forth to > the property editor one 'loses sight' of which control one is working on. > > This wouldn't be so much of a problem if the properties in the property > editor were always those of the object you think you are working on but > there seems to be a little instabiltiy of the IDE e.g sometimes can be > difficult to 'unclick' and object which has focus, or one could have been > working with an object, move back to the property editor and it has been > reset to the properties of another control > > Check out the comparison between the vb editor pw (with it's heading) and > gambas > > Regards > > Richard Where's the difference? A fair comparison shows that the info that VG gives in the top combobox are the first two in the Gambas properties. So, just when using Gambas look for the first two properties to see which control you're working on :-) ...and Gambas is not VB :-) Regards, Stefano -------------- next part -------------- A non-text attachment was scrubbed... Name: comparison.jpg Type: image/jpeg Size: 26295 bytes Desc: not available URL: From rospolosco at ...152... Fri Jan 4 12:47:01 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 4 Jan 2008 12:47:01 +0100 Subject: [Gambas-user] Continuing difficulty with gambas2 documentation In-Reply-To: <200801041649.34222.rterry@...1822...> References: <200801041649.34222.rterry@...1822...> Message-ID: <200801041247.01954.rospolosco@...152...> Alle 06:49, venerd? 4 gennaio 2008, richard terry ha scritto: > The other comment I'd make about gambas documentation is that is > essentially useless for a beginner, ie there seems no keyword search. > Documentation which I feel function best for the novice user, are those > like used in QT, or windows .chm files, as the novice just dosn't know > where to start looking. Yes. There's no keyword search. But if you type a keyword in the IDE editor, then highlight it and press the "F2" function key, you'll get the documentation for that keyword. Stefano From hennie at ...1826... Fri Jan 4 15:36:46 2008 From: hennie at ...1826... (gaupe) Date: Fri, 4 Jan 2008 06:36:46 -0800 (PST) Subject: [Gambas-user] xmlreader Message-ID: <14617540.post@...1379...> using Gambas2.0 I am still having problems reading back xmldata i wrote I cant find out how to read back the attributes lat lon how is that done? (the example does not produce very much valid xml but its more for the example) please let me know also if i am doing it SO wrong thats answering is hopeless...... ;-) from test.xml PUBLIC SUB xmlwrite() DIM xml AS xmlwriter xml = NEW xmlwriter xml.Open("test.xml", TRUE, "UTF-8") xml.StartElement("wpt", ["lat", "60.1419274", "lon", "11.1703764"]) xml.EndElement() ' End wpt xml.EndDocument() END -- View this message in context: http://www.nabble.com/xmlreader-tp14617540p14617540.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Jan 4 15:49:04 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 4 Jan 2008 15:49:04 +0100 Subject: [Gambas-user] xmlreader In-Reply-To: <14617540.post@...1379...> References: <14617540.post@...1379...> Message-ID: <200801041549.05048.gambas@...1...> On vendredi 4 janvier 2008, gaupe wrote: > using Gambas2.0 > > I am still having problems reading back xmldata i wrote > I cant find out how to read back the attributes lat lon > how is that done? > > (the example does not produce very much valid xml but its more for the > example) > > please let me know also if i am doing it SO wrong thats answering is > hopeless...... ;-) > > from test.xml > > PUBLIC SUB xmlwrite() > DIM xml AS xmlwriter > xml = NEW xmlwriter > xml.Open("test.xml", TRUE, "UTF-8") > > > xml.StartElement("wpt", ["lat", "60.1419274", "lon", "11.1703764"]) > > xml.EndElement() ' End wpt > > xml.EndDocument() > END Personnally I never used the xml components, so I can't really tell you... -- Benoit Minisini From gambas at ...1... Fri Jan 4 15:50:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 4 Jan 2008 15:50:31 +0100 Subject: [Gambas-user] ?Bug: IDE bring to foreground on popup menu In-Reply-To: <200801040856.35360.rterry@...1822...> References: <200801040856.35360.rterry@...1822...> Message-ID: <200801041550.31968.gambas@...1...> On jeudi 3 janvier 2008, richard terry wrote: > I've a situation where I've set the **ignore property** of a control to > true, made it invisible, then later used code to pop it up (ie it is not a > modal form but remains in its parents form) when I want it. > > I've noticed that if I select that control, then menu item arrangement, > then bring to foreground, it visually brings it to the top of the other > controls. > > Then (even if saving the program) when one hits run, it is instantly put > straight away to the background again. > > The only way around this is to Cut the control from the form, give the form > focus again, then paste it back onto the form. > > > I probably should put my system info in my postings as well I guess: > > LINUX: archlinux kernel inux 2.6.23-ARCH > KDE: 3.5.8 > Gambas 2.0.0 > qt; 3.3.8 > > Richard > Please send a little project and depict more precisely the situation, because I don't understand what you are trying to do. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Fri Jan 4 16:11:51 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 4 Jan 2008 10:11:51 -0500 Subject: [Gambas-user] Continuing difficulty with gambas2 documentation In-Reply-To: <200801041649.34222.rterry@...1822...> References: <200801041649.34222.rterry@...1822...> Message-ID: <200801041011.51321.sourceforge-raindog2@...94...> On Friday 04 January 2008 00:49, richard terry wrote: > For someone like myself in full time employement working 60 hrs per > week, to spend an hour trying to track down some simple > documentation is so offputting that in the individuals such as > myself as lost to the language/user base. Imagine what it's like for someone in full time employment working 60 hours per week to write documentation in the first place. I know I don't have time to do that, and it's not like anyone's getting paid to work on it. The only reason Gambas is documented at all is that the documentation structure is generated from the classes themselves, so I'm not sure why that copy method isn't in the wiki if it's a public member of that class. But a link showing up in italics in the wiki means the page hasn't been created yet, if I remember right. What I did find is this: http://gambasdoc.org/help/comp/gb.qt/textarea/copy?show First hit from typing gambas textarea copy into google. But if there are broken links within the wiki, it seems like it must be possible to write a program to find them. Rob From tcallawa at ...34... Fri Jan 4 16:18:11 2008 From: tcallawa at ...34... (Tom "spot" Callaway) Date: Fri, 04 Jan 2008 10:18:11 -0500 Subject: [Gambas-user] Compilation error In-Reply-To: <200801041108.14379.rospolosco@...152...> References: <477D5DDD.7000501@...34...> <200801041108.14379.rospolosco@...152...> Message-ID: <477E4E33.6020006@...34...> Stefano Palmeri wrote: > Gambas2 doesn't compile on 64 bit systems. Well, thats disappointing. Are there any plans to move gambas2 into the 21st century? ~spot From eilert-sprachen at ...221... Fri Jan 4 16:47:46 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 04 Jan 2008 16:47:46 +0100 Subject: [Gambas-user] Gambas on 64 Bit system In-Reply-To: <200801031112.22197.gambas@...1...> References: <477BD3FF.5000807@...221...> <200801031112.22197.gambas@...1...> Message-ID: <477E5522.7030201@...221...> Benoit Minisini schrieb: > On mercredi 2 janvier 2008, Rolf-Werner Eilert wrote: >> Hi folks, >> >> just a happy new year to everyone first. This is my question: >> >> Is there a chance to get Gambas (1 and 2) running on a 64 Bit system? >> Would it be instable or would there be any limitation? >> >> As I'm setting up a new server with a lot of RAM, it would be nice to >> have it running in 64 Bit mode. Gambas is "the one app" I cannot do >> without, so if it's not possible to run it there, I'd have to use a PAE >> system. >> >> Thanks for your advice. >> >> Rolf >> > > Gambas 1 & 2 do not work on a 64 bits system. I will start working on the 64 > bits soon. > > The 64 bits version will consume more memory than the 32 bits version. And it > will be slower. But you should not notice it! > > Regards, > Well, someone told me it's possible to make any 32 Bit app running under a 64 Bit system - but he didn't tell me how :-) Anyway, should Gambas run in a PAE system? Do you or does anyone here have any experience with such a system? Rolf From ronstk at ...239... Fri Jan 4 16:59:55 2008 From: ronstk at ...239... (ron) Date: Fri, 4 Jan 2008 16:59:55 +0100 Subject: [Gambas-user] The most annoying (lackof) feature of property editor In-Reply-To: <200801041129.58847.rospolosco@...152...> References: <200801040922.53636.rterry@...1822...> <200801041129.58847.rospolosco@...152...> Message-ID: <200801041659.55582.ronstk@...239...> On Friday 04 January 2008 11:29, Stefano Palmeri wrote: > Alle 23:22, gioved? 3 gennaio 2008, richard terry ha scritto: > > Observation: > > ======= > > Lack of heading on the property editor indicating which control it refers > > to - see the piccies: > > > > Reason its a problem > > ============ > > When working with multiple controls on a form and jumping back and forth to > > the property editor one 'loses sight' of which control one is working on. > > > > This wouldn't be so much of a problem if the properties in the property > > editor were always those of the object you think you are working on but > > there seems to be a little instabiltiy of the IDE e.g sometimes can be > > difficult to 'unclick' and object which has focus, or one could have been > > working with an object, move back to the property editor and it has been > > reset to the properties of another control > > > > Check out the comparison between the vb editor pw (with it's heading) and > > gambas > > > > Regards > > > > Richard > > Where's the difference? > > A fair comparison shows that the info that VG gives in the top combobox > are the first two in the Gambas properties. So, just when using Gambas look > for the first two properties to see which control you're working on :-) > ...and Gambas is not VB :-) > > Regards, > > Stefano > Yes, they are when you scroll up the things you need. What ricard wishes is to see in the caption the same as with VB, the name of the control where the properties belong to. I find the clipped message as seen in the gambas caption less informative as the controls name with VB. Looks to be a image but I have several with (285x10....) Is it the (285x1024) or (285x100) one ? Also the project name can be the 'piano' or 'lamethisiano'. The size can be find by scroll down and the name of the picture also, so it is a useless caption (centered) this way. I vote for the VB style as ricard wishes. Ron 1'st ;=) From david_villalobos_c at ...43... Fri Jan 4 17:03:52 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 4 Jan 2008 08:03:52 -0800 (PST) Subject: [Gambas-user] Can't download Gambas Message-ID: <108425.44987.qm@...1670...> Hi all, and happy new year. I was on vacations almost for 22 day ;-), now I'm back and find Gambas 2.0 ready (Thanks to Benoit and the devel group). I tired to download vesion 2 and I can't, I have more than 200 mails related with Gambas and don't think I will read them soon, can some one tell me if there is a problem with gambas.sf.net? Or how can I get last version??? Best regards David ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping From tcallawa at ...34... Fri Jan 4 17:06:00 2008 From: tcallawa at ...34... (Tom "spot" Callaway) Date: Fri, 04 Jan 2008 11:06:00 -0500 Subject: [Gambas-user] Can't download Gambas In-Reply-To: <108425.44987.qm@...1670...> References: <108425.44987.qm@...1670...> Message-ID: <477E5968.6070405@...34...> David Villalobos Cambronero wrote: > Hi all, and happy new year. > > I was on vacations almost for 22 day ;-), now I'm back and find Gambas 2.0 ready (Thanks to Benoit and the devel group). > > I tired to download vesion 2 and I can't, I have more than 200 mails related with Gambas and don't think I will read them soon, can some one tell me if there is a problem with gambas.sf.net? The link on the main gambas page is wrong (gambas-2.0.0.tar.bz2 doesn't exist on sourceforge), just change the filename in the link to be "gambas2-2.0.0.tar.bz2". ~spot From david_villalobos_c at ...43... Fri Jan 4 17:16:06 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 4 Jan 2008 08:16:06 -0800 (PST) Subject: [Gambas-user] Can't download Gambas Message-ID: <879584.13086.qm@...1678...> GREAT!!!!! I works... Thanks Tom ----- Original Message ---- From: "Tom "spot" Callaway" To: mailing list for gambas users Sent: Friday, January 4, 2008 10:06:00 AM Subject: Re: [Gambas-user] Can't download Gambas David Villalobos Cambronero wrote: > Hi all, and happy new year. > > I was on vacations almost for 22 day ;-), now I'm back and find Gambas 2.0 ready (Thanks to Benoit and the devel group). > > I tired to download vesion 2 and I can't, I have more than 200 mails related with Gambas and don't think I will read them soon, can some one tell me if there is a problem with gambas.sf.net? The link on the main gambas page is wrong (gambas-2.0.0.tar.bz2 doesn't exist on sourceforge), just change the filename in the link to be "gambas2-2.0.0.tar.bz2". ~spot ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From gambas at ...1... Fri Jan 4 17:17:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 4 Jan 2008 17:17:28 +0100 Subject: [Gambas-user] Can't download Gambas In-Reply-To: <477E5968.6070405@...34...> References: <108425.44987.qm@...1670...> <477E5968.6070405@...34...> Message-ID: <200801041717.28541.gambas@...1...> On vendredi 4 janvier 2008, Tom "spot" Callaway wrote: > David Villalobos Cambronero wrote: > > Hi all, and happy new year. > > > > I was on vacations almost for 22 day ;-), now I'm back and find Gambas > > 2.0 ready (Thanks to Benoit and the devel group). > > > > I tired to download vesion 2 and I can't, I have more than 200 mails > > related with Gambas and don't think I will read them soon, can some one > > tell me if there is a problem with gambas.sf.net? > > The link on the main gambas page is wrong (gambas-2.0.0.tar.bz2 doesn't > exist on sourceforge), just change the filename in the link to be > "gambas2-2.0.0.tar.bz2". > > ~spot > Oops, fixed! -- Benoit Minisini From Karl.Reinl at ...9... Fri Jan 4 20:30:35 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 04 Jan 2008 20:30:35 +0100 Subject: [Gambas-user] xmlreader In-Reply-To: <14617540.post@...1379...> References: <14617540.post@...1379...> Message-ID: <1199475036.5385.12.camel@...40...> Am Freitag, den 04.01.2008, 06:36 -0800 schrieb gaupe: > using Gambas2.0 > > I am still having problems reading back xmldata i wrote > I cant find out how to read back the attributes lat lon > how is that done? > > (the example does not produce very much valid xml but its more for the > example) > > please let me know also if i am doing it SO wrong thats answering is > hopeless...... ;-) > > from test.xml > > PUBLIC SUB xmlwrite() > DIM xml AS xmlwriter > xml = NEW xmlwriter > xml.Open("test.xml", TRUE, "UTF-8") > > > xml.StartElement("wpt", ["lat", "60.1419274", "lon", "11.1703764"]) > > xml.EndElement() ' End wpt > > xml.EndDocument() > END Salut, send you some code and 2 XML files, out of an project, who use these to populate a Grid(TableView). This is out from an Gambas1 project FUNCTION LoadData(sKey AS String) AS Boolean DIM bRet AS Boolean DIM Xml AS XmlReader DIM xmlString AS String DIM sElement AS String DIM sAttribute AS String DIM sValue AS String DIM myText AS NEW String[] DIM myFields AS NEW String[] DIM myColumnsTyp AS NEW String[] DIM myColumnsVisible AS NEW Byte[] xmlString = file.Load(Application.Path &/ sKey & ".xml") Xml = NEW XmlReader Xml.FromString(xmlString) WHILE NOT Xml.Eof SELECT CASE Xml.Node.Type CASE XmlReaderNodeType.Element sElement = Xml.Node.Name IF Upper(Trim(sElement)) = Upper("Column") THEN FOR EACH Xml.Node.Attributes sAttribute = xml.Node.Name sValue = Xml.Node.Value IF Upper(sAttribute) = Upper("ColID") THEN ' iColumn = CInt(Xml.Node.Value) ELSE IF Upper(sAttribute) = Upper("Header") THEN myText.Add(sValue) ELSE IF Upper(sAttribute) = Upper("Field") THEN myFields.Add(sValue) ELSE IF Upper(sAttribute) = Upper("Typ") THEN myColumnsTyp.Add(sValue) ELSE IF Upper(sAttribute) = Upper("Visible") THEN myColumnsVisible.Add(CByte(sValue)) ENDIF NEXT ENDIF END SELECT Xml.Read() WEND ' ME.DataColumnsText = myText ' ME.DataColumnsFields = myFields ' ME.DataColumnsTyp = myColumnsTyp ' ME.DataColumnsVisible = myColumnsVisible bRet = TRUE FINALLY RETURN bRet CATCH bRet = FALSE END -- Amicalment Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: USERS.xml Type: application/xml Size: 911 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CUST.xml Type: application/xml Size: 598 bytes Desc: not available URL: From jredrejo at ...626... Fri Jan 4 20:32:23 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Fri, 4 Jan 2008 20:32:23 +0100 Subject: [Gambas-user] Gambas on 64 Bit system In-Reply-To: <477E5522.7030201@...221...> References: <477BD3FF.5000807@...221...> <200801031112.22197.gambas@...1...> <477E5522.7030201@...221...> Message-ID: <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> 2008/1/4, Rolf-Werner Eilert : > > Benoit Minisini schrieb: > > On mercredi 2 janvier 2008, Rolf-Werner Eilert wrote: > >> Hi folks, > >> > >> just a happy new year to everyone first. This is my question: > >> > >> Is there a chance to get Gambas (1 and 2) running on a 64 Bit system? > >> Would it be instable or would there be any limitation? > >> > >> As I'm setting up a new server with a lot of RAM, it would be nice to > >> have it running in 64 Bit mode. Gambas is "the one app" I cannot do > >> without, so if it's not possible to run it there, I'd have to use a PAE > >> system. > >> > >> Thanks for your advice. > >> > >> Rolf > >> > > > > Gambas 1 & 2 do not work on a 64 bits system. I will start working on > the 64 > > bits soon. > > > > The 64 bits version will consume more memory than the 32 bits version. > And it > > will be slower. But you should not notice it! > > > > Regards, > > > > Well, someone told me it's possible to make any 32 Bit app running under > a 64 Bit system - but he didn't tell me how :-) > > Anyway, should Gambas run in a PAE system? Do you or does anyone here > have any experience with such a system? > I have several servers running using a PAE kernel. There's not difference with any other i386 system, except that the system can see more memory. Gambas works without any difference. From hennie at ...1826... Fri Jan 4 21:36:12 2008 From: hennie at ...1826... (gaupe) Date: Fri, 4 Jan 2008 12:36:12 -0800 (PST) Subject: [Gambas-user] xmlreader In-Reply-To: <1199475036.5385.12.camel@...40...> References: <14617540.post@...1379...> <1199475036.5385.12.camel@...40...> Message-ID: <14624380.post@...1379...> Thank you very much. This was just the example i needed. I overlooked some in another code somewhere else but now i see how its done! have a sample code working for me thats reads out the lat and lon from the example and see now how i can read the rest. So can finally use this to read my xml (gpx) files (And throw away my selfwritten ,textfile readthrough ,find string, extract string, compare string, monster.) for those who struggle with the same and want a simple example put code down here in a module and startup the module PUBLIC SUB main() xmlwrite() XmlRead() END ' Gambas module file PUBLIC SUB xmlwrite() DIM xml AS xmlwriter xml = NEW xmlwriter xml.Open("test.xml", TRUE, "UTF-8") xml.StartElement("wpt", ["lat", "60.1419274", "lon", "11.1703764"]) xml.EndElement() ' End wpt xml.EndDocument() END PUBLIC SUB xmlread() DIM xml AS NEW XmlReader DIM xmlstring, Selement, sAttribute, sValue AS String DIM Lat, lon AS String DIM myColumnsTyp AS NEW String[] DIM myColumnsVisible AS NEW Byte[] xmlString = file.Load("test.xml") Xml = NEW XmlReader Xml.FromString(xmlString) WHILE NOT Xml.Eof SELECT CASE Xml.Node.Type CASE XmlReaderNodeType.Element sElement = Xml.Node.Name PRINT Selement IF Upper(Trim(sElement)) = Upper("Wpt") THEN FOR EACH Xml.Node.Attributes sAttribute = xml.Node.Name sValue = Xml.Node.Value PRINT sAttribute IF Upper(sAttribute) = Upper("Lat") THEN Lat = Svalue PRINT lat ELSE IF Upper(sAttribute) = Upper("Lon") THEN Lon = Svalue PRINT lon ENDIF NEXT ENDIF END SELECT xml.Read() WEND END -- View this message in context: http://www.nabble.com/xmlreader-tp14617540p14624380.html Sent from the gambas-user mailing list archive at Nabble.com. From cjro99 at ...67... Fri Jan 4 23:50:36 2008 From: cjro99 at ...67... (javier romero) Date: Fri, 4 Jan 2008 22:50:36 +0000 Subject: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 In-Reply-To: <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> References: <477BD3FF.5000807@...221...> <200801031112.22197.gambas@...1...> <477E5522.7030201@...221...> <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> Message-ID: Today in the morning my system update gambas from 1.9.91 to 2.00 and now i cant use them, when i try to load gambas this message appears: "This application has raised an unexpected error and must abort: " "[6] type mismatch: wanted object, got string instead. FOption.ReadConfig.25" My system update from http://azores.linex.org/gambas-other/ gutsy main. How i can fiz this issue? Thanks Javier _________________________________________________________________ La vida de los famosos al desnudo en MSN Entretenimiento http://entretenimiento.es.msn.com/ From sourceforge-raindog2 at ...94... Sat Jan 5 00:23:12 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 4 Jan 2008 18:23:12 -0500 Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <200801022214.21614.sourceforge-raindog2@...94...> References: <200801021113.32378.gambas@...1...> <200801020942.25313.sourceforge-raindog2@...94...> <200801022214.21614.sourceforge-raindog2@...94...> Message-ID: <200801041823.12798.sourceforge-raindog2@...94...> On Wednesday 02 January 2008 22:14, Rob wrote: > Well, 12 hours later, it's still pending on slashdot and there's > only 1 digg on digg (and it's mine.) Doesn't fill me with a lot of > optimism. And this afternoon it was finally rejected at Slashdot and the digg article only has three diggs. So I guess the nerd world just doesn't care that much about us at this point. Rob From gambas at ...1... Sat Jan 5 00:39:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 5 Jan 2008 00:39:18 +0100 Subject: [Gambas-user] Problem with the wiki Message-ID: <200801050039.18512.gambas@...1...> I introduced a bug in the wiki recently that prevent symbol tables to take inheritance into account. I will try to fix it (and other problems too) now, but this could make the component pages of the wiki not usable during some period of time. Sorry for the inconvenience! -- Benoit Minisini From akh-eng at ...103... Fri Jan 4 23:58:44 2008 From: akh-eng at ...103... (akhsani) Date: Sat, 05 Jan 2008 05:58:44 +0700 Subject: [Gambas-user] play webcam in gambas In-Reply-To: References: Message-ID: To whom at may can help me I need to manage my webcam in Gambas How does it work ? I want to play it as movie/video, and make some snapshot pictures Please give me some examples source code. This webcam is running / connecting in my Vector 5.8, and I can get picture manually by ?spcaview?. Thanks for your advise / guide Regard , Ali ----------------------------------------------------------------------------------------------------------- Bagi anda Pelanggan TELKOM di wilayah Jabodetabek dan Jawa Timur. Nikmati Hari SABTU & MINGGU Anda untuk Internetan dengan tarif murah TelkomNet Instant, CUMA Rp.100/menit ALL IN (termasuk pulsa telepon). Nomor Akses : 080989999 User name: telkomnet at ...1829... Password : telkom Ayo buruan, promo ini cuma berlaku sampai 31 Desember 2007 From gambas at ...1828... Sat Jan 5 01:56:47 2008 From: gambas at ...1828... (manuel viet) Date: Fri, 4 Jan 2008 16:56:47 -0800 (PST) Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <200801041823.12798.sourceforge-raindog2@...94...> References: <200801021113.32378.gambas@...1...> <200801020942.25313.sourceforge-raindog2@...94...> <200801022214.21614.sourceforge-raindog2@...94...> <200801041823.12798.sourceforge-raindog2@...94...> Message-ID: <14628249.post@...1379...> Rob Kudla wrote: > > On Wednesday 02 January 2008 22:14, Rob wrote: >> Well, 12 hours later, it's still pending on slashdot and there's >> only 1 digg on digg (and it's mine.) Doesn't fill me with a lot of >> optimism. > > And this afternoon it was finally rejected at Slashdot and the digg > article only has three diggs. So I guess the nerd world just doesn't > care that much about us at this point. > > I'd give The Register a go ; they have a big reader base, they're technology oriented, and they have a special issue for tech news. As far as I know, they're FOSS friendly too. The thing is the article won't cut it with them unless they can find an angle fitting their general style to report the news. Maybe if someone can bring a real world business case of gambas use ? Just a thought. As I read it, the 'article' on the wiki is more or less a list of "can and cannot", maybe spinning it to be a little more... sexy would help. ;-) ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Release-of-Gambas-2-tp14576059p14628249.html Sent from the gambas-user mailing list archive at Nabble.com. From iggy.budiman.it at ...626... Sat Jan 5 04:25:26 2008 From: iggy.budiman.it at ...626... (Ignatius Budiman H.) Date: Sat, 5 Jan 2008 10:25:26 +0700 Subject: [Gambas-user] data length in reportfield (gb.report) cannot exceed more than 10 chars - is it a bug or just me? Message-ID: <315c36260801041925l30a20b3dpcb264072462118ff@...627...> I noticed that data length in reportfield (gb.report) cannot exceed more than 10 chars Does anyone has same experience, or it's just me and my mistake? I used GB2-1.9.92 on Mandriva 2008.0 salam -iggy From sourceforge-raindog2 at ...94... Sat Jan 5 04:42:38 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 4 Jan 2008 22:42:38 -0500 Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <14628249.post@...1379...> References: <200801021113.32378.gambas@...1...> <200801041823.12798.sourceforge-raindog2@...94...> <14628249.post@...1379...> Message-ID: <200801042242.38362.sourceforge-raindog2@...94...> On Friday 04 January 2008 19:56, manuel viet wrote: > As I read it, the 'article' on the wiki is more or less a list of > "can and cannot", maybe spinning it to be a little more... > sexy would help. ;-) I think the ability to have the same code run with a native interface in KDE and GNOME automatically is pretty damn sexy. Is there any other high-level language or toolkit that allows that? Granted that all the hype nowadays is in web technologies, but Gambas has basically achieved the kind of desktop unification everyone else only talks about. Even Openoffice gives you two different packages to install to give it your chosen desktop's look and feel, rather than detecting it at runtime. The 64-bit thing is a bummer, but I've been warning people about that for two and a half years now (since September 2005, when I got my first 64-bit machine.) It's a fundamental change to the structure of the compiler, the interpreter and any number of the components. I don't even know if gb.pcre is 64-bit clean. Rob From gambas at ...1828... Sat Jan 5 05:32:51 2008 From: gambas at ...1828... (manuel viet) Date: Fri, 4 Jan 2008 20:32:51 -0800 (PST) Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <200801042242.38362.sourceforge-raindog2@...94...> References: <200801021113.32378.gambas@...1...> <200801020942.25313.sourceforge-raindog2@...94...> <200801022214.21614.sourceforge-raindog2@...94...> <200801041823.12798.sourceforge-raindog2@...94...> <14628249.post@...1379...> <200801042242.38362.sourceforge-raindog2@...94...> Message-ID: <14629910.post@...1379...> Rob Kudla wrote: > > On Friday 04 January 2008 19:56, manuel viet wrote: >> As I read it, the 'article' on the wiki is more or less a list of >> "can and cannot", maybe spinning it to be a little more... >> sexy would help. ;-) > > I think the ability to have the same code run with a native interface > in KDE and GNOME automatically is pretty damn sexy. Is there any > other high-level language or toolkit that allows that? > > It seems you misunderstood me ; so, to clarify my thougts, when I wrote the article should be more 'sexy', I intended to speak about the style, not about the contents (why else would we all be there if gambas wasn't technically good ?). My appreciation had really nothing to do with gambas per se. Most publications on and off- line are overwhelmed with software (new and improved) to report on, so to make headlines, there must be something more than 'it works' because timely trains are of no interest to anyone. Of course a programming language is supposed to work as promised by the specifications ! I really think the presentation should be more entertaining. ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Release-of-Gambas-2-tp14576059p14629910.html Sent from the gambas-user mailing list archive at Nabble.com. From jscops at ...11... Sat Jan 5 05:48:11 2008 From: jscops at ...11... (Jacky) Date: Sat, 5 Jan 2008 05:48:11 +0100 Subject: [Gambas-user] play webcam in gambas In-Reply-To: References: Message-ID: <200801050548.11106.jscops@...11...> Le Friday 04 January 2008 23:58:44 akhsani, vous avez ?crit?: > To whom at may can help me > > I need to manage my webcam in Gambas > How does it work ? > I want to play it as movie/video, and make some snapshot > pictures > Please give me some examples source code. > > This webcam is running / connecting in my Vector 5.8, and > I can get picture manually by ?spcaview?. > > > Thanks for your advise / guide > I send you the Fabien Bodard webcam program. Jacky From jscops at ...11... Sat Jan 5 05:49:54 2008 From: jscops at ...11... (Jacky) Date: Sat, 5 Jan 2008 05:49:54 +0100 Subject: [Gambas-user] play webcam in gambas In-Reply-To: References: Message-ID: <200801050549.54184.jscops@...11...> Le Friday 04 January 2008 23:58:44 akhsani, vous avez ?crit?: > To whom at may can help me > > I need to manage my webcam in Gambas > How does it work ? > I want to play it as movie/video, and make some snapshot > pictures > Please give me some examples source code. > > This webcam is running / connecting in my Vector 5.8, and > I can get picture manually by ?spcaview?. > > > Thanks for your advise / guide > > Regard , Ali Oups !! You have this program in the Gambas 2.0.0 exemples. From rohnny at ...1248... Sat Jan 5 07:40:15 2008 From: rohnny at ...1248... (R. Stormo) Date: Fri, 4 Jan 2008 22:40:15 -0800 (PST) Subject: [Gambas-user] Object.class stop working Message-ID: <14630509.post@...1379...> Why does not this work anymore? it do crash here " IF Object.Class(hControl) = "TextBox" THEN " "Wanted object got string instead?" DIM hControl AS Control 'DIM i AS Integer 'Clear fields FOR EACH hControl IN ME.Children IF Object.Class(hControl) = "TextBox" THEN Object.Call(hControl, "Clear") END IF NEXT Regards Rohnny My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/Object.class-stop-working-tp14630509p14630509.html Sent from the gambas-user mailing list archive at Nabble.com. From jscops at ...11... Sat Jan 5 09:43:03 2008 From: jscops at ...11... (Jacky) Date: Sat, 5 Jan 2008 09:43:03 +0100 Subject: [Gambas-user] Object.class stop working In-Reply-To: <14630509.post@...1379...> References: <14630509.post@...1379...> Message-ID: <200801050943.03912.jscops@...11...> Le Saturday 05 January 2008 07:40:15 R. Stormo, vous avez ?crit?: > Why does not this work anymore? > it do crash here " IF Object.Class(hControl) = "TextBox" THEN " > "Wanted object got string instead?" > > DIM hControl AS Control > 'DIM i AS Integer > 'Clear fields > FOR EACH hControl IN ME.Children > IF Object.Class(hControl) = "TextBox" THEN > Object.Call(hControl, "Clear") > END IF > NEXT > > > Regards Rohnny > > My Gambas Community http://gambasforum.tk If you are in Gambas 2.0.0 you must have Object.Type. From rohnny at ...1248... Sat Jan 5 10:18:14 2008 From: rohnny at ...1248... (R. Stormo) Date: Sat, 5 Jan 2008 01:18:14 -0800 (PST) Subject: [Gambas-user] Object.class stop working In-Reply-To: <200801050943.03912.jscops@...11...> References: <14630509.post@...1379...> <200801050943.03912.jscops@...11...> Message-ID: <14631247.post@...1379...> jacky-12 wrote: > > Le Saturday 05 January 2008 07:40:15 R. Stormo, vous avez ?crit : >> Why does not this work anymore? >> it do crash here " IF Object.Class(hControl) = "TextBox" THEN " >> "Wanted object got string instead?" >> >> DIM hControl AS Control >> 'DIM i AS Integer >> 'Clear fields >> FOR EACH hControl IN ME.Children >> IF Object.Class(hControl) = "TextBox" THEN >> Object.Call(hControl, "Clear") >> END IF >> NEXT >> >> >> Regards Rohnny >> >> My Gambas Community http://gambasforum.tk > > If you are in Gambas 2.0.0 you must have Object.Type. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Thanks I got it now. Had to change it to IF Object.Type(hControl) = "TextBox" THEN Regards Rohnny My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/Object.class-stop-working-tp14630509p14631247.html Sent from the gambas-user mailing list archive at Nabble.com. From leonardo at ...1237... Sat Jan 5 11:53:43 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 05 Jan 2008 11:53:43 +0100 Subject: [Gambas-user] Release of Gambas 2 In-Reply-To: <200801031056.06572.gambas@...1...> References: <200801021113.32378.gambas@...1...> <315c36260801020755s193d0da0h5b07760d00bed812@...627...> <477C941B.2030106@...1237...> <200801031056.06572.gambas@...1...> Message-ID: <477F61B7.90001@...1237...> Benoit Minisini ha scritto: > On jeudi 3 janvier 2008, Leonardo Miliani wrote: >> Ignatius Budiman H. ha scritto: >>> I tried to download, but it seems that the mirror of sourceforge had not >>> update for it yet (the file was not available to download), may be few >>> hours later. >> I tried to download Gambas 2.0 on several mirrors but always received an >> error concerning "file missing". >> So I opened by myself different links and I noticed that the file >> gambas2-2.0.0.tar.bz2 was present on the servers. >> >> So I've looked at the name that Sourceforge tries to start downloading >> is "gambas-2.0.0.tar.bz2" but the file is "gambas2-2.0.0.tar.bz2". >> I found this problem on almost all the servers... Could this be >> corrected, because nobody won't download Gambas2... > > I know it is weird, but this is the standard way of naming. > > The package name is gambas2, and not just gambas, so that you can install both > version on the same system. Otherwise it wouldn't be possible. > > Regards, > My appoint was on the fact that at the time I wrote it was impossible to download the file from sourceforge using their automatic downloading system because the file was indicated as "gambas2-2.0.0" at the sourceforge system but in the reality the file had been saved as "gambas-2.0.0" on their servers. Now everything seems to work correctly (maybe someone has fixed this bug in the names?). -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From leonardo at ...1237... Sat Jan 5 11:59:10 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 05 Jan 2008 11:59:10 +0100 Subject: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 In-Reply-To: References: <477BD3FF.5000807@...221...> <200801031112.22197.gambas@...1...> <477E5522.7030201@...221...> <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> Message-ID: <477F62FE.3040602@...1237...> javier romero ha scritto: > Today in the morning my system update gambas from 1.9.91 to 2.00 and now i cant use them, when i try to load gambas this message appears: > > "This application has raised an unexpected error and must abort: " > "[6] type mismatch: wanted object, got string instead. FOption.ReadConfig.25" > > My system update from http://azores.linex.org/gambas-other/ gutsy main. > > How i can fiz this issue? > > Thanks > Javier > _________________________________________________________________ > La vida de los famosos al desnudo en MSN Entretenimiento > http://entretenimiento.es.msn.com/ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Maybe that is a problem concerning those packages (questions: who did he packaged them?). Try to e-mail the author/manteiner of that repository. While you'll wait for the fix, I suggest you to manually compile Gambas2: it's easy. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gambas at ...1... Sat Jan 5 12:02:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 5 Jan 2008 12:02:24 +0100 Subject: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 In-Reply-To: References: <477BD3FF.5000807@...221...> <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> Message-ID: <200801051202.25073.gambas@...1...> On vendredi 4 janvier 2008, javier romero wrote: > Today in the morning my system update gambas from 1.9.91 to 2.00 and now i > cant use them, when i try to load gambas this message appears: > > "This application has raised an unexpected error and must abort: " > "[6] type mismatch: wanted object, got string instead. > FOption.ReadConfig.25" > > My system update from http://azores.linex.org/gambas-other/ gutsy main. > > How i can fiz this issue? > > Thanks > Javier Apparently the update was not complete, as you get this error if you run the IDE of the 1.9.91 version with the interpreter of the 2.0.0 version! Regards, -- Benoit Minisini From leonardo at ...1237... Sat Jan 5 12:06:24 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 05 Jan 2008 12:06:24 +0100 Subject: [Gambas-user] Compilation error In-Reply-To: <477E4E33.6020006@...34...> References: <477D5DDD.7000501@...34...> <200801041108.14379.rospolosco@...152...> <477E4E33.6020006@...34...> Message-ID: <477F64B0.5010804@...1237...> Tom "spot" Callaway ha scritto: > Stefano Palmeri wrote: > >> Gambas2 doesn't compile on 64 bit systems. > > Well, thats disappointing. Are there any plans to move gambas2 into the > 21st century? > > ~spot > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > The 64 bit-version of Gambas is in development now that Gambas2.0 is out (as you can read in the previous messages of this mailing-list). -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From leonardo at ...1237... Sat Jan 5 12:12:00 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 05 Jan 2008 12:12:00 +0100 Subject: [Gambas-user] The most annoying (lackof) feature of property editor In-Reply-To: <200801041129.58847.rospolosco@...152...> References: <200801040922.53636.rterry@...1822...> <200801041129.58847.rospolosco@...152...> Message-ID: <477F6600.7060406@...1237...> Stefano Palmeri ha scritto: > Alle 23:22, gioved? 3 gennaio 2008, richard terry ha scritto: >> Observation: >> ======= >> Lack of heading on the property editor indicating which control it refers >> to - see the piccies: >> >> Reason its a problem >> ============ >> When working with multiple controls on a form and jumping back and forth to >> the property editor one 'loses sight' of which control one is working on. >> >> This wouldn't be so much of a problem if the properties in the property >> editor were always those of the object you think you are working on but >> there seems to be a little instabiltiy of the IDE e.g sometimes can be >> difficult to 'unclick' and object which has focus, or one could have been >> working with an object, move back to the property editor and it has been >> reset to the properties of another control >> >> Check out the comparison between the vb editor pw (with it's heading) and >> gambas >> >> Regards >> >> Richard > > Where's the difference? > > A fair comparison shows that the info that VG gives in the top combobox > are the first two in the Gambas properties. So, just when using Gambas look > for the first two properties to see which control you're working on :-) > ...and Gambas is not VB :-) > > Regards, > > Stefano > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user I think that Richard would tell you to pay attention at the fact that VB has the name of the control at the top of the properties list. So if you scroll down that list, you always has that info at the top of the property window, just in case you forget the widget you are working on. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From dcamposf at ...626... Sat Jan 5 14:56:12 2008 From: dcamposf at ...626... (Daniel Campos) Date: Sat, 5 Jan 2008 14:56:12 +0100 Subject: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 In-Reply-To: <200801051202.25073.gambas@...1...> References: <477BD3FF.5000807@...221...> <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> <200801051202.25073.gambas@...1...> Message-ID: <7259b5ae0801050556w35a28bd5ie6e83246ff82940@...627...> > > Apparently the update was not complete, as you get this error if you run the > IDE of the 1.9.91 version with the interpreter of the 2.0.0 version! > Try to install (reinstall) the gambas2-ide package, may be it was not updated From gambas.fr at ...626... Sat Jan 5 17:13:09 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 5 Jan 2008 17:13:09 +0100 Subject: [Gambas-user] data length in reportfield (gb.report) cannot exceed more than 10 chars - is it a bug or just me? In-Reply-To: <315c36260801041925l30a20b3dpcb264072462118ff@...627...> References: <315c36260801041925l30a20b3dpcb264072462118ff@...627...> Message-ID: <200801051713.10743.gambas.fr@...626...> Le Saturday 05 January 2008 04:25:26 Ignatius Budiman H., vous avez ?crit?: > I noticed that data length in reportfield (gb.report) cannot exceed more > than 10 chars > Does anyone has same experience, or it's just me and my mistake? > > I used GB2-1.9.92 on Mandriva 2008.0 > > salam > -iggy > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user hem :/ lol you have to change it manually :) hField.MaxLenght = 20 for exemple :) From gambas.fr at ...626... Sat Jan 5 17:38:58 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 5 Jan 2008 17:38:58 +0100 Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <14629910.post@...1379...> References: <200801021113.32378.gambas@...1...> <200801042242.38362.sourceforge-raindog2@...94...> <14629910.post@...1379...> Message-ID: <200801051738.58334.gambas.fr@...626...> The more bad thing we have do, is to comparate Gambas to vb :( Gambas is really not vb ... the only common thing is that gambas is a Basic with visual editor... that's all. And nerds hate vb... generally... and they don't really know why but they hate vb and the only way for them to do something is C/java and sometime Py... for the web php/java/ ... the arrival of a new language like Gambas is a symbol of child toys... nothing really professionnal... but... As far as i know vb and access (vba) are used in professionnal apps since many thime ( often more tan 10 years)... And if a tool like WinDev (who is a multilanguage ide and a basic language), is a toy, i say i really prefer to play with that... why ?... becaus it's simple, complete, not too many things to learn, really, really easy to debug... I can do what i want without be a wishmaster... And i can grow in the linux world with a language i know since i've 12.... This is my thinks... Le Saturday 05 January 2008 05:32:51 manuel viet, vous avez ?crit? > Rob Kudla wrote: > > On Friday 04 January 2008 19:56, manuel viet wrote: > >> As I read it, the 'article' on the wiki is more or less a list of > >> "can and cannot", maybe spinning it to be a little more... > >> sexy would help. ;-) > > > > I think the ability to have the same code run with a native interface > > in KDE and GNOME automatically is pretty damn sexy. Is there any > > other high-level language or toolkit that allows that? > > It seems you misunderstood me ; so, to clarify my thougts, when I > wrote the article should be more 'sexy', I intended to speak about > the style, not about the contents (why else would we all be there > if gambas wasn't technically good ?). My appreciation had really > nothing to do with gambas per se. Most publications on and off- > line are overwhelmed with software (new and improved) to report > on, so to make headlines, there must be something more than > 'it works' because timely trains are of no interest to anyone. Of > course a programming language is supposed to work as promised > by the specifications ! I really think the presentation should be > more entertaining. > > > > ----- > -- > Manuel Viet From sourceforge-raindog2 at ...94... Sat Jan 5 18:28:24 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 5 Jan 2008 12:28:24 -0500 Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <200801051738.58334.gambas.fr@...626...> References: <200801021113.32378.gambas@...1...> <14629910.post@...1379...> <200801051738.58334.gambas.fr@...626...> Message-ID: <200801051228.24611.sourceforge-raindog2@...94...> On Saturday 05 January 2008 11:38, Fabien Bodard wrote: > The more bad thing we have do, is to comparate Gambas to vb :( I don't think either Manuel or I compared Gambas to VB. In fact, this time around I never even mentioned VB in my submissions to the sites. > Gambas is really not vb ... the only common thing is that gambas is > a Basic with visual editor... that's all. Sure enough, but just as people used to refer to Realbasic as "VB for the Mac", some people refer to Gambas as "VB for Linux" even though they're pretty different dialects of BASIC. There are a lot of BASIC coders out there. I think there will be fewer and fewer as time goes on because everyone's learning Javascript and PHP now to try to cash in on Ajax, but I can't think of an easier way for novices to get into Linux development outside of the OLPC. Communicating that in a way that gets news sites (or in the case of digg, their members) to carry announcements of new versions is what I can't figure out, apparently. Rob From gambas at ...1828... Sat Jan 5 19:13:05 2008 From: gambas at ...1828... (manuel viet) Date: Sat, 5 Jan 2008 10:13:05 -0800 (PST) Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <200801051228.24611.sourceforge-raindog2@...94...> References: <200801021113.32378.gambas@...1...> <200801020942.25313.sourceforge-raindog2@...94...> <200801022214.21614.sourceforge-raindog2@...94...> <200801041823.12798.sourceforge-raindog2@...94...> <14628249.post@...1379...> <200801042242.38362.sourceforge-raindog2@...94...> <14629910.post@...1379...> <200801051738.58334.gambas.fr@...626...> <200801051228.24611.sourceforge-raindog2@...94...> Message-ID: <14636851.post@...1379...> Rob Kudla wrote: > > On Saturday 05 January 2008 11:38, Fabien Bodard wrote: >> The more bad thing we have do, is to comparate Gambas to vb :( > > There are a lot of BASIC coders out there. I think there will be > fewer and fewer as time goes on because everyone's learning > Javascript and PHP now to try to cash in on Ajax, but I can't think > of an easier way for novices to get into Linux development outside of > the OLPC. > > I can't agree more ; but as Fabien pointed it, basic isn't for nerds. Or at least, it doesn't look cool among those calling themselves nerds. And that's something that's not likely to change. With an afterthought, it might have been wiser to speak of gambas as a "new rad" with an "easy script-like syntax close to python" from the beginning. Those in the know would have winked among themselves... ;-) But now, my thinking is Gambas should be directed toward those who need gambas for what it is. In this crowd, there are many people fleeing from the switch between VB 6 and VB .Net. We should target the professionnal press accordingly. Just my 2 cents. To be a bit more constructive, I tried to write a small article on the subject. In french. Certainly not perfect, it's a first draft. So if someone think there's something to do with it, some criticism, or some ways to build upon it, why not try to come up with a good redaction ? I upload it here. http://www.nabble.com/file/p14636851/gambas-prop.odt gambas-prop.odt ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Release-of-Gambas-2-tp14576059p14636851.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Jan 5 19:21:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 5 Jan 2008 19:21:05 +0100 Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <14636851.post@...1379...> References: <200801021113.32378.gambas@...1...> <200801051228.24611.sourceforge-raindog2@...94...> <14636851.post@...1379...> Message-ID: <200801051921.06001.gambas@...1...> On samedi 5 janvier 2008, manuel viet wrote: > Rob Kudla wrote: > > On Saturday 05 January 2008 11:38, Fabien Bodard wrote: > >> The more bad thing we have do, is to comparate Gambas to vb :( > > > > There are a lot of BASIC coders out there. I think there will be > > fewer and fewer as time goes on because everyone's learning > > Javascript and PHP now to try to cash in on Ajax, but I can't think > > of an easier way for novices to get into Linux development outside of > > the OLPC. > > I can't agree more ; but as Fabien pointed it, basic isn't for nerds. Or > at least, it doesn't look cool among those calling themselves nerds. > And that's something that's not likely to change. With an afterthought, > it might have been wiser to speak of gambas as a "new rad" with an > "easy script-like syntax close to python" from the beginning. Those > in the know would have winked among themselves... ;-) > As there is a compiler between the BASIC language and the executed bytecode, one can imagine another compiler with a C-like syntax, or another language. Maybe I should waste my time on that just to make people see Gambas differently? -- Benoit Minisini From gambas.fr at ...626... Sat Jan 5 19:58:26 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 5 Jan 2008 19:58:26 +0100 Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <200801051921.06001.gambas@...1...> References: <200801021113.32378.gambas@...1...> <14636851.post@...1379...> <200801051921.06001.gambas@...1...> Message-ID: <200801051958.26976.gambas.fr@...626...> Le Saturday 05 January 2008 19:21:05 Benoit Minisini, vous avez ?crit?: > On samedi 5 janvier 2008, manuel viet wrote: > > Rob Kudla wrote: > > > On Saturday 05 January 2008 11:38, Fabien Bodard wrote: > > >> The more bad thing we have do, is to comparate Gambas to vb :( > > > > > > There are a lot of BASIC coders out there. I think there will be > > > fewer and fewer as time goes on because everyone's learning > > > Javascript and PHP now to try to cash in on Ajax, but I can't think > > > of an easier way for novices to get into Linux development outside of > > > the OLPC. > > > > I can't agree more ; but as Fabien pointed it, basic isn't for nerds. Or > > at least, it doesn't look cool among those calling themselves nerds. > > And that's something that's not likely to change. With an afterthought, > > it might have been wiser to speak of gambas as a "new rad" with an > > "easy script-like syntax close to python" from the beginning. Those > > in the know would have winked among themselves... ;-) > > As there is a compiler between the BASIC language and the executed > bytecode, one can imagine another compiler with a C-like syntax, or another > language. Maybe I should waste my time on that just to make people see > Gambas differently? lol ;-) From jfabiani at ...1109... Sat Jan 5 20:51:51 2008 From: jfabiani at ...1109... (johnf) Date: Sat, 5 Jan 2008 11:51:51 -0800 Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <200801051921.06001.gambas@...1...> References: <200801021113.32378.gambas@...1...> <14636851.post@...1379...> <200801051921.06001.gambas@...1...> Message-ID: <200801051151.51130.jfabiani@...1109...> On Saturday 05 January 2008 10:21:05 am Benoit Minisini wrote: > On samedi 5 janvier 2008, manuel viet wrote: > > Rob Kudla wrote: > > > On Saturday 05 January 2008 11:38, Fabien Bodard wrote: > > >> The more bad thing we have do, is to comparate Gambas to vb :( > > > > > > There are a lot of BASIC coders out there. I think there will be > > > fewer and fewer as time goes on because everyone's learning > > > Javascript and PHP now to try to cash in on Ajax, but I can't think > > > of an easier way for novices to get into Linux development outside of > > > the OLPC. > > > > I can't agree more ; but as Fabien pointed it, basic isn't for nerds. Or > > at least, it doesn't look cool among those calling themselves nerds. > > And that's something that's not likely to change. With an afterthought, > > it might have been wiser to speak of gambas as a "new rad" with an > > "easy script-like syntax close to python" from the beginning. Those > > in the know would have winked among themselves... ;-) > > As there is a compiler between the BASIC language and the executed > bytecode, one can imagine another compiler with a C-like syntax, or another > language. Maybe I should waste my time on that just to make people see > Gambas differently? From gambas.fr at ...626... Sat Jan 5 21:35:17 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 5 Jan 2008 21:35:17 +0100 Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <14636851.post@...1379...> References: <200801021113.32378.gambas@...1...> <200801051228.24611.sourceforge-raindog2@...94...> <14636851.post@...1379...> Message-ID: <200801052135.18220.gambas.fr@...626...> Le Saturday 05 January 2008 19:13:05 manuel viet, vous avez ?crit?: > Rob Kudla wrote: > > On Saturday 05 January 2008 11:38, Fabien Bodard wrote: > >> The more bad thing we have do, is to comparate Gambas to vb :( > > > > There are a lot of BASIC coders out there. I think there will be > > fewer and fewer as time goes on because everyone's learning > > Javascript and PHP now to try to cash in on Ajax, but I can't think > > of an easier way for novices to get into Linux development outside of > > the OLPC. > > I can't agree more ; but as Fabien pointed it, basic isn't for nerds. Or > at least, it doesn't look cool among those calling themselves nerds. > And that's something that's not likely to change. With an afterthought, > it might have been wiser to speak of gambas as a "new rad" with an > "easy script-like syntax close to python" from the beginning. Those > in the know would have winked among themselves... ;-) > > But now, my thinking is Gambas should be directed toward those > who need gambas for what it is. In this crowd, there are many people > fleeing from the switch between VB 6 and VB .Net. We should target > the professionnal press accordingly. > > Just my 2 cents. > > To be a bit more constructive, I tried to write a small article on the > subject. In french. Certainly not perfect, it's a first draft. So if > someone think there's something to do with it, some criticism, > or some ways to build upon it, why not try to come up with a good > redaction ? I upload it here. > > http://www.nabble.com/file/p14636851/gambas-prop.odt gambas-prop.odt > > ----- > -- > Manuel Viet response on fr mailing list From piresl at ...626... Sat Jan 5 21:43:05 2008 From: piresl at ...626... (lawrence pires) Date: Sat, 5 Jan 2008 20:43:05 +0000 Subject: [Gambas-user] Grabbing certain data from a stream, help a newb Message-ID: <37c460f60801051243m5b083a86k9ee908e564907d6d@...627...> Hi All, I only recently found Gambas, but I got to say its amazing & addictive. This is what I have at the moment: EXEC [dvdmovie, Textbox1.Text] FOR READ AS "Contents" PUBLIC SUB Contents_Read() DIM hFile AS File DIM sLine AS String READ #LAST, sLine, Lof(LAST) sOutput &= sLine hFile = OPEN "/home/lop/Desktop/test88" FOR CREATE WRITE #hFile, sOutput, Len(sOutput) CLOSE #hFile END & this is stream written to test88 VDec: vo config request - 616 x 252 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 2.44:1 - prescaling to correct movie aspect. videocodec: libavcodec (720x576 fourcc=3267706d [mpg2]) Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Writing header... INITV: 0.200, 0.160, fps: 25.000 Pos: 0.1s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.004 [0:0] Pos: 0.1s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.008 [0:0] the output from the shell is directed to the test88 file creating a new line every time. 'Pos: 0.1s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.008 [0:0' Now I need to grab the percentage (0%) this will change as the exec command completes the process, The only command I can find close is Split, to spilt the string/stream, but this creates a massive array, so i dont think this is a good path to take, (What do you think?). The reason why I want to grab the percentage is so that I can correctly setup the progress bar, Im thinking that the only way the progress bar will be correct in showing the progress of the exec command is to grab the percentage of completion from the stream, somehow convert the string into an integer and then do something like this ProgressBar1.Visible = TRUE ProgressBar1.Value += PERCENTAGE FROM STREAM ProgressBar1.Refresh ***The only reason im writing to file atm is so that I can debug, I would like to do this on the fly really. Has anyone got any ideas or tips?, how would you do it?, Am I going in the right direction?, im totally lost at spitting the stream, getting the right bit and then changing a string to an integer so I can use it for the progress bar? any help would be amazing Thanks 2 Gamabs From gambas.fr at ...626... Sat Jan 5 22:00:48 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 5 Jan 2008 22:00:48 +0100 Subject: [Gambas-user] Grabbing certain data from a stream, help a newb In-Reply-To: <37c460f60801051243m5b083a86k9ee908e564907d6d@...627...> References: <37c460f60801051243m5b083a86k9ee908e564907d6d@...627...> Message-ID: <200801052200.49321.gambas.fr@...626...> Le Saturday 05 January 2008 21:43:05 lawrence pires, vous avez ?crit?: > Hi All, > > I only recently found Gambas, but I got to say its amazing & addictive. > > This is what I have at the moment: > > EXEC [dvdmovie, Textbox1.Text] FOR READ AS "Contents" > > PUBLIC SUB Contents_Read() > > DIM hFile AS File > DIM sLine AS String > > READ #LAST, sLine, Lof(LAST) > sOutput &= sLine > > hFile = OPEN "/home/lop/Desktop/test88" FOR CREATE > WRITE #hFile, sOutput, Len(sOutput) > CLOSE #hFile > END > > & this is stream written to test88 > > VDec: vo config request - 616 x 252 (preferred colorspace: Planar YV12) > VDec: using Planar YV12 as output csp (no 0) > Movie-Aspect is 2.44:1 - prescaling to correct movie aspect. > videocodec: libavcodec (720x576 fourcc=3267706d [mpg2]) > Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] > Writing header... > INITV: 0.200, 0.160, fps: 25.000 > Pos: 0.1s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.004 [0:0] > Pos: 0.1s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.008 [0:0] > > > the output from the shell is directed to the test88 file creating a new > line every time. > > 'Pos: 0.1s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.008 [0:0' > > Now I need to grab the percentage (0%) this will change as the exec command > completes the process, > > The only command I can find close is Split, to spilt the string/stream, but > this creates a massive array, so i dont think this is a good path to take, > (What do you think?). > PRINT Scan("Pos: 0.1s 3f ( 100%) 0.00fps", "Pos: *s *f ( *%) *fps*") [2] > The reason why I want to grab the percentage is so that I can correctly > setup the progress bar, Im thinking that the only way the progress bar will > be correct in showing the progress of the exec command is to grab the > percentage of completion from the stream, somehow convert the string into > an integer and then do something like this > > ProgressBar1.Visible = TRUE > ProgressBar1.Value += PERCENTAGE FROM STREAM > ProgressBar1.Refresh > > > ***The only reason im writing to file atm is so that I can debug, I would > like to do this on the fly really. > > > Has anyone got any ideas or tips?, how would you do it?, Am I going in the > right direction?, im totally lost at spitting the stream, getting the right > bit and then changing a string to an integer so I can use it for the > progress bar? any help would be amazing > > Thanks 2 Gamabs Really easy : Dim aString as String[] Dim fTime, fFps, fProgress as Float aString = Scan(sMyString, "Pos: *s *f ( *%) *fps*") fTime = CFloat(aString[0]) fProgress = CFloat(aString[2]) fFtp = CFloat(aString[3]) ProgressBar1.Visible = TRUE ProgressBar1.Value = fProgress / 100 > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ronstk at ...239... Sat Jan 5 23:12:37 2008 From: ronstk at ...239... (ron) Date: Sat, 5 Jan 2008 23:12:37 +0100 Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <200801051921.06001.gambas@...1...> References: <200801021113.32378.gambas@...1...> <14636851.post@...1379...> <200801051921.06001.gambas@...1...> Message-ID: <200801052312.37362.ronstk@...239...> On Saturday 05 January 2008 19:21, Benoit Minisini wrote: > As there is a compiler between the BASIC language and the executed bytecode, > one can imagine another compiler with a C-like syntax, or another language. I'm not sure I realy understand but if you mean instead of basic language in gambas the C language in gambas (gamC) it sounds interesting as project. Asume the construction for the total gambas is used for C to, only the source code language change. :) > Maybe I should waste my time on that just to make people see Gambas > differently? > A waste of time only seen by the users of gambas, they do not want you spend time to other things. For showing the people the overal design of the Gambas way of working and not to be a toy is not realy a waste of time, it shows the basic power. > -- > Benoit Minisini > The current Gambas users are happy you spend (not waste) the develop time, almost 5 years now, to Gambas. I do and for me it is one of the interesting, not to say only, projects I like. Thanks for birth of Gambas and a good 2008. Ron From piresl at ...626... Sat Jan 5 23:57:52 2008 From: piresl at ...626... (lozza1978) Date: Sat, 5 Jan 2008 14:57:52 -0800 (PST) Subject: [Gambas-user] Grabbing certain data from a stream, help a newb In-Reply-To: <200801052200.49321.gambas.fr@...626...> References: <37c460f60801051243m5b083a86k9ee908e564907d6d@...627...> <200801052200.49321.gambas.fr@...626...> Message-ID: <14640389.post@...1379...> Hi there, thanks for repling, and your example but, im new and dont really understand your code, is there any chance that you could post an example with working code so that i can understand? what is going on here? PRINT Scan("Pos: 0.1s 3f ( 100%) 0.00fps", "Pos: *s *f ( *%) *fps*") [2] ive checked out the scan command at http://gambasdoc.org/help/lang/scan gambas scan function but cannot see how it will help as the PRINT Scan("Pos: 0.1s 3f ( 100%) 0.00fps", "Pos: *s *f ( *%) *fps*") Pos: 0.1s 3f ( 100%) 0.00fps", "Pos: *s *f ( *%) *fps*") changes and I cannot predict the percentage. as shown in the file test88 test88 file: Writing header... INITV: 0.200, 0.160, fps: 25.000 Pos: 0.1s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.004 [0:0] Pos: 0.1s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.008 [0:0] Pos: 0.2s 4f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.013 [0:0] Pos: 0.2s 5f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.017 [0:0] Pos: 0.2s 6f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.021 [0:0] Pos: 0.3s 7f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.025 [0:0] Pos: 0.3s 8f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.029 [0:0] Pos: 0.4s 9f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.033 [0:0] Pos: 0.4s 10f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.038 [0:0] Am I reading to much into this? Its driving me mad, I know most programmers do this?, as how else do they show a progress bar while installing a program in windows for example.. I know I have a lot of reading and lessons to learn but I just love gambas and the it works, well done guys. its genius I have searched the universe for info and easy to follow examples but i get lost! :-( Fabien Bodard-4 wrote: > > Le Saturday 05 January 2008 21:43:05 lawrence pires, vous avez ?crit?: >> Hi All, >> >> I only recently found Gambas, but I got to say its amazing & addictive. >> >> This is what I have at the moment: >> >> EXEC [dvdmovie, Textbox1.Text] FOR READ AS "Contents" >> >> PUBLIC SUB Contents_Read() >> >> DIM hFile AS File >> DIM sLine AS String >> >> READ #LAST, sLine, Lof(LAST) >> sOutput &= sLine >> >> hFile = OPEN "/home/lop/Desktop/test88" FOR CREATE >> WRITE #hFile, sOutput, Len(sOutput) >> CLOSE #hFile >> END >> >> & this is stream written to test88 >> >> VDec: vo config request - 616 x 252 (preferred colorspace: Planar YV12) >> VDec: using Planar YV12 as output csp (no 0) >> Movie-Aspect is 2.44:1 - prescaling to correct movie aspect. >> videocodec: libavcodec (720x576 fourcc=3267706d [mpg2]) >> Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] >> Writing header... >> INITV: 0.200, 0.160, fps: 25.000 >> Pos: 0.1s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.004 [0:0] >> Pos: 0.1s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.008 [0:0] >> >> >> the output from the shell is directed to the test88 file creating a new >> line every time. >> >> 'Pos: 0.1s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.008 [0:0' >> >> Now I need to grab the percentage (0%) this will change as the exec >> command >> completes the process, >> >> The only command I can find close is Split, to spilt the string/stream, >> but >> this creates a massive array, so i dont think this is a good path to >> take, >> (What do you think?). >> > > PRINT Scan("Pos: 0.1s 3f ( 100%) 0.00fps", "Pos: *s *f ( *%) > *fps*") > [2] > > >> The reason why I want to grab the percentage is so that I can correctly >> setup the progress bar, Im thinking that the only way the progress bar >> will >> be correct in showing the progress of the exec command is to grab the >> percentage of completion from the stream, somehow convert the string into >> an integer and then do something like this >> >> ProgressBar1.Visible = TRUE >> ProgressBar1.Value += PERCENTAGE FROM STREAM >> ProgressBar1.Refresh >> >> >> ***The only reason im writing to file atm is so that I can debug, I would >> like to do this on the fly really. >> >> >> Has anyone got any ideas or tips?, how would you do it?, Am I going in >> the >> right direction?, im totally lost at spitting the stream, getting the >> right >> bit and then changing a string to an integer so I can use it for the >> progress bar? any help would be amazing >> >> Thanks 2 Gamabs > > Really easy : > Dim aString as String[] > Dim fTime, fFps, fProgress as Float > > > aString = Scan(sMyString, "Pos: *s *f ( *%) *fps*") > > fTime = CFloat(aString[0]) > fProgress = CFloat(aString[2]) > fFtp = CFloat(aString[3]) > ProgressBar1.Visible = TRUE > ProgressBar1.Value = fProgress / 100 > > >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- View this message in context: http://www.nabble.com/Grabbing-certain-data-from-a-stream%2C-help-a-newb-tp14638863p14640389.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sun Jan 6 00:25:33 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 6 Jan 2008 00:25:33 +0100 Subject: [Gambas-user] Grabbing certain data from a stream, help a newb In-Reply-To: <37c460f60801051243m5b083a86k9ee908e564907d6d@...627...> References: <37c460f60801051243m5b083a86k9ee908e564907d6d@...627...> Message-ID: <200801060025.34451.gambas.fr@...626...> Le Saturday 05 January 2008 21:43:05 lawrence pires, vous avez ?crit?: > Hi All, > > I only recently found Gambas, but I got to say its amazing & addictive. > > This is what I have at the moment: > > EXEC [dvdmovie, Textbox1.Text] FOR READ AS "Contents" > PUBLIC SUB Contents_Read() DIM sLine AS String dim aString as String[] READ #LAST, sLine, Lof(LAST) aString = Scan(sLine, "Pos: *s *f ( *%) *fps*") if aString.Count > 2 then ProgressBar1.Value = Val(aString[2])/100 endif END http://gambasdoc.org/help/lang/scan > > & this is stream written to test88 > > VDec: vo config request - 616 x 252 (preferred colorspace: Planar YV12) > VDec: using Planar YV12 as output csp (no 0) > Movie-Aspect is 2.44:1 - prescaling to correct movie aspect. > videocodec: libavcodec (720x576 fourcc=3267706d [mpg2]) > Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] > Writing header... > INITV: 0.200, 0.160, fps: 25.000 > Pos: 0.1s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.004 [0:0] > Pos: 0.1s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.008 [0:0] > > > the output from the shell is directed to the test88 file creating a new > line every time. > > 'Pos: 0.1s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.008 [0:0' > > Now I need to grab the percentage (0%) this will change as the exec command > completes the process, > > The only command I can find close is Split, to spilt the string/stream, but > this creates a massive array, so i dont think this is a good path to take, > (What do you think?). > > The reason why I want to grab the percentage is so that I can correctly > setup the progress bar, Im thinking that the only way the progress bar will > be correct in showing the progress of the exec command is to grab the > percentage of completion from the stream, somehow convert the string into > an integer and then do something like this > > ProgressBar1.Visible = TRUE > ProgressBar1.Value += PERCENTAGE FROM STREAM > ProgressBar1.Refresh > > > ***The only reason im writing to file atm is so that I can debug, I would > like to do this on the fly really. > > > Has anyone got any ideas or tips?, how would you do it?, Am I going in the > right direction?, im totally lost at spitting the stream, getting the right > bit and then changing a string to an integer so I can use it for the > progress bar? any help would be amazing > > Thanks 2 Gamabs > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From piresl at ...626... Sun Jan 6 00:44:39 2008 From: piresl at ...626... (lawrence pires) Date: Sat, 5 Jan 2008 23:44:39 +0000 Subject: [Gambas-user] scan() example not working for me Message-ID: <37c460f60801051544i44b000e2vcf8324350d75cceb@...627...> i have taken the example code from hereand wraped it into a click, (trying to build a progress bar...) PUBLIC SUB Button1_Click() DIM sResult AS String DIM sLine AS String DIM sElt AS String EXEC "df" TO sResult FOR EACH sLine IN Split(sResult, "n") FOR EACH sElt IN Scan(sLine, "* * * * *") PRINT sElt; "|"; NEXT PRINT NEXT END this is the exact example taken. why does it not compile and error?, is it me or does the documention need updating? i was expecting output when button pressed? or am i to blame? From gambas at ...1... Sun Jan 6 02:36:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 6 Jan 2008 02:36:57 +0100 Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <200801051151.51130.jfabiani@...1109...> References: <200801021113.32378.gambas@...1...> <200801051921.06001.gambas@...1...> <200801051151.51130.jfabiani@...1109...> Message-ID: <200801060236.57317.gambas@...1...> On samedi 5 janvier 2008, johnf wrote: > > From a Lurker (who has written Gambas code): > > Stop worrying about how you are writing announcements of the latest > version. From my perspective you guys are doing very thing possible on the > marketing front (without spending money). I realize you want Gambas to be > the next hot language but I doubt that's going to happen. Here is what I > think will hold Gambas back. > > 1.Not a Cross platform solution. > 2.No web > > Oh I know that QT is now cross platform. So Gambas can solve the problem > in the future. But what about the web? > > First let me say desktop applications are not going away soon (if ever). > But that's not what has been hot in the industry. Languages like Ruby are > hot right now because of Ruby on Rails ? web apps. Personally I don't > think much of Ruby. But it's hard to deny that there are lots of > developers > participating in ?Ruby on Rails? if the list and forum traffic means > anything. I receive a hundred messages daily from the Ruby list and forum. > Of course there is the Ajax thing and Flex along with Air that claim to > provide a rich web interface as good as a desktop. > > So how does Gambas fit in when it comes to web apps? It doesn't really. > > So capitalize on your strengths. In the windows world VB6 is very strong. > And still has a very large following world wide. So instead of saying you > are not VB6 say you are better than VB6 with added features. Yes I know > that you can't move a VB6 project to Gambas with a push of a button. So > what. The coding is very close. Go and evangelize the strengths of Gambas > to the VB6 guys. > > Next stop calling other languages ?nerdie?. Python is no more nerdie than > Basic. All that does is cause others to look at the Gambas list with > suspicion. > > Last keep your expectation within reason. Basic is 30-40 years old. So > the idea of basic is not new but what can be done with the new basic > (Gambas). That is a strength BTW. So write that app that all distro's want > to include and show the world that Basic is not basic. Making Gambas become a "web language" is one of my goal for a long time. At the moment, you can already do that with the gb.web component, even if you need a lot of elbow grease. I'm currently be paid for a web application written in Gambas (I have already talked about in previous mails). I want to be able to put controls on web page with Gambas, and to get events from them, and all that should be transparent, without having to write any JavaScript. But the way of doing that is not well defined at the moment, and a lot of work is needed inside the IDE first, so that it can manage different kinds of forms. And think about the differences and bugs between all browsers! You can already doing that with Ruby on Rails, Java and in many other platforms, but it is so complex for the average developer. I hope Gambas will be able to write web interface the easiest possible. Regards, -- Benoit Minisini From rterry at ...1822... Sun Jan 6 04:02:41 2008 From: rterry at ...1822... (richard terry) Date: Sun, 6 Jan 2008 14:02:41 +1100 Subject: [Gambas-user] [Gambasm-user] Continuing difficulty with gambas2 documentation In-Reply-To: <200801041011.51321.sourceforge-raindog2@...94...> References: <200801041649.34222.rterry@...1822...> <200801041011.51321.sourceforge-raindog2@...94...> Message-ID: <200801061402.41774.rterry@...1822...> Thanks for your reply - I'm somewhat handicapped at home because I can't get broadband (or proper mobile phone) or wireless, even though I'm dead in the middle of a city. Apprently I'm in deadspot in between 3 towers, and even on the landline our national telco says they will never ever ever put ADSL on to the 6 houses in our street that they reckon the infrastructure wireing is inadequate but would cost them too much to fix, and they would never recoup the cost. Satellite seems to be the only option and is expensive here and I've broadband at work. regards Richard On Sat, 5 Jan 2008 02:11:51 am Rob wrote: > On Friday 04 January 2008 00:49, richard terry wrote: > > For someone like myself in full time employement working 60 hrs per > > week, to spend an hour trying to track down some simple > > documentation is so offputting that in the individuals such as > > myself as lost to the language/user base. > > Imagine what it's like for someone in full time employment working 60 > hours per week to write documentation in the first place. I know I > don't have time to do that, and it's not like anyone's getting paid > to work on it. > > The only reason Gambas is documented at all is that the documentation > structure is generated from the classes themselves, so I'm not sure > why that copy method isn't in the wiki if it's a public member of > that class. But a link showing up in italics in the wiki means the > page hasn't been created yet, if I remember right. What I did find > is this: > > http://gambasdoc.org/help/comp/gb.qt/textarea/copy?show > > First hit from typing gambas textarea copy into google. But if there > are broken links within the wiki, it seems like it must be possible > write a program to find them. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1822... Sun Jan 6 04:04:08 2008 From: rterry at ...1822... (richard terry) Date: Sun, 6 Jan 2008 14:04:08 +1100 Subject: [Gambas-user] Line wrapping in the IDE editor In-Reply-To: <200801041031.31347.rospolosco@...152...> References: <200801041832.57361.rterry@...1822...> <200801041031.31347.rospolosco@...152...> Message-ID: <200801061404.08444.rterry@...1822...> I guess so, thanks On Fri, 4 Jan 2008 08:31:31 pm Stefano Palmeri wrote: > Alle 08:32, venerd? 4 gennaio 2008, richard terry ha scritto: > > In most ide's you can wrap long lines in the editor, is this possible in > > gambas, if so, how (eg if you have a long string in inverted comma's that > > you want to assign to something) > > > > Thanks > > > > Richard > > My English is terrible. You mean this: > > > DIM sString AS String > > sString = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & > "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" & > "ccccccccccccccccccccccccccccccccccccccccc" > > PRINT sString > > Bye > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Sun Jan 6 09:30:56 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 6 Jan 2008 09:30:56 +0100 Subject: [Gambas-user] scan() example not working for me In-Reply-To: <37c460f60801051544i44b000e2vcf8324350d75cceb@...627...> References: <37c460f60801051544i44b000e2vcf8324350d75cceb@...627...> Message-ID: <200801060930.56913.gambas.fr@...626...> Le Sunday 06 January 2008 00:44:39 lawrence pires, vous avez ?crit?: > i have taken the example code from > hereand wraped it into a click, > (trying to build a progress bar...) > > > PUBLIC SUB Button1_Click() > DIM sResult AS String > DIM sLine AS String > DIM sElt AS String > > EXEC "df" TO sResult > > FOR EACH sLine IN Split(sResult, "n") FOR EACH sLine IN Split(sResult, "\n") \n reprensent a chr(10) element = end of line > FOR EACH sElt IN Scan(sLine, "* * * * *") > PRINT sElt; "|"; > NEXT > PRINT > NEXT > END > > this is the exact example taken. why does it not compile and error?, is it > me or does the documention need updating? i was expecting output when > button pressed? or am i to blame? > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From dcamposf at ...626... Sun Jan 6 12:13:30 2008 From: dcamposf at ...626... (Daniel Campos) Date: Sun, 6 Jan 2008 12:13:30 +0100 Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <200801051921.06001.gambas@...1...> References: <200801021113.32378.gambas@...1...> <200801051228.24611.sourceforge-raindog2@...94...> <14636851.post@...1379...> <200801051921.06001.gambas@...1...> Message-ID: <7259b5ae0801060313g602c8dc5yf0b3a354584abebb@...627...> > > As there is a compiler between the BASIC language and the executed bytecode, > one can imagine another compiler with a C-like syntax, or another language. > Maybe I should waste my time on that just to make people see Gambas > differently? > No, but documenting the bytecode would be nice :-) Daniel > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From piresl at ...626... Sun Jan 6 13:00:22 2008 From: piresl at ...626... (lozza1978) Date: Sun, 6 Jan 2008 04:00:22 -0800 (PST) Subject: [Gambas-user] Array query Message-ID: <14647467.post@...1379...> Hi All I am still working on the progress bar here, thank you Fabien, your example was good. (but the progress bar stops @9% when using your example code) this is my new problem sResult = "Pos: 30.8s 768f (11%) 55.44fps Trem: 1min 85mb A-V:0.011 [2472:192]" FOR EACH sLine IN Split(sResult, "n") then scan for the correct section of the stream FOR EACH sElt IN Scan(sLine, "Pos: * * *fps Trem:*") I then spilt the stream again to get rid of the () Brackets Elt = Split(sElt, " n", ")") Elt = Split(sElt, " n", "()") its at this point that all I want from the array is the 3rd element/string, Ive tried Elt[3] but this errors when button pressed "Object out of bounds" I dont want to run the array through a loop as i only want 1 string from the array and not the whole array. thanks for the help. -- View this message in context: http://www.nabble.com/Array-query-tp14647467p14647467.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sun Jan 6 13:34:13 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 6 Jan 2008 13:34:13 +0100 Subject: [Gambas-user] Array query In-Reply-To: <14647467.post@...1379...> References: <14647467.post@...1379...> Message-ID: <200801061334.14298.gambas.fr@...626...> Le Sunday 06 January 2008 13:00:22 lozza1978, vous avez ?crit?: > Hi All > > I am still working on the progress bar here, thank you Fabien, your example > was good. (but the progress bar stops @9% when using your example code) > > this is my new problem > > sResult = "Pos: 30.8s 768f (11%) 55.44fps Trem: 1min 85mb A-V:0.011 > [2472:192]" > > FOR EACH sLine IN Split(sResult, "n") > > then scan for the correct section of the stream > FOR EACH sElt IN Scan(sLine, "Pos: * * *fps Trem:*") > > I then spilt the stream again to get rid of the () Brackets > Elt = Split(sElt, " n", ")") > Elt = Split(sElt, " n", "()") an error from mine PUBLIC SUB Contents_Read() DIM sLine AS String dim aString as String[] READ #LAST, sLine, Lof(LAST) aString = Scan(sLine, "Pos: *s *f (*%) *fps*") if aString.Count > 2 then ProgressBar1.Value = Val(aString[2])/100 endif END this will work each space in the scan pattern is important :) From piresl at ...626... Sun Jan 6 14:11:30 2008 From: piresl at ...626... (lozza1978) Date: Sun, 6 Jan 2008 05:11:30 -0800 (PST) Subject: [Gambas-user] Array query In-Reply-To: <200801061334.14298.gambas.fr@...626...> References: <14647467.post@...1379...> <200801061334.14298.gambas.fr@...626...> Message-ID: <14648304.post@...1379...> Hi Fabien & all, Thanks for your help, im pleased to say that the progress bar is now showing correctly ,javascript:Nabble.smiley('smiley_good.gif','=)') Can you please explain how it works?, I dont really understand whats going on and would really like to grasp it. scanning for the string[] aString = Scan(sLine, "Pos: *s *f (*%) *fps*") This is what I dont understand? aString will allways be more than 2, if aString.Count > 2 then 1, when I print aString[2] it prints some type of memory address i guess?, 2,what is aString[2] i know its an array but whats the 2 for? 3 what value/element are you using in aString to divide by 100 to get progress ProgressBar1.Value = Val(aString[2])/100 Thanks again for your help -- View this message in context: http://www.nabble.com/Array-query-tp14647467p14648304.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sun Jan 6 15:01:01 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 6 Jan 2008 15:01:01 +0100 Subject: [Gambas-user] Array query In-Reply-To: <14648304.post@...1379...> References: <14647467.post@...1379...> <200801061334.14298.gambas.fr@...626...> <14648304.post@...1379...> Message-ID: <200801061501.01243.gambas.fr@...626...> Le Sunday 06 January 2008 14:11:30 lozza1978, vous avez ?crit?: > Hi Fabien & all, > > Thanks for your help, im pleased to say that the progress bar is now > showing correctly ,javascript:Nabble.smiley('smiley_good.gif','=)') > > Can you please explain how it works?, I dont really understand whats going > on and would really like to grasp it. > > scanning for the string[] > aString = Scan(sLine, "Pos: *s *f (*%) *fps*") > > This is what I dont understand? aString will allways be more than 2, > if aString.Count > 2 then > > 1, when I print aString[2] it prints some type of memory address i guess?, > 2,what is aString[2] i know its an array but whats the 2 for? > 3 what value/element are you using in aString to divide by 100 to get > progress > > ProgressBar1.Value = Val(aString[2])/100 > > Thanks again for your help You are really a beginner... but you're lucky ... i've 2 minutes for you :-P I see you have understand arrays.. a good point for me :) Scan is a magic gambas function that return items of a string in function of a pattern string the pattern can have letters contained in the string, spaces (that represent one or more spaces or tabs), and all the LIKE meta keys The * symbole is replaced by the string that is at the same position in the matched string For exemple aString = scan("Hello lozza how are you today", "Hello * how are you *") Print aString[0] =>lozza Print aString[1] =>today Nothing hard ... no? when i've the problem with the % : when <10 => it use ( 9%) when >10 => it use (11%) a space but only when <9 so the pattern ( *%) can work only in the case <10 why test the count of the array and why 2.. 2 is just a number i can say >1 too, the goal is to test if scan have returned something, If the sline is not the same to tis one i match, the array count will be = 0 why divide /100 ? if you look the result of your process the value of the progress is between 0 to 100, a prgressbar value is between 0 to 1... From bundeshund at ...467... Sun Jan 6 16:26:19 2008 From: bundeshund at ...467... (Hans-Martin =?iso-8859-1?q?B=F6hme?=) Date: Sun, 6 Jan 2008 16:26:19 +0100 Subject: [Gambas-user] Gambas2: trouble with executable Message-ID: <200801061626.19477.> Hi, I have Gambas 2.0 running here on my pc without any trouble, but today I installed the 2.0 on a friends pc (SuSE 10.2) and all run fine except the executable from my selfwritten application. I build that executeable new on his pc from the source (it runs fine with F5 from the GUI on his pc) but no way to start it from a shell (konsole) as an executable. (On mine there is no trouble at all, so it must be somewhat with his pc I guess) Uh, thats not right, the first Window of the executable starts, but it has to open a second window (the first window is a login-window), wich will not come up pressing the login-button. The first window will not response any more after pressing this button. No error-text to see on the console, the application just 'hangs' I am sure it is no Gambas problem, because all run fine on mine machine and so i didnt post some code-snippet from my application here. Anyone has a tip where to start? Thanks a lot, HMB From ronstk at ...239... Sun Jan 6 16:45:11 2008 From: ronstk at ...239... (ron) Date: Sun, 6 Jan 2008 16:45:11 +0100 Subject: [Gambas-user] Gambas 2 - digg and slashdot In-Reply-To: <7259b5ae0801060313g602c8dc5yf0b3a354584abebb@...627...> References: <200801021113.32378.gambas@...1...> <200801051921.06001.gambas@...1...> <7259b5ae0801060313g602c8dc5yf0b3a354584abebb@...627...> Message-ID: <200801061645.11565.ronstk@...239...> On Sunday 06 January 2008 12:13, Daniel Campos wrote: > > As there is a compiler between the BASIC language and the executed bytecode, > > one can imagine another compiler with a C-like syntax, or another language. > > Maybe I should waste my time on that just to make people see Gambas > > differently? > > > > No, but documenting the bytecode would be nice :-) > > > Daniel > LOL Then we can make an assembler and program in mnemonics. Great project CPU Gambas include gb include gb.qt 0000 defm '#!/usr/bin/gbr2' org 0100h 0110:main ld hl,message 0113 ld bc.16 0116 ld a,(hl) 0117:do call gb.qt.print 011a inc hl 011b dec bc 011c ld a,b 011d or c 011e jnz do 0120 gb.exit org 0200H 0200:message gb.string 'Gambas is great' 021f gb.byte 13 The good old amstrad/trs80/aim65/osborn time :) :) Ron 1 From rospolosco at ...152... Sun Jan 6 16:54:05 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 6 Jan 2008 16:54:05 +0100 Subject: [Gambas-user] Gambas2: trouble with executable In-Reply-To: <200801061626.19477.> References: <200801061626.19477.> Message-ID: <200801061654.05553.rospolosco@...152...> Alle 16:26, domenica 6 gennaio 2008, Hans-Martin B?hme ha scritto: > Hi, > > I have Gambas 2.0 running here on my pc without any trouble, but today I > installed the 2.0 on a friends pc (SuSE 10.2) and all run fine except the > executable from my selfwritten application. > > I build that executeable new on his pc from the source (it runs fine with > F5 from the GUI on his pc) but no way to start it from a shell (konsole) as > an executable. (On mine there is no trouble at all, so it must be somewhat > with his pc I guess) > > Uh, thats not right, the first Window of the executable starts, but it has > to open a second window (the first window is a login-window), wich will not > come up pressing the login-button. The first window will not response any > more after pressing this button. > > No error-text to see on the console, the application just 'hangs' > > I am sure it is no Gambas problem, because all run fine on mine machine and > so i didnt post some code-snippet from my application here. > > Anyone has a tip where to start? > > Thanks a lot, > > HMB > By the way, the login window asks for the root password? Did you develop your application on Ubuntu? Stefano > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bundeshund at ...467... Sun Jan 6 16:59:22 2008 From: bundeshund at ...467... (Hans-Martin =?iso-8859-1?q?B=F6hme?=) Date: Sun, 6 Jan 2008 16:59:22 +0100 Subject: [Gambas-user] Gambas2: trouble with executable In-Reply-To: <200801061654.05553.rospolosco@...152...> References: <200801061626.19477.> <200801061654.05553.rospolosco@...152...> Message-ID: <200801061659.22408.bundeshund@...467...> Am Sonntag, 6. Januar 2008 16:54:05 schrieb Stefano Palmeri: > Alle 16:26, domenica 6 gennaio 2008, Hans-Martin B?hme ha scritto: > > Hi, > > > > I have Gambas 2.0 running here on my pc without any trouble, but today I > > installed the 2.0 on a friends pc (SuSE 10.2) and all run fine except the > > executable from my selfwritten application. > > > > I build that executeable new on his pc from the source (it runs fine with > > F5 from the GUI on his pc) but no way to start it from a shell (konsole) > > as an executable. (On mine there is no trouble at all, so it must be > > somewhat with his pc I guess) > > > > Uh, thats not right, the first Window of the executable starts, but it > > has to open a second window (the first window is a login-window), wich > > will not come up pressing the login-button. The first window will not > > response any more after pressing this button. > > > > No error-text to see on the console, the application just 'hangs' > > > > I am sure it is no Gambas problem, because all run fine on mine machine > > and so i didnt post some code-snippet from my application here. > > > > Anyone has a tip where to start? > > > > Thanks a lot, > > > > HMB > > By the way, the login window asks for the root password? > Did you develop your application on Ubuntu? > > Stefano No, it ask for the permission to enter the application. The values are stored in a sql-db. And no, its SuSE 10.3 :) HMB From rospolosco at ...152... Sun Jan 6 17:24:36 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 6 Jan 2008 17:24:36 +0100 Subject: [Gambas-user] Gambas2: trouble with executable In-Reply-To: <200801061659.22408.bundeshund@...467...> References: <200801061626.19477.> <200801061654.05553.rospolosco@...152...> <200801061659.22408.bundeshund@...467...> Message-ID: <200801061724.36526.rospolosco@...152...> Alle 16:59, domenica 6 gennaio 2008, Hans-Martin B?hme ha scritto: > Am Sonntag, 6. Januar 2008 16:54:05 schrieb Stefano Palmeri: > > Alle 16:26, domenica 6 gennaio 2008, Hans-Martin B?hme ha scritto: > > > Hi, > > > > > > I have Gambas 2.0 running here on my pc without any trouble, but today > > > I installed the 2.0 on a friends pc (SuSE 10.2) and all run fine except > > > the executable from my selfwritten application. > > > > > > I build that executeable new on his pc from the source (it runs fine > > > with F5 from the GUI on his pc) but no way to start it from a shell > > > (konsole) as an executable. (On mine there is no trouble at all, so it > > > must be somewhat with his pc I guess) > > > > > > Uh, thats not right, the first Window of the executable starts, but it > > > has to open a second window (the first window is a login-window), wich > > > will not come up pressing the login-button. The first window will not > > > response any more after pressing this button. > > > > > > No error-text to see on the console, the application just 'hangs' > > > > > > I am sure it is no Gambas problem, because all run fine on mine machine > > > and so i didnt post some code-snippet from my application here. > > > > > > Anyone has a tip where to start? > > > > > > Thanks a lot, > > > > > > HMB > > > > By the way, the login window asks for the root password? > > Did you develop your application on Ubuntu? > > > > Stefano > > No, it ask for the permission to enter the application. The values are > stored in a sql-db. And no, its SuSE 10.3 :) > > > HMB That's really strange. If it works from the GUI, it should work even as an executable. Strange problem. Stefano > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sun Jan 6 18:03:51 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 6 Jan 2008 18:03:51 +0100 Subject: [Gambas-user] Gambas2: trouble with executable In-Reply-To: <200801061626.19477.> References: <200801061626.19477.> Message-ID: <200801061803.52099.gambas@...1...> On dimanche 6 janvier 2008, Hans-Martin B?hme wrote: > Hi, > > I have Gambas 2.0 running here on my pc without any trouble, but today I > installed the 2.0 on a friends pc (SuSE 10.2) and all run fine except the > executable from my selfwritten application. > > I build that executeable new on his pc from the source (it runs fine with > F5 from the GUI on his pc) but no way to start it from a shell (konsole) as > an executable. (On mine there is no trouble at all, so it must be somewhat > with his pc I guess) > > Uh, thats not right, the first Window of the executable starts, but it has > to open a second window (the first window is a login-window), wich will not > come up pressing the login-button. The first window will not response any > more after pressing this button. > > No error-text to see on the console, the application just 'hangs' > > I am sure it is no Gambas problem, because all run fine on mine machine and > so i didnt post some code-snippet from my application here. > > Anyone has a tip where to start? > > Thanks a lot, > > HMB > It recalls me some similar problem on SuSE, but I can't remember what it is exactly. You should try to know where it hangs with gdb: $ gdb gbx2 ... (gdb) bt ... where is the process id of the program that hangs. Send me the result of the gdb 'bt' command. Regards, -- Benoit Minisini From hennie at ...1826... Sun Jan 6 18:26:16 2008 From: hennie at ...1826... (gaupe) Date: Sun, 6 Jan 2008 09:26:16 -0800 (PST) Subject: [Gambas-user] xml.read() no endelement when empty element Message-ID: <14651081.post@...1379...> if an xmlfile has an empty element for example is an empty element with name groundspeak:travelbugs now reading the xml file i do get an Xml.node.type = XmlReaderNodeType.Element as TRUE but never a Xml.node.type = XmlReaderNodeType.EndElement as TRUE for that specific element. as it does not come up it comes up with the next element if there is one but thats all. How am i supposed to find out the element is empty ? -- View this message in context: http://www.nabble.com/xml.read%28%29-no-endelement-when-empty-element-tp14651081p14651081.html Sent from the gambas-user mailing list archive at Nabble.com. From bundeshund at ...467... Sun Jan 6 18:57:09 2008 From: bundeshund at ...467... (Hans-Martin =?iso-8859-1?q?B=F6hme?=) Date: Sun, 6 Jan 2008 18:57:09 +0100 Subject: [Gambas-user] Gambas2: trouble with executable In-Reply-To: <200801061803.52099.gambas@...1...> References: <200801061626.19477.> <200801061803.52099.gambas@...1...> Message-ID: <200801061857.09900.bundeshund@...467...> Am Sonntag, 6. Januar 2008 18:03:51 schrieb Benoit Minisini: > On dimanche 6 janvier 2008, Hans-Martin B?hme wrote: > > Hi, > > > > I have Gambas 2.0 running here on my pc without any trouble, but today I > > installed the 2.0 on a friends pc (SuSE 10.2) and all run fine except the > > executable from my selfwritten application. > > > > I build that executeable new on his pc from the source (it runs fine with > > F5 from the GUI on his pc) but no way to start it from a shell (konsole) > > as an executable. (On mine there is no trouble at all, so it must be > > somewhat with his pc I guess) > > > > Uh, thats not right, the first Window of the executable starts, but it > > has to open a second window (the first window is a login-window), wich > > will not come up pressing the login-button. The first window will not > > response any more after pressing this button. > > > > No error-text to see on the console, the application just 'hangs' > > > > I am sure it is no Gambas problem, because all run fine on mine machine > > and so i didnt post some code-snippet from my application here. > > > > Anyone has a tip where to start? > > > > Thanks a lot, > > > > HMB > > It recalls me some similar problem on SuSE, but I can't remember what it is > exactly. > > You should try to know where it hangs with gdb: > > $ gdb gbx2 > ... > (gdb) bt > ... > > where is the process id of the program that hangs. > > Send me the result of the gdb 'bt' command. > > Regards, Hi Benoit, I ll do this, but please be a bit patient. I will meet him again during the week, I don't know exactly when. I had the same idea with gdb while i was in bath tub a few minutes ago. Looks like taking a bath is very inspire for the mind :) I will tell you when i have new results. Best regards, Hans-Martin From hennie at ...1826... Sun Jan 6 18:57:47 2008 From: hennie at ...1826... (gaupe) Date: Sun, 6 Jan 2008 09:57:47 -0800 (PST) Subject: [Gambas-user] Array query In-Reply-To: <14647467.post@...1379...> References: <14647467.post@...1379...> Message-ID: <14651413.post@...1379...> ehm the 3d element that would be elt[2] guessing you will know that... but in case not lozza1978 wrote: > > > Hi All > > I am still working on the progress bar here, thank you Fabien, your > example was good. (but the progress bar stops @9% when using your example > code) > > this is my new problem > > sResult = "Pos: 30.8s 768f (11%) 55.44fps Trem: 1min 85mb > A-V:0.011 [2472:192]" > > FOR EACH sLine IN Split(sResult, "n") > > then scan for the correct section of the stream > FOR EACH sElt IN Scan(sLine, "Pos: * * *fps Trem:*") > > I then spilt the stream again to get rid of the () Brackets > Elt = Split(sElt, " n", ")") > Elt = Split(sElt, " n", "()") > > its at this point that all I want from the array is the 3rd > element/string, Ive tried Elt[3] but this errors when button pressed > "Object out of bounds" > > I dont want to run the array through a loop as i only want 1 string from > the array and not the whole array. > > thanks for the help. > > -- View this message in context: http://www.nabble.com/Array-query-tp14647467p14651413.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Sun Jan 6 07:51:00 2008 From: rterry at ...1822... (richard terry) Date: Sun, 6 Jan 2008 17:51:00 +1100 Subject: [Gambas-user] Does anyone have a mini-drawing program In-Reply-To: <200801031721.31400.sourceforge-raindog2@...94...> References: <200801040847.25019.rterry@...1822...> <200801031721.31400.sourceforge-raindog2@...94...> Message-ID: <200801061751.00410.rterry@...1822...> Thanks for replying and the .gz file, however this file is extactly the example in the documentation and not what I was after. What I wondered was if anyone had the code similar to this, but where the user could use a mouse to draw the lines on top of the picture. Regards Richard On Fri, 4 Jan 2008 09:21:31 am Rob wrote: > On Thursday 03 January 2008 16:47, richard terry wrote: > > Has anyone done this (I see there is an example of loadin a picture > > and the system drawing little boxes all over it), but I mean does > > anyone have the code already of using the mouse. > > Here, I hacked the ImageViewer example to do this. I had to switch it > from gb.gtk to gb.qt because I'm running 1.9.90 on this machine. > > Rob From rterry at ...1822... Sun Jan 6 07:53:01 2008 From: rterry at ...1822... (richard terry) Date: Sun, 6 Jan 2008 17:53:01 +1100 Subject: [Gambas-user] ?Bug: IDE bring to foreground on popup menu In-Reply-To: <200801040856.35360.rterry@...1822...> References: <200801040856.35360.rterry@...1822...> Message-ID: <200801061753.01719.rterry@...1822...> Benoit, I've not been able to replicate this with a mini-project as you requested. Simple forms with a couple of controls seem to work. If I can find a consistant failure I'll let you know. Richard On Fri, 4 Jan 2008 08:56:35 am richard terry wrote: > I've a situation where I've set the **ignore property** of a control to > true, made it invisible, then later used code to pop it up (ie it is not a > modal form but remains in its parents form) when I want it. > > I've noticed that if I select that control, then menu item arrangement, > then bring to foreground, it visually brings it to the top of the other > controls. > > Then (even if saving the program) when one hits run, it is instantly put > straight away to the background again. > > The only way around this is to Cut the control from the form, give the form > focus again, then paste it back onto the form. > > > I probably should put my system info in my postings as well I guess: > > LINUX: archlinux kernel inux 2.6.23-ARCH > KDE: 3.5.8 > Gambas 2.0.0 > qt; 3.3.8 > > Richard > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1822... Sun Jan 6 07:35:26 2008 From: rterry at ...1822... (richard terry) Date: Sun, 6 Jan 2008 17:35:26 +1100 Subject: [Gambas-user] HOWTO:Add name to property tab Message-ID: <200801061735.26705.rterry@...1822...> As follow up to my comments about this which seems by some to have been misinterpreted by some, I enclose a mini-how to fix this (2 minutes coding time max) I really think this simple enhancement would make a big difference to the IDE. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: propertyedtior_informative_heading.png Type: image/png Size: 111827 bytes Desc: not available URL: From gambas at ...1... Sun Jan 6 21:57:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 6 Jan 2008 21:57:21 +0100 Subject: [Gambas-user] ?Bug: IDE bring to foreground on popup menu In-Reply-To: <200801061753.01719.rterry@...1822...> References: <200801040856.35360.rterry@...1822...> <200801061753.01719.rterry@...1822...> Message-ID: <200801062157.21875.gambas@...1...> On dimanche 6 janvier 2008, richard terry wrote: > Benoit, > > I've not been able to replicate this with a mini-project as you requested. > Simple forms with a couple of controls seem to work. If I can find a > consistant failure I'll let you know. > > Richard > It is not clear in your mail if you have a stack order problem at run time or at design time. The IDE automatically changes the stack order of control inside a container as soon as this container has the Arrangement property set. It does that so that the result of the arrangement is what you see in the form editor. Regards, -- Benoit Minisini From ariefbayu at ...626... Mon Jan 7 02:50:09 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Mon, 7 Jan 2008 08:50:09 +0700 Subject: [Gambas-user] Does anyone have a mini-drawing program In-Reply-To: <200801061751.00410.rterry@...1822...> References: <200801040847.25019.rterry@...1822...> <200801031721.31400.sourceforge-raindog2@...94...> <200801061751.00410.rterry@...1822...> Message-ID: <976ad9050801061750p4a555c2ftae104e9da713035f@...627...> This one only draw a line. just created On 1/6/08, richard terry wrote: > > Thanks for replying and the .gz file, however this file is extactly the > example in the documentation and not what I was after. > > What I wondered was if anyone had the code similar to this, but where the > user > could use a mouse to draw the lines on top of the picture. > > Regards > > Richard > > > On Fri, 4 Jan 2008 09:21:31 am Rob wrote: > > On Thursday 03 January 2008 16:47, richard terry wrote: > > > Has anyone done this (I see there is an example of loadin a picture > > > and the system drawing little boxes all over it), but I mean does > > > anyone have the code already of using the mouse. > > > > Here, I hacked the ImageViewer example to do this. I had to switch it > > from gb.gtk to gb.qt because I'm running 1.9.90 on this machine. > > > > Rob > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Daiguren Hy?rinmaru -------------- next part -------------- A non-text attachment was scrubbed... Name: GBDraw-0.0.1.tar.gz Type: application/x-gzip Size: 7875 bytes Desc: not available URL: From rterry at ...1822... Mon Jan 7 03:39:14 2008 From: rterry at ...1822... (richard terry) Date: Mon, 7 Jan 2008 13:39:14 +1100 Subject: [Gambas-user] HOWTO:Add name to property tab In-Reply-To: <200801070217.07313.gambas@...1...> References: <200801061735.26705.rterry@...1822...> <200801071209.11543.rterry@...1823...> <200801070217.07313.gambas@...1...> Message-ID: <200801071339.15042.rterry@...1822...> On Mon, 7 Jan 2008 12:17:06 pm you wrote: Thanks, Yes that work, and one can save the file, re-load with formatting intact. I've set up a project where I can enter the text, and it auto-shows the html in an adjacent window, lets you change the html and see the result back in the main window. Would be a good html learning tool as you can see the result instantly Wonder if one can re-assign the key behaviour? which would solve the problem. Might quickly join the qt list and see if they have any answers Where can one get documentation about all these key presses for this control anyway? Also, is there a list of html that this control supports? Also, another thing I can;t see how to do is to calculate where the cursor position should be after one progamatically inserts text or pictures. Any ideas? Thanks for all your time on this, What did you think of the piccies? > On lundi 7 janvier 2008, richard terry wrote: > > I don't think it is a bug. It is simply conforming to html standard by > > inserting a

. But if a you could have a function to make the control > > insert a
instead of a

on hitting the key, then the > > control can be used like a letter writer, where the user can add > > sentances of any lengh he desires, without gaps in between the lines. > > > > For me the show stopper is being able to type in progress notes, where in > > medicine we jot things down eg. > > > > complaining of right sided earache > > O/E: red drum > > Dx: otitis media > > Rx:amoxycillin 500 tds > > Review 10/7 > > > > In the gambas control this would look like: > > > > complaining of right sided earache > > > > O/E: red drum > > > > Dx: otitis media > > > > Rx:amoxycillin 500 tds > > > > Review 10/7 > > > > See the piccies included which illustrate this (especially the > > side_by_side picture) > > > > Regards > > > > > > Richard > > Apprently TextEdit works like a text writer: hitting ENTER inserts a > paragraph break (

), and hitting CTRL+ENTER inserts a line break (
). > I don't know why TextEdit.Clear() change the way paragraph breaks are > displayed. Maybe a QT bug... > > Regards, From rterry at ...1822... Mon Jan 7 03:55:46 2008 From: rterry at ...1822... (richard terry) Date: Mon, 7 Jan 2008 13:55:46 +1100 Subject: [Gambas-user] For anyone interested in the TextEdit control Message-ID: <200801071355.46416.rterry@...1822...> http://doc.trolltech.com/3.3/qtextedit.html contains detailed info some of which I suppose applies to the wrapped gambas version. Regards Richard From rterry at ...1822... Mon Jan 7 08:05:07 2008 From: rterry at ...1822... (richard terry) Date: Mon, 7 Jan 2008 18:05:07 +1100 Subject: [Gambas-user] Printing from the TextEdit html control Message-ID: <200801071805.07590.rterry@...1822...> Is this possible? Following the printing example from the examples, it only prints the result of textedit.text (which of course is the raw html code). Has anyone succeeded in printing the visual output from this control? Thanks Richard From eilert-sprachen at ...221... Mon Jan 7 08:13:02 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 07 Jan 2008 08:13:02 +0100 Subject: [Gambas-user] Gambas on 64 Bit system In-Reply-To: <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> References: <477BD3FF.5000807@...221...> <200801031112.22197.gambas@...1...> <477E5522.7030201@...221...> <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> Message-ID: <4781D0FE.3000503@...221...> Jos? Luis Redrejo schrieb: > 2008/1/4, Rolf-Werner Eilert : >> Benoit Minisini schrieb: >>> On mercredi 2 janvier 2008, Rolf-Werner Eilert wrote: >>>> Hi folks, >>>> >>>> just a happy new year to everyone first. This is my question: >>>> >>>> Is there a chance to get Gambas (1 and 2) running on a 64 Bit system? >>>> Would it be instable or would there be any limitation? >>>> >>>> As I'm setting up a new server with a lot of RAM, it would be nice to >>>> have it running in 64 Bit mode. Gambas is "the one app" I cannot do >>>> without, so if it's not possible to run it there, I'd have to use a PAE >>>> system. >>>> >>>> Thanks for your advice. >>>> >>>> Rolf >>>> >>> Gambas 1 & 2 do not work on a 64 bits system. I will start working on >> the 64 >>> bits soon. >>> >>> The 64 bits version will consume more memory than the 32 bits version. >> And it >>> will be slower. But you should not notice it! >>> >>> Regards, >>> >> Well, someone told me it's possible to make any 32 Bit app running under >> a 64 Bit system - but he didn't tell me how :-) >> >> Anyway, should Gambas run in a PAE system? Do you or does anyone here >> have any experience with such a system? >> > > I have several servers running using a PAE kernel. There's not difference > with any other i386 system, except that the system can see more memory. > Gambas works without any difference. This is really good to know - do you mean Gambas 1 and 2 or only Gambas 2? Rolf From jredrejo at ...626... Mon Jan 7 09:12:12 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Mon, 7 Jan 2008 09:12:12 +0100 Subject: [Gambas-user] Gambas on 64 Bit system In-Reply-To: <4781D0FE.3000503@...221...> References: <477BD3FF.5000807@...221...> <200801031112.22197.gambas@...1...> <477E5522.7030201@...221...> <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> <4781D0FE.3000503@...221...> Message-ID: <8eb28a500801070012w472db34ap69ecb4e174d9101e@...627...> gambas2 , but I still don't see why there should be any difference with this or with any other 32 bits application. My PAE servers are using 32 bits application only and this kernel: http://packages.debian.org/lenny/linux-image-2.6.22-3-686-bigmem Regards. 2008/1/7, Rolf-Werner Eilert : > > Jos? Luis Redrejo schrieb: > > 2008/1/4, Rolf-Werner Eilert : > >> Benoit Minisini schrieb: > >>> On mercredi 2 janvier 2008, Rolf-Werner Eilert wrote: > >>>> Hi folks, > >>>> > >>>> just a happy new year to everyone first. This is my question: > >>>> > >>>> Is there a chance to get Gambas (1 and 2) running on a 64 Bit system? > >>>> Would it be instable or would there be any limitation? > >>>> > >>>> As I'm setting up a new server with a lot of RAM, it would be nice to > >>>> have it running in 64 Bit mode. Gambas is "the one app" I cannot do > >>>> without, so if it's not possible to run it there, I'd have to use a > PAE > >>>> system. > >>>> > >>>> Thanks for your advice. > >>>> > >>>> Rolf > >>>> > >>> Gambas 1 & 2 do not work on a 64 bits system. I will start working on > >> the 64 > >>> bits soon. > >>> > >>> The 64 bits version will consume more memory than the 32 bits version. > >> And it > >>> will be slower. But you should not notice it! > >>> > >>> Regards, > >>> > >> Well, someone told me it's possible to make any 32 Bit app running > under > >> a 64 Bit system - but he didn't tell me how :-) > >> > >> Anyway, should Gambas run in a PAE system? Do you or does anyone here > >> have any experience with such a system? > >> > > > > I have several servers running using a PAE kernel. There's not > difference > > with any other i386 system, except that the system can see more memory. > > Gambas works without any difference. > > This is really good to know - do you mean Gambas 1 and 2 or only Gambas 2? > > Rolf > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leonardo at ...1237... Mon Jan 7 11:28:56 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 07 Jan 2008 11:28:56 +0100 Subject: [Gambas-user] Little improvement Message-ID: <4781FEE8.8050103@...1237...> I would suggest a little improvement to Benoit for Gambas :-) Why the message windows that are opened using Message.xxxx command don't have any icon? It would be nice if the message window checked if the calling form has an icon and used it in place of the generic window form icon, doesn't it? -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gambas at ...1... Mon Jan 7 13:14:38 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Jan 2008 13:14:38 +0100 Subject: [Gambas-user] Printing from the TextEdit html control In-Reply-To: <200801071805.07590.rterry@...1822...> References: <200801071805.07590.rterry@...1822...> Message-ID: <200801071314.38254.gambas@...1...> On lundi 7 janvier 2008, richard terry wrote: > Is this possible? > > Following the printing example from the examples, it only prints the result > of textedit.text (which of course is the raw html code). > > Has anyone succeeded in printing the visual output from this control? > > Thanks > > Richard > Use the Draw.RichText*() methods while drawing on the Printer object. Regards, -- Benoit Minisini From cjro99 at ...67... Mon Jan 7 14:08:01 2008 From: cjro99 at ...67... (javier romero) Date: Mon, 7 Jan 2008 13:08:01 +0000 Subject: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 In-Reply-To: <7259b5ae0801050556w35a28bd5ie6e83246ff82940@...627...> References: <477BD3FF.5000807@...221...> <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> <200801051202.25073.gambas@...1...> <7259b5ae0801050556w35a28bd5ie6e83246ff82940@...627...> Message-ID: Ok. i do this. i purge gambas 2.0 and re install, there is not error, but when i try to run any example all saids me that can not load the class and the name of the form, in this moment i erase all gambas2 on my system and i am compiling version 2,0 Thanks Javier > Date: Sat, 5 Jan 2008 14:56:12 +0100 > From: dcamposf at ...626... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 > > > > > Apparently the update was not complete, as you get this error if you run the > > IDE of the 1.9.91 version with the interpreter of the 2.0.0 version! > > > > Try to install (reinstall) the gambas2-ide package, may be it was not updated > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Tecnolog?a, moda, motor, viajes,?suscr?bete a nuestros boletines para estar siempre a la ?ltima Guapos y guapas, clips musicales y estrenos de cine. From dcamposf at ...626... Mon Jan 7 14:27:20 2008 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 7 Jan 2008 14:27:20 +0100 Subject: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 In-Reply-To: References: <477BD3FF.5000807@...221...> <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> <200801051202.25073.gambas@...1...> <7259b5ae0801050556w35a28bd5ie6e83246ff82940@...627...> Message-ID: <7259b5ae0801070527n48f2aa11o5909b1b32290db20@...627...> Extrange... the 2.0 packages I tested in a fresh system compiled and ran without problems, anyway I'll install the prior version and reinstall to see what's happening... Daniel 2008/1/7, javier romero : > > Ok. i do this. i purge gambas 2.0 and re install, there is not error, but when i try to run any example all saids me that can not load the class and the name of the form, in this moment i erase all gambas2 on my system and i am compiling version 2,0 > > Thanks > Javier > > > Date: Sat, 5 Jan 2008 14:56:12 +0100 > > From: dcamposf at ...626... > > To: gambas-user at lists.sourceforge.net > > Subject: Re: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 > > > > > > > > Apparently the update was not complete, as you get this error if you run the > > > IDE of the 1.9.91 version with the interpreter of the 2.0.0 version! > > > > > > > Try to install (reinstall) the gambas2-ide package, may be it was not updated > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > _________________________________________________________________ > Tecnolog?a, moda, motor, viajes,?suscr?bete a nuestros boletines para estar siempre a la ?ltima > Guapos y guapas, clips musicales y estrenos de cine. > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dcamposf at ...626... Mon Jan 7 14:30:20 2008 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 7 Jan 2008 14:30:20 +0100 Subject: [Gambas-user] Gambas on 64 Bit system In-Reply-To: <8eb28a500801070012w472db34ap69ecb4e174d9101e@...627...> References: <477BD3FF.5000807@...221...> <200801031112.22197.gambas@...1...> <477E5522.7030201@...221...> <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> <4781D0FE.3000503@...221...> <8eb28a500801070012w472db34ap69ecb4e174d9101e@...627...> Message-ID: <7259b5ae0801070530j651f170fyb0a6dfed39ba2a1c@...627...> 2008/1/7, Jos? Luis Redrejo : > gambas2 , but I still don't see why there should be any difference with this > or with any other 32 bits application. In a 64 bits system pointers to memory use 8 bytes instead of 4 bytes, I think, so the structures of any Gambas handle would use more memory if compiled natively. Daniel From lordheavym at ...626... Mon Jan 7 14:36:23 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 7 Jan 2008 14:36:23 +0100 Subject: [Gambas-user] Gambas on 64 Bit system In-Reply-To: <7259b5ae0801070530j651f170fyb0a6dfed39ba2a1c@...627...> References: <477BD3FF.5000807@...221...> <8eb28a500801070012w472db34ap69ecb4e174d9101e@...627...> <7259b5ae0801070530j651f170fyb0a6dfed39ba2a1c@...627...> Message-ID: <200801071436.27858.lordheavym@...626...> Le Monday 07 January 2008 14:30:20 Daniel Campos, vous avez ?crit?: > 2008/1/7, Jos? Luis Redrejo : > > gambas2 , but I still don't see why there should be any difference with > > this or with any other 32 bits application. > > In a 64 bits system pointers to memory use 8 bytes instead of 4 bytes, > I think, so the structures of any Gambas handle would use more memory > if compiled natively. > > Daniel Some good explanations: http://www.ibm.com/developerworks/library/l-port64.html Laurent -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From gambas at ...1... Mon Jan 7 14:39:19 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Jan 2008 14:39:19 +0100 Subject: [Gambas-user] Gambas on 64 Bit system In-Reply-To: <200801071436.27858.lordheavym@...626...> References: <477BD3FF.5000807@...221...> <7259b5ae0801070530j651f170fyb0a6dfed39ba2a1c@...627...> <200801071436.27858.lordheavym@...626...> Message-ID: <200801071439.19355.gambas@...1...> On lundi 7 janvier 2008, Laurent Carlier wrote: > Le Monday 07 January 2008 14:30:20 Daniel Campos, vous avez ?crit?: > > 2008/1/7, Jos? Luis Redrejo : > > > gambas2 , but I still don't see why there should be any difference with > > > this or with any other 32 bits application. > > > > In a 64 bits system pointers to memory use 8 bytes instead of 4 bytes, > > I think, so the structures of any Gambas handle would use more memory > > if compiled natively. > > > > Daniel > > Some good explanations: > http://www.ibm.com/developerworks/library/l-port64.html > > Laurent Other explanations! :-) -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: Porting to 64 bit.pdf Type: application/x-pdf Size: 69917 bytes Desc: not available URL: From cjro99 at ...67... Mon Jan 7 15:09:19 2008 From: cjro99 at ...67... (javier romero) Date: Mon, 7 Jan 2008 14:09:19 +0000 Subject: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 In-Reply-To: <7259b5ae0801070527n48f2aa11o5909b1b32290db20@...627...> References: <477BD3FF.5000807@...221...> <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> <200801051202.25073.gambas@...1...> <7259b5ae0801050556w35a28bd5ie6e83246ff82940@...627...> <7259b5ae0801070527n48f2aa11o5909b1b32290db20@...627...> Message-ID: I purge all and i compiled all (not install is repositories) and all works now ok Javier ---------------------------------------- > Date: Mon, 7 Jan 2008 14:27:20 +0100 > From: dcamposf at ...626... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 > > Extrange... the 2.0 packages I tested in a fresh system compiled and > ran without problems, anyway I'll install the prior version and > reinstall to see what's happening... > > Daniel > > > 2008/1/7, javier romero : >> >> Ok. i do this. i purge gambas 2.0 and re install, there is not error, but when i try to run any example all saids me that can not load the class and the name of the form, in this moment i erase all gambas2 on my system and i am compiling version 2,0 >> >> Thanks >> Javier >> >>> Date: Sat, 5 Jan 2008 14:56:12 +0100 >>> From: dcamposf at ...626... >>> To: gambas-user at lists.sourceforge.net >>> Subject: Re: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 >>> >>>> >>>> Apparently the update was not complete, as you get this error if you run the >>>> IDE of the 1.9.91 version with the interpreter of the 2.0.0 version! >>>> >>> >>> Try to install (reinstall) the gambas2-ide package, may be it was not updated >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> _________________________________________________________________ >> Tecnolog?a, moda, motor, viajes,?suscr?bete a nuestros boletines para estar siempre a la ?ltima >> Guapos y guapas, clips musicales y estrenos de cine. >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Tecnolog?a, moda, motor, viajes,?suscr?bete a nuestros boletines para estar siempre a la ?ltima http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com From cjro99 at ...67... Mon Jan 7 15:11:33 2008 From: cjro99 at ...67... (javier romero) Date: Mon, 7 Jan 2008 14:11:33 +0000 Subject: [Gambas-user] database manager In-Reply-To: <7259b5ae0801070527n48f2aa11o5909b1b32290db20@...627...> References: <477BD3FF.5000807@...221...> <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> <200801051202.25073.gambas@...1...> <7259b5ae0801050556w35a28bd5ie6e83246ff82940@...627...> <7259b5ae0801070527n48f2aa11o5909b1b32290db20@...627...> Message-ID: Database manager is Ubuntu 7.10 dont works whe i try to edit a Table, this happens in 1.9.91 and 1.9.92 and now in 2.0 Thanks Javier _________________________________________________________________ La vida de los famosos al desnudo en MSN Entretenimiento http://entretenimiento.es.msn.com/ From gambas at ...1... Mon Jan 7 15:36:49 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Jan 2008 15:36:49 +0100 Subject: [Gambas-user] database manager In-Reply-To: References: <477BD3FF.5000807@...221...> <7259b5ae0801070527n48f2aa11o5909b1b32290db20@...627...> Message-ID: <200801071536.49087.gambas@...1...> On lundi 7 janvier 2008, javier romero wrote: > Database manager is Ubuntu 7.10 dont works whe i try to edit a Table, this > happens in 1.9.91 and 1.9.92 and now in 2.0 > > Thanks > Javier > "Don't work" is not enough information! What happens exactly? An interpreter crash? A database manager bug with an error message? Which database backend do you use? Do you run Ubuntu with Gnome? In that case, what version of GTK+ is installed on Ubuntu 7.10? Please give as much details as possible so that I could fix the problem... Regards, -- Benoit Minisini From rolf.frogs at ...221... Mon Jan 7 15:59:39 2008 From: rolf.frogs at ...221... (rolf) Date: Mon, 7 Jan 2008 15:59:39 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 Message-ID: <200801071559.39299.rolf.frogs@...221...> Hi, I have a problem with the release version of gambas2 and would like to ask what is needed to compile/run this version. I had no problems with compiling gambas up to version 1.9.47 or so. Let me tell what I did: - Fetch the source code file form sf. - configure as usual and get the message that modules mysql, firebird, sqlite, desktop and que will not be build. My call to config explicitly disables mysql, firebird and sqlite - later I also disable the desktop module, but this seems to be ignored?! The I install gambas from the sid-repository of Debian - my computer runs with Debian Lenny. Starting the programm (from a terminal window), I got the message "Library gb.desktop not found". So I dont know, which new dependencies gambas2 has. Please help - I prefer compiling. Fine regards Rolf From gambas at ...1... Mon Jan 7 16:02:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Jan 2008 16:02:13 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <200801071559.39299.rolf.frogs@...221...> References: <200801071559.39299.rolf.frogs@...221...> Message-ID: <200801071602.13882.gambas@...1...> On lundi 7 janvier 2008, rolf wrote: > Hi, > > I have a problem with the release version of gambas2 and would like to ask > what is needed to compile/run this version. I had no problems with > compiling gambas up to version 1.9.47 or so. > > Let me tell what I did: > - Fetch the source code file form sf. > - configure as usual and get the message that modules mysql, firebird, > sqlite, desktop and que will not be build. My call to config explicitly > disables mysql, firebird and sqlite - later I also disable the desktop > module, but this seems to be ignored?! > The I install gambas from the sid-repository of Debian - my computer runs > with Debian Lenny. > Starting the programm (from a terminal window), I got the message "Library > gb.desktop not found". > So I dont know, which new dependencies gambas2 has. > > Please help - I prefer compiling. > > Fine regards > Rolf > The gb.desktop component is needed. It requires X11 library and the Xtst library too. Regards, -- Benoit Minisini From gambas at ...1828... Mon Jan 7 16:22:45 2008 From: gambas at ...1828... (manuel viet) Date: Mon, 7 Jan 2008 07:22:45 -0800 (PST) Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <200801071559.39299.rolf.frogs@...221...> References: <200801071559.39299.rolf.frogs@...221...> Message-ID: <14668168.post@...1379...> Rolf Schmidt wrote: > > Hi, > > I have a problem with the release version of gambas2 and would like to ask > what is needed to compile/run this version. I had no problems with > compiling > gambas up to version 1.9.47 or so. > > Let me tell what I did: > - Fetch the source code file form sf. > - configure as usual and get the message that modules mysql, firebird, > sqlite, > desktop and que will not be build. My call to config explicitly disables > mysql, firebird and sqlite - later I also disable the desktop module, > but > this seems to be ignored?! > The I install gambas from the sid-repository of Debian - my computer runs > with > Debian Lenny. > Starting the programm (from a terminal window), I got the message "Library > gb.desktop not found". > So I dont know, which new dependencies gambas2 has. > > Hello, I had about the same problems you faced ; I made some sloppy hacks around them but Stephano Palmeri came up with a clean solution to compile gb.desktop. Do $ export LDFLAGS="-L/usr/X11R6/lib" before $ ./configure It will only work if you have libXtst and libXtst-dev installed prior to compiling. Best luck, ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Problems-with-gambas2-2.0-tp14667798p14668168.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jan 7 16:51:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Jan 2008 16:51:46 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <14668168.post@...1379...> References: <200801071559.39299.rolf.frogs@...221...> <14668168.post@...1379...> Message-ID: <200801071651.46987.gambas@...1...> On lundi 7 janvier 2008, manuel viet wrote: > Rolf Schmidt wrote: > > Hi, > > > > I have a problem with the release version of gambas2 and would like to > > ask what is needed to compile/run this version. I had no problems with > > compiling > > gambas up to version 1.9.47 or so. > > > > Let me tell what I did: > > - Fetch the source code file form sf. > > - configure as usual and get the message that modules mysql, firebird, > > sqlite, > > desktop and que will not be build. My call to config explicitly > > disables mysql, firebird and sqlite - later I also disable the desktop > > module, but > > this seems to be ignored?! > > The I install gambas from the sid-repository of Debian - my computer runs > > with > > Debian Lenny. > > Starting the programm (from a terminal window), I got the message > > "Library gb.desktop not found". > > So I dont know, which new dependencies gambas2 has. > > Hello, > > I had about the same problems you faced ; I made some sloppy hacks around > them > but Stephano Palmeri came up with a clean solution to compile gb.desktop. > Do $ export LDFLAGS="-L/usr/X11R6/lib" > before > $ ./configure > > It will only work if you have libXtst and libXtst-dev installed prior to > compiling. > > Best luck, > > > > ----- > -- > Manuel Viet It would be cool if people send the output of './configure' and 'make' when they have such problems, as specified on the web site. Regards, -- Benoit Minisini From rospolosco at ...152... Mon Jan 7 17:03:53 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 7 Jan 2008 17:03:53 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <200801071651.46987.gambas@...1...> References: <200801071559.39299.rolf.frogs@...221...> <14668168.post@...1379...> <200801071651.46987.gambas@...1...> Message-ID: <200801071703.54107.rospolosco@...152...> Alle 16:51, luned? 7 gennaio 2008, Benoit Minisini ha scritto: > On lundi 7 janvier 2008, manuel viet wrote: > > Rolf Schmidt wrote: > > > Hi, > > > > > > I have a problem with the release version of gambas2 and would like to > > > ask what is needed to compile/run this version. I had no problems with > > > compiling > > > gambas up to version 1.9.47 or so. > > > > > > Let me tell what I did: > > > - Fetch the source code file form sf. > > > - configure as usual and get the message that modules mysql, firebird, > > > sqlite, > > > desktop and que will not be build. My call to config explicitly > > > disables mysql, firebird and sqlite - later I also disable the desktop > > > module, but > > > this seems to be ignored?! > > > The I install gambas from the sid-repository of Debian - my computer > > > runs with > > > Debian Lenny. > > > Starting the programm (from a terminal window), I got the message > > > "Library gb.desktop not found". > > > So I dont know, which new dependencies gambas2 has. > > > > Hello, > > > > I had about the same problems you faced ; I made some sloppy hacks around > > them > > but Stephano Palmeri came up with a clean solution to compile gb.desktop. > > Do $ export LDFLAGS="-L/usr/X11R6/lib" > > before > > $ ./configure > > > > It will only work if you have libXtst and libXtst-dev installed prior to > > compiling. > > > > Best luck, > > > > > > > > ----- > > -- > > Manuel Viet > > It would be cool if people send the output of './configure' and 'make' when > they have such problems, as specified on the web site. > > Regards, I sent this mail to the list on 19-12-2007, with subject "can't compile gb.desktop" showing the ./configure failure.: --------------------------------------------------------------------------------- Trying to compile RC2. gb.desktop: checking for IceConnectionNumber in -lICE... yes checking for XTestQueryExtension in -lXtst... no configure: WARNING: *** Desktop-neutral routines is disabled Well, libXtst.so is installed in /usr/X11R6/lib. My ld.so.conf is: /usr/include /usr/lib /usr/local/include /usr/local/lib /usr/X11R6/lib /usr/X11R6/include /usr/i486-slackware-linux/lib /opt/kde/lib /usr/lib/qt/lib /usr/lib/seamonkey My system is Slackware 11.0. Any help will be greatly appreciated. Thanks, Best regards, Stefano Palmeri --------------------------------------------------------------- Best regards, Stefano Palmeri From gambas at ...1... Mon Jan 7 17:07:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Jan 2008 17:07:34 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <200801071703.54107.rospolosco@...152...> References: <200801071559.39299.rolf.frogs@...221...> <200801071651.46987.gambas@...1...> <200801071703.54107.rospolosco@...152...> Message-ID: <200801071707.34800.gambas@...1...> On lundi 7 janvier 2008, Stefano Palmeri wrote: > Alle 16:51, luned? 7 gennaio 2008, Benoit Minisini ha scritto: > > On lundi 7 janvier 2008, manuel viet wrote: > > > Rolf Schmidt wrote: > > > > Hi, > > > > > > > > I have a problem with the release version of gambas2 and would like > > > > to ask what is needed to compile/run this version. I had no problems > > > > with compiling > > > > gambas up to version 1.9.47 or so. > > > > > > > > Let me tell what I did: > > > > - Fetch the source code file form sf. > > > > - configure as usual and get the message that modules mysql, > > > > firebird, sqlite, > > > > desktop and que will not be build. My call to config explicitly > > > > disables mysql, firebird and sqlite - later I also disable the > > > > desktop module, but > > > > this seems to be ignored?! > > > > The I install gambas from the sid-repository of Debian - my computer > > > > runs with > > > > Debian Lenny. > > > > Starting the programm (from a terminal window), I got the message > > > > "Library gb.desktop not found". > > > > So I dont know, which new dependencies gambas2 has. > > > > > > Hello, > > > > > > I had about the same problems you faced ; I made some sloppy hacks > > > around them > > > but Stephano Palmeri came up with a clean solution to compile > > > gb.desktop. Do $ export LDFLAGS="-L/usr/X11R6/lib" > > > before > > > $ ./configure > > > > > > It will only work if you have libXtst and libXtst-dev installed prior > > > to compiling. > > > > > > Best luck, > > > > > > > > > > > > ----- > > > -- > > > Manuel Viet > > > > It would be cool if people send the output of './configure' and 'make' > > when they have such problems, as specified on the web site. > > > > Regards, > > I sent this mail to the list on 19-12-2007, with subject "can't compile > gb.desktop" showing the ./configure failure.: > > --------------------------------------------------------------------------- >------ Trying to compile RC2. > > gb.desktop: > > checking for IceConnectionNumber in -lICE... yes > checking for XTestQueryExtension in -lXtst... no > configure: WARNING: *** Desktop-neutral routines is disabled > > Well, libXtst.so is installed in /usr/X11R6/lib. > > My ld.so.conf is: > > /usr/include > /usr/lib > /usr/local/include > /usr/local/lib > /usr/X11R6/lib > /usr/X11R6/include > /usr/i486-slackware-linux/lib > /opt/kde/lib > /usr/lib/qt/lib > /usr/lib/seamonkey > > My system is Slackware 11.0. Any help will be > greatly appreciated. Thanks, > > Best regards, > > Stefano Palmeri > > --------------------------------------------------------------- > > Best regards, > > Stefano Palmeri > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Can you try the latest trunk? I have changed some things in the way X11 libraries are detected, and Laurent Carlier told me that it makes X11 correctly detected on OpenBSD. If it fixes the problem, I will backport it to the next release of the 2.0 version. Thanks in advance, Regards, -- Benoit Minisini From henrique.ulbrich at ...626... Mon Jan 7 17:04:54 2008 From: henrique.ulbrich at ...626... (Henrique Cesar Ulbrich) Date: Mon, 7 Jan 2008 14:04:54 -0200 Subject: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 In-Reply-To: <7259b5ae0801070527n48f2aa11o5909b1b32290db20@...627...> References: <477BD3FF.5000807@...221...> <7259b5ae0801070527n48f2aa11o5909b1b32290db20@...627...> Message-ID: <200801071404.54707.henrique.ulbrich@...626...> 2008/1/7, javier romero : > > Ok. i do this. i purge gambas 2.0 and re install, there is not error, but > > when i try to run any example all saids me that can not load the class > > and the name of the form, in this moment i erase all gambas2 on my system > > and i am compiling version 2,0 I'm having the EXACT SAME ISSUE. -- Henrique Cesar Ulbrich henrique.ulbrich at ...626... HELP ME! CLICK HERE: http://dascouvecity.myminicity.com/ind From rospolosco at ...152... Mon Jan 7 17:50:36 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 7 Jan 2008 17:50:36 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <200801071707.34800.gambas@...1...> References: <200801071559.39299.rolf.frogs@...221...> <200801071703.54107.rospolosco@...152...> <200801071707.34800.gambas@...1...> Message-ID: <200801071750.36157.rospolosco@...152...> Alle 17:07, luned? 7 gennaio 2008, Benoit Minisini ha scritto: > On lundi 7 janvier 2008, Stefano Palmeri wrote: > > Alle 16:51, luned? 7 gennaio 2008, Benoit Minisini ha scritto: > > > On lundi 7 janvier 2008, manuel viet wrote: > > > > Rolf Schmidt wrote: > > > > > Hi, > > > > > > > > > > I have a problem with the release version of gambas2 and would like > > > > > to ask what is needed to compile/run this version. I had no > > > > > problems with compiling > > > > > gambas up to version 1.9.47 or so. > > > > > > > > > > Let me tell what I did: > > > > > - Fetch the source code file form sf. > > > > > - configure as usual and get the message that modules mysql, > > > > > firebird, sqlite, > > > > > desktop and que will not be build. My call to config explicitly > > > > > disables mysql, firebird and sqlite - later I also disable the > > > > > desktop module, but > > > > > this seems to be ignored?! > > > > > The I install gambas from the sid-repository of Debian - my > > > > > computer runs with > > > > > Debian Lenny. > > > > > Starting the programm (from a terminal window), I got the message > > > > > "Library gb.desktop not found". > > > > > So I dont know, which new dependencies gambas2 has. > > > > > > > > Hello, > > > > > > > > I had about the same problems you faced ; I made some sloppy hacks > > > > around them > > > > but Stephano Palmeri came up with a clean solution to compile > > > > gb.desktop. Do $ export LDFLAGS="-L/usr/X11R6/lib" > > > > before > > > > $ ./configure > > > > > > > > It will only work if you have libXtst and libXtst-dev installed prior > > > > to compiling. > > > > > > > > Best luck, > > > > > > > > > > > > > > > > ----- > > > > -- > > > > Manuel Viet > > > > > > It would be cool if people send the output of './configure' and 'make' > > > when they have such problems, as specified on the web site. > > > > > > Regards, > > > > I sent this mail to the list on 19-12-2007, with subject "can't compile > > gb.desktop" showing the ./configure failure.: > > > > ------------------------------------------------------------------------- > >-- ------ Trying to compile RC2. > > > > gb.desktop: > > > > checking for IceConnectionNumber in -lICE... yes > > checking for XTestQueryExtension in -lXtst... no > > configure: WARNING: *** Desktop-neutral routines is disabled > > > > Well, libXtst.so is installed in /usr/X11R6/lib. > > > > My ld.so.conf is: > > > > /usr/include > > /usr/lib > > /usr/local/include > > /usr/local/lib > > /usr/X11R6/lib > > /usr/X11R6/include > > /usr/i486-slackware-linux/lib > > /opt/kde/lib > > /usr/lib/qt/lib > > /usr/lib/seamonkey > > > > My system is Slackware 11.0. Any help will be > > greatly appreciated. Thanks, > > > > Best regards, > > > > Stefano Palmeri > > > > --------------------------------------------------------------- > > > > Best regards, > > > > Stefano Palmeri > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Can you try the latest trunk? I have changed some things in the way X11 > libraries are detected, and Laurent Carlier told me that it makes X11 > correctly detected on OpenBSD. > > If it fixes the problem, I will backport it to the next release of the 2.0 > version. > > Thanks in advance, > > Regards, Downloaded trunk revision 921. Result: checking for IceConnectionNumber in -lICE... yes checking for XTestQueryExtension in -lXtst... no configure: WARNING: *** Desktop-neutral routines is disabled Regards, Stefano Palmeri From gambas at ...1828... Mon Jan 7 17:56:40 2008 From: gambas at ...1828... (manuel viet) Date: Mon, 7 Jan 2008 08:56:40 -0800 (PST) Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <200801071750.36157.rospolosco@...152...> References: <200801071559.39299.rolf.frogs@...221...> <14668168.post@...1379...> <200801071651.46987.gambas@...1...> <200801071703.54107.rospolosco@...152...> <200801071707.34800.gambas@...1...> <200801071750.36157.rospolosco@...152...> Message-ID: <14670605.post@...1379...> Stefano Palmeri wrote: > > Downloaded trunk revision 921. > > Result: > > checking for IceConnectionNumber in -lICE... yes > checking for XTestQueryExtension in -lXtst... no > configure: WARNING: *** Desktop-neutral routines is disabled > > Do you have libXtst.pc in /lib/pkgconfig ? I don't, and it seems to be the root of the problem. ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Problems-with-gambas2-2.0-tp14667798p14670605.html Sent from the gambas-user mailing list archive at Nabble.com. From rospolosco at ...152... Mon Jan 7 18:02:01 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 7 Jan 2008 18:02:01 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <14670605.post@...1379...> References: <200801071559.39299.rolf.frogs@...221...> <200801071750.36157.rospolosco@...152...> <14670605.post@...1379...> Message-ID: <200801071802.01883.rospolosco@...152...> Alle 17:56, luned? 7 gennaio 2008, manuel viet ha scritto: > Stefano Palmeri wrote: > > Downloaded trunk revision 921. > > > > Result: > > > > checking for IceConnectionNumber in -lICE... yes > > checking for XTestQueryExtension in -lXtst... no > > configure: WARNING: *** Desktop-neutral routines is disabled > > Do you have libXtst.pc in /lib/pkgconfig ? I don't, and it seems > to be the root of the problem. > I don't have libXtst.pc, because that library in Slackware is installed as a part of X11 package and not as a separate thing. Stefano > > > ----- > -- > Manuel Viet From jredrejo at ...626... Mon Jan 7 18:03:45 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Mon, 7 Jan 2008 18:03:45 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <14670605.post@...1379...> References: <200801071559.39299.rolf.frogs@...221...> <14668168.post@...1379...> <200801071651.46987.gambas@...1...> <200801071703.54107.rospolosco@...152...> <200801071707.34800.gambas@...1...> <200801071750.36157.rospolosco@...152...> <14670605.post@...1379...> Message-ID: <8eb28a500801070903h12acc7embca1b8206ed1c75@...627...> If you take a look at http://packages.debian.org/source/sid/gambas2 you'll see you need libxtst-dev installed in your system to compile version 2.0. If you do it gb.desktop will be compiled without any problem and don't need any other hack in Debian sid/lenny. The problem you had is because you haven't installed that package. Cheers. 2008/1/7, manuel viet : > > > > Stefano Palmeri wrote: > > > > Downloaded trunk revision 921. > > > > Result: > > > > checking for IceConnectionNumber in -lICE... yes > > checking for XTestQueryExtension in -lXtst... no > > configure: WARNING: *** Desktop-neutral routines is disabled > > > > > > Do you have libXtst.pc in /lib/pkgconfig ? I don't, and it seems > to be the root of the problem. > > > > ----- > -- > Manuel Viet > -- > View this message in context: > http://www.nabble.com/Problems-with-gambas2-2.0-tp14667798p14670605.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jredrejo at ...626... Mon Jan 7 18:07:38 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Mon, 7 Jan 2008 18:07:38 +0100 Subject: [Gambas-user] Gambas on 64 Bit system In-Reply-To: <7259b5ae0801070530j651f170fyb0a6dfed39ba2a1c@...627...> References: <477BD3FF.5000807@...221...> <200801031112.22197.gambas@...1...> <477E5522.7030201@...221...> <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> <4781D0FE.3000503@...221...> <8eb28a500801070012w472db34ap69ecb4e174d9101e@...627...> <7259b5ae0801070530j651f170fyb0a6dfed39ba2a1c@...627...> Message-ID: <8eb28a500801070907r275e0e3eo97f715ef89a460de@...627...> 2008/1/7, Daniel Campos : > > 2008/1/7, Jos? Luis Redrejo : > > gambas2 , but I still don't see why there should be any difference with > this > > or with any other 32 bits application. > > In a 64 bits system pointers to memory use 8 bytes instead of 4 bytes, > I think, so the structures of any Gambas handle would use more memory > if compiled natively. > I know that, but running a PAE system you're running a 32 bits system with a special option in the kernel to paginate (and use) more than 4 gB of memory, but you're still running a 32 bits system, not a 64 bits system. It's the current solution for many people who need gambas or run the flash plugin: install a 32 bits OS on a 64 bits system. Regards. From rospolosco at ...152... Mon Jan 7 18:08:21 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 7 Jan 2008 18:08:21 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <8eb28a500801070903h12acc7embca1b8206ed1c75@...627...> References: <200801071559.39299.rolf.frogs@...221...> <14670605.post@...1379...> <8eb28a500801070903h12acc7embca1b8206ed1c75@...627...> Message-ID: <200801071808.21285.rospolosco@...152...> Alle 18:03, luned? 7 gennaio 2008, Jos? Luis Redrejo ha scritto: > If you take a look at http://packages.debian.org/source/sid/gambas2 you'll > see you need libxtst-dev > installed in your system > to compile version > 2.0. If you do it gb.desktop will be compiled without any problem and don't > need any other hack in Debian sid/lenny. > > The problem you had is because you haven't installed that package. > > Cheers. You missed a lot of the discussion. :-) Stefano > > 2008/1/7, manuel viet : > > Stefano Palmeri wrote: > > > Downloaded trunk revision 921. > > > > > > Result: > > > > > > checking for IceConnectionNumber in -lICE... yes > > > checking for XTestQueryExtension in -lXtst... no > > > configure: WARNING: *** Desktop-neutral routines is disabled > > > > Do you have libXtst.pc in /lib/pkgconfig ? I don't, and it seems > > to be the root of the problem. > > > > > > > > ----- > > -- > > Manuel Viet > > -- > > View this message in context: > > http://www.nabble.com/Problems-with-gambas2-2.0-tp14667798p14670605.html > > Sent from the gambas-user mailing list archive at Nabble.com. > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > >ace _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rolf.frogs at ...221... Mon Jan 7 18:15:44 2008 From: rolf.frogs at ...221... (rolf) Date: Mon, 7 Jan 2008 18:15:44 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <200801071602.13882.gambas@...1...> References: <200801071559.39299.rolf.frogs@...221...> <200801071602.13882.gambas@...1...> Message-ID: <200801071815.44933.rolf.frogs@...221...> HI Benoit,: > > I have a problem with the release version of gambas2 and would like to > > ask what is needed to compile/run this version. I had no problems with > > compiling gambas up to version 1.9.47 or so. > > > > Let me tell what I did: > > - Fetch the source code file form sf. > > - configure as usual and get the message that modules mysql, firebird, > > sqlite, desktop and que will not be build. My call to config explicitly > > disables mysql, firebird and sqlite - later I also disable the desktop > > module, but this seems to be ignored?! > > The I install gambas from the sid-repository of Debian - my computer runs > > with Debian Lenny. > > Starting the programm (from a terminal window), I got the message > > "Library gb.desktop not found". > > So I dont know, which new dependencies gambas2 has. > > > > Please help - I prefer compiling. > > > > The gb.desktop component is needed. It requires X11 library and the Xtst > library too. > Many thanks for your response, but I still don't know which of the lot of x-libs are needed. Below is a list of x-libs (developer versions) Debian offers. I an i is written in the first column the lib is installed. schleppi:~/gambas2-2.0.0# aptitude search x11 | grep dev p libghc6-x11-dev - Haskell X11 binding for GHC p libgl1-mesa-swx11-dev - A free implementation of the OpenGL API -- p libgrafx11-1-dev - Cernlib library interface to X11 and p libgtkextra-x11-2.0-dev - A useful set of widgets for GTK+ (developm i libx11-dev - X11 client-side library (development p mesa-swx11-source - Mesa software rasteriser source -- develop p x11proto-bigreqs-dev - X11 Big Requests extension wire protocol i x11proto-composite-dev - X11 Composite extension wire protocol i x11proto-core-dev - X11 core wire protocol and auxiliary heade i x11proto-damage-dev - X11 Damage extension wire protocol p x11proto-dmx-dev - X11 Distributed Multihead X extension wire p x11proto-evie-dev - X11 Event Interception extension wire prot i x11proto-fixes-dev - X11 Fixes extension wire protocol p x11proto-fontcache-dev - X11 font cache extension wire protocol p x11proto-fonts-dev - X11 font extension wire protocol p x11proto-gl-dev - X11 OpenGL extension wire protocol i x11proto-input-dev - X11 Input extension wire protocol i x11proto-kb-dev - X11 XKB extension wire protocol p x11proto-print-dev - X11 Printing extension (Xprint) wire proto i x11proto-randr-dev - X11 RandR extension wire protocol i x11proto-record-dev - X11 Record extension wire protocol i x11proto-render-dev - X11 Render extension wire protocol i x11proto-resource-dev - X11 Resource extension wire protocol i x11proto-scrnsaver-dev - X11 Screen Saver extension wire protocol p x11proto-trap-dev - X11 Trap extension wire protocol p x11proto-video-dev - X11 Video extension wire protocol p x11proto-xcmisc-dev - X11 XC-Miscellaneous extension wire protoc i x11proto-xext-dev - X11 various extension wire protocol p x11proto-xf86bigfont-dev - X11 Big Fonts extension wire protocol p x11proto-xf86dga-dev - X11 Direct Graphics Access extension wire p x11proto-xf86dri-dev - X11 DRI extension wire protocol p x11proto-xf86misc-dev - X11 XFree86-Miscellaneous extension wire p p x11proto-xf86vidmode-dev - X11 Video Mode extension wire protocol i x11proto-xinerama-dev - X11 Xinerama extension wire protocol After running .configure -C --disable-gtk --disable-sqlite3 --disable-sqlite2 --disable-sqlite --disable-firebird --enable-kde I've got the mssage: THESE COMPONENTS ARE DISABLED: - gb.db.firebird - gb.db.mysql - gb.db.sqlite2 - gb.db.sqlite3 - gb.desktop - gb.gtk.svg - gb.qte So why it still lists the disabled modules? Fine regards Rolf From dcamposf at ...626... Mon Jan 7 18:30:02 2008 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 7 Jan 2008 18:30:02 +0100 Subject: [Gambas-user] Gambas on 64 Bit system In-Reply-To: <8eb28a500801070907r275e0e3eo97f715ef89a460de@...627...> References: <477BD3FF.5000807@...221...> <200801031112.22197.gambas@...1...> <477E5522.7030201@...221...> <8eb28a500801041132v50b1aa49i62deab60941ce332@...627...> <4781D0FE.3000503@...221...> <8eb28a500801070012w472db34ap69ecb4e174d9101e@...627...> <7259b5ae0801070530j651f170fyb0a6dfed39ba2a1c@...627...> <8eb28a500801070907r275e0e3eo97f715ef89a460de@...627...> Message-ID: <7259b5ae0801070930t7e26fd34le8803b2285f97400@...627...> > > I know that, but running a PAE system you're running a 32 bits system with a > special option in the kernel to paginate (and use) more than 4 gB of memory, > but you're still running a 32 bits system, not a 64 bits system. It's the > current solution for many people who need gambas or run the flash plugin: > install a 32 bits OS on a 64 bits system. > Then may be PAE needs to allocate memory for itself, as it is managing memory and virtual pointers in a different way... Daniel From gambas at ...1... Mon Jan 7 18:34:40 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Jan 2008 18:34:40 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <200801071750.36157.rospolosco@...152...> References: <200801071559.39299.rolf.frogs@...221...> <200801071707.34800.gambas@...1...> <200801071750.36157.rospolosco@...152...> Message-ID: <200801071834.41165.gambas@...1...> On lundi 7 janvier 2008, Stefano Palmeri wrote: > Downloaded trunk revision 921. > > Result: > > checking for IceConnectionNumber in -lICE... yes > checking for XTestQueryExtension in -lXtst... no > configure: WARNING: *** Desktop-neutral routines is disabled > > Regards, > > Stefano Palmeri > Did you do a ./reconf inside gb.desktop? Can you send me the config.log file? -- Benoit Minisini From rospolosco at ...152... Mon Jan 7 18:46:32 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 7 Jan 2008 18:46:32 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <200801071834.41165.gambas@...1...> References: <200801071559.39299.rolf.frogs@...221...> <200801071750.36157.rospolosco@...152...> <200801071834.41165.gambas@...1...> Message-ID: <200801071846.32515.rospolosco@...152...> Alle 18:34, luned? 7 gennaio 2008, Benoit Minisini ha scritto: > On lundi 7 janvier 2008, Stefano Palmeri wrote: > > Downloaded trunk revision 921. > > > > Result: > > > > checking for IceConnectionNumber in -lICE... yes > > checking for XTestQueryExtension in -lXtst... no > > configure: WARNING: *** Desktop-neutral routines is disabled > > > > Regards, > > > > Stefano Palmeri > > Did you do a ./reconf inside gb.desktop? > > Can you send me the config.log file? I did ./reconf-all in trunk dir. I've attached general config.log and gb.desktop config.log Stefano -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: text/x-log Size: 11509 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.desktop-config.log Type: text/x-log Size: 41755 bytes Desc: not available URL: From rolf.frogs at ...221... Mon Jan 7 18:53:03 2008 From: rolf.frogs at ...221... (rolf) Date: Mon, 7 Jan 2008 18:53:03 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 (solved) In-Reply-To: <200801071602.13882.gambas@...1...> References: <200801071559.39299.rolf.frogs@...221...> <200801071602.13882.gambas@...1...> Message-ID: <200801071853.03950.rolf.frogs@...221...> Hi Benoit, > > I have a problem with the release version of gambas2 and would like to > > ask what is needed to compile/run this version. I had no problems with > > compiling gambas up to version 1.9.47 or so. > > > > Let me tell what I did: > > - Fetch the source code file form sf. > > - configure as usual and get the message that modules mysql, firebird, > > sqlite, desktop and que will not be build. My call to config explicitly > > disables mysql, firebird and sqlite - later I also disable the desktop > > module, but this seems to be ignored?! > > The I install gambas from the sid-repository of Debian - my computer runs > > with Debian Lenny. > > Starting the programm (from a terminal window), I got the message > > "Library gb.desktop not found". > > So I dont know, which new dependencies gambas2 has. > > > > Please help - I prefer compiling. > > > > Fine regards > > Rolf > > The gb.desktop component is needed. It requires X11 library and the Xtst > library too. > > Regards, I found, that the setting export LDFLAGS="-L/usr/X11R6/lib" was wrong for my system. Changing it to "/usr/lib" it works. Many thanks Rolf From gambas.fr at ...626... Mon Jan 7 21:04:17 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 7 Jan 2008 21:04:17 +0100 Subject: [Gambas-user] For anyone interested in the TextEdit control In-Reply-To: <200801071355.46416.rterry@...1822...> References: <200801071355.46416.rterry@...1822...> Message-ID: <200801072104.17733.gambas.fr@...626...> Le Monday 07 January 2008 03:55:46 richard terry, vous avez ?crit?: > http://doc.trolltech.com/3.3/qtextedit.html > > contains detailed info some of which I suppose applies to the wrapped > gambas version. > > Regards > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user no From gambas.fr at ...626... Mon Jan 7 21:05:44 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 7 Jan 2008 21:05:44 +0100 Subject: [Gambas-user] Little improvement In-Reply-To: <4781FEE8.8050103@...1237...> References: <4781FEE8.8050103@...1237...> Message-ID: <200801072105.44146.gambas.fr@...626...> Le Monday 07 January 2008 11:28:56 Leonardo Miliani, vous avez ?crit?: > I would suggest a little improvement to Benoit for Gambas :-) > > Why the message windows that are opened using Message.xxxx command don't > have any icon? > It would be nice if the message window checked if the calling form has > an icon and used it in place of the generic window form icon, doesn't it? it depend of qt or gtk From gambas at ...1... Mon Jan 7 21:12:23 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Jan 2008 21:12:23 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <200801071846.32515.rospolosco@...152...> References: <200801071559.39299.rolf.frogs@...221...> <200801071834.41165.gambas@...1...> <200801071846.32515.rospolosco@...152...> Message-ID: <200801072112.23703.gambas@...1...> On lundi 7 janvier 2008, Stefano Palmeri wrote: > Alle 18:34, luned? 7 gennaio 2008, Benoit Minisini ha scritto: > > On lundi 7 janvier 2008, Stefano Palmeri wrote: > > > Downloaded trunk revision 921. > > > > > > Result: > > > > > > checking for IceConnectionNumber in -lICE... yes > > > checking for XTestQueryExtension in -lXtst... no > > > configure: WARNING: *** Desktop-neutral routines is disabled > > > > > > Regards, > > > > > > Stefano Palmeri > > > > Did you do a ./reconf inside gb.desktop? > > > > Can you send me the config.log file? > > I did ./reconf-all in trunk dir. > I've attached general config.log and gb.desktop config.log > > Stefano Can you try to replace the gb.desktop/configure.ac file by this file and try again? Send me the config.log file if it fails. Thanks in advance! Regards, -- Benoit Minisini -------------- next part -------------- dnl ---- configure.ac for gb.desktop AC_INIT(configure.ac) GB_INIT(gb.desktop) AC_PROG_LIBTOOL GB_CHECK_XWINDOW AC_CHECK_LIB(Xtst, XTestQueryExtension, [X_LIBS="$X_LIBS -lXtst"], [touch DISABLED], [$X_LIBS]) GB_COMPONENT( desktop, DESKTOP, [Desktop-neutral routines], [src], [], [], [$C_LIB $THREAD_LIB $X_LIBS], [$THREAD_INC ]) AC_OUTPUT( Makefile src/Makefile ) From cjro99 at ...67... Mon Jan 7 22:22:55 2008 From: cjro99 at ...67... (javier romero) Date: Mon, 7 Jan 2008 21:22:55 +0000 Subject: [Gambas-user] database manager In-Reply-To: <200801071536.49087.gambas@...1...> References: <477BD3FF.5000807@...221...> <7259b5ae0801070527n48f2aa11o5909b1b32290db20@...627...> <200801071536.49087.gambas@...1...> Message-ID: dont crash, and not error is sent to the console, nothing only dont load the second part of the databese-manager i can choose a database and a table but when i try to see the data clicking rigth with the mouse and choosing "edit" nothing happens and not error is sent to the program or the console. Im using ubuntu 7,10 and Gnome 2.20.1 Thanks Javier ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Mon, 7 Jan 2008 15:36:49 +0100 > Subject: Re: [Gambas-user] database manager > > On lundi 7 janvier 2008, javier romero wrote: >> Database manager is Ubuntu 7.10 dont works whe i try to edit a Table, this >> happens in 1.9.91 and 1.9.92 and now in 2.0 >> >> Thanks >> Javier >> > > "Don't work" is not enough information! > > What happens exactly? An interpreter crash? A database manager bug with an > error message? Which database backend do you use? Do you run Ubuntu with > Gnome? In that case, what version of GTK+ is installed on Ubuntu 7.10? > > Please give as much details as possible so that I could fix the problem... > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Tecnolog?a, moda, motor, viajes,?suscr?bete a nuestros boletines para estar siempre a la ?ltima Guapos y guapas, clips musicales y estrenos de cine. From rterry at ...1822... Mon Jan 7 22:32:13 2008 From: rterry at ...1822... (richard terry) Date: Tue, 8 Jan 2008 08:32:13 +1100 Subject: [Gambas-user] Printing from the TextEdit html control In-Reply-To: <200801071314.38254.gambas@...1...> References: <200801071805.07590.rterry@...1822...> <200801071314.38254.gambas@...1...> Message-ID: <200801080832.13544.rterry@...1822...> I did peruse the printing examples and read the doc's and tried something like that. It sent stuff to the printer, but it was all scrunched almost overwriting all the lines. Tried combinations of stuff like this: Printer.Setup() draw.Begin(Printer) rth = draw.RichTextHeight(textedit1.text) rtw = draw.RichTextWidth(textedit1.text) draw.RichText(TextEdit1.text, 0, 0, rth, rtw) ' draw.RichText(TextEdit1.Text, 0, 0, 2000, 2000) draw.end Outputted the text but virtually all on one line. Maybe someone can give me more explicit example. Richard On Mon, 7 Jan 2008 11:14:38 pm you wrote: > On lundi 7 janvier 2008, richard terry wrote: > > Is this possible? > > > > Following the printing example from the examples, it only prints the > > result of textedit.text (which of course is the raw html code). > > > > Has anyone succeeded in printing the visual output from this control? > > > > Thanks > > > > Richard > > Use the Draw.RichText*() methods while drawing on the Printer object. > > Regards, From rospolosco at ...152... Mon Jan 7 23:58:58 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 7 Jan 2008 23:58:58 +0100 Subject: [Gambas-user] Problems with gambas2-2.0 In-Reply-To: <200801072112.23703.gambas@...1...> References: <200801071559.39299.rolf.frogs@...221...> <200801071846.32515.rospolosco@...152...> <200801072112.23703.gambas@...1...> Message-ID: <200801072358.58496.rospolosco@...152...> Alle 21:12, luned? 7 gennaio 2008, Benoit Minisini ha scritto: > On lundi 7 janvier 2008, Stefano Palmeri wrote: > > Alle 18:34, luned? 7 gennaio 2008, Benoit Minisini ha scritto: > > > On lundi 7 janvier 2008, Stefano Palmeri wrote: > > > > Downloaded trunk revision 921. > > > > > > > > Result: > > > > > > > > checking for IceConnectionNumber in -lICE... yes > > > > checking for XTestQueryExtension in -lXtst... no > > > > configure: WARNING: *** Desktop-neutral routines is disabled > > > > > > > > Regards, > > > > > > > > Stefano Palmeri > > > > > > Did you do a ./reconf inside gb.desktop? > > > > > > Can you send me the config.log file? > > > > I did ./reconf-all in trunk dir. > > I've attached general config.log and gb.desktop config.log > > > > Stefano > > Can you try to replace the gb.desktop/configure.ac file by this file and > try again? Send me the config.log file if it fails. > > Thanks in advance! > > Regards, OK! It works *perfectly*. Configure and compile with no errors. Anyway, I've attached the gb.desktop config.log, in case you want take a look. Regards, Stefano Palmeri -------------- next part -------------- This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = macondo uname -m = i686 uname -r = 2.6.22.15 uname -s = Linux uname -v = #1 Sun Dec 16 09:36:01 CET 2007 /usr/bin/uname -p = athlon-4 /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/X11R6/bin PATH: /usr/games PATH: /opt/www/htdig/bin PATH: /usr/java/bin PATH: /opt/kde/bin PATH: /usr/lib/qt/bin PATH: /usr/share/unsermake PATH: /home/stefano/bin PATH: /sbin PATH: /usr/sbin PATH: /usr/local/sbin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2016: checking for a BSD-compatible install configure:2072: result: /usr/bin/ginstall -c configure:2083: checking whether build environment is sane configure:2126: result: yes configure:2191: checking for gawk configure:2207: found /usr/bin/gawk configure:2218: result: gawk configure:2229: checking whether make sets $(MAKE) configure:2250: result: yes configure:2274: checking build system type configure:2292: result: i686-pc-linux-gnu configure:2326: checking for style of include used by make configure:2354: result: GNU configure:2382: checking whether to enable maintainer-specific portions of Makefiles configure:2391: result: no configure:2592: checking host system type configure:2607: result: i686-pc-linux-gnu configure:2752: checking for gcc configure:2768: found /usr/bin/gcc configure:2779: result: gcc configure:3017: checking for C compiler version configure:3024: gcc --version >&5 gcc (GCC) 3.4.6 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3027: $? = 0 configure:3034: gcc -v >&5 Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.6/specs Configured with: ../gcc-3.4.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux Thread model: posix gcc version 3.4.6 configure:3037: $? = 0 configure:3044: gcc -V >&5 gcc: `-V' option must have argument configure:3047: $? = 1 configure:3070: checking for C compiler default output file name configure:3097: gcc conftest.c >&5 configure:3100: $? = 0 configure:3138: result: a.out configure:3155: checking whether the C compiler works configure:3165: ./a.out configure:3168: $? = 0 configure:3185: result: yes configure:3192: checking whether we are cross compiling configure:3194: result: no configure:3197: checking for suffix of executables configure:3204: gcc -o conftest conftest.c >&5 configure:3207: $? = 0 configure:3231: result: configure:3237: checking for suffix of object files configure:3263: gcc -c conftest.c >&5 configure:3266: $? = 0 configure:3289: result: o configure:3293: checking whether we are using the GNU C compiler configure:3322: gcc -c conftest.c >&5 configure:3328: $? = 0 configure:3345: result: yes configure:3350: checking whether gcc accepts -g configure:3380: gcc -c -g conftest.c >&5 configure:3386: $? = 0 configure:3485: result: yes configure:3502: checking for gcc option to accept ISO C89 configure:3576: gcc -c -g -O2 conftest.c >&5 configure:3582: $? = 0 configure:3605: result: none needed configure:3625: checking dependency style of gcc configure:3715: result: gcc3 configure:3737: checking how to run the C preprocessor configure:3777: gcc -E conftest.c configure:3783: $? = 0 configure:3814: gcc -E conftest.c conftest.c:14:28: ac_nonexistent.h: No such file or directory configure:3820: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gambas3-gb-desktop" | #define VERSION "2.99.0" | #define GAMBAS_FULL_VERSION 0x02990000 | #define GAMBAS_PCODE_VERSION 0x02000000 | #define GAMBAS_VERSION 3 | #define GAMBAS_VERSION_STRING "3" | /* end confdefs.h. */ | #include configure:3853: result: gcc -E configure:3882: gcc -E conftest.c configure:3888: $? = 0 configure:3919: gcc -E conftest.c conftest.c:14:28: ac_nonexistent.h: No such file or directory configure:3925: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gambas3-gb-desktop" | #define VERSION "2.99.0" | #define GAMBAS_FULL_VERSION 0x02990000 | #define GAMBAS_PCODE_VERSION 0x02000000 | #define GAMBAS_VERSION 3 | #define GAMBAS_VERSION_STRING "3" | /* end confdefs.h. */ | #include configure:4020: checking for g++ configure:4036: found /usr/bin/g++ configure:4047: result: g++ configure:4078: checking for C++ compiler version configure:4085: g++ --version >&5 g++ (GCC) 3.4.6 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:4088: $? = 0 configure:4095: g++ -v >&5 Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.6/specs Configured with: ../gcc-3.4.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux Thread model: posix gcc version 3.4.6 configure:4098: $? = 0 configure:4105: g++ -V >&5 g++: `-V' option must have argument configure:4108: $? = 1 configure:4111: checking whether we are using the GNU C++ compiler configure:4140: g++ -c conftest.cpp >&5 configure:4146: $? = 0 configure:4163: result: yes configure:4168: checking whether g++ accepts -g configure:4198: g++ -c -g conftest.cpp >&5 configure:4204: $? = 0 configure:4303: result: yes configure:4328: checking dependency style of g++ configure:4418: result: gcc3 configure:4448: checking for a BSD-compatible install configure:4504: result: /usr/bin/ginstall -c configure:4515: checking whether ln -s works configure:4519: result: yes configure:4526: checking whether make sets $(MAKE) configure:4547: result: yes configure:4570: checking for setenv configure:4626: gcc -o conftest -g -O2 conftest.c >&5 configure:4632: $? = 0 configure:4650: result: yes configure:4570: checking for unsetenv configure:4626: gcc -o conftest -g -O2 conftest.c >&5 configure:4632: $? = 0 configure:4650: result: yes configure:4570: checking for getdomainname configure:4626: gcc -o conftest -g -O2 conftest.c >&5 configure:4632: $? = 0 configure:4650: result: yes configure:4570: checking for getpt configure:4626: gcc -o conftest -g -O2 conftest.c >&5 configure:4632: $? = 0 configure:4650: result: yes configure:4672: checking for ccache configure:4690: found /usr/bin/ccache configure:4702: result: /usr/bin/ccache configure:4717: checking for main in -lm configure:4746: ccache gcc -o conftest -g -O2 conftest.c -lm >&5 configure:4752: $? = 0 configure:4770: result: yes configure:4776: checking for main in -lz configure:4805: ccache gcc -o conftest -g -O2 conftest.c -lz >&5 configure:4811: $? = 0 configure:4829: result: yes configure:4840: checking for main in -lgcc_s configure:4869: ccache gcc -o conftest -g -O2 conftest.c -lgcc_s >&5 configure:4875: $? = 0 configure:4893: result: yes configure:4899: checking for main in -lstdc++ configure:4928: ccache gcc -o conftest -g -O2 conftest.c -lstdc++ >&5 configure:4934: $? = 0 configure:4952: result: yes configure:4962: checking target system configure:5027: result: LINUX configure:5031: checking which extension is used for shared libraries configure:5063: result: .so configure:5088: checking for threading compiler options configure:5090: result: -D_REENTRANT configure:5092: checking for threading linker options configure:5094: result: -lpthread configure:5112: checking for mathematic libraries configure:5114: result: -lm configure:5165: checking CFLAGS for gcc -fvisibility=hidden configure:5202: ccache gcc -c -g -O2 -pedantic -fvisibility=hidden conftest.c >&5 cc1: error: unrecognized command line option "-fvisibility=hidden" configure:5208: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gambas3-gb-desktop" | #define VERSION "2.99.0" | #define GAMBAS_FULL_VERSION 0x02990000 | #define GAMBAS_PCODE_VERSION 0x02000000 | #define GAMBAS_VERSION 3 | #define GAMBAS_VERSION_STRING "3" | #define HAVE_SETENV 1 | #define HAVE_UNSETENV 1 | #define HAVE_GETDOMAINNAME 1 | #define HAVE_GETPT 1 | #define OS_LINUX 1 | #define SHARED_LIBRARY_EXT "so" | /* end confdefs.h. */ | | int | main () | { | return 0; | ; | return 0; | } configure:5232: result: no, unknown configure:5324: checking for a sed that does not truncate output configure:5380: result: /usr/bin/sed configure:5383: checking for grep that handles long lines and -e configure:5457: result: /usr/bin/grep configure:5462: checking for egrep configure:5540: result: /usr/bin/grep -E configure:5556: checking for ld used by ccache gcc configure:5623: result: /usr/i486-slackware-linux/bin/ld configure:5632: checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld configure:5647: result: yes configure:5652: checking for /usr/i486-slackware-linux/bin/ld option to reload object files configure:5659: result: -r configure:5677: checking for BSD-compatible nm configure:5726: result: /usr/bin/nm -B configure:5730: checking how to recognize dependent libraries configure:5916: result: pass_all configure:6442: checking for ANSI C header files configure:6472: ccache gcc -c conftest.c >&5 configure:6478: $? = 0 configure:6577: ccache gcc -o conftest conftest.c >&5 configure:6580: $? = 0 configure:6586: ./conftest configure:6589: $? = 0 configure:6606: result: yes configure:6630: checking for sys/types.h configure:6651: ccache gcc -c conftest.c >&5 configure:6657: $? = 0 configure:6673: result: yes configure:6630: checking for sys/stat.h configure:6651: ccache gcc -c conftest.c >&5 configure:6657: $? = 0 configure:6673: result: yes configure:6630: checking for stdlib.h configure:6651: ccache gcc -c conftest.c >&5 configure:6657: $? = 0 configure:6673: result: yes configure:6630: checking for string.h configure:6651: ccache gcc -c conftest.c >&5 configure:6657: $? = 0 configure:6673: result: yes configure:6630: checking for memory.h configure:6651: ccache gcc -c conftest.c >&5 configure:6657: $? = 0 configure:6673: result: yes configure:6630: checking for strings.h configure:6651: ccache gcc -c conftest.c >&5 configure:6657: $? = 0 configure:6673: result: yes configure:6630: checking for inttypes.h configure:6651: ccache gcc -c conftest.c >&5 configure:6657: $? = 0 configure:6673: result: yes configure:6630: checking for stdint.h configure:6651: ccache gcc -c conftest.c >&5 configure:6657: $? = 0 configure:6673: result: yes configure:6630: checking for unistd.h configure:6651: ccache gcc -c conftest.c >&5 configure:6657: $? = 0 configure:6673: result: yes configure:6700: checking dlfcn.h usability configure:6717: ccache gcc -c conftest.c >&5 configure:6723: $? = 0 configure:6737: result: yes configure:6741: checking dlfcn.h presence configure:6756: gcc -E conftest.c configure:6762: $? = 0 configure:6776: result: yes configure:6804: checking for dlfcn.h configure:6812: result: yes configure:6835: checking how to run the C++ preprocessor configure:6871: ccache g++ -E conftest.cpp configure:6877: $? = 0 configure:6908: ccache g++ -E conftest.cpp conftest.cpp:31:28: ac_nonexistent.h: No such file or directory configure:6914: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gambas3-gb-desktop" | #define VERSION "2.99.0" | #define GAMBAS_FULL_VERSION 0x02990000 | #define GAMBAS_PCODE_VERSION 0x02000000 | #define GAMBAS_VERSION 3 | #define GAMBAS_VERSION_STRING "3" | #define HAVE_SETENV 1 | #define HAVE_UNSETENV 1 | #define HAVE_GETDOMAINNAME 1 | #define HAVE_GETPT 1 | #define OS_LINUX 1 | #define SHARED_LIBRARY_EXT "so" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | #include configure:6947: result: ccache g++ -E configure:6976: ccache g++ -E conftest.cpp configure:6982: $? = 0 configure:7013: ccache g++ -E conftest.cpp conftest.cpp:31:28: ac_nonexistent.h: No such file or directory configure:7019: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gambas3-gb-desktop" | #define VERSION "2.99.0" | #define GAMBAS_FULL_VERSION 0x02990000 | #define GAMBAS_PCODE_VERSION 0x02000000 | #define GAMBAS_VERSION 3 | #define GAMBAS_VERSION_STRING "3" | #define HAVE_SETENV 1 | #define HAVE_UNSETENV 1 | #define HAVE_GETDOMAINNAME 1 | #define HAVE_GETPT 1 | #define OS_LINUX 1 | #define SHARED_LIBRARY_EXT "so" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | #include configure:7112: checking for g77 configure:7128: found /usr/bin/g77 configure:7139: result: g77 configure:7169: checking for Fortran 77 compiler version configure:7176: g77 --version >&5 GNU Fortran (GCC) 3.4.6 Copyright (C) 2006 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING or type the command `info -f g77 Copying'. configure:7179: $? = 0 configure:7186: g77 -v >&5 Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.6/specs Configured with: ../gcc-3.4.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux Thread model: posix gcc version 3.4.6 configure:7189: $? = 0 configure:7196: g77 -V >&5 g77: `-V' option must have argument configure:7199: $? = 1 configure:7207: checking whether we are using the GNU Fortran 77 compiler configure:7226: g77 -c conftest.F >&5 configure:7232: $? = 0 configure:7249: result: yes configure:7255: checking whether g77 accepts -g configure:7272: g77 -c -g conftest.f >&5 configure:7278: $? = 0 configure:7294: result: yes configure:7324: checking the maximum length of command line arguments configure:7436: result: 98304 configure:7448: checking command to parse /usr/bin/nm -B output from ccache gcc object configure:7553: ccache gcc -c conftest.c >&5 configure:7556: $? = 0 configure:7560: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm configure:7563: $? = 0 configure:7615: ccache gcc -o conftest conftest.c conftstm.o >&5 configure:7618: $? = 0 configure:7656: result: ok configure:7660: checking for objdir configure:7675: result: .libs configure:7767: checking for ar configure:7783: found /usr/bin/ar configure:7794: result: ar configure:7863: checking for ranlib configure:7879: found /usr/bin/ranlib configure:7890: result: ranlib configure:7959: checking for strip configure:7975: found /usr/bin/strip configure:7986: result: strip configure:8276: checking if ccache gcc supports -fno-rtti -fno-exceptions configure:8294: ccache gcc -c -fno-rtti -fno-exceptions conftest.c >&5 cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C configure:8298: $? = 0 configure:8311: result: no configure:8326: checking for ccache gcc option to produce PIC configure:8558: result: -fPIC configure:8566: checking if ccache gcc PIC flag -fPIC works configure:8584: ccache gcc -c -fPIC -DPIC conftest.c >&5 configure:8588: $? = 0 configure:8601: result: yes configure:8629: checking if ccache gcc static flag -static works configure:8657: result: yes configure:8667: checking if ccache gcc supports -c -o file.o configure:8688: ccache gcc -c -o out/conftest2.o conftest.c >&5 configure:8692: $? = 0 configure:8714: result: yes configure:8740: checking whether the ccache gcc linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries configure:9720: result: yes configure:9741: checking whether -lc should be explicitly linked in configure:9746: ccache gcc -c conftest.c >&5 configure:9749: $? = 0 configure:9764: ccache gcc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep -lc \>/dev/null 2\>\&1 configure:9767: $? = 0 configure:9779: result: no configure:9787: checking dynamic linker characteristics configure:10389: result: GNU/Linux ld.so configure:10398: checking how to hardcode library paths into programs configure:10423: result: immediate configure:10437: checking whether stripping libraries is possible configure:10442: result: yes configure:10566: checking for shl_load configure:10622: ccache gcc -o conftest conftest.c >&5 /tmp/ccCsvOAW.o(.text+0x1d): In function `main': : undefined reference to `shl_load' collect2: ld returned 1 exit status configure:10628: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gambas3-gb-desktop" | #define VERSION "2.99.0" | #define GAMBAS_FULL_VERSION 0x02990000 | #define GAMBAS_PCODE_VERSION 0x02000000 | #define GAMBAS_VERSION 3 | #define GAMBAS_VERSION_STRING "3" | #define HAVE_SETENV 1 | #define HAVE_UNSETENV 1 | #define HAVE_GETDOMAINNAME 1 | #define HAVE_GETPT 1 | #define OS_LINUX 1 | #define SHARED_LIBRARY_EXT "so" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | /* Define shl_load to an innocuous variant, in case declares shl_load. | For example, HP-UX 11i declares gettimeofday. */ | #define shl_load innocuous_shl_load | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char shl_load (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef shl_load | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char shl_load (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_shl_load || defined __stub___shl_load | choke me | #endif | | int | main () | { | return shl_load (); | ; | return 0; | } configure:10645: result: no configure:10650: checking for shl_load in -ldld configure:10685: ccache gcc -o conftest conftest.c -ldld >&5 /usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld: cannot find -ldld collect2: ld returned 1 exit status configure:10691: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gambas3-gb-desktop" | #define VERSION "2.99.0" | #define GAMBAS_FULL_VERSION 0x02990000 | #define GAMBAS_PCODE_VERSION 0x02000000 | #define GAMBAS_VERSION 3 | #define GAMBAS_VERSION_STRING "3" | #define HAVE_SETENV 1 | #define HAVE_UNSETENV 1 | #define HAVE_GETDOMAINNAME 1 | #define HAVE_GETPT 1 | #define OS_LINUX 1 | #define SHARED_LIBRARY_EXT "so" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char shl_load (); | int | main () | { | return shl_load (); | ; | return 0; | } configure:10709: result: no configure:10714: checking for dlopen configure:10770: ccache gcc -o conftest conftest.c >&5 /tmp/ccoD12Pb.o(.text+0x1d): In function `main': : undefined reference to `dlopen' collect2: ld returned 1 exit status configure:10776: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gambas3-gb-desktop" | #define VERSION "2.99.0" | #define GAMBAS_FULL_VERSION 0x02990000 | #define GAMBAS_PCODE_VERSION 0x02000000 | #define GAMBAS_VERSION 3 | #define GAMBAS_VERSION_STRING "3" | #define HAVE_SETENV 1 | #define HAVE_UNSETENV 1 | #define HAVE_GETDOMAINNAME 1 | #define HAVE_GETPT 1 | #define OS_LINUX 1 | #define SHARED_LIBRARY_EXT "so" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | /* Define dlopen to an innocuous variant, in case declares dlopen. | For example, HP-UX 11i declares gettimeofday. */ | #define dlopen innocuous_dlopen | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char dlopen (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef dlopen | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char dlopen (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_dlopen || defined __stub___dlopen | choke me | #endif | | int | main () | { | return dlopen (); | ; | return 0; | } configure:10793: result: no configure:10798: checking for dlopen in -ldl configure:10833: ccache gcc -o conftest conftest.c -ldl >&5 configure:10839: $? = 0 configure:10857: result: yes configure:11026: checking whether a program can dlopen itself configure:11100: ccache gcc -o conftest -DHAVE_DLFCN_H -Wl,--export-dynamic conftest.c -ldl >&5 configure:11103: $? = 0 configure:11121: result: yes configure:11126: checking whether a statically linked program can dlopen itself configure:11200: ccache gcc -o conftest -DHAVE_DLFCN_H -Wl,--export-dynamic -static conftest.c -ldl >&5 /tmp/ccu3QPBp.o(.text+0x36): In function `main': : warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking configure:11203: $? = 0 /lib/: cannot read file data: Is a directory configure:11221: result: no configure:11244: checking if libtool supports shared libraries configure:11246: result: yes configure:11249: checking whether to build shared libraries configure:11270: result: yes configure:11273: checking whether to build static libraries configure:11277: result: no configure:11370: creating libtool configure:11958: checking for ld used by ccache g++ configure:12025: result: /usr/i486-slackware-linux/bin/ld configure:12034: checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld configure:12049: result: yes configure:12100: checking whether the ccache g++ linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries configure:13074: result: yes configure:13096: ccache g++ -c conftest.cpp >&5 configure:13099: $? = 0 configure:13251: checking for ccache g++ option to produce PIC configure:13535: result: -fPIC configure:13543: checking if ccache g++ PIC flag -fPIC works configure:13561: ccache g++ -c -fPIC -DPIC conftest.cpp >&5 configure:13565: $? = 0 configure:13578: result: yes configure:13606: checking if ccache g++ static flag -static works configure:13634: result: yes configure:13644: checking if ccache g++ supports -c -o file.o configure:13665: ccache g++ -c -o out/conftest2.o conftest.cpp >&5 configure:13669: $? = 0 configure:13691: result: yes configure:13717: checking whether the ccache g++ linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries configure:13742: result: yes configure:13809: checking dynamic linker characteristics configure:14359: result: GNU/Linux ld.so configure:14368: checking how to hardcode library paths into programs configure:14393: result: immediate configure:14927: checking if libtool supports shared libraries configure:14929: result: yes configure:14932: checking whether to build shared libraries configure:14952: result: yes configure:14955: checking whether to build static libraries configure:14959: result: no configure:14969: checking for g77 option to produce PIC configure:15201: result: -fPIC configure:15209: checking if g77 PIC flag -fPIC works configure:15227: g77 -c -g -O2 -fPIC conftest.f >&5 configure:15231: $? = 0 configure:15244: result: yes configure:15272: checking if g77 static flag -static works configure:15300: result: yes configure:15310: checking if g77 supports -c -o file.o configure:15331: g77 -c -g -O2 -o out/conftest2.o conftest.f >&5 configure:15335: $? = 0 configure:15357: result: yes configure:15383: checking whether the g77 linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries configure:16343: result: yes configure:16410: checking dynamic linker characteristics configure:16960: result: GNU/Linux ld.so configure:16969: checking how to hardcode library paths into programs configure:16994: result: immediate configure:20569: checking for X configure:20804: result: libraries /usr/X11R6/lib, headers /usr/X11R6/include configure:20827: checking whether -R must be followed by a space configure:20853: ccache gcc -o conftest conftest.c -R/usr/X11R6/lib >&5 gcc: unrecognized option `-R/usr/X11R6/lib' configure:20859: $? = 0 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gambas3-gb-desktop" | #define VERSION "2.99.0" | #define GAMBAS_FULL_VERSION 0x02990000 | #define GAMBAS_PCODE_VERSION 0x02000000 | #define GAMBAS_VERSION 3 | #define GAMBAS_VERSION_STRING "3" | #define HAVE_SETENV 1 | #define HAVE_UNSETENV 1 | #define HAVE_GETDOMAINNAME 1 | #define HAVE_GETPT 1 | #define OS_LINUX 1 | #define SHARED_LIBRARY_EXT "so" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:20894: ccache gcc -o conftest conftest.c -R /usr/X11R6/lib >&5 gcc: unrecognized option `-R' /usr/X11R6/lib: file not recognized: Is a directory collect2: ld returned 1 exit status configure:20900: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gambas3-gb-desktop" | #define VERSION "2.99.0" | #define GAMBAS_FULL_VERSION 0x02990000 | #define GAMBAS_PCODE_VERSION 0x02000000 | #define GAMBAS_VERSION 3 | #define GAMBAS_VERSION_STRING "3" | #define HAVE_SETENV 1 | #define HAVE_UNSETENV 1 | #define HAVE_GETDOMAINNAME 1 | #define HAVE_GETPT 1 | #define OS_LINUX 1 | #define SHARED_LIBRARY_EXT "so" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:20913: result: neither works configure:20966: ccache gcc -o conftest conftest.c -L/usr/X11R6/lib -lX11 >&5 configure:20972: $? = 0 configure:21129: checking for gethostbyname configure:21185: ccache gcc -o conftest conftest.c >&5 configure:21191: $? = 0 configure:21208: result: yes configure:21353: checking for connect configure:21409: ccache gcc -o conftest conftest.c >&5 configure:21415: $? = 0 configure:21432: result: yes configure:21504: checking for remove configure:21560: ccache gcc -o conftest conftest.c >&5 configure:21566: $? = 0 configure:21583: result: yes configure:21655: checking for shmat configure:21711: ccache gcc -o conftest conftest.c >&5 configure:21717: $? = 0 configure:21734: result: yes configure:21815: checking for IceConnectionNumber in -lICE configure:21850: ccache gcc -o conftest -L/usr/X11R6/lib conftest.c -lICE >&5 configure:21856: $? = 0 configure:21874: result: yes configure:21896: checking for XTestQueryExtension in -lXtst configure:21931: ccache gcc -o conftest conftest.c -lXtst -lSM -lICE -L/usr/X11R6/lib >&5 configure:21937: $? = 0 configure:21955: result: yes configure:21981: checking for Desktop-neutral routines headers configure:22007: result: configure:22035: checking for Desktop-neutral routines libraries configure:22067: result: configure:22269: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by config.status, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on macondo config.status:698: creating Makefile config.status:698: creating src/Makefile config.status:698: creating config.h config.status:976: executing depfiles commands ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i686-pc-linux-gnu ac_cv_c_compiler_gnu=yes ac_cv_cflags_gcc_option__fvisibility_hidden='no, unknown' ac_cv_cxx_compiler_gnu=yes ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_F77_set= ac_cv_env_F77_value= ac_cv_env_FFLAGS_set= ac_cv_env_FFLAGS_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_XMKMF_set= ac_cv_env_XMKMF_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_f77_compiler_gnu=yes ac_cv_func_connect=yes ac_cv_func_dlopen=no ac_cv_func_getdomainname=yes ac_cv_func_gethostbyname=yes ac_cv_func_getpt=yes ac_cv_func_remove=yes ac_cv_func_setenv=yes ac_cv_func_shl_load=no ac_cv_func_shmat=yes ac_cv_func_unsetenv=yes ac_cv_have_x='have_x=yes ac_x_includes='\''/usr/X11R6/include'\'' ac_x_libraries='\''/usr/X11R6/lib'\''' ac_cv_header_dlfcn_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_memory_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_host=i686-pc-linux-gnu ac_cv_lib_ICE_IceConnectionNumber=yes ac_cv_lib_Xtst_XTestQueryExtension=yes ac_cv_lib_dl_dlopen=yes ac_cv_lib_dld_shl_load=no ac_cv_lib_gcc_s_main=yes ac_cv_lib_m_main=yes ac_cv_lib_stdcpp_main=yes ac_cv_lib_z_main=yes ac_cv_objext=o ac_cv_path_CCACHE=/usr/bin/ccache ac_cv_path_EGREP='/usr/bin/grep -E' ac_cv_path_GREP=/usr/bin/grep ac_cv_path_install='/usr/bin/ginstall -c' ac_cv_prog_AWK=gawk ac_cv_prog_CPP='gcc -E' ac_cv_prog_CXXCPP='ccache g++ -E' ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_ac_ct_F77=g77 ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_cxx_g=yes ac_cv_prog_f77_g=yes ac_cv_prog_make_make_set=yes am_cv_CC_dependencies_compiler_type=gcc3 am_cv_CXX_dependencies_compiler_type=gcc3 gb_cv_header_desktop= gb_cv_lib_desktop= lt_cv_deplibs_check_method=pass_all lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl lt_cv_dlopen_self=yes lt_cv_dlopen_self_static=no lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_ld_reload_flag=-r lt_cv_objdir=.libs lt_cv_path_LD=/usr/i486-slackware-linux/bin/ld lt_cv_path_LDCXX=/usr/i486-slackware-linux/bin/ld lt_cv_path_NM='/usr/bin/nm -B' lt_cv_path_SED=/usr/bin/sed lt_cv_prog_compiler_c_o=yes lt_cv_prog_compiler_c_o_CXX=yes lt_cv_prog_compiler_c_o_F77=yes lt_cv_prog_compiler_rtti_exceptions=no lt_cv_prog_gnu_ld=yes lt_cv_prog_gnu_ldcxx=yes lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\''' lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr) \&\2},/p'\''' lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int \1;/p'\''' lt_cv_sys_max_cmd_len=98304 lt_lt_cv_prog_compiler_c_o='"yes"' lt_lt_cv_prog_compiler_c_o_CXX='"yes"' lt_lt_cv_prog_compiler_c_o_F77='"yes"' lt_lt_cv_sys_global_symbol_pipe='"sed -n -e '\''s/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'\''"' lt_lt_cv_sys_global_symbol_to_c_name_address='"sed -n -e '\''s/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'\''"' lt_lt_cv_sys_global_symbol_to_cdecl='"sed -n -e '\''s/^. .* \\(.*\\)\$/extern int \\1;/p'\''"' ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /home/stefano/trunk/missing --run aclocal-1.9' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' AMTAR='${SHELL} /home/stefano/trunk/missing --run tar' AM_CFLAGS=' -pipe -Wall -Wno-unused-value -g -Os' AM_CXXFLAGS=' -pipe -Wall -fno-exceptions -Wno-unused-value -g -Os -fno-omit-frame-pointer' AR='ar' AS='as' AUTOCONF='${SHELL} /home/stefano/trunk/missing --run autoconf' AUTOHEADER='${SHELL} /home/stefano/trunk/missing --run autoheader' AUTOMAKE='${SHELL} /home/stefano/trunk/missing --run automake-1.9' AWK='gawk' CC='ccache gcc' CCACHE='/usr/bin/ccache' CCDEPMODE='depmode=gcc3' CFLAGS='' CPP='gcc -E' CPPFLAGS='' CXX='ccache g++' CXXCPP='ccache g++ -E' CXXDEPMODE='depmode=gcc3' CXXFLAGS='' CXX_LIB=' -lgcc_s -lstdc++' CYGPATH_W='echo' C_LIB='-lc' DEBUG_FALSE='#' DEBUG_TRUE='' DEFS='-DHAVE_CONFIG_H' DEPDIR='.deps' DESKTOP_DIR='src' DESKTOP_INC=' -D_REENTRANT ' DESKTOP_LIB=' -lc -lpthread -lSM -lICE -L/usr/X11R6/lib -lXtst' DESKTOP_PATH='' DLLTOOL='dlltool' ECHO='echo' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/usr/bin/grep -E' EXEEXT='' F77='g77' FFLAGS='-g -O2' GAMBAS_VERSION='3' GBX_THREAD_INC='' GBX_THREAD_LIB='' GREP='/usr/bin/grep' INCLTDL='-I${top_srcdir}/libltdl' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s' LDFLAGS='' LD_FLAGS='-no-undefined' LIBLTDL='${top_builddir}/libltdl/libltdlc.la' LIBOBJS='' LIBS='' LIBTOOL='$(SHELL) $(top_builddir)/libtool' LN_S='ln -s' LTLIBOBJS='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='${SHELL} /home/stefano/trunk/missing --run makeinfo' MATH_LIB='-lm' OBJDUMP='objdump' OBJEXT='o' OPTIMIZE_FALSE='#' OPTIMIZE_TRUE='' PACKAGE='gambas3-gb-desktop' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_VERSION='' PATH_SEPARATOR=':' RANLIB='ranlib' SED='/usr/bin/sed' SET_MAKE='' SHELL='/bin/sh' SHLIBEXT='so' STRIP='strip' THREAD_INC='-D_REENTRANT' THREAD_LIB='-lpthread' VERSION='2.99.0' XMKMF='' X_CFLAGS=' -I/usr/X11R6/include' X_EXTRA_LIBS='' X_LIBS=' -lSM -lICE -L/usr/X11R6/lib -lXtst' X_PRE_LIBS=' -lSM -lICE' ac_ct_CC='gcc' ac_ct_CXX='g++' ac_ct_F77='g77' am__fastdepCC_FALSE='#' am__fastdepCC_TRUE='' am__fastdepCXX_FALSE='#' am__fastdepCXX_TRUE='' am__include='include' am__leading_dot='.' am__quote='' am__tar='${AMTAR} chof - "$$tardir"' am__untar='${AMTAR} xf -' bindir='${exec_prefix}/bin' build='i686-pc-linux-gnu' build_alias='' build_cpu='i686' build_os='linux-gnu' build_vendor='pc' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='${prefix}' gbbindir='${exec_prefix}/bin/gambas3' gbdatadir='${datarootdir}/gambas3' gblibdir='${exec_prefix}/lib/gambas3' host='i686-pc-linux-gnu' host_alias='' host_cpu='i686' host_os='linux-gnu' host_vendor='pc' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='/home/stefano/trunk/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='mkdir -p --' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr/local' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE "gambas3-gb-desktop" #define VERSION "2.99.0" #define GAMBAS_FULL_VERSION 0x02990000 #define GAMBAS_PCODE_VERSION 0x02000000 #define GAMBAS_VERSION 3 #define GAMBAS_VERSION_STRING "3" #define HAVE_SETENV 1 #define HAVE_UNSETENV 1 #define HAVE_GETDOMAINNAME 1 #define HAVE_GETPT 1 #define OS_LINUX 1 #define SHARED_LIBRARY_EXT "so" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define HAVE_DESKTOP_COMPONENT 1 configure: exit 0 From cjro99 at ...67... Tue Jan 8 00:00:46 2008 From: cjro99 at ...67... (javier romero) Date: Mon, 7 Jan 2008 23:00:46 +0000 Subject: [Gambas-user] database manager Message-ID: Look the attach, in this point when i click right button mouse under "CLIENTES01" or any table a popmenu appears and then push edit but anything happens no errors in console, the program dont crash but the form with the data is not show. Regards Javier ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Mon, 7 Jan 2008 15:36:49 +0100 > Subject: Re: [Gambas-user] database manager > > On lundi 7 janvier 2008, javier romero wrote: >> Database manager is Ubuntu 7.10 dont works whe i try to edit a Table, this >> happens in 1.9.91 and 1.9.92 and now in 2.0 >> >> Thanks >> Javier >> > > "Don't work" is not enough information! > > What happens exactly? An interpreter crash? A database manager bug with an > error message? Which database backend do you use? Do you run Ubuntu with > Gnome? In that case, what version of GTK+ is installed on Ubuntu 7.10? > > Please give as much details as possible so that I could fix the problem... > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Tecnolog?a, moda, motor, viajes,?suscr?bete a nuestros boletines para estar siempre a la ?ltima Guapos y guapas, clips musicales y estrenos de cine. -------------- next part -------------- A non-text attachment was scrubbed... Name: Pantallazo-Gestor de Bases de Datos Gambas.png Type: image/png Size: 37130 bytes Desc: not available URL: From cjro99 at ...67... Tue Jan 8 00:03:52 2008 From: cjro99 at ...67... (javier romero) Date: Mon, 7 Jan 2008 23:03:52 +0000 Subject: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 In-Reply-To: <200801071404.54707.henrique.ulbrich@...626...> References: <477BD3FF.5000807@...221...> <7259b5ae0801070527n48f2aa11o5909b1b32290db20@...627...> <200801071404.54707.henrique.ulbrich@...626...> Message-ID: purge all previuos instalation of gambas and compiled again and it works ok Javier ---------------------------------------- > From: henrique.ulbrich at ...626... > To: gambas-user at lists.sourceforge.net > Date: Mon, 7 Jan 2008 14:04:54 -0200 > Subject: Re: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 > > 2008/1/7, javier romero : >>> Ok. i do this. i purge gambas 2.0 and re install, there is not error, but >>> when i try to run any example all saids me that can not load the class >>> and the name of the form, in this moment i erase all gambas2 on my system >>> and i am compiling version 2,0 > > I'm having the EXACT SAME ISSUE. > > -- > Henrique Cesar Ulbrich > henrique.ulbrich at ...626... > > > HELP ME! CLICK HERE: > http://dascouvecity.myminicity.com/ind > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ La vida de los famosos al desnudo en MSN Entretenimiento http://entretenimiento.es.msn.com/ From gambas at ...1... Tue Jan 8 00:07:49 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 8 Jan 2008 00:07:49 +0100 Subject: [Gambas-user] database manager In-Reply-To: References: Message-ID: <200801080007.49871.gambas@...1...> On mardi 8 janvier 2008, javier romero wrote: > Look the attach, in this point when i click right button mouse under > "CLIENTES01" or any table a popmenu appears and then push edit but anything > happens no errors in console, the program dont crash but the form with the > data is not show. > > Regards > Javier > ---------------------------------------- How could it possible? :-( Can you open the gambas database manager project in the IDE, and trace it to see what happens when you press on the Edit menu entry? You must set a breakpoint on the line 606 in FMain.form. Thanks in advance. Regards, -- Benoit Minisini From leonardo at ...1237... Tue Jan 8 00:08:10 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 08 Jan 2008 00:08:10 +0100 Subject: [Gambas-user] Little improvement In-Reply-To: <200801072105.44146.gambas.fr@...626...> References: <4781FEE8.8050103@...1237...> <200801072105.44146.gambas.fr@...626...> Message-ID: <4782B0DA.2050708@...1237...> Fabien Bodard ha scritto: > Le Monday 07 January 2008 11:28:56 Leonardo Miliani, vous avez ?crit : >> I would suggest a little improvement to Benoit for Gambas :-) >> >> Why the message windows that are opened using Message.xxxx command don't >> have any icon? >> It would be nice if the message window checked if the calling form has >> an icon and used it in place of the generic window form icon, doesn't it? > > it > depend of qt or gtk Sorry... what did you mean? That Gambas does use GTK or Qt message windows to visualize the Message command outputs? And so there is no way to modify such icons? -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From henrique.ulbrich at ...626... Tue Jan 8 03:37:55 2008 From: henrique.ulbrich at ...626... (Henrique Cesar Ulbrich) Date: Tue, 8 Jan 2008 00:37:55 -0200 Subject: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 In-Reply-To: References: <477BD3FF.5000807@...221...> <200801071404.54707.henrique.ulbrich@...626...> Message-ID: <200801080037.55708.henrique.ulbrich@...626...> Historiadores acreditam que, em Segunda 07 Jan 2008, javier romero disse: > purge all previuos instalation of gambas and compiled again and it works ok Yes, but... I am not compiling, I am using the Linex repository for Ubuntu. Ok ok ok , I can compile it myself, that message was only to inform the Ubuntu package maintainer (who is here on the list) that there are issues with the packaging. -- Henrique From gambas.fr at ...626... Tue Jan 8 09:12:56 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 8 Jan 2008 09:12:56 +0100 Subject: [Gambas-user] Little improvement In-Reply-To: <4782B0DA.2050708@...1237...> References: <4781FEE8.8050103@...1237...> <200801072105.44146.gambas.fr@...626...> <4782B0DA.2050708@...1237...> Message-ID: <200801080912.56495.gambas.fr@...626...> Le Tuesday 08 January 2008 00:08:10 Leonardo Miliani, vous avez ?crit?: > Fabien Bodard ha scritto: > > Le Monday 07 January 2008 11:28:56 Leonardo Miliani, vous avez ?crit : > >> I would suggest a little improvement to Benoit for Gambas :-) > >> > >> Why the message windows that are opened using Message.xxxx command don't > >> have any icon? > >> It would be nice if the message window checked if the calling form has > >> an icon and used it in place of the generic window form icon, doesn'tor > >> it? > > > > it > > depend of qt or gtk > > Sorry... what did you mean? > That Gambas does use GTK or Qt message windows to visualize the Message > command outputs? And so there is no way to mo.dify such icons? yes :) Message.Error("error") From gambas.fr at ...626... Tue Jan 8 09:24:02 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 8 Jan 2008 09:24:02 +0100 Subject: [Gambas-user] Printing from the TextEdit html control In-Reply-To: <200801080832.13544.rterry@...1822...> References: <200801071805.07590.rterry@...1822...> <200801071314.38254.gambas@...1...> <200801080832.13544.rterry@...1822...> Message-ID: <200801080924.03126.gambas.fr@...626...> Le Monday 07 January 2008 22:32:13 richard terry, vous avez ?crit?: > I did peruse the printing examples and read the doc's and tried something > like that. It sent stuff to the printer, but it was all scrunched almost > overwriting all the lines. > > Tried combinations of stuff like this: > > Printer.Setup() > > > draw.Begin(Printer) > rth = draw.RichTextHeight(textedit1.text) > rtw = draw.RichTextWidth(textedit1.text) > draw.RichText(TextEdit1.text, 0, 0, rth, rtw) > ' draw.RichText(TextEdit1.Text, 0, 0, 2000, 2000) > draw.end > > Outputted the text but virtually all on one line. > 2000 > page width no ? You can try that : Select the gb.report (not finished but...) Dim hRichText as ReportRichText Dim hLabel as New ReportLabel(Report) Report.Size ="A4" Report.Resolution = Printer.Resolution Report.Padding = "1.5 cm" Report.Spacing = "0.3 cm" hLabel.Text = "My Title" hLabel.Font = Font["16, Bold"] hRichText = NewReportRichText(Report) hRichText.Expand = True hRichText.Text = "your text" Draw.Begin(Printer) Report.Draw(1) Draw.End ... not tested > Maybe someone can give me more explicit example. > > Richard > > On Mon, 7 Jan 2008 11:14:38 pm you wrote: > > On lundi 7 janvier 2008, richard terry wrote: > > > Is this possible? > > > > > > Following the printing example from the examples, it only prints the > > > result of textedit.text (which of course is the raw html code). > > > > > > Has anyone succeeded in printing the visual output from this control? > > > > > > Thanks > > > > > > Richard > > > > Use the Draw.RichText*() methods while drawing on the Printer object. > > > > Regards, > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From dcamposf at ...626... Tue Jan 8 11:52:17 2008 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 8 Jan 2008 11:52:17 +0100 Subject: [Gambas-user] Gambas 2.0 in Ubuntu 7.10 In-Reply-To: <200801080037.55708.henrique.ulbrich@...626...> References: <477BD3FF.5000807@...221...> <200801071404.54707.henrique.ulbrich@...626...> <200801080037.55708.henrique.ulbrich@...626...> Message-ID: <7259b5ae0801080252j5527b36anb043b81c6e7f3ada@...627...> Well, I've tested all on Ubuntu 7.10 and Ubuntu 7.04, but I can't reproduce the problem. I just found that using: apt-get install gambas2 Does not upgrade all packages, but the ones not upgraded does not have any relation with the problem, but using: apt-get dist-upgrade instead works fine to upgrade all packages. All seems to work here without problems after the upgrade. So for people having this problem I suggest to: 1) Search the installed gambas2 packages after the upgrade: dpkg -l | grep ii | grep gambas2 If you find any package still having 1.9.91 version, just install the new version using "apt-get install [package-name]" and recheck with the prior command. 2) Check that you use all Ubuntu sections in apt: main universe multiverse and restricted, as some packages may not find the dependencies if you use just the main section. 3) If any problem related with configuration options, delete the .config/gambas folder in your home directory then try again. 4) If after all the problem persists, delete /usr/share/gambas2 and /usr/lib/gambas2 folders, then use "apt-get install --reinstall [package name]" for all gambas2 packages. I can not find any better automated sollution, all seems to be right in the packages, using a Debian SID distribution all works fine in the upgrade, and the Ubuntu packages are made from the Debian ones, so all should work in the same way... except if Ubuntu made any extrange changes in apt or dpkg, but I doubt it... Daniel 2008/1/8, Henrique Cesar Ulbrich : > Historiadores acreditam que, > em Segunda 07 Jan 2008, javier romero disse: > > purge all previuos instalation of gambas and compiled again and it works ok > > Yes, but... > > I am not compiling, I am using the Linex repository for Ubuntu. > > Ok ok ok , I can compile it myself, that message was only to inform the Ubuntu > package maintainer (who is here on the list) that there are issues with the > packaging. > > -- > Henrique > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From cjro99 at ...67... Tue Jan 8 15:15:56 2008 From: cjro99 at ...67... (javier romero) Date: Tue, 8 Jan 2008 14:15:56 +0000 Subject: [Gambas-user] database manager In-Reply-To: <200801080007.49871.gambas@...1...> References: <200801080007.49871.gambas@...1...> Message-ID: ok i do that and have this results: in Stack trace: Fmain.MnuOpenTable_Click.605 (Codigo Nativo) FMain.tvwBase_Menu.526 in Actual Object: Variables Estaticas project "" WorkSpace (WorkSpace 0X8155918) Variables Dinamicas $key "Tcjromero at ...1831... (mysql)/frocae/CLIENTES01" Menu1 (Menu 0x8139a30) Menu2 (Menu 0x813eeC0) Menu3 (Menu 0x8140c58) Menu4 (Menu 0x813e290) Menu5 (Menu 0x814c000) Menu6 (Menu 0x8151480) Menu8 (Menu 0x81479f8) Menu9 (Menu 0x814f038) $hConn (Cconnection 0x8167f78) $sName "frocae" Menu10 (Menu 0x8145b20) mnuNew (Menu 0x8133668) $sTable "CLIENTES01" mnuHelp (Menu 0x814f910) mnuQuit (Menu 0x813e3c8) mnuScan (Menu 0x81395d8) mnuUser (Menu 0x814abc8) splBase (Hsplit 0x81540e8) tvwBase (TreeView 0x8150978) wrkBase (WorkSpace 0x8155918) $hSrrver (Cserver 0x81e8b18) mnuAbout (Menu 0x814fb38) mnuDebug (Menu 0x813ef98) mnuTable (Menu 0x814d538) $bDefault FALSE mnuImport (Menu 0x81482b0) mnuServer (Menu 0x813f790) $sCryptKey "CONT" mnuKillAll (Menu 0x813a870) mnuRefresh (Menu 0x813a6d0) mnuRequest (Menu 0x8149158) mnuDatabase (Menu 0x8141628) mnueditUser (Menu 0x814c860) mnuMakeCode (Menu 0x8149628) mnuRequest2 (Menu 0x8151598) mnuCoyTable (Menu 0x814f180) mnuOpenTable (Menu 0x814e940) mnuConnection (Menu 0x8124128) mnuCreateUser (Menu 0x8140248) mnuDeleteUser (Menu 0x814d188) mnuPasteTable (Menu 0x814e1b0) mnuCloseServer (Menu 0x8141900) mnuCreateTable (Menu 0x8145c60) mnuCreateUser2 (Menu 0x814ad08) mnuDeleteTable (Menu 0x814f560) Javier ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Tue, 8 Jan 2008 00:07:49 +0100 > Subject: Re: [Gambas-user] database manager > > On mardi 8 janvier 2008, javier romero wrote: >> Look the attach, in this point when i click right button mouse under >> "CLIENTES01" or any table a popmenu appears and then push edit but anything >> happens no errors in console, the program dont crash but the form with the >> data is not show. >> >> Regards >> Javier >> ---------------------------------------- > > How could it possible? :-( > > Can you open the gambas database manager project in the IDE, and trace it to > see what happens when you press on the Edit menu entry? > > You must set a breakpoint on the line 606 in FMain.form. > > Thanks in advance. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Tecnolog?a, moda, motor, viajes,?suscr?bete a nuestros boletines para estar siempre a la ?ltima Guapos y guapas, clips musicales y estrenos de cine. From gambas at ...1828... Tue Jan 8 16:36:56 2008 From: gambas at ...1828... (manuel viet) Date: Tue, 8 Jan 2008 07:36:56 -0800 (PST) Subject: [Gambas-user] Documentation glitch with Iconview ? Message-ID: <14692094.post@...1379...> I was playing with an IconView (toolkit qt), and realized it'd be cool to know when mouse would be over it, and where (to know it was hovering over an item or the background) ; the MouseMove event looked perfect and the wiki says that this event is called "only when button1 is down, except for some complex controls like Icon & List View ". So I tried, and for me MouseMove is raised only if button1 is depressed while moving. If I change the IconView to a ListView, the MouseMove event is raised anytime the mouse, indeed, moves inside the control area, as expected. So I'm afraid the wiki is not up to date. Side question : how can I do this kind of 'tracking' inside this control (if possible at all) ? ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Documentation-glitch-with-Iconview---tp14692094p14692094.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Jan 8 17:17:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 8 Jan 2008 17:17:34 +0100 Subject: [Gambas-user] database manager In-Reply-To: References: <200801080007.49871.gambas@...1...> Message-ID: <200801081717.34769.gambas@...1...> On mardi 8 janvier 2008, javier romero wrote: > ok i do that and have this results: > > in Stack trace: > Fmain.MnuOpenTable_Click.605 > (Codigo Nativo) > FMain.tvwBase_Menu.526 > Then you should go step by step to see what happens. Maybe you will notice some strange thing that prevents the table form (FTable) from being opened. Regards, -- Benoit Minisini From gambas at ...1... Tue Jan 8 17:20:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 8 Jan 2008 17:20:06 +0100 Subject: [Gambas-user] Documentation glitch with Iconview ? In-Reply-To: <14692094.post@...1379...> References: <14692094.post@...1379...> Message-ID: <200801081720.06566.gambas@...1...> On mardi 8 janvier 2008, manuel viet wrote: > I was playing with an IconView (toolkit qt), and realized > it'd be cool to know when mouse would be over it, and > where (to know it was hovering over an item or the > background) ; the MouseMove event looked perfect and > the wiki says that this event is called "only when > button1 is down, except for some complex controls like > Icon & List View ". So I tried, and for me MouseMove is > raised only if button1 is depressed while moving. You really mean that you don't get MouseMove events if the first button is pressed ? > If I > change the IconView to a ListView, the MouseMove > event is raised anytime the mouse, indeed, moves inside > the control area, as expected. So I'm afraid the wiki is > not up to date. Side question : how can I do this kind of > 'tracking' inside this control (if possible at all) ? > Actually you should not be able to do that, because it depends heavily on the internal implementation of the IconView. If you need an IconView with mouse tracking, and other functions I imagine, maybe you should implement your own one. Regards, -- Benoit Minisini From gambas at ...1828... Tue Jan 8 17:42:20 2008 From: gambas at ...1828... (manuel viet) Date: Tue, 8 Jan 2008 08:42:20 -0800 (PST) Subject: [Gambas-user] Documentation glitch with Iconview ? In-Reply-To: <200801081720.06566.gambas@...1...> References: <14692094.post@...1379...> <200801081720.06566.gambas@...1...> Message-ID: <14693276.post@...1379...> Benoit Minisini wrote: > > On mardi 8 janvier 2008, manuel viet wrote: >> I was playing with an IconView (toolkit qt), and realized >> it'd be cool to know when mouse would be over it, and >> where (to know it was hovering over an item or the >> background) ; the MouseMove event looked perfect and >> the wiki says that this event is called "only when >> button1 is down, except for some complex controls like >> Icon & List View ". So I tried, and for me MouseMove is >> raised only if button1 is depressed while moving. > > You really mean that you don't get MouseMove events if the first button is > pressed ? > Oups, my mistake ; no, I only get them if the button is *pressed* of course. As with any other control. >> If I >> change the IconView to a ListView, the MouseMove >> event is raised anytime the mouse, indeed, moves inside >> the control area, as expected. So I'm afraid the wiki is >> not up to date. Side question : how can I do this kind of >> 'tracking' inside this control (if possible at all) ? >> > > Actually you should not be able to do that, because it depends heavily on > the > internal implementation of the IconView. If you need an IconView with > mouse > tracking, and other functions I imagine, maybe you should implement your > own > one. > That's what I was fearing *sigh* !! (my idea was to use the IV as a 'corckboard' to stick notes. Hovering over a note would have "magnified" it magicaly to peruse the contents, one click and hop, edit mode.)Why can't I be a reasonable guy and be happy with what already exists ? Trouble is I'm completely illiterate when it comes to c++ and qt ; I can do some good C/GTK+, but I really don't have much time to self-teach myself a whole new language. That's the reason why I like Gambas : the learning curve is smooth and I already know a fair bit of Basic to begin with (we've had the same kind of computing background, except that instead of going on, at a point I chose to study law science). ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Documentation-glitch-with-Iconview---tp14692094p14693276.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Jan 8 17:51:22 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 8 Jan 2008 17:51:22 +0100 Subject: [Gambas-user] Documentation glitch with Iconview ? In-Reply-To: <14693276.post@...1379...> References: <14692094.post@...1379...> <200801081720.06566.gambas@...1...> <14693276.post@...1379...> Message-ID: <200801081751.22722.gambas@...1...> On mardi 8 janvier 2008, manuel viet wrote: > Benoit Minisini wrote: > > On mardi 8 janvier 2008, manuel viet wrote: > >> I was playing with an IconView (toolkit qt), and realized > >> it'd be cool to know when mouse would be over it, and > >> where (to know it was hovering over an item or the > >> background) ; the MouseMove event looked perfect and > >> the wiki says that this event is called "only when > >> button1 is down, except for some complex controls like > >> Icon & List View ". So I tried, and for me MouseMove is > >> raised only if button1 is depressed while moving. > > > > You really mean that you don't get MouseMove events if the first button > > is pressed ? > > Oups, my mistake ; no, I only get them if the button is *pressed* > of course. As with any other control. > > >> If I > >> change the IconView to a ListView, the MouseMove > >> event is raised anytime the mouse, indeed, moves inside > >> the control area, as expected. So I'm afraid the wiki is > >> not up to date. Side question : how can I do this kind of > >> 'tracking' inside this control (if possible at all) ? > > > > Actually you should not be able to do that, because it depends heavily on > > the > > internal implementation of the IconView. If you need an IconView with > > mouse > > tracking, and other functions I imagine, maybe you should implement your > > own > > one. > > That's what I was fearing *sigh* !! (my idea was to use > the IV as a 'corckboard' to stick notes. Hovering over > a note would have "magnified" it magicaly to peruse the > contents, one click and hop, edit mode.)Why can't I be a > reasonable guy and be happy with what already exists ? > Trouble is I'm completely illiterate when it comes to c++ > and qt ; I can do some good C/GTK+, but I really don't > have much time to self-teach myself a whole new > language. That's the reason why I like Gambas : the > learning curve is smooth and I already know a fair bit > of Basic to begin with (we've had the same kind of > computing background, except that instead of going on, > at a point I chose to study law science). > > > ----- > -- > Manuel Viet You can do your iconview in Gambas by starting from a DrawingArea. It could even be better than the QT one that has many bugs. :-) Regards, -- Benoit Minisini From gambas at ...1828... Tue Jan 8 18:35:15 2008 From: gambas at ...1828... (manuel viet) Date: Tue, 8 Jan 2008 09:35:15 -0800 (PST) Subject: [Gambas-user] Documentation glitch with Iconview ? In-Reply-To: <200801081751.22722.gambas@...1...> References: <14692094.post@...1379...> <200801081720.06566.gambas@...1...> <14693276.post@...1379...> <200801081751.22722.gambas@...1...> Message-ID: <14694381.post@...1379...> Benoit Minisini wrote: > > > You can do your iconview in Gambas by starting from a DrawingArea. It > could > even be better than the QT one that has many bugs. :-) > > I'm impervious to flattery ;-) Tongue-in-cheek aside, I did peek a look at drawingarea. It's not impossible I might come up with a suitable solution, but I don't forsee a complete implementation of all IconView methods. Time (however little of it I can spare on this) will tell. Serious question now, is it possible to build custom controls in gambas and integrate them in the IDE ? Last I tried (1.9.47) it wasn't working yet. ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Documentation-glitch-with-Iconview---tp14692094p14694381.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Jan 8 18:40:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 8 Jan 2008 18:40:20 +0100 Subject: [Gambas-user] Documentation glitch with Iconview ? In-Reply-To: <14694381.post@...1379...> References: <14692094.post@...1379...> <200801081751.22722.gambas@...1...> <14694381.post@...1379...> Message-ID: <200801081840.20666.gambas@...1...> On mardi 8 janvier 2008, manuel viet wrote: > Benoit Minisini wrote: > > You can do your iconview in Gambas by starting from a DrawingArea. It > > could > > even be better than the QT one that has many bugs. :-) > > I'm impervious to flattery ;-) > > Tongue-in-cheek aside, I did peek a look at drawingarea. It's not > impossible I might come up with a suitable solution, but I don't > forsee a complete implementation of all IconView methods. > > Time (however little of it I can spare on this) will tell. > > Serious question now, is it possible to build custom > controls in gambas and integrate them in the IDE ? > Last I tried (1.9.47) it wasn't working yet. > > ----- > -- > Manuel Viet Not really, unless you put it in a component inside the gambas source tree. -- Benoit Minisini From gambas at ...1828... Tue Jan 8 19:25:37 2008 From: gambas at ...1828... (manuel viet) Date: Tue, 8 Jan 2008 10:25:37 -0800 (PST) Subject: [Gambas-user] Documentation glitch with Iconview ? In-Reply-To: <200801081840.20666.gambas@...1...> References: <14692094.post@...1379...> <200801081720.06566.gambas@...1...> <14693276.post@...1379...> <200801081751.22722.gambas@...1...> <14694381.post@...1379...> <200801081840.20666.gambas@...1...> Message-ID: <14695723.post@...1379...> Benoit Minisini wrote: > > On mardi 8 janvier 2008, manuel viet wrote: > >> Serious question now, is it possible to build custom >> controls in gambas and integrate them in the IDE ? >> Last I tried (1.9.47) it wasn't working yet. > > Not really, unless you put it in a component inside the gambas source > tree. > > I understand you've already plenty to do with the code cleanup and the 64 bits support, but I really think it would be a major bonus if Gambas could load custom controls in the IDE at runtime ; many time, you just don't have the possibility to build a full application, but you somehow have tiny ideas that are ideal to improve or create a control. Or you don't finish a project, but there are already classes that could just be spin off. If people could toy around and exchange seamlessly those bits and pieces of code it could create a great incentive toward gb. Look at other great Open Source projects : Linux, TeX, Perl ; those are undoubtedly nerdy, but they gained traction not only because they were good, but also because users could make trials freely, toy with bits and pieces, share results. There are bundles of classes to try for perl, an infinite number of stylesheets for LaTeX, and countless obscure drivers for linux. None of these projects were any better than say *BSD, groff or tcl at the beginning, but they took the lead because the sharing between users was easier. The way I see it, if there was a good exchange structure of "unofficial" components in gambas it might create a great movement of adoption by the non-nerdy crowd ; maybe we could even see again basic listings printed in the press ;-) to teach normal users how to improve themselves some parts of the components. Of course, there would be an enormous amount of rubbishes, but nobody expects them to get inside the official build. But maybe some would be good enough to become official after a while ? ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Documentation-glitch-with-Iconview---tp14692094p14695723.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Jan 8 19:37:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 8 Jan 2008 19:37:06 +0100 Subject: [Gambas-user] Documentation glitch with Iconview ? In-Reply-To: <14695723.post@...1379...> References: <14692094.post@...1379...> <200801081840.20666.gambas@...1...> <14695723.post@...1379...> Message-ID: <200801081937.06933.gambas@...1...> On mardi 8 janvier 2008, manuel viet wrote: > Benoit Minisini wrote: > > On mardi 8 janvier 2008, manuel viet wrote: > >> Serious question now, is it possible to build custom > >> controls in gambas and integrate them in the IDE ? > >> Last I tried (1.9.47) it wasn't working yet. > > > > Not really, unless you put it in a component inside the gambas source > > tree. > > I understand you've already plenty to do with the code > cleanup and the 64 bits support, but I really think it > would be a major bonus if Gambas could load custom > controls in the IDE at runtime ; many time, you just > don't have the possibility to build a full application, > but you somehow have tiny ideas that are ideal to > improve or create a control. Or you don't finish a > project, but there are already classes that could just > be spin off. If people could toy around and exchange > seamlessly those bits and pieces of code it could > create a great incentive toward gb. > > Look at other great Open Source projects : Linux, > TeX, Perl ; those are undoubtedly nerdy, but they > gained traction not only because they were good, > but also because users could make trials freely, > toy with bits and pieces, share results. There are > bundles of classes to try for perl, an infinite number > of stylesheets for LaTeX, and countless obscure > drivers for linux. None of these projects were any > better than say *BSD, groff or tcl at the beginning, > but they took the lead because the sharing between > users was easier. > > The way I see it, if there was a good exchange > structure of "unofficial" components in gambas it > might create a great movement of adoption by the > non-nerdy crowd ; maybe we could even see again > basic listings printed in the press ;-) to teach normal > users how to improve themselves some parts of the > components. Of course, there would be an enormous > amount of rubbishes, but nobody expects them to > get inside the official build. But maybe some would > be good enough to become official after a while ? > > ----- > -- > Manuel Viet I agree. Technically, you can already do 99% of a custom component. Are missing: * The possibility to automatically add icons in the IDE toolbar. At the moment the control icons are stored directly in the IDE source code. * The ability to create a binary package of the component. These are the only two technical reasons why a component must be included in the Gambas source code tree. Anyway, a custom component must be named differently from a official one. Official components are named "gb.xxx.yyy". Custom components could be named "gb.custom.xxx", or "custom.xxx" without the "gb." prefix, or something else. If you have ideas... -- Benoit Minisini From piresl at ...626... Tue Jan 8 19:43:09 2008 From: piresl at ...626... (lozza1978) Date: Tue, 8 Jan 2008 10:43:09 -0800 (PST) Subject: [Gambas-user] Array 2 String or different approach on what im trying to do. Message-ID: <14695884.post@...1379...> Hi All. Im after a little help again (Sorry for lack of knowledge guys) I have a textbox and a browse button, you click browse, select a file and the file path, including filename gets added inside the textbox. what im after is the directory of the file selected, so this is what I have DIM Elt AS String[] DIM Sb AS String DIM Sdir AS String DIM sstri AS String[] Dialog.Title = "Select A Movie File to convert 2 DVD:" IF Dialog.OpenFile() THEN RETURN Textbox1.Text = Dialog.Path Elt = Split(Textbox1.Text, "/") <--Split the path Sdir = Elt.Length - 1 <--here Im finding out how many elements in the array Elt.Remove(Elt.Length - 1) <-- here removing the filename, so that I have the directory where the file is located FOR EACH Sb IN Elt PRINT sb; "/"; NEXT PRINT END the code above works and the foreach prints the correct directory path, But i some how need to get the output of the foreach into a string so I can call the directory path using a string/variable im just confusing myself now, hope someone can understand what im trying to do and help me, thanks again for reading. -- View this message in context: http://www.nabble.com/Array-2-String-or-different-approach-on-what-im-trying-to-do.-tp14695884p14695884.html Sent from the gambas-user mailing list archive at Nabble.com. From rospolosco at ...152... Tue Jan 8 20:39:09 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 8 Jan 2008 20:39:09 +0100 Subject: [Gambas-user] Array 2 String or different approach on what im trying to do. In-Reply-To: <14695884.post@...1379...> References: <14695884.post@...1379...> Message-ID: <200801082039.09965.rospolosco@...152...> Alle 19:43, marted? 8 gennaio 2008, lozza1978 ha scritto: > Hi All. > > Im after a little help again (Sorry for lack of knowledge guys) > > I have a textbox and a browse button, you click browse, select a file and > the file path, including filename gets added inside the textbox. > > what im after is the directory of the file selected, so this is what I have > > > DIM Elt AS String[] > DIM Sb AS String > DIM Sdir AS String > DIM sstri AS String[] > > Dialog.Title = "Select A Movie File to convert 2 DVD:" > IF Dialog.OpenFile() THEN RETURN > Textbox1.Text = Dialog.Path > > > Elt = Split(Textbox1.Text, "/") <--Split the path > > Sdir = Elt.Length - 1 <--here Im finding out how many elements in the array > Elt.Remove(Elt.Length - 1) <-- here removing the filename, so that I have > the directory where the file is located > > > FOR EACH Sb IN Elt > > PRINT sb; "/"; > > NEXT > PRINT > END > > > the code above works and the foreach prints the correct directory path, But > i some how need to get the output of the foreach into a string so I can > call the directory path using a string/variable > > im just confusing myself now, hope someone can understand what im trying to > do and help me, thanks again for reading. I'm not sure that I understood, but if you want the directory of the file, just: PRINT File.Dir(Dialog.Path) Stefano From gambas.fr at ...626... Tue Jan 8 21:04:45 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 8 Jan 2008 21:04:45 +0100 Subject: [Gambas-user] Documentation glitch with Iconview ? In-Reply-To: <200801081937.06933.gambas@...1...> References: <14692094.post@...1379...> <14695723.post@...1379...> <200801081937.06933.gambas@...1...> Message-ID: <200801082104.45934.gambas.fr@...626...> Le Tuesday 08 January 2008 19:37:06 Benoit Minisini, vous avez ?crit?: > On mardi 8 janvier 2008, manuel viet wrote: > > Benoit Minisini wrote: > > > On mardi 8 janvier 2008, manuel viet wrote: > > >> Serious question now, is it possible to build custom > > >> controls in gambas and integrate them in the IDE ? > > >> Last I tried (1.9.47) it wasn't working yet. > > > > > > Not really, unless you put it in a component inside the gambas source > > > tree. > > > > I understand you've already plenty to do with the code > > cleanup and the 64 bits support, but I really think it > > would be a major bonus if Gambas could load custom > > controls in the IDE at runtime ; many time, you just > > don't have the possibility to build a full application, > > but you somehow have tiny ideas that are ideal to > > improve or create a control. Or you don't finish a > > project, but there are already classes that could just > > be spin off. If people could toy around and exchange > > seamlessly those bits and pieces of code it could > > create a great incentive toward gb. > > > > Look at other great Open Source projects : Linux, > > TeX, Perl ; those are undoubtedly nerdy, but they > > gained traction not only because they were good, > > but also because users could make trials freely, > > toy with bits and pieces, share results. There are > > bundles of classes to try for perl, an infinite number > > of stylesheets for LaTeX, and countless obscure > > drivers for linux. None of these projects were any > > better than say *BSD, groff or tcl at the beginning, > > but they took the lead because the sharing between > > users was easier. > > > > The way I see it, if there was a good exchange > > structure of "unofficial" components in gambas it > > might create a great movement of adoption by the > > non-nerdy crowd ; maybe we could even see again > > basic listings printed in the press ;-) to teach normal > > users how to improve themselves some parts of the > > components. Of course, there would be an enormous > > amount of rubbishes, but nobody expects them to > > get inside the official build. But maybe some would > > be good enough to become official after a while ? > > > > ----- > > -- > > Manuel Viet > > I agree. > > Technically, you can already do 99% of a custom component. Are missing: > > * The possibility to automatically add icons in the IDE toolbar. At the > moment the control icons are stored directly in the IDE source code. > > * The ability to create a binary package of the component. > maybe another thing is missing... the ability to have a name space for the comonents... if custom components are made it reduce the luck to have classes or function conflict... And in the case where we want to 'surclass' a class we have juste to give the same namespace. .... > These are the only two technical reasons why a component must be included > in the Gambas source code tree. > > Anyway, a custom component must be named differently from a official one. > > Official components are named "gb.xxx.yyy". Custom components could be > named "gb.custom.xxx", or "custom.xxx" without the "gb." prefix, or > something else. If you have ideas... From gambas.fr at ...626... Tue Jan 8 21:10:46 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 8 Jan 2008 21:10:46 +0100 Subject: [Gambas-user] Array 2 String or different approach on what im trying to do. In-Reply-To: <14695884.post@...1379...> References: <14695884.post@...1379...> Message-ID: <200801082110.46605.gambas.fr@...626...> Le Tuesday 08 January 2008 19:43:09 lozza1978, vous avez ?crit?: > Hi All. > > Im after a little help again (Sorry for lack of knowledge guys) > > I have a textbox and a browse button, you click browse, select a file and > the file path, including filename gets added inside the textbox. > > what im after is the directory of the file selected, so this is what I have > > > DIM Elt AS String[] > DIM Sb AS String > DIM Sdir AS String > DIM sstri AS String[] > > Dialog.Title = "Select A Movie File to convert 2 DVD:" > IF Dialog.OpenFile() THEN RETURN > Textbox1.Text = Dialog.Path > there is a box for directory Nevertheless all your code is for that : FileDirectory = File.Dir(TextBox1.text) Look the doc ! http://gambasdoc.org/help/comp/gb/file > > Elt = Split(Textbox1.Text, "/") <--Split the path > > Sdir = Elt.Length - 1 <--here Im finding out how many elements in the array > Elt.Remove(Elt.Length - 1) <-- here removing the filename, so that I have > the directory where the file is located > > > FOR EACH Sb IN Elt > > PRINT sb; "/"; > > NEXT > PRINT > END > > > the code above works and the foreach prints the correct directory path, But > i some how need to get the output of the foreach into a string so I can > call the directory path using a string/variable > > im just confusing myself now, hope someone can understand what im trying to > do and help me, thanks again for reading. From gambas at ...1... Tue Jan 8 21:12:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 8 Jan 2008 21:12:56 +0100 Subject: [Gambas-user] Documentation glitch with Iconview ? In-Reply-To: <200801082104.45934.gambas.fr@...626...> References: <14692094.post@...1379...> <200801081937.06933.gambas@...1...> <200801082104.45934.gambas.fr@...626...> Message-ID: <200801082112.57235.gambas@...1...> On mardi 8 janvier 2008, Fabien Bodard wrote: > Le Tuesday 08 January 2008 19:37:06 Benoit Minisini, vous avez ?crit?: > > On mardi 8 janvier 2008, manuel viet wrote: > > > Benoit Minisini wrote: > > > > On mardi 8 janvier 2008, manuel viet wrote: > > > >> Serious question now, is it possible to build custom > > > >> controls in gambas and integrate them in the IDE ? > > > >> Last I tried (1.9.47) it wasn't working yet. > > > > > > > > Not really, unless you put it in a component inside the gambas source > > > > tree. > > > > > > I understand you've already plenty to do with the code > > > cleanup and the 64 bits support, but I really think it > > > would be a major bonus if Gambas could load custom > > > controls in the IDE at runtime ; many time, you just > > > don't have the possibility to build a full application, > > > but you somehow have tiny ideas that are ideal to > > > improve or create a control. Or you don't finish a > > > project, but there are already classes that could just > > > be spin off. If people could toy around and exchange > > > seamlessly those bits and pieces of code it could > > > create a great incentive toward gb. > > > > > > Look at other great Open Source projects : Linux, > > > TeX, Perl ; those are undoubtedly nerdy, but they > > > gained traction not only because they were good, > > > but also because users could make trials freely, > > > toy with bits and pieces, share results. There are > > > bundles of classes to try for perl, an infinite number > > > of stylesheets for LaTeX, and countless obscure > > > drivers for linux. None of these projects were any > > > better than say *BSD, groff or tcl at the beginning, > > > but they took the lead because the sharing between > > > users was easier. > > > > > > The way I see it, if there was a good exchange > > > structure of "unofficial" components in gambas it > > > might create a great movement of adoption by the > > > non-nerdy crowd ; maybe we could even see again > > > basic listings printed in the press ;-) to teach normal > > > users how to improve themselves some parts of the > > > components. Of course, there would be an enormous > > > amount of rubbishes, but nobody expects them to > > > get inside the official build. But maybe some would > > > be good enough to become official after a while ? > > > > > > ----- > > > -- > > > Manuel Viet > > > > I agree. > > > > Technically, you can already do 99% of a custom component. Are missing: > > > > * The possibility to automatically add icons in the IDE toolbar. At the > > moment the control icons are stored directly in the IDE source code. > > > > * The ability to create a binary package of the component. > > maybe another thing is missing... > > the ability to have a name space for the comonents... if custom components > are made it reduce the luck to have classes or function conflict... > > And in the case where we want to 'surclass' a class we have juste to > give the same namespace. > > .... > I don't want namespaces. I can't stand them. Do real languages have namespaces? Not really. If two components export classes having the same name, there is no conflict in Gambas, there is inheritance. If they have the same name, they should mean the same thing. -- Benoit Minisini From gambas.fr at ...626... Tue Jan 8 21:20:11 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 8 Jan 2008 21:20:11 +0100 Subject: [Gambas-user] Documentation glitch with Iconview ? In-Reply-To: <200801082112.57235.gambas@...1...> References: <14692094.post@...1379...> <200801082104.45934.gambas.fr@...626...> <200801082112.57235.gambas@...1...> Message-ID: <200801082120.12090.gambas.fr@...626...> Le Tuesday 08 January 2008 21:12:56 Benoit Minisini, vous avez ?crit?: > On mardi 8 janvier 2008, Fabien Bodard wrote: > > Le Tuesday 08 January 2008 19:37:06 Benoit Minisini, vous avez ?crit?: > > > On mardi 8 janvier 2008, manuel viet wrote: > > > > Benoit Minisini wrote: > > > > > On mardi 8 janvier 2008, manuel viet wrote: > > > > >> Serious question now, is it possible to build custom > > > > >> controls in gambas and integrate them in the IDE ? > > > > >> Last I tried (1.9.47) it wasn't working yet. > > > > > > > > > > Not really, unless you put it in a component inside the gambas > > > > > source tree. > > > > > > > > I understand you've already plenty to do with the code > > > > cleanup and the 64 bits support, but I really think it > > > > would be a major bonus if Gambas could load custom > > > > controls in the IDE at runtime ; many time, you just > > > > don't have the possibility to build a full application, > > > > but you somehow have tiny ideas that are ideal to > > > > improve or create a control. Or you don't finish a > > > > project, but there are already classes that could just > > > > be spin off. If people could toy around and exchange > > > > seamlessly those bits and pieces of code it could > > > > create a great incentive toward gb. > > > > > > > > Look at other great Open Source projects : Linux, > > > > TeX, Perl ; those are undoubtedly nerdy, but they > > > > gained traction not only because they were good, > > > > but also because users could make trials freely, > > > > toy with bits and pieces, share results. There are > > > > bundles of classes to try for perl, an infinite number > > > > of stylesheets for LaTeX, and countless obscure > > > > drivers for linux. None of these projects were any > > > > better than say *BSD, groff or tcl at the beginning, > > > > but they took the lead because the sharing between > > > > users was easier. > > > > > > > > The way I see it, if there was a good exchange > > > > structure of "unofficial" components in gambas it > > > > might create a great movement of adoption by the > > > > non-nerdy crowd ; maybe we could even see again > > > > basic listings printed in the press ;-) to teach normal > > > > users how to improve themselves some parts of the > > > > components. Of course, there would be an enormous > > > > amount of rubbishes, but nobody expects them to > > > > get inside the official build. But maybe some would > > > > be good enough to become official after a while ? > > > > > > > > ----- > > > > -- > > > > Manuel Viet > > > > > > I agree. > > > > > > Technically, you can already do 99% of a custom component. Are missing: > > > > > > * The possibility to automatically add icons in the IDE toolbar. At the > > > moment the control icons are stored directly in the IDE source code. > > > > > > * The ability to create a binary package of the component. > > > > maybe another thing is missing... > > > > the ability to have a name space for the comonents... if custom > > components are made it reduce the luck to have classes or function > > conflict... > > > > And in the case where we want to 'surclass' a class we have juste to > > give the same namespace. > > > > .... > > I don't want namespaces. I can't stand them. Do real languages have > namespaces? Not really. > > If two components export classes having the same name, there is no conflict > in Gambas, there is inheritance. If they have the same name, they should > mean the same thing. :/ not sure in the case of users components... how to be sure that users not use a component with another ... that have not reason to be .... i'm not affraid for the first level developper but for the second level one... From cjro99 at ...67... Tue Jan 8 22:52:50 2008 From: cjro99 at ...67... (javier romero) Date: Tue, 8 Jan 2008 21:52:50 +0000 Subject: [Gambas-user] database manager In-Reply-To: <200801081717.34769.gambas@...1...> References: <200801080007.49871.gambas@...1...> <200801081717.34769.gambas@...1...> Message-ID: Ok, i go step by step and the only maybe strange is that executes the private function "HideFolder", no erros appears in console. But the "edit" selection is not the unique that doesnt works, in this popmenu only works "Create" the others including "edit" doesnt works. Regards Javier ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Tue, 8 Jan 2008 17:17:34 +0100 > Subject: Re: [Gambas-user] database manager > > On mardi 8 janvier 2008, javier romero wrote: >> ok i do that and have this results: >> >> in Stack trace: >> Fmain.MnuOpenTable_Click.605 >> (Codigo Nativo) >> FMain.tvwBase_Menu.526 >> > > Then you should go step by step to see what happens. Maybe you will notice > some strange thing that prevents the table form (FTable) from being opened. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ MSN Noticias http://noticias.msn.es/comunidad.aspx From rterry at ...1822... Tue Jan 8 23:01:15 2008 From: rterry at ...1822... (richard terry) Date: Wed, 9 Jan 2008 09:01:15 +1100 Subject: [Gambas-user] Printing from the TextEdit html control In-Reply-To: <200801080924.03126.gambas.fr@...626...> References: <200801071805.07590.rterry@...1822...> <200801080832.13544.rterry@...1822...> <200801080924.03126.gambas.fr@...626...> Message-ID: <200801090901.16011.rterry@...1822...> Thanks for your reply, but I am cretinously stupid with concepts. My mind needs something absolutely concrete and simple to be able to grasp it. My first attempt is as follows (dosn't work), it baulks at the line containing ReportRichTExt as 'unkown identifier' I've made sure I include gb.report in the project properties. My html is in TextEdit1. ======================================== ? ? ? DIM myreport AS NEW Report ? ? ? DIM hRichText AS ReportRichText ? ? ? ? Printer.Setup() ? ? ? ? ? myreport.Size = "A4" ? ? ? myreport.Resolution = Printer.Resolution ? ? ? myreport.Padding = "1.5 cm" ? ? ? myreport.Spacing = "0.3 cm" ? ? ? hRichText.Expand = TRUE ? ? ? hRichText.Text = TextEdit1.text ? ? ? Draw.Begin(Printer) ? ? ? ? ? ? ? myreport.Draw(1) ? ? ? Draw.End Regards, and thanks for your patience with my stupidity! Richard On Tue, 8 Jan 2008 07:24:02 pm Fabien Bodard wrote: > Le Monday 07 January 2008 22:32:13 richard terry, vous avez ?crit?: > > I did peruse the printing examples and read the doc's and tried something > > like that. It sent stuff to the printer, but it was all scrunched almost > > overwriting all the lines. > > > > Tried combinations of stuff like this: > > > > Printer.Setup() > > > > > > draw.Begin(Printer) > > rth = draw.RichTextHeight(textedit1.text) > > rtw = draw.RichTextWidth(textedit1.text) > > draw.RichText(TextEdit1.text, 0, 0, rth, rtw) > > ' draw.RichText(TextEdit1.Text, 0, 0, 2000, 2000) > > draw.end > > > > Outputted the text but virtually all on one line. > > 2000 > page width no ? > > You can try that : > > Select the gb.report (not finished but...) > > Dim hRichText as ReportRichText > Dim hLabel as New ReportLabel(Report) > > Report.Size ="A4" > Report.Resolution = Printer.Resolution > Report.Padding = "1.5 cm" > Report.Spacing = "0.3 cm" > > > hLabel.Text = "My Title" > hLabel.Font = Font["16, Bold"] > > hRichText = NewReportRichText(Report) > > hRichText.Expand = True > hRichText.Text = "your text" > > Draw.Begin(Printer) > Report.Draw(1) > Draw.End > > > ... not tested > > > Maybe someone can give me more explicit example. > > > > Richard > > > > On Mon, 7 Jan 2008 11:14:38 pm you wrote: > > > On lundi 7 janvier 2008, richard terry wrote: > > > > Is this possible? > > > > > > > > Following the printing example from the examples, it only prints the > > > > result of textedit.text (which of course is the raw html code). > > > > > > > > Has anyone succeeded in printing the visual output from this control? > > > > > > > > Thanks > > > > > > > > Richard > > > > > > Use the Draw.RichText*() methods while drawing on the Printer object. > > > > > > Regards, > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > >ac e _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1828... Tue Jan 8 23:38:03 2008 From: gambas at ...1828... (manuel viet) Date: Tue, 8 Jan 2008 14:38:03 -0800 (PST) Subject: [Gambas-user] Documentation glitch with Iconview ? In-Reply-To: <200801082120.12090.gambas.fr@...626...> References: <14692094.post@...1379...> <200801081720.06566.gambas@...1...> <14693276.post@...1379...> <200801081751.22722.gambas@...1...> <14694381.post@...1379...> <200801081840.20666.gambas@...1...> <14695723.post@...1379...> <200801081937.06933.gambas@...1...> <200801082104.45934.gambas.fr@...626...> <200801082112.57235.gambas@...1...> <200801082120.12090.gambas.fr@...626...> Message-ID: <14700580.post@...1379...> Fabien Bodard-4 wrote: > > Le Tuesday 08 January 2008 21:12:56 Benoit Minisini, vous avez ?crit : >> On mardi 8 janvier 2008, Fabien Bodard wrote: >> > Le Tuesday 08 January 2008 19:37:06 Benoit Minisini, vous avez ?crit : >> > > On mardi 8 janvier 2008, manuel viet wrote: >> > > > I understand you've already plenty to do with the code >> > > > cleanup and the 64 bits support, but I really think it >> > > > would be a major bonus if Gambas could load custom >> > > > controls in the IDE at runtime ; many time, you just >> > > > don't have the possibility to build a full application, >> > > > but you somehow have tiny ideas that are ideal to >> > > > improve or create a control. Or you don't finish a >> > > > project, but there are already classes that could just >> > > > be spin off. If people could toy around and exchange >> > > > seamlessly those bits and pieces of code it could >> > > > create a great incentive toward gb. >> >> > maybe another thing is missing... >> > >> > the ability to have a name space for the comonents... if custom >> > components are made it reduce the luck to have classes or function >> > conflict... >> > >> > And in the case where we want to 'surclass' a class we have juste >> to >> > give the same namespace. >> >> I don't want namespaces. I can't stand them. Do real languages have >> namespaces? Not really. >> >> If two components export classes having the same name, there is no >> conflict >> in Gambas, there is inheritance. If they have the same name, they should >> mean the same thing. > > :/ > not sure in the case of users components... how to be sure that users not > use > a component with another ... that have not reason to be .... i'm not > affraid > for the first level developper but for the second level one... > > I side with Benoit on this one ; who cares if 2 user components are conflicting ? If they share the same name, there's a big chance they're doing the same job. The application writer choses the one he prefers. It's all about empowering normal users ; making them contribute, showing them how easy it is to realize an idea. It's not like it would corrupt the official tree. ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Documentation-glitch-with-Iconview---tp14692094p14700580.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Wed Jan 9 00:12:10 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 9 Jan 2008 00:12:10 +0100 Subject: [Gambas-user] Printing from the TextEdit html control In-Reply-To: <200801090901.16011.rterry@...1822...> References: <200801071805.07590.rterry@...1822...> <200801080924.03126.gambas.fr@...626...> <200801090901.16011.rterry@...1822...> Message-ID: <200801090012.11516.gambas.fr@...626...> Le Tuesday 08 January 2008 23:01:15 richard terry, vous avez ?crit?: > Thanks for your reply, but I am cretinously stupid with concepts. My mind > needs something absolutely concrete and simple to be able to grasp it. > > My first attempt is as follows (dosn't work), it baulks at the line > containing ReportRichTExt as 'unkown identifier' I've made sure I include > gb.report in the project properties. My html is in TextEdit1. > Don't forget that gb.report is really an early alpha component > ======================================== > ? ? ? DIM myreport AS NEW Report ? ? ? DIM hRichText AS ReportTextLabel > ? > ? ? ? Printer.Setup() > ? ? > ? ? ? myreport.Size = "A4" > ? ? ? myreport.Resolution = Printer.Resolution > ? ? ? myreport.Padding = "1.5 cm" > ? ? ? myreport.Spacing = "0.3 cm" hRichText = New ReportTextLabel(myReport) ? ? ? hRichText.Expand = TRUE > ? ? ? hRichText.Text = TextEdit1.text > ? ? ? Draw.Begin(Printer) > ? ? ? ? ? ? ? myreport.Draw(1) > ? ? ? Draw.End > > > Regards, and thanks for your patience with my stupidity! > > Richard > > On Tue, 8 Jan 2008 07:24:02 pm Fabien Bodard wrote: > > Le Monday 07 January 2008 22:32:13 richard terry, vous avez ?crit?: > > > I did peruse the printing examples and read the doc's and tried > > > something like that. It sent stuff to the printer, but it was all > > > scrunched almost overwriting all the lines. > > > > > > Tried combinations of stuff like this: > > > > > > Printer.Setup() > > > > > > > > > draw.Begin(Printer) > > > rth = draw.RichTextHeight(textedit1.text) > > > rtw = draw.RichTextWidth(textedit1.text) > > > draw.RichText(TextEdit1.text, 0, 0, rth, rtw) > > > ' draw.RichText(TextEdit1.Text, 0, 0, 2000, 2000) > > > draw.end > > > > > > Outputted the text but virtually all on one line. > > > > 2000 > page width no ? > > > > You can try that : > > > > Select the gb.report (not finished but...) > > > > Dim hRichText as ReportRichText > > Dim hLabel as New ReportLabel(Report) > > > > Report.Size ="A4" > > Report.Resolution = Printer.Resolution > > Report.Padding = "1.5 cm" > > Report.Spacing = "0.3 cm" > > > > > > hLabel.Text = "My Title" > > hLabel.Font = Font["16, Bold"] > > > > hRichText = NewReportRichText(Report) > > > > hRichText.Expand = True > > hRichText.Text = "your text" > > > > Draw.Begin(Printer) > > Report.Draw(1) > > Draw.End > > > > > > ... not tested > > > > > Maybe someone can give me more explicit example. > > > > > > Richard > > > > > > On Mon, 7 Jan 2008 11:14:38 pm you wrote: > > > > On lundi 7 janvier 2008, richard terry wrote: > > > > > Is this possible? > > > > > > > > > > Following the printing example from the examples, it only prints > > > > > the result of textedit.text (which of course is the raw html code). > > > > > > > > > > Has anyone succeeded in printing the visual output from this > > > > > control? > > > > > > > > > > Thanks > > > > > > > > > > Richard > > > > > > > > Use the Draw.RichText*() methods while drawing on the Printer object. > > > > > > > > Regards, > > > > > > ----------------------------------------------------------------------- > > >-- Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/market > > >pl ac e _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > >ac e _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1822... Wed Jan 9 03:57:04 2008 From: rterry at ...1822... (richard terry) Date: Wed, 9 Jan 2008 13:57:04 +1100 Subject: [Gambas-user] Printing from the TextEdit html control In-Reply-To: <200801090012.11516.gambas.fr@...626...> References: <200801071805.07590.rterry@...1822...> <200801090901.16011.rterry@...1822...> <200801090012.11516.gambas.fr@...626...> Message-ID: <200801091357.04652.rterry@...1822...> Ok, This code (which I hope I've typed in your additions properly, gives only the same output as my original code (iedraw.RichText(TextEdit1.text, 0, 0, rth, rtw) - scrunched up unspaced output just fitting into 1cm at top of page DIM myreport AS NEW Report 'DIM hRichText AS ReportRichText DIM hRichText AS ReportTextLabel Printer.Setup() myreport.Size = "A4" myreport.Resolution = Printer.Resolution myreport.Padding = "1.5 cm" myreport.Spacing = "0.3 cm" hRichText = NEW ReportTextLabel(myreport) hRichText.Expand = TRUE hRichText.Text = TextEdit1.text Draw.Begin(Printer) myreport.Draw(1) Draw.End Did you test a simple example, does it work on your system? I'm keen to get this working as if I can most other obstacles to me starting a project will have been covered I think. Richard. Wed, 9 Jan 2008 10:12:10 am you wrote: > Le Tuesday 08 January 2008 23:01:15 richard terry, vous avez ?crit?: > > Thanks for your reply, but I am cretinously stupid with concepts. My mind > > needs something absolutely concrete and simple to be able to grasp it. > > > > My first attempt is as follows (dosn't work), it baulks at the line > > containing ReportRichTExt as 'unkown identifier' I've made sure I include > > gb.report in the project properties. My html is in TextEdit1. > > Don't forget that gb.report is really an early alpha component > > > ======================================== > > ? ? ? DIM myreport AS NEW Report > > ? ? ? DIM hRichText AS ReportTextLabel > > > ? > > ? ? ? Printer.Setup() > > ? ? > > ? ? ? myreport.Size = "A4" > > ? ? ? myreport.Resolution = Printer.Resolution > > ? ? ? myreport.Padding = "1.5 cm" > > ? ? ? myreport.Spacing = "0.3 cm" > > hRichText = New ReportTextLabel(myReport) > ? ? ? hRichText.Expand = TRUE > > > ? ? ? hRichText.Text = TextEdit1.text > > ? ? ? Draw.Begin(Printer) > > ? ? ? ? ? ? ? myreport.Draw(1) > > ? ? ? Draw.End > > > > > > Regards, and thanks for your patience with my stupidity! > > > > Richard > > > > On Tue, 8 Jan 2008 07:24:02 pm Fabien Bodard wrote: > > > Le Monday 07 January 2008 22:32:13 richard terry, vous avez ?crit?: > > > > I did peruse the printing examples and read the doc's and tried > > > > something like that. It sent stuff to the printer, but it was all > > > > scrunched almost overwriting all the lines. > > > > > > > > Tried combinations of stuff like this: > > > > > > > > Printer.Setup() > > > > > > > > > > > > draw.Begin(Printer) > > > > rth = draw.RichTextHeight(textedit1.text) > > > > rtw = draw.RichTextWidth(textedit1.text) > > > > draw.RichText(TextEdit1.text, 0, 0, rth, rtw) > > > > ' draw.RichText(TextEdit1.Text, 0, 0, 2000, 2000) > > > > draw.end > > > > > > > > Outputted the text but virtually all on one line. > > > > > > 2000 > page width no ? > > > > > > You can try that : > > > > > > Select the gb.report (not finished but...) > > > > > > Dim hRichText as ReportRichText > > > Dim hLabel as New ReportLabel(Report) > > > > > > Report.Size ="A4" > > > Report.Resolution = Printer.Resolution > > > Report.Padding = "1.5 cm" > > > Report.Spacing = "0.3 cm" > > > > > > > > > hLabel.Text = "My Title" > > > hLabel.Font = Font["16, Bold"] > > > > > > hRichText = NewReportRichText(Report) > > > > > > hRichText.Expand = True > > > hRichText.Text = "your text" > > > > > > Draw.Begin(Printer) > > > Report.Draw(1) > > > Draw.End > > > > > > > > > ... not tested > > > > > > > Maybe someone can give me more explicit example. > > > > > > > > Richard > > > > > > > > On Mon, 7 Jan 2008 11:14:38 pm you wrote: > > > > > On lundi 7 janvier 2008, richard terry wrote: > > > > > > Is this possible? > > > > > > > > > > > > Following the printing example from the examples, it only prints > > > > > > the result of textedit.text (which of course is the raw html > > > > > > code). > > > > > > > > > > > > Has anyone succeeded in printing the visual output from this > > > > > > control? > > > > > > > > > > > > Thanks > > > > > > > > > > > > Richard > > > > > > > > > > Use the Draw.RichText*() methods while drawing on the Printer > > > > > object. > > > > > > > > > > Regards, > > > > > > > > --------------------------------------------------------------------- > > > >-- -- Check out the new SourceForge.net Marketplace. > > > > It's the best place to buy or sell services for > > > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/mark > > > >et pl ac e _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ----------------------------------------------------------------------- > > >-- Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/market > > >pl ac e _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > >ac e _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1828... Wed Jan 9 04:33:11 2008 From: gambas at ...1828... (manuel viet) Date: Tue, 8 Jan 2008 19:33:11 -0800 (PST) Subject: [Gambas-user] Printing from the TextEdit html control In-Reply-To: <200801091357.04652.rterry@...1822...> References: <200801071805.07590.rterry@...1822...> <200801071314.38254.gambas@...1...> <200801080832.13544.rterry@...1822...> <200801080924.03126.gambas.fr@...626...> <200801090901.16011.rterry@...1822...> <200801090012.11516.gambas.fr@...626...> <200801091357.04652.rterry@...1822...> Message-ID: <14704615.post@...1379...> Richard Terry-2 wrote: > > Ok, This code (which I hope I've typed in your additions properly, gives > only > the same output as my original code (iedraw.RichText(TextEdit1.text, 0, 0, > rth, rtw) - scrunched up unspaced output just fitting into 1cm at top of > page > > DIM myreport AS NEW Report > 'DIM hRichText AS ReportRichText > DIM hRichText AS ReportTextLabel > Printer.Setup() > > myreport.Size = "A4" > myreport.Resolution = Printer.Resolution > myreport.Padding = "1.5 cm" > myreport.Spacing = "0.3 cm" > > hRichText = NEW ReportTextLabel(myreport) > hRichText.Expand = TRUE > hRichText.Text = TextEdit1.text > Draw.Begin(Printer) > myreport.Draw(1) > Draw.End > > Did you test a simple example, does it work on your system? I'm keen to > get > this working as if I can most other obstacles to me starting a project > will > have been covered I think. > > I'm just making a wild guess, but I think you should set the WordWrap property of hRichText to TRUE. It may explain otherwise that your text is printed on a single line instead of spreading down. So far, it's the only relevant difference between your code and the example I've spotted. ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Printing-from-the-TextEdit-html-control-tp14660012p14704615.html Sent from the gambas-user mailing list archive at Nabble.com. From ronstk at ...239... Wed Jan 9 06:25:01 2008 From: ronstk at ...239... (ron) Date: Wed, 9 Jan 2008 06:25:01 +0100 Subject: [Gambas-user] Array 2 String or different approach on what im trying to do. In-Reply-To: <14695884.post@...1379...> References: <14695884.post@...1379...> Message-ID: <200801090625.02009.ronstk@...239...> On Tuesday 08 January 2008 19:43, lozza1978 wrote: > > Hi All. > > Im after a little help again (Sorry for lack of knowledge guys) > > I have a textbox and a browse button, you click browse, select a file and > the file path, including filename gets added inside the textbox. > > what im after is the directory of the file selected, so this is what I have > > > DIM Elt AS String[] > DIM Sb AS String > DIM Sdir AS String > DIM sstri AS String[] > > Dialog.Title = "Select A Movie File to convert 2 DVD:" > IF Dialog.OpenFile() THEN RETURN > Textbox1.Text = Dialog.Path > > > Elt = Split(Textbox1.Text, "/") <--Split the path > > Sdir = Elt.Length - 1 <--here Im finding out how many elements in the array > Elt.Remove(Elt.Length - 1) <-- here removing the filename, so that I have > the directory where the file is located > > > FOR EACH Sb IN Elt > > PRINT sb; "/"; > > NEXT > PRINT > END > > > the code above works and the foreach prints the correct directory path, But > i some how need to get the output of the foreach into a string so I can call > the directory path using a string/variable > > im just confusing myself now, hope someone can understand what im trying to > do and help me, thanks again for reading. > > > In you way: DIM Elt AS String[] Elt = Split(Textbox1.Text, "/") <--Split the path ' http://gambasdoc.org/help/comp/gb/string[]/pop Elt.Pop() <-- here removing the filename ' http://gambasdoc.org/help/comp/gb/string[]/join thedir= Elt.join('/') <-- the path But the most simple one: thedir=File.Dir(Textbox1.Text) Ron From hennie at ...1826... Wed Jan 9 09:58:22 2008 From: hennie at ...1826... (gaupe) Date: Wed, 9 Jan 2008 00:58:22 -0800 (PST) Subject: [Gambas-user] Printing from the TextEdit html control In-Reply-To: <14704615.post@...1379...> References: <200801071805.07590.rterry@...1822...> <200801071314.38254.gambas@...1...> <200801080832.13544.rterry@...1822...> <200801080924.03126.gambas.fr@...626...> <200801090901.16011.rterry@...1822...> <200801090012.11516.gambas.fr@...626...> <200801091357.04652.rterry@...1822...> <14704615.post@...1379...> Message-ID: <14707594.post@...1379...> I am playing a little with this too and see in the last example that if you do Draw.Begin(Printer) myreport.Preview() Draw.End it looks quit oke on the preview. theres a print button in the preview window pressing that gives in the console output the followig QPainter::begin: Another QPainter is already painting this device; An extended paint device can only be painted by one QPainter at a time. QPainter::setFont: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setClipRegion: Will be reset by begin() QPainter::setClipping: Will be reset by begin() QPainter::setWorldMatrix: Will be reset by begin() QPainter::setWorldMatrix: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setWorldMatrix: Will be reset by begin() QPainter::setWorldMatrix: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setWorldMatrix: Will be reset by begin() QPainter::setWorldMatrix: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setFont: Will be reset by begin() QPainter::setWorldMatrix: Will be reset by begin() QPainter::setWorldMatrix: Will be reset by begin() QPainter::setPen: Will be reset by begin() QPainter::setClipping: Will be reset by begin() manuel viet wrote: > > > Richard Terry-2 wrote: >> >> Ok, This code (which I hope I've typed in your additions properly, gives >> only >> the same output as my original code (iedraw.RichText(TextEdit1.text, 0, >> 0, >> rth, rtw) - scrunched up unspaced output just fitting into 1cm at top of >> page >> >> DIM myreport AS NEW Report >> 'DIM hRichText AS ReportRichText >> DIM hRichText AS ReportTextLabel >> Printer.Setup() >> >> myreport.Size = "A4" >> myreport.Resolution = Printer.Resolution >> myreport.Padding = "1.5 cm" >> myreport.Spacing = "0.3 cm" >> >> hRichText = NEW ReportTextLabel(myreport) >> hRichText.Expand = TRUE >> hRichText.Text = TextEdit1.text >> Draw.Begin(Printer) >> myreport.Draw(1) >> Draw.End >> >> Did you test a simple example, does it work on your system? I'm keen to >> get >> this working as if I can most other obstacles to me starting a project >> will >> have been covered I think. >> >> > > I'm just making a wild guess, but I think you should > set the WordWrap property of hRichText to TRUE. > > It may explain otherwise that your text is printed on > a single line instead of spreading down. > > So far, it's the only relevant difference between > your code and the example I've spotted. > -- View this message in context: http://www.nabble.com/Printing-from-the-TextEdit-html-control-tp14660012p14707594.html Sent from the gambas-user mailing list archive at Nabble.com. From hennie at ...1826... Wed Jan 9 12:09:25 2008 From: hennie at ...1826... (gaupe) Date: Wed, 9 Jan 2008 03:09:25 -0800 (PST) Subject: [Gambas-user] Combobox1.sort=true sorts different then Astring.sort Message-ID: <14709719.post@...1379...> Why does the combobox.sort=true sort different then a sort in a string array? would be very confusing (if i didnt make a mistake :-/) if i have dim Astring as new string[] ["-this-","Ape"] then combobox1.list=Astring combobox.sort=TRUE first item in list will be "Ape" gives a different result from astring.sort combobox1.list=astring combobox.sort=FALSE First item in list will be "-this-" -- View this message in context: http://www.nabble.com/Combobox1.sort%3Dtrue-sorts-different-then-Astring.sort-tp14709719p14709719.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Jan 9 12:27:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 9 Jan 2008 12:27:06 +0100 Subject: [Gambas-user] Combobox1.sort=true sorts different then Astring.sort In-Reply-To: <14709719.post@...1379...> References: <14709719.post@...1379...> Message-ID: <200801091227.06970.gambas@...1...> On mercredi 9 janvier 2008, gaupe wrote: > Why does the combobox.sort=true > sort different then a sort in a string array? > would be very confusing (if i didnt make a mistake :-/) > > if i have > > dim Astring as new string[] > > ["-this-","Ape"] > > then > > combobox1.list=Astring > combobox.sort=TRUE > > first item in list will be "Ape" > > gives a different result from > > astring.sort > combobox1.list=astring > combobox.sort=FALSE > > First item in list will be "-this-" Because QT sorts differently than the interpreter. Regards, -- Benoit Minisini From ronstk at ...239... Wed Jan 9 13:42:02 2008 From: ronstk at ...239... (ron) Date: Wed, 9 Jan 2008 13:42:02 +0100 Subject: [Gambas-user] Combobox1.sort=true sorts different then Astring.sort In-Reply-To: <14709719.post@...1379...> References: <14709719.post@...1379...> Message-ID: <200801091342.02573.ronstk@...239...> On Wednesday 09 January 2008 12:09, gaupe wrote: > > Why does the combobox.sort=true > sort different then a sort in a string array? > would be very confusing (if i didnt make a mistake :-/) > > if i have > > dim Astring as new string[] > > ["-this-","Ape"] > > then > > combobox1.list=Astring > combobox.sort=TRUE > > first item in list will be "Ape" > > gives a different result from > > astring.sort > combobox1.list=astring > combobox.sort=FALSE > > First item in list will be "-this-" > > If you sort the string array it sorts the value of each entry. The key of the items are keep to the entry and are mangled. Here now as [1], [0] I asume next hapens: 1) When you put the array into the combobox the entry order (keys) are in sequential order restored by qt. Setting 'combobox.sort=FALSE' should not change the values. Setting 'combobox.sort=true' should order the values. 2) The values are in the same order as the array after 'astring.sort' and the keys are mangled. Setting 'combobox.sort=FALSE' tels QT to restore the sequential order by key values. Alternatives: When you copy the sorted values from astring entry by entry to a new string array (bstring) wich reorders the key in the same order as values. After the copy do combobox1.list=bstring. You can also add the items with foreach to the combobox after the astring.sort. In this way 'combobox.sort=FALSE' should not change the order. Ron > Because QT sorts differently than the interpreter. > As Benoit says The '-' and '_' (minus and underscore) behaviour with sorting in qt is also noticed in konqueror with filenames. starting with '-' to get it as first in directory listing does not work. It takes the first alfabet character instead of '-' or '_'. Anyway at my box with kubuntu. From hennie at ...1826... Wed Jan 9 16:04:59 2008 From: hennie at ...1826... (gaupe) Date: Wed, 9 Jan 2008 07:04:59 -0800 (PST) Subject: [Gambas-user] Combobox1.sort=true sorts different then Astring.sort In-Reply-To: <200801091342.02573.ronstk@...239...> References: <14709719.post@...1379...> <200801091342.02573.ronstk@...239...> Message-ID: <14713709.post@...1379...> ron thanks for the complete explanation of how qt does this i get the system and the example was not in one sequential order the second one was standalone and combobox1.sort was default false so id did what you suggest there later. My meaning however stays that i now have to, in one language constantly think. ehhh... sort was it the interpreter was it qt was it sometehing else... it gets confusing same with the utf-8 thingy in gambas as soon as you go out of the standard simple ascii you suddenly are confronted with the fact that asc and chr do not get utf-8 and have to use other means like string.length and so on to solve it. one time you can use len($this) the other time you have to use string.length(this) (or was it another synax.. youll get wat im aiming at i guess) would be nice in my opinion that all would use One standard. But hey thats life and i can live with it ;-) Ron Onstenk wrote: > > On Wednesday 09 January 2008 12:09, gaupe wrote: >> >> Why does the combobox.sort=true >> sort different then a sort in a string array? >> would be very confusing (if i didnt make a mistake :-/) >> >> if i have >> >> dim Astring as new string[] >> >> ["-this-","Ape"] >> >> then >> >> combobox1.list=Astring >> combobox.sort=TRUE >> >> first item in list will be "Ape" >> >> gives a different result from >> >> astring.sort >> combobox1.list=astring >> combobox.sort=FALSE >> >> First item in list will be "-this-" >> >> > > If you sort the string array it sorts the value of each entry. > The key of the items are keep to the entry and are mangled. > Here now as [1], [0] > > I asume next hapens: > > 1) > When you put the array into the combobox the entry order (keys) > are in sequential order restored by qt. > Setting 'combobox.sort=FALSE' should not change the values. > Setting 'combobox.sort=true' should order the values. > > > 2) The values are in the same order as the array after 'astring.sort' > and the keys are mangled. > Setting 'combobox.sort=FALSE' tels QT to restore the sequential order > by key values. > > > > Alternatives: > > When you copy the sorted values from astring entry by entry to a new > string array (bstring) wich reorders the key in the same order as values. > After the copy do combobox1.list=bstring. > > You can also add the items with foreach to the combobox after the > astring.sort. > In this way 'combobox.sort=FALSE' should not change the order. > > > > Ron > >> Because QT sorts differently than the interpreter. >> > As Benoit says > > The '-' and '_' (minus and underscore) behaviour with sorting in qt > is also noticed in konqueror with filenames. > starting with '-' to get it as first in directory listing does not work. > It takes the first alfabet character instead of '-' or '_'. > Anyway at my box with kubuntu. > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Combobox1.sort%3Dtrue-sorts-different-then-Astring.sort-tp14709719p14713709.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Jan 9 16:14:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 9 Jan 2008 16:14:43 +0100 Subject: [Gambas-user] 64 bits version Message-ID: <200801091614.44194.gambas@...1...> I'm currently trying to port Gambas to 64 bits, but I don't do it on a 64 bits machine at the moment. Until I can work on a 64 bits system, it will be cool if some people having a 64 bits system could help me. Everything is there: # svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/64bits Please try to compile it, and tell me what errors you have, and which revision you used. Thanks in advance. Regards, -- Benoit Minisini From gambas at ...1828... Wed Jan 9 16:34:04 2008 From: gambas at ...1828... (manuel viet) Date: Wed, 9 Jan 2008 07:34:04 -0800 (PST) Subject: [Gambas-user] Combobox1.sort=true sorts different then Astring.sort In-Reply-To: <14713709.post@...1379...> References: <14709719.post@...1379...> <200801091342.02573.ronstk@...239...> <14713709.post@...1379...> Message-ID: <14714196.post@...1379...> gaupe wrote: > > > My meaning however stays that i now have to, in one language constantly > think. > > > ehhh... sort was it the interpreter was it qt was it sometehing else... > > it gets confusing > > same with the utf-8 thingy in gambas > > as soon as you go out of the standard simple ascii you suddenly are > confronted with the fact that > asc and chr do not get utf-8 > and have to use other means like string.length and so on to solve it. > > would be nice in my opinion that all would use One standard. > > IMHO, sorting twice the same array is counter productive. Of course it doesn't matter for a couple of values (even for a couple hundred values) but it can impact performances badly if you're doing that in the (more than) thousand range. When the array is made of strings, the obvious standard is to stick to UTF-8 and strings methods. I don't know really for Gambas, but those functions should be localized, and the sorting order depends on the language of the writer. For instance, 'e' and '?' are the same letter in french but are not the same ascii char. Ditto for all diacritics, depending on the language. I suspect it might be even worse for some other languages. Is '?' a 't' in old english ? Is it before '?' ? Is '?' only a 'a' in latin or should it be considered to be the two letters AE ? My advice is to never ever in any language and under any circumstances mess with the strings manipulation functions. Direct byte access of strings is really a thing of the past. ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Combobox1.sort%3Dtrue-sorts-different-then-Astring.sort-tp14709719p14714196.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Jan 9 16:44:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 9 Jan 2008 16:44:16 +0100 Subject: [Gambas-user] Combobox1.sort=true sorts different then Astring.sort In-Reply-To: <14713709.post@...1379...> References: <14709719.post@...1379...> <200801091342.02573.ronstk@...239...> <14713709.post@...1379...> Message-ID: <200801091644.17001.gambas@...1...> On mercredi 9 janvier 2008, gaupe wrote: > ron thanks for the complete explanation of how qt does this > > > i get the system > and the example was not in one sequential order > the second one was standalone and > combobox1.sort was default false so id did what you suggest there later. > > My meaning however stays that i now have to, in one language constantly > think. > > > ehhh... sort was it the interpreter was it qt was it sometehing else... > > it gets confusing > > same with the utf-8 thingy in gambas > > as soon as you go out of the standard simple ascii you suddenly are > confronted with the fact that > asc and chr do not get utf-8 > and have to use other means like string.length and so on to solve it. > > one time you can use len($this) > the other time you have to use string.length(this) (or was it another > synax.. youll get wat im aiming at i guess) > > would be nice in my opinion that all would use One standard. > > > But hey thats life and i can live with it ;-) > > Ron Onstenk wrote: > > On Wednesday 09 January 2008 12:09, gaupe wrote: > >> Why does the combobox.sort=true > >> sort different then a sort in a string array? > >> would be very confusing (if i didnt make a mistake :-/) > >> > >> if i have > >> > >> dim Astring as new string[] > >> > >> ["-this-","Ape"] > >> > >> then > >> > >> combobox1.list=Astring > >> combobox.sort=TRUE > >> > >> first item in list will be "Ape" > >> > >> gives a different result from > >> > >> astring.sort > >> combobox1.list=astring > >> combobox.sort=FALSE > >> > >> First item in list will be "-this-" > > > > If you sort the string array it sorts the value of each entry. > > The key of the items are keep to the entry and are mangled. > > Here now as [1], [0] > > > > I asume next hapens: > > > > 1) > > When you put the array into the combobox the entry order (keys) > > are in sequential order restored by qt. > > Setting 'combobox.sort=FALSE' should not change the values. > > Setting 'combobox.sort=true' should order the values. > > > > > > 2) The values are in the same order as the array after 'astring.sort' > > and the keys are mangled. > > Setting 'combobox.sort=FALSE' tels QT to restore the sequential order > > by key values. > > > > > > > > Alternatives: > > > > When you copy the sorted values from astring entry by entry to a new > > string array (bstring) wich reorders the key in the same order as values. > > After the copy do combobox1.list=bstring. > > > > You can also add the items with foreach to the combobox after the > > astring.sort. > > In this way 'combobox.sort=FALSE' should not change the order. > > > > > > > > Ron > > > >> Because QT sorts differently than the interpreter. > > > > As Benoit says > > > > The '-' and '_' (minus and underscore) behaviour with sorting in qt > > is also noticed in konqueror with filenames. > > starting with '-' to get it as first in directory listing does not work. > > It takes the first alfabet character instead of '-' or '_'. > > Anyway at my box with kubuntu. > > To know how to sort strings in Gambas, I suggest reading the documentation about the String class, understanding what UTF-8 is, and looking at the documentation of the String[].Sort() method that can sort UTF-8 strings according to the locale, but not necessarily the same way as QT. Regards, -- Benoit Minisini From pete992000 at ...1683... Wed Jan 9 17:33:49 2008 From: pete992000 at ...1683... (Peter Russell) Date: Wed, 09 Jan 2008 20:33:49 +0400 Subject: [Gambas-user] Settings Message-ID: <1199896429.11265.2.camel@...1798...> Hi The Settings .conf file defaults to your project name which is great but I was wondering if it is possible to create your own .conf file using Settings also. So in effect having more than one config file. Regards Pete ____________________________________________________________ FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop! Check it out at http://www.inbox.com/marineaquarium From gambas at ...1828... Wed Jan 9 17:55:28 2008 From: gambas at ...1828... (manuel viet) Date: Wed, 9 Jan 2008 08:55:28 -0800 (PST) Subject: [Gambas-user] Settings In-Reply-To: <1199896429.11265.2.camel@...1798...> References: <1199896429.11265.2.camel@...1798...> Message-ID: <14715876.post@...1379...> Peter Russell-4 wrote: > > Hi > > The Settings .conf file defaults to your project name which is great but > I was wondering if it is possible to create your own .conf file using > Settings also. So in effect having more than one config file. > > see http://gambasdoc.org/help/comp/gb.settings/settings/_new regards, ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Settings-tp14715722p14715876.html Sent from the gambas-user mailing list archive at Nabble.com. From adjie_hea at ...1541... Wed Jan 9 18:02:16 2008 From: adjie_hea at ...1541... (adjie) Date: Thu, 10 Jan 2008 00:02:16 +0700 Subject: [Gambas-user] ValueBox can't set to dd-mm-yyyy Message-ID: Hi all, I set the valuebox type to Date and I have dificulty to change the default format for date. The default is mm/dd/yyyy, what I want is dd/mm/yyyy. I already try to change the kde regional setting, but it doesn't take effect. where to change that ? and is it possible to change the separator ? Also when using ValueBox-GTK, I have to move the cursor to right if I want to type the day value otherwise it will replace the 2nd value. for example I type 01/31/2008, where I type 3 it will replace 1. It doesn't happend when using qt or gui component. Using opensuse 10.3. Many thanks, Adjie From jredrejo at ...626... Wed Jan 9 20:04:52 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Wed, 9 Jan 2008 20:04:52 +0100 Subject: [Gambas-user] 64 bits version In-Reply-To: <200801091614.44194.gambas@...1...> References: <200801091614.44194.gambas@...1...> Message-ID: <8eb28a500801091104s415eb37ev9069b74810e9e854@...627...> Ok, First try on a 64 bits amd system. svn revision 936, executed ./reconf-all ./configure --prefix=/usr Only some libraries installed so, configure final output was: THESE COMPONENTS ARE DISABLED: - gb.compress.bzlib2 - gb.corba - gb.db.firebird - gb.db.mysql - gb.db.odbc - gb.db.postgresql - gb.db.sqlite2 - gb.db.sqlite3 - gb.gtk.svg - gb.net.curl - gb.opengl - gb.pcre - gb.pdf - gb.qt - gb.qt.kde - gb.qte - gb.sdl - gb.sdl.sound ************************************************************ The compilation failed pretty soon, I've copied the whole process in the attached file. I guess you don't need it, but, anyway, config.log is attached too. Regards. Jos? L. 2008/1/9, Benoit Minisini : > > I'm currently trying to port Gambas to 64 bits, but I don't do it on a 64 > bits > machine at the moment. > > Until I can work on a 64 bits system, it will be cool if some people > having a > 64 bits system could help me. > > Everything is there: > # svn checkout > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/64bits > > Please try to compile it, and tell me what errors you have, and which > revision > you used. > > Thanks in advance. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas64bits-r936.log Type: text/x-log Size: 26952 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: text/x-log Size: 11279 bytes Desc: not available URL: From gambas at ...1... Wed Jan 9 20:21:29 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 9 Jan 2008 20:21:29 +0100 Subject: [Gambas-user] 64 bits version In-Reply-To: <8eb28a500801091104s415eb37ev9069b74810e9e854@...627...> References: <200801091614.44194.gambas@...1...> <8eb28a500801091104s415eb37ev9069b74810e9e854@...627...> Message-ID: <200801092021.29576.gambas@...1...> On mercredi 9 janvier 2008, Jos? Luis Redrejo wrote: > Ok, First try on a 64 bits amd system. > > svn revision 936, > > executed > ./reconf-all > ./configure --prefix=/usr > > Only some libraries installed so, configure final output was: > THESE COMPONENTS ARE DISABLED: > > - gb.compress.bzlib2 > - gb.corba > - gb.db.firebird > - gb.db.mysql > - gb.db.odbc > - gb.db.postgresql > - gb.db.sqlite2 > - gb.db.sqlite3 > - gb.gtk.svg > - gb.net.curl > - gb.opengl > - gb.pcre > - gb.pdf > - gb.qt > - gb.qt.kde > - gb.qte > - gb.sdl > - gb.sdl.sound > > ************************************************************ > > > The compilation failed pretty soon, I've copied the whole process in the > attached file. > I guess you don't need it, but, anyway, config.log is attached too. > > Regards. > Jos? L. > Thanks. Send the result on the developer mailing-list instead, and it will be perfect :-) You can try rev. 939 now! Regards, -- Benoit Minisini From gambas at ...1... Wed Jan 9 20:25:29 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 9 Jan 2008 20:25:29 +0100 Subject: [Gambas-user] ValueBox can't set to dd-mm-yyyy In-Reply-To: References: Message-ID: <200801092025.29176.gambas@...1...> On mercredi 9 janvier 2008, adjie wrote: > Hi all, > > I set the valuebox type to Date and I have dificulty to change the default > format for date. The default is mm/dd/yyyy, what I want is dd/mm/yyyy. I > already try to change the kde regional setting, but it doesn't take effect. > where to change that ? and is it possible to change the separator ? The date format is given by the LANG & LC_* environment variable. KDE uses its own system, don't know why. Maybe they found the GNU libc system too limited? Now please explain why you don't what to use the date format of your current locale? > > > > Also when using ValueBox-GTK, I have to move the cursor to right if I want > to type the day value otherwise it will replace the 2nd value. for example > I type 01/31/2008, where I type 3 it will replace 1. It doesn't happend > when using qt or gui component. Using opensuse 10.3. A bug in gb.gtk for sure - I will check later. At the moment, I'm in the 64 bits stuff! Regards, -- Benoit Minisini From gambas at ...1... Wed Jan 9 20:28:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 9 Jan 2008 20:28:03 +0100 Subject: [Gambas-user] Little improvement In-Reply-To: <4781FEE8.8050103@...1237...> References: <4781FEE8.8050103@...1237...> Message-ID: <200801092028.03551.gambas@...1...> On lundi 7 janvier 2008, Leonardo Miliani wrote: > I would suggest a little improvement to Benoit for Gambas :-) > > Why the message windows that are opened using Message.xxxx command don't > have any icon? > It would be nice if the message window checked if the calling form has > an icon and used it in place of the generic window form icon, doesn't it? I'm not sure to understand what you are talking about... Do you have a screenshot? -- Benoit Minisini From piresl at ...626... Wed Jan 9 22:02:12 2008 From: piresl at ...626... (lozza1978) Date: Wed, 9 Jan 2008 13:02:12 -0800 (PST) Subject: [Gambas-user] Little improvement In-Reply-To: <4781FEE8.8050103@...1237...> References: <4781FEE8.8050103@...1237...> Message-ID: <14721401.post@...1379...> at reading the post, i am thinking the user whats to know how to add a custom icon to the Message.[options] box that pops up? Thats my understanding Leonardo Miliani wrote: > > I would suggest a little improvement to Benoit for Gambas :-) > > Why the message windows that are opened using Message.xxxx command don't > have any icon? > It would be nice if the message window checked if the calling form has > an icon and used it in place of the generic window form icon, doesn't it? > > -- > Ciao. > Leo. > > Web: www.leonardomiliani.com > E-mail: leonardo at ...1237... > Scegli software opensource - Choose opensource software > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- View this message in context: http://www.nabble.com/Little-improvement-tp14663508p14721401.html Sent from the gambas-user mailing list archive at Nabble.com. From piresl at ...626... Wed Jan 9 22:05:27 2008 From: piresl at ...626... (lozza1978) Date: Wed, 9 Jan 2008 13:05:27 -0800 (PST) Subject: [Gambas-user] Little improvement Message-ID: <14721401.post@...1379...> at reading the post, i am thinking the user whats to know how to call the icon from the main form to the Message.[options] box that pops up? Thats my understanding Leonardo Miliani wrote: > > I would suggest a little improvement to Benoit for Gambas :-) > > Why the message windows that are opened using Message.xxxx command don't > have any icon? > It would be nice if the message window checked if the calling form has > an icon and used it in place of the generic window form icon, doesn't it? > > -- > Ciao. > Leo. > > Web: www.leonardomiliani.com > E-mail: leonardo at ...1237... > Scegli software opensource - Choose opensource software > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- View this message in context: http://www.nabble.com/Little-improvement-tp14663508p14721401.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Wed Jan 9 22:15:05 2008 From: rterry at ...1822... (richard terry) Date: Thu, 10 Jan 2008 08:15:05 +1100 Subject: [Gambas-user] Printing from the TextEdit html control In-Reply-To: <6324a42a0801090342j42a13a08t4617b17cdb06894c@...627...> References: <200801071805.07590.rterry@...1822...> <200801091357.04652.rterry@...1822...> <6324a42a0801090342j42a13a08t4617b17cdb06894c@...627...> Message-ID: <200801100815.05310.rterry@...1822...> Bummer, I went to the address, downloaded the file, and when unzipping got an 'uncoverable end of file error'!!!!!!. The part of one of the file I managed to view contained down to ?these lines: PUBLIC SUB ToolButton2_Click() ? 'This is how to print a complete report ? DIM i AS and then presumably, this is where the file got chopped of in the failed unzip operation. Could you send me your zip as an attatchment? Thanks. On Wed, 9 Jan 2008 10:42:40 pm Fabien Bodard wrote: > go to http://www.gambasforge.net > > there is an example for reports... tell me if you understand better > > http://www.gambasforge.net/cgi-bin/index.gambas?section=code&id=105 > > 2008/1/9, richard terry : > > Ok, This code (which I hope I've typed in your additions properly, gives > > only > > the same output as my original code (iedraw.RichText(TextEdit1.text, 0, > > 0, rth, rtw) - scrunched up unspaced output just fitting into 1cm at top > > of page > > > > DIM myreport AS NEW Report > > 'DIM hRichText AS ReportRichText > > DIM hRichText AS ReportTextLabel > > Printer.Setup() > > > > myreport.Size = "A4" > > myreport.Resolution = Printer.Resolution > > myreport.Padding = "1.5 cm" > > myreport.Spacing = "0.3 cm" > > > > hRichText = NEW ReportTextLabel(myreport) > > hRichText.Expand = TRUE > > hRichText.Text = TextEdit1.text > > Draw.Begin(Printer) > > myreport.Draw(1) > > Draw.End > > > > Did you test a simple example, does it work on your system? I'm keen to > > get > > this working as if I can most other obstacles to me starting a project > > will > > have been covered I think. > > > > Richard. > > > > Wed, 9 Jan 2008 10:12:10 am you wrote: > > > Le Tuesday 08 January 2008 23:01:15 richard terry, vous avez ?crit: > > > > Thanks for your reply, but I am cretinously stupid with concepts. My > > > > mind > > > > > > needs something absolutely concrete and simple to be able to grasp > > > > it. > > > > > > > > My first attempt is as follows (dosn't work), it baulks at the line > > > > containing ReportRichTExt as 'unkown identifier' I've made sure I > > > > include > > > > > > gb.report in the project properties. My html is in TextEdit1. > > > > > > Don't forget that gb.report is really an early alpha component > > > > > > > ======================================== > > > > DIM myreport AS NEW Report > > > > > > DIM hRichText AS ReportTextLabel > > > > > > > Printer.Setup() > > > > > > > > myreport.Size = "A4" > > > > myreport.Resolution = Printer.Resolution > > > > myreport.Padding = "1.5 cm" > > > > myreport.Spacing = "0.3 cm" > > > > > > hRichText = New ReportTextLabel(myReport) > > > hRichText.Expand = TRUE > > > > > > > hRichText.Text = TextEdit1.text > > > > Draw.Begin(Printer) > > > > myreport.Draw(1) > > > > Draw.End > > > > > > > > > > > > Regards, and thanks for your patience with my stupidity! > > > > > > > > Richard > > > > > > > > On Tue, 8 Jan 2008 07:24:02 pm Fabien Bodard wrote: > > > > > Le Monday 07 January 2008 22:32:13 richard terry, vous avez ?crit: > > > > > > I did peruse the printing examples and read the doc's and tried > > > > > > something like that. It sent stuff to the printer, but it was all > > > > > > scrunched almost overwriting all the lines. > > > > > > > > > > > > Tried combinations of stuff like this: > > > > > > > > > > > > Printer.Setup() > > > > > > > > > > > > > > > > > > draw.Begin(Printer) > > > > > > rth = draw.RichTextHeight(textedit1.text) > > > > > > rtw = draw.RichTextWidth(textedit1.text) > > > > > > draw.RichText(TextEdit1.text, 0, 0, rth, rtw) > > > > > > ' draw.RichText(TextEdit1.Text, 0, 0, 2000, 2000) > > > > > > draw.end > > > > > > > > > > > > Outputted the text but virtually all on one line. > > > > > > > > > > 2000 > page width no ? > > > > > > > > > > You can try that : > > > > > > > > > > Select the gb.report (not finished but...) > > > > > > > > > > Dim hRichText as ReportRichText > > > > > Dim hLabel as New ReportLabel(Report) > > > > > > > > > > Report.Size ="A4" > > > > > Report.Resolution = Printer.Resolution > > > > > Report.Padding = "1.5 cm" > > > > > Report.Spacing = "0.3 cm" > > > > > > > > > > > > > > > hLabel.Text = "My Title" > > > > > hLabel.Font = Font["16, Bold"] > > > > > > > > > > hRichText = NewReportRichText(Report) > > > > > > > > > > hRichText.Expand = True > > > > > hRichText.Text = "your text" > > > > > > > > > > Draw.Begin(Printer) > > > > > Report.Draw(1) > > > > > Draw.End > > > > > > > > > > > > > > > ... not tested > > > > > > > > > > > Maybe someone can give me more explicit example. > > > > > > > > > > > > Richard > > > > > > > > > > > > On Mon, 7 Jan 2008 11:14:38 pm you wrote: > > > > > > > On lundi 7 janvier 2008, richard terry wrote: > > > > > > > > Is this possible? > > > > > > > > > > > > > > > > Following the printing example from the examples, it only > > > > prints > > > > > > > > > > the result of textedit.text (which of course is the raw html > > > > > > > > code). > > > > > > > > > > > > > > > > Has anyone succeeded in printing the visual output from this > > > > > > > > control? > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > Richard > > > > > > > > > > > > > > Use the Draw.RichText*() methods while drawing on the Printer > > > > > > > object. > > > > > > > > > > > > > > Regards, > > > > --------------------------------------------------------------------- > > > > > > > >-- -- Check out the new SourceForge.net Marketplace. > > > > > > It's the best place to buy or sell services for > > > > > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/mark > > > > > > > >et pl ac e _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ----------------------------------------------------------------------- > > > > > > >-- Check out the new SourceForge.net Marketplace. > > > > > It's the best place to buy or sell services for > > > > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/market > > > > > > >pl ac e _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > > > > > Check out the new SourceForge.net Marketplace. > > > > It's the best place to buy or sell services for > > > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > > > > > >ac e _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user From adjie_hea at ...1541... Wed Jan 9 22:41:10 2008 From: adjie_hea at ...1541... (adjie) Date: Thu, 10 Jan 2008 04:41:10 +0700 Subject: [Gambas-user] ValueBox can't set to dd-mm-yyyy In-Reply-To: <200801092025.29176.gambas@...1...> Message-ID: Thank a lot Benoit, Any example to environment variable and where to change the current locale ? sorry I'm very new in gambas. I'm just start converting my vb project to gambas. In vb, I just change the regional setting in control panel and it will affect to the vb default format or in other case I can use dateformat function to change the format inside my code. Is there any property just to change the format or can't you add it:) ? -----Original Message----- From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf Of Benoit Minisini Sent: Thursday, January 10, 2008 2:25 AM To: mailing list for gambas users Subject: Re: [Gambas-user] ValueBox can't set to dd-mm-yyyy On mercredi 9 janvier 2008, adjie wrote: > Hi all, > > I set the valuebox type to Date and I have dificulty to change the default > format for date. The default is mm/dd/yyyy, what I want is dd/mm/yyyy. I > already try to change the kde regional setting, but it doesn't take effect. > where to change that ? and is it possible to change the separator ? The date format is given by the LANG & LC_* environment variable. KDE uses its own system, don't know why. Maybe they found the GNU libc system too limited? Now please explain why you don't what to use the date format of your current locale? > > > > Also when using ValueBox-GTK, I have to move the cursor to right if I want > to type the day value otherwise it will replace the 2nd value. for example > I type 01/31/2008, where I type 3 it will replace 1. It doesn't happend > when using qt or gui component. Using opensuse 10.3. A bug in gb.gtk for sure - I will check later. At the moment, I'm in the 64 bits stuff! Regards, -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Jan 9 22:49:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 9 Jan 2008 22:49:16 +0100 Subject: [Gambas-user] ValueBox can't set to dd-mm-yyyy In-Reply-To: References: Message-ID: <200801092249.16163.gambas@...1...> On mercredi 9 janvier 2008, adjie wrote: > Thank a lot Benoit, > Any example to environment variable and where to change the current locale > ? sorry I'm very new in gambas. I'm just start converting my vb project to > gambas. In vb, I just change the regional setting in control panel and it > will affect to the vb default format or in other case I can use dateformat > function to change the format inside my code. Is there any property just to > change the format or can't you add it:) ? > You can do that at the startup of your program by setting the System.Language property with something like "fr_FR" for the french in France. But you must ensure that the corresponding locale are installed on your system. I can only tell you how to do that on Mandriva, I don't know other distributions. Regards, -- Benoit Minisini From gambas.fr at ...626... Wed Jan 9 23:30:44 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 9 Jan 2008 23:30:44 +0100 Subject: [Gambas-user] Printing from the TextEdit html control In-Reply-To: <200801100815.05310.rterry@...1822...> References: <200801071805.07590.rterry@...1822...> <6324a42a0801090342j42a13a08t4617b17cdb06894c@...627...> <200801100815.05310.rterry@...1822...> Message-ID: <200801092330.44650.gambas.fr@...626...> Ok i send it ... if you not understand with that ... i can't do more... :) -------------- next part -------------- A non-text attachment was scrubbed... Name: TestReport-0.0.1.tar.gz Type: application/x-tgz Size: 8594 bytes Desc: not available URL: From adjie_hea at ...1541... Thu Jan 10 00:25:36 2008 From: adjie_hea at ...1541... (adjie) Date: Thu, 10 Jan 2008 06:25:36 +0700 Subject: [Gambas-user] ValueBox can't set to dd-mm-yyyy(Solved) In-Reply-To: <200801092249.16163.gambas@...1...> Message-ID: Great, it works. In opensuse 10.3 I just set System.Language = "id_ID" (just following your pattern) for Indonesia. Regards, -- Adjie From leonardo at ...1237... Thu Jan 10 01:52:14 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 10 Jan 2008 01:52:14 +0100 Subject: [Gambas-user] Little improvement In-Reply-To: <200801092028.03551.gambas@...1...> References: <4781FEE8.8050103@...1237...> <200801092028.03551.gambas@...1...> Message-ID: <47856C3E.7010000@...1237...> Benoit Minisini ha scritto: > I'm not sure to understand what you are talking about... Do you have a > screenshot? Yes, I have :-) I've created a little test application with a simple form. It has its own icon (red arrow). Now, if I execute Message.Info("Test window"), a pop-up window will open. But, as you can see (blue arrow), it doesn't have the icon of the calling form but it has a generic icon. Also, the title isn't "beautiful" (test_app): it is the name of the app... instead of, say, a customizable message. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software -------------- next part -------------- A non-text attachment was scrubbed... Name: image.jpg Type: image/jpeg Size: 12650 bytes Desc: not available URL: From leonardo at ...1237... Thu Jan 10 01:53:04 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 10 Jan 2008 01:53:04 +0100 Subject: [Gambas-user] Little improvement In-Reply-To: <14721401.post@...1379...> References: <14721401.post@...1379...> Message-ID: <47856C70.5050708@...1237...> lozza1978 ha scritto: > at reading the post, > > i am thinking the user whats to know how to call the icon from the main form > to the Message.[options] box that pops up? > > Thats my understanding Yes :-) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From girardhenri at ...67... Thu Jan 10 07:19:06 2008 From: girardhenri at ...67... (Girard Henri) Date: Thu, 10 Jan 2008 07:19:06 +0100 Subject: [Gambas-user] 64 bits version References: <200801091614.44194.gambas@...1...> <8eb28a500801091104s415eb37ev9069b74810e9e854@...627...> Message-ID: i am interested :) i am going to compile it now on core duo intel kubuntu hardy ----- Original Message ----- From: "Jos? Luis Redrejo" To: "mailing list for gambas users" Sent: Wednesday, January 09, 2008 8:04 PM Subject: Re: [Gambas-user] 64 bits version Ok, First try on a 64 bits amd system. svn revision 936, executed ./reconf-all ./configure --prefix=/usr Only some libraries installed so, configure final output was: THESE COMPONENTS ARE DISABLED: - gb.compress.bzlib2 - gb.corba - gb.db.firebird - gb.db.mysql - gb.db.odbc - gb.db.postgresql - gb.db.sqlite2 - gb.db.sqlite3 - gb.gtk.svg - gb.net.curl - gb.opengl - gb.pcre - gb.pdf - gb.qt - gb.qt.kde - gb.qte - gb.sdl - gb.sdl.sound ************************************************************ The compilation failed pretty soon, I've copied the whole process in the attached file. I guess you don't need it, but, anyway, config.log is attached too. Regards. Jos? L. 2008/1/9, Benoit Minisini : > > I'm currently trying to port Gambas to 64 bits, but I don't do it on a 64 > bits > machine at the moment. > > Until I can work on a 64 bits system, it will be cool if some people > having a > 64 bits system could help me. > > Everything is there: > # svn checkout > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/64bits > > Please try to compile it, and tell me what errors you have, and which > revision > you used. > > Thanks in advance. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace -------------------------------------------------------------------------------- > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1822... Thu Jan 10 08:14:21 2008 From: rterry at ...1822... (richard terry) Date: Thu, 10 Jan 2008 18:14:21 +1100 Subject: [Gambas-user] Printing from the TextEdit html control In-Reply-To: <200801092330.44650.gambas.fr@...626...> References: <200801071805.07590.rterry@...1822...> <200801100815.05310.rterry@...1822...> <200801092330.44650.gambas.fr@...626...> Message-ID: <200801101814.21589.rterry@...1822...> On Thu, 10 Jan 2008 09:30:44 am Fabien Bodard wrote: > Ok i send it ... > > if you not understand with that ... i can't do more... :) Hope that last couple of :) was a smile? I'm sure you can, please read on below. I enclose an output from your program, which interestingly is identical to the output of my original code - scrunched up writing, so at least you can now see what I mean. This is probably not a proper pdf file, however it is an exact replication of what comes out my printer. ie my original code: draw.RichText(TextEdit1.text, produces essentially the same output as the scrunched up text you see in the file I enclose I use my system (archlinux) daily, print out prodigious quantities of stuff from everywhere - from the virtual machine it runs, to ordinary linux programs like kwrite, open office, adobe, kpdf etc, so I don't think this is a cups problem here. Do you think there is a bug in the richtext stuf that works in one environment and not others. I mean, I assume that when you print out from your programm the richtext shows up ok on the printout. I think you shouldn't abandon this issue, but together we (all) should track it down, because from posting I;ve put on another forum , someone else tried to acheive the same thing and got the same squished up result as I did. Awaiting your thoughts. Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: print.pdf Type: application/postscript Size: 60686 bytes Desc: not available URL: From girardhenri at ...67... Thu Jan 10 12:51:53 2008 From: girardhenri at ...67... (Henri Girard) Date: Thu, 10 Jan 2008 11:51:53 +0000 Subject: [Gambas-user] 64 bits version Message-ID: Here is the result kubuntu hardy intel coreduo (sorry i haven"'t AMD) _________________________________________________________________ Comme 9 millions de fran?ais, cr?ez un compte Hotmail ! http://www.windowslive.fr/hotmail/default.asp -------------- next part -------------- A non-text attachment was scrubbed... Name: ConfAndCompil.log Type: text/x-log Size: 76938 bytes Desc: not available URL: From gambas at ...1... Thu Jan 10 13:09:37 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Jan 2008 13:09:37 +0100 Subject: [Gambas-user] 64 bits version In-Reply-To: References: Message-ID: <200801101309.37890.gambas@...1...> On jeudi 10 janvier 2008, Henri Girard wrote: > Here is the result kubuntu hardy intel coreduo (sorry i haven"'t AMD) > > _________________________________________________________________ > Comme 9 millions de fran?ais, cr?ez un compte Hotmail ! > http://www.windowslive.fr/hotmail/default.asp Thanks. Apparently the .log file is truncated... Anyway, can you post 64 bits compilation result on the developer mailing-list instead of this one please? Regards, -- Benoit Minisini From gambas at ...1... Thu Jan 10 13:21:14 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Jan 2008 13:21:14 +0100 Subject: [Gambas-user] Little improvement In-Reply-To: <47856C3E.7010000@...1237...> References: <4781FEE8.8050103@...1237...> <200801092028.03551.gambas@...1...> <47856C3E.7010000@...1237...> Message-ID: <200801101321.14833.gambas@...1...> On jeudi 10 janvier 2008, Leonardo Miliani wrote: > Benoit Minisini ha scritto: > > I'm not sure to understand what you are talking about... Do you have a > > screenshot? > > Yes, I have :-) > I've created a little test application with a simple form. It has its > own icon (red arrow). > Now, if I execute Message.Info("Test window"), a pop-up window will open. > But, as you can see (blue arrow), it doesn't have the icon of the > calling form but it has a generic icon. Also, the title isn't > "beautiful" (test_app): it is the name of the app... instead of, say, a > customizable message. I don't have this problem on KDE, so maybe this a problem with the window manager. But with gb.gtk, the title of the message box is the application name, not the application title. Something to fix... Regards, -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: message.png Type: image/png Size: 11215 bytes Desc: not available URL: From gambas at ...1... Thu Jan 10 13:35:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Jan 2008 13:35:18 +0100 Subject: [Gambas-user] 64 bits version In-Reply-To: <200801101309.37890.gambas@...1...> References: <200801101309.37890.gambas@...1...> Message-ID: <200801101335.18401.gambas@...1...> On jeudi 10 janvier 2008, Benoit Minisini wrote: > On jeudi 10 janvier 2008, Henri Girard wrote: > > Here is the result kubuntu hardy intel coreduo (sorry i haven"'t AMD) > > > > _________________________________________________________________ > > Comme 9 millions de fran?ais, cr?ez un compte Hotmail ! > > http://www.windowslive.fr/hotmail/default.asp > > Thanks. Apparently the .log file is truncated... Anyway, can you post 64 > bits compilation result on the developer mailing-list instead of this one > please? > > Regards, It should be fixed in rev. 945. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Thu Jan 10 16:44:35 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 10 Jan 2008 07:44:35 -0800 (PST) Subject: [Gambas-user] Events Close & Resize Message-ID: <693261.94906.qm@...1668...> Hi all. I have some problems with Gambas 2.0 (Mandriva 2008.0, KDE) the event Resize is reached after the Close event when I close some form. I didn't happed on Gambas 1.9.91. Attached is an example, can some body validate... Or maybe it is normal and I'm wrong Best regards David ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -------------- next part -------------- A non-text attachment was scrubbed... Name: Error01.tar.bz2 Type: application/octet-stream Size: 9852 bytes Desc: not available URL: From gambas at ...1... Thu Jan 10 17:04:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 10 Jan 2008 17:04:07 +0100 Subject: [Gambas-user] Events Close & Resize In-Reply-To: <693261.94906.qm@...1668...> References: <693261.94906.qm@...1668...> Message-ID: <200801101704.07401.gambas@...1...> On jeudi 10 janvier 2008, David Villalobos Cambronero wrote: > Hi all. > > I have some problems with Gambas 2.0 (Mandriva 2008.0, KDE) the event > Resize is reached after the Close event when I close some form. I didn't > happed on Gambas 1.9.91. > > Attached is an example, can some body validate... > > Or maybe it is normal and I'm wrong > > Best regards > > David > This is subtle! The Form_Close is called first normally because you closed the child form. The Workspace internally created an Observer to be warn just after a child form is closed, so that it can remove it from the Workspace TabStrip. But the Observer is called during the Close event, so the Form is not closed yet, nor destroyed, and so continue on raising events normally. So this is internally logical, but externally strange. :-) I could prevent that by blocking form events while the Observer is removing the form from the TabStrip, but at the moment I not sure this is a good thing to break the internal logic. I must think about that a little before doing anything. Note that you didn't have this problem in 1.9.91, because the Observer was not used. On the other hand, the child form sometimes was not cleanly removed! Regards, -- Benoit Minisini From david_villalobos_c at ...43... Thu Jan 10 17:13:28 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 10 Jan 2008 08:13:28 -0800 (PST) Subject: [Gambas-user] Events Close & Resize Message-ID: <567344.89712.qm@...1655...> Great to know that, I think breaking the internal logic is not a good idea, I will change the application's logic to solve my problem. Thanks David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Thursday, January 10, 2008 10:04:07 AM Subject: Re: [Gambas-user] Events Close & Resize On jeudi 10 janvier 2008, David Villalobos Cambronero wrote: > Hi all. > > I have some problems with Gambas 2.0 (Mandriva 2008.0, KDE) the event > Resize is reached after the Close event when I close some form. I didn't > happed on Gambas 1.9.91. > > Attached is an example, can some body validate... > > Or maybe it is normal and I'm wrong > > Best regards > > David > This is subtle! The Form_Close is called first normally because you closed the child form. The Workspace internally created an Observer to be warn just after a child form is closed, so that it can remove it from the Workspace TabStrip. But the Observer is called during the Close event, so the Form is not closed yet, nor destroyed, and so continue on raising events normally. So this is internally logical, but externally strange. :-) I could prevent that by blocking form events while the Observer is removing the form from the TabStrip, but at the moment I not sure this is a good thing to break the internal logic. I must think about that a little before doing anything. Note that you didn't have this problem in 1.9.91, because the Observer was not used. On the other hand, the child form sometimes was not cleanly removed! Regards, -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From gambas.fr at ...626... Thu Jan 10 20:47:56 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 10 Jan 2008 20:47:56 +0100 Subject: [Gambas-user] Printing from the TextEdit html control In-Reply-To: <200801101814.21589.rterry@...1822...> References: <200801071805.07590.rterry@...1822...> <200801092330.44650.gambas.fr@...626...> <200801101814.21589.rterry@...1822...> Message-ID: <200801102047.56822.gambas.fr@...626...> Le Thursday 10 January 2008 08:14:21 richard terry, vous avez ?crit?: > On Thu, 10 Jan 2008 09:30:44 am Fabien Bodard wrote: > > Ok i send it ... > > > > if you not understand with that ... i can't do more... :) > > Hope that last couple of :) was a smile? I'm sure you can, please read on > below. > > I enclose an output from your program, which interestingly is identical to > the output of my original code - scrunched up writing, so at least you can > now see what I mean. This is probably not a proper pdf file, however it is > an exact replication of what comes out my printer. > > ie my original code: draw.RichText(TextEdit1.text, produces essentially > the same output as the scrunched up text you see in the file I enclose > > I use my system (archlinux) daily, print out prodigious quantities of stuff > from everywhere - from the virtual machine it runs, to ordinary linux > programs like kwrite, open office, adobe, kpdf etc, so I don't think this > is a cups problem here. > > Do you think there is a bug in the richtext stuf that works in one > environment and not others. I mean, I assume that when you print out from > your programm the richtext shows up ok on the printout. > > I think you shouldn't abandon this issue, but together we (all) should > track it down, because from posting I;ve put on another forum , someone > else tried to acheive the same thing and got the same squished up result as > I did. > > Awaiting your thoughts. > > Richard can you add the line Report.debug = true in the beginning and send me the result.... in pdf ... (it show all frame structure) this is strange ... as the output might be the same than me... From rterry at ...1822... Thu Jan 10 23:03:18 2008 From: rterry at ...1822... (richard terry) Date: Fri, 11 Jan 2008 09:03:18 +1100 Subject: [Gambas-user] How to extend properties of classes Message-ID: <200801110903.18609.rterry@...1822...> I've used the code in CCoolButton to construct an 'outlook style' side bar (like in gambas itself), but want a couple of extra properties. I want to be able to have a popup menu (done that and works) which allows the user to change the font size on the buttons. I did fiddle and try and create Font_Read and Font_Write in the file (by coping the structure of the other entries), but it comes up 'null object', so I wondered if someone could quickly explain how one extends the properties of an object like this. Tried something like adding this to the file: PRIVATE SUB Font_Write(Value AS String) ' $hLabel.Font = Value END PRIVATE FUNCTION Font_Read() AS String ' hFont = $hLabel.Font RETURN $hLabel.Font END Hope that makes sense as I don't understand what I'm doing. Regards Richard From gambas.fr at ...626... Thu Jan 10 23:26:30 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 10 Jan 2008 23:26:30 +0100 Subject: [Gambas-user] How to extend properties of classes In-Reply-To: <200801110903.18609.rterry@...1822...> References: <200801110903.18609.rterry@...1822...> Message-ID: <200801102326.31149.gambas.fr@...626...> Le Thursday 10 January 2008 23:03:18 richard terry, vous avez ?crit?: > I've used the code in CCoolButton to construct an 'outlook style' side bar > (like in gambas itself), but want a couple of extra properties. > > I want to be able to have a popup menu (done that and works) which allows > the user to change the font size on the buttons. > > I did fiddle and try and create Font_Read and Font_Write in the file (by > coping the structure of the other entries), but it comes up 'null object', > so I wondered if someone could quickly explain how one extends the > properties of an object like this. > > Tried something like adding this to the file: > > PRIVATE SUB Font_Write(Value AS String) > > ' $hLabel.Font = Value > > END > PRIVATE FUNCTION Font_Read() AS String > ' hFont = $hLabel.Font > RETURN $hLabel.Font > > END > > Hope that makes sense as I don't understand what I'm doing. > > Regards > > Richard > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user :) Me for a new time... Add this ion the header of the class : Property {Font} as Font then at the bottom : Sub Font_Write(Value as Font) hLabel.Font = Value End Function Font_Read() as Font Return hLabel.font End i'm not sur for hLabel it is maybe another name So now to use it : For example from string hButton.Font = Font["Bold, 16, Arial"] For example from object hButton.Font = Form.Font For example just modifi the font :) hButton.Font.Size = 1 hButton.Font.Name = "Arial" etc... From leonardo at ...1237... Fri Jan 11 00:31:49 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 11 Jan 2008 00:31:49 +0100 Subject: [Gambas-user] Little improvement In-Reply-To: <200801101321.14833.gambas@...1...> References: <4781FEE8.8050103@...1237...> <200801092028.03551.gambas@...1...> <47856C3E.7010000@...1237...> <200801101321.14833.gambas@...1...> Message-ID: <4786AAE5.8080305@...1237...> Benoit Minisini ha scritto: > I don't have this problem on KDE, so maybe this a problem with the window > manager. I use Ubuntu 7.10 with Gnome 2.20. > > But with gb.gtk, the title of the message box is the application name, not the > application title. Something to fix... I get the same result even if I use gb.qt component (on Gnome desktop, too). -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gunartha.nyoman at ...1817... Fri Jan 11 03:51:38 2008 From: gunartha.nyoman at ...1817... (gunartha.nyoman) Date: Fri, 11 Jan 2008 09:51:38 +0700 Subject: [Gambas-user] event keypress Message-ID: <200801110951.38925.gunartha.nyoman@...1817...> hi all, I am trying to use gambas. Please help me about code to resolve my problem 1. How to move cursor when I press key enter on keyboard ? 2. How to fill data from database (as a postgres database server) to gridview or table view. ? Regards Gunartha From rterry at ...1822... Fri Jan 11 03:27:28 2008 From: rterry at ...1822... (richard terry) Date: Fri, 11 Jan 2008 13:27:28 +1100 Subject: [Gambas-user] Connecting to Postgres (was Q in an event keypress header) Message-ID: <200801111327.28102.rterry@...1822...> Firstly I'd subclass your requests in different emails so as to not mix up topics as above otherwise in the long run no-one will know about the content - ie the header won't reflect the content. I'm assuming you want something basic, so with reference to your database thingy, here's a few lines of code to connect to an existing progress database with obviously postmaster running. It is essentially the same as the code in the database example except ?that the parameters are for postgres. You can get the rest of the code from the example. ?If you are already past that stage then I'll pass you on to more knowledgeable others. PRIVATE FUNCTION make_connection() AS Boolean ? ? ? ? ? ? WITH conn ? ? ? ? ? ? ? ? ? ? .Type = "postgresql" ? ? ? ? ? ? ? ? ? ? .Host = "localhost" ? ? ? ? ? ? ? ? ? ? .Login = "yourlogon" ? ? ? ? ? ? ? ? ? ? .Password = "your password" ? ? ? ? ? ? ? ? ? ? .Name = "yourdatabasename" ? ? ? ? ? END WITH ? ? ? ? ? TRY conn.OPEN ? ? ? ? ? IF ERROR THEN ? ? ? ? ? ? ? ? ? ? Message("Cannot open database. Error = " & Error.Text) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? RETURN FALSE ? ? ? ? ? END IF ? ? ? ? ? RETURN TRUE END > hi all, > > I am trying to use gambas. Please help me about code to resolve my problem > 1. How to move cursor when I press key enter on keyboard ? > 2. How to fill data from database (as a postgres database server) to > gridview or table view. ? > > Regards > Gunartha > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ariefbayu at ...626... Fri Jan 11 04:04:46 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Fri, 11 Jan 2008 10:04:46 +0700 Subject: [Gambas-user] event keypress In-Reply-To: <200801110951.38925.gunartha.nyoman@...1817...> References: <200801110951.38925.gunartha.nyoman@...1817...> Message-ID: <976ad9050801101904m5a744d90w88f2b56f84f1051a@...627...> On 1/11/08, gunartha.nyoman wrote: > > hi all, > > I am trying to use gambas. Please help me about code to resolve my problem > 1. How to move cursor when I press key enter on keyboard ? Did you mean change focus to another object? if so, set it to .SetFocus(). in your _KyePress() IF Key.Code = key.Return THEN .SetFocus() END IF 2. How to fill data from database (as a postgres database server) to > gridview > or table view. ? > > Regards > Gunartha > Greeting from Indonesia too :D. -- Daiguren Hy?rinmaru From rterry at ...1822... Fri Jan 11 04:28:22 2008 From: rterry at ...1822... (richard terry) Date: Fri, 11 Jan 2008 14:28:22 +1100 Subject: [Gambas-user] Tiny fonts in auto-complete unreadable (to my old eyes) Message-ID: <200801111428.22746.rterry@...1822...> Wondered if this has been/can be fixed - someone mentioned earlier that the value is fixed in the code at 8. On my screen the popup text is virtually unreadable (see the attatched file), which effectivley disables a powerful feature of gambas and makes learning difficult Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: tiny_fonts.png Type: image/png Size: 22139 bytes Desc: not available URL: From gunartha.nyoman at ...1817... Fri Jan 11 04:48:54 2008 From: gunartha.nyoman at ...1817... (gunartha.nyoman) Date: Fri, 11 Jan 2008 10:48:54 +0700 Subject: [Gambas-user] =?iso-8859-1?q?Connecting_to_Postgres_=28was_Q_in_a?= =?iso-8859-1?q?n_event=09keypress_header=29?= In-Reply-To: <200801111327.28102.rterry@...1822...> References: <200801111327.28102.rterry@...1822...> Message-ID: <200801111048.54287.gunartha.nyoman@...1817...> ok, thank for your reply the connection is ok, and then i want to see or fill data from a table (for example: tbldata) from server to screen/monitor. I use version gambas2 1.1.91and in toolbox I see gridview or tableview. my problem is how to use that control to see/fill data. Many thank for your help. Regards Gunartha On Friday 11 January 2008 09:27:28 am richard terry wrote: > Firstly I'd subclass your requests in different emails so as to not mix up > topics as above otherwise in the long run no-one will know about the > content - ie the header won't reflect the content. > > I'm assuming you want something basic, so with reference to your database > thingy, here's a few lines of code to connect to an existing progress > database with obviously postmaster running. > > It is essentially the same as the code in the database example except ?that > the parameters are for postgres. You can get the rest of the code from the > example. ?If you are already past that stage then I'll pass you on to more > knowledgeable others. > > > > PRIVATE FUNCTION make_connection() AS Boolean > ? > > ? ? ? ? ? WITH conn > ? ? ? ? ? ? ? ? ? ? .Type = "postgresql" > ? ? ? ? ? ? ? ? ? ? .Host = "localhost" > ? ? ? ? ? ? ? ? ? ? .Login = "yourlogon" > ? ? ? ? ? ? ? ? ? ? .Password = "your password" > ? ? ? ? ? ? ? ? ? ? .Name = "yourdatabasename" > ? ? ? ? ? END WITH > > ? ? ? ? ? TRY conn.OPEN > ? ? ? ? ? IF ERROR THEN > ? ? ? ? ? ? ? ? ? ? Message("Cannot open database. Error = " & Error.Text) > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? RETURN FALSE > ? ? ? ? ? END IF > ? ? ? ? ? RETURN TRUE > END > > > hi all, > > > > I am trying to use gambas. Please help me about code to resolve my > > problem 1. How to move cursor when I press key enter on keyboard ? > > 2. How to fill data from database (as a postgres database server) to > > gridview or table view. ? > > > > Regards > > Gunartha > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > >ac e _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From m0e.lnx at ...626... Fri Jan 11 05:00:59 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 10 Jan 2008 22:00:59 -0600 Subject: [Gambas-user] Importing a project into gambas2-2.0 Message-ID: <1f1e8c1b0801102000qa4e1a5aqa3671fa9502ff323@...627...> I have a project saved from RC1, and I'm trying to import it to continue working on it in gambas2-2.0 I'm unable to do this seems I'm missing the .project file for this project. Any tips? From ariefbayu at ...626... Fri Jan 11 05:15:57 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Fri, 11 Jan 2008 11:15:57 +0700 Subject: [Gambas-user] Connecting to Postgres (was Q in an event keypress header) In-Reply-To: <200801111048.54287.gunartha.nyoman@...1817...> References: <200801111327.28102.rterry@...1822...> <200801111048.54287.gunartha.nyoman@...1817...> Message-ID: <976ad9050801102015h3ace6868obc576508d7bcf33d@...627...> add a gridview and paste this code: ' Gambas class file PRIVATE conn AS Connection PUBLIC SUB Form_Open() initGrid() make_connection() populateGrid() END PRIVATE SUB populateGrid() DIM res AS Result res = conn.EXEC("SELECT * FROM wpexport_domains") FOR EACH res GridView1.Rows.count = GridView1.Rows.count + 1 GridView1[GridView1.Rows.Count - 1, 0].Text = res!dom_id GridView1[GridView1.Rows.Count - 1, 1].Text = res!dom_name GridView1[GridView1.Rows.Count - 1, 2].Text = res!dom_target GridView1[GridView1.Rows.Count - 1, 3].Text = res!username GridView1[GridView1.Rows.Count - 1, 4].Text = res!password NEXT END PRIVATE SUB initGrid() GridView1.Columns.Count = 5 GridView1.Columns[0].Width = 88 GridView1.Columns[1].Width = 168 GridView1.Columns[2].Width = 80 GridView1.Columns[3].Width = 112 GridView1.Columns[4].Width = 120 END PRIVATE FUNCTION make_connection() AS Boolean conn = NEW Connection WITH conn .Type = "mysql" .Host = "localhost" .Login = "xxxxxxxxxx" .Password = "xxxxxxxxxx" .Name = "wp_export" END WITH TRY conn.OPEN IF ERROR THEN Message("Cannot open database. Error = " & Error.Text) RETURN FALSE END IF RETURN TRUE On 1/11/08, gunartha.nyoman wrote: > > ok, thank for your reply > the connection is ok, and then i want to see or fill data from a table > (for > example: tbldata) from server to screen/monitor. I use version gambas2 > 1.1.91and in toolbox I see gridview or tableview. my problem is how to > use > that control to see/fill data. > > Many thank for your help. > > Regards > Gunartha > > > On Friday 11 January 2008 09:27:28 am richard terry wrote: > > Firstly I'd subclass your requests in different emails so as to not mix > up > > topics as above otherwise in the long run no-one will know about the > > content - ie the header won't reflect the content. > > > > I'm assuming you want something basic, so with reference to your > database > > thingy, here's a few lines of code to connect to an existing progress > > database with obviously postmaster running. > > > > It is essentially the same as the code in the database example except > that > > the parameters are for postgres. You can get the rest of the code from > the > > example. If you are already past that stage then I'll pass you on to > more > > knowledgeable others. > > > > > > > > PRIVATE FUNCTION make_connection() AS Boolean > > > > > > WITH conn > > .Type = "postgresql" > > .Host = "localhost" > > .Login = "yourlogon" > > .Password = "your password" > > .Name = "yourdatabasename" > > END WITH > > > > TRY conn.OPEN > > IF ERROR THEN > > Message("Cannot open database. Error = " & Error.Text) > > RETURN FALSE > > END IF > > RETURN TRUE > > END > > > > > hi all, > > > > > > I am trying to use gambas. Please help me about code to resolve my > > > problem 1. How to move cursor when I press key enter on keyboard ? > > > 2. How to fill data from database (as a postgres database server) to > > > gridview or table view. ? > > > > > > Regards > > > Gunartha > > > > > > > ------------------------------------------------------------------------- > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > > >ac e _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac > >e _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Daiguren Hy?rinmaru From Mike at ...680... Fri Jan 11 09:45:47 2008 From: Mike at ...680... (Mike Keehan) Date: Fri, 11 Jan 2008 08:45:47 +0000 Subject: [Gambas-user] Importing a project into gambas2-2.0 In-Reply-To: <1f1e8c1b0801102000qa4e1a5aqa3671fa9502ff323@...627...> References: <1f1e8c1b0801102000qa4e1a5aqa3671fa9502ff323@...627...> Message-ID: <47872CBB.3080808@...680...> M0E Lnx wrote: > I have a project saved from RC1, and I'm trying to import it to > continue working on it in gambas2-2.0 > I'm unable to do this seems I'm missing the .project file for this project. > Any tips? > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > You can create a new project in Gambas2, and then in the Project window on the left, right click for 'New' - 'Form' and use the 'Existing' tab to add the forms from the Gambas 1 project. Mike From gambas at ...1... Fri Jan 11 10:38:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 11 Jan 2008 10:38:55 +0100 Subject: [Gambas-user] Tiny fonts in auto-complete unreadable (to my old eyes) In-Reply-To: <200801111428.22746.rterry@...1822...> References: <200801111428.22746.rterry@...1822...> Message-ID: <200801111038.55532.gambas@...1...> On vendredi 11 janvier 2008, richard terry wrote: > Wondered if this has been/can be fixed - someone mentioned earlier that the > value is fixed in the code at 8. > > On my screen the popup text is virtually unreadable (see the attatched > file), which effectivley disables a powerful feature of gambas and makes > learning difficult > > Regards > > Richard Point size 8 seems is very small on your screen. Which screen do you use? What is its resolution? -- Benoit Minisini From gambas at ...1... Fri Jan 11 10:41:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 11 Jan 2008 10:41:50 +0100 Subject: [Gambas-user] Importing a project into gambas2-2.0 In-Reply-To: <47872CBB.3080808@...680...> References: <1f1e8c1b0801102000qa4e1a5aqa3671fa9502ff323@...627...> <47872CBB.3080808@...680...> Message-ID: <200801111041.50248.gambas@...1...> On vendredi 11 janvier 2008, Mike Keehan wrote: > M0E Lnx wrote: > > I have a project saved from RC1, and I'm trying to import it to > > continue working on it in gambas2-2.0 > > I'm unable to do this seems I'm missing the .project file for this > > project. Any tips? > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > >ace _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > You can create a new project in Gambas2, and then in the Project > window on the left, right click for 'New' - 'Form' and use the > 'Existing' tab to add the forms from the Gambas 1 project. > > Mike > Or you can copy the source files by hand. Anyway you should be able to open a project made with 1.9.91 in the 2.0 project without any problem. There is no "import" to do. If the ".project" file is missing, that means that you screwed up your project. Regards, -- Benoit Minisini From hennie at ...1826... Fri Jan 11 11:27:00 2008 From: hennie at ...1826... (gaupe) Date: Fri, 11 Jan 2008 02:27:00 -0800 (PST) Subject: [Gambas-user] possible to write image to bmp file with indexed (256) color space ? Message-ID: <14753148.post@...1379...> Is it possible to write an image to a bmp file with an indexed color (256 colors) space? image.save seems to save it now with RGB colorspace . -- View this message in context: http://www.nabble.com/possible-to-write-image-to-bmp-file-with-indexed-%28256%29-color-space---tp14753148p14753148.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Jan 11 11:29:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 11 Jan 2008 11:29:48 +0100 Subject: [Gambas-user] possible to write image to bmp file with indexed (256) color space ? In-Reply-To: <14753148.post@...1379...> References: <14753148.post@...1379...> Message-ID: <200801111129.48889.gambas@...1...> On vendredi 11 janvier 2008, gaupe wrote: > Is it possible to write an image to a bmp file > with an indexed color (256 colors) space? > > image.save seems to save it now with RGB colorspace . I don't think so, as I didn't make support for Image with depth != 32 bits. -- Benoit Minisini From m0e.lnx at ...626... Fri Jan 11 16:49:22 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 11 Jan 2008 09:49:22 -0600 Subject: [Gambas-user] Importing a project into gambas2-2.0 In-Reply-To: <200801111041.50248.gambas@...1...> References: <1f1e8c1b0801102000qa4e1a5aqa3671fa9502ff323@...627...> <47872CBB.3080808@...680...> <200801111041.50248.gambas@...1...> Message-ID: <1f1e8c1b0801110749v6196b8e9n46448f4a42d3bd54@...627...> On Jan 11, 2008 3:41 AM, Benoit Minisini wrote: > On vendredi 11 janvier 2008, Mike Keehan wrote: > > M0E Lnx wrote: > > > I have a project saved from RC1, and I'm trying to import it to > > > continue working on it in gambas2-2.0 > > > I'm unable to do this seems I'm missing the .project file for this > > > project. Any tips? > > > > > > ------------------------------------------------------------------------- > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > > >ace _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > You can create a new project in Gambas2, and then in the Project > > window on the left, right click for 'New' - 'Form' and use the > > 'Existing' tab to add the forms from the Gambas 1 project. > > > > Mike > > > > Or you can copy the source files by hand. Anyway you should be able to open a > project made with 1.9.91 in the 2.0 project without any problem. There is > no "import" to do. > > If the ".project" file is missing, that means that you screwed up your > project. > > Regards, > > -- > Benoit Minisini > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > well, what happened was I did a system upgrade, and I have my project on SVN, but I did not put the .project file under version control But creating a new project and copying the source manually did the trick... I had forgotten about that possibility. From m0e.lnx at ...626... Fri Jan 11 16:52:03 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 11 Jan 2008 09:52:03 -0600 Subject: [Gambas-user] Tiny fonts in auto-complete unreadable (to my old eyes) In-Reply-To: <200801111038.55532.gambas@...1...> References: <200801111428.22746.rterry@...1822...> <200801111038.55532.gambas@...1...> Message-ID: <1f1e8c1b0801110752y595b0b0dt638ecef58843f4cb@...627...> On Jan 11, 2008 3:38 AM, Benoit Minisini wrote: > > On vendredi 11 janvier 2008, richard terry wrote: > > Wondered if this has been/can be fixed - someone mentioned earlier that the > > value is fixed in the code at 8. > > > > On my screen the popup text is virtually unreadable (see the attatched > > file), which effectivley disables a powerful feature of gambas and makes > > learning difficult > > > > Regards > > > > Richard > > Point size 8 seems is very small on your screen. Which screen do you use? What > is its resolution? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I have seen this happen before on my 1280x800 but it only happened on a VNC session. I do a lot of gambas programming remotely via VNC, and I had seen this. Never did figure out why or ever tried to fix it though From m0e.lnx at ...626... Fri Jan 11 16:58:36 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 11 Jan 2008 09:58:36 -0600 Subject: [Gambas-user] Image.Gradient help please Message-ID: <1f1e8c1b0801110758r62c60a48ge080eb79b11874e4@...627...> I'm trying to create a text label with a gradient background (white-to-blue, left to right) I've been reading abotu image.gradient in the gb.image section of the wiki, but I'm having a hard time understanding how this is supposed to work Has anyone done this before? Can anyone think of a way to do this? I'd rather try to get gambas to do this instead of drawing hard images of the text labels From sourceforge-raindog2 at ...94... Fri Jan 11 17:56:44 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 11 Jan 2008 11:56:44 -0500 Subject: [Gambas-user] Image.Gradient help please In-Reply-To: <1f1e8c1b0801110758r62c60a48ge080eb79b11874e4@...627...> References: <1f1e8c1b0801110758r62c60a48ge080eb79b11874e4@...627...> Message-ID: <200801111156.44059.sourceforge-raindog2@...94...> On Friday 11 January 2008 10:58, M0E Lnx wrote: > Has anyone done this before? > Can anyone think of a way to do this? > I'd rather try to get gambas to do this instead of drawing hard > images of the text labels Sure, use image.gradient to draw your blue gradient into an image, Draw.Image that image into a drawing area, and then Draw.Text your text over it. If you need a static copy of it, convert it to a Picture using the drawing area's Grab method. I haven't done it, but that's the first thing I'd try. Rob From m0e.lnx at ...626... Fri Jan 11 18:59:21 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 11 Jan 2008 11:59:21 -0600 Subject: [Gambas-user] Image.Gradient help please In-Reply-To: <200801111156.44059.sourceforge-raindog2@...94...> References: <1f1e8c1b0801110758r62c60a48ge080eb79b11874e4@...627...> <200801111156.44059.sourceforge-raindog2@...94...> Message-ID: <1f1e8c1b0801110959k39ae17ddx54a8b445cdfd14f6@...627...> On Jan 11, 2008 10:56 AM, Rob wrote: > On Friday 11 January 2008 10:58, M0E Lnx wrote: > > Has anyone done this before? > > Can anyone think of a way to do this? > > I'd rather try to get gambas to do this instead of drawing hard > > images of the text labels > > Sure, use image.gradient to draw your blue gradient into an image, > Draw.Image that image into a drawing area, and then Draw.Text your > text over it. If you need a static copy of it, convert it to a > Picture using the drawing area's Grab method. > > I haven't done it, but that's the first thing I'd try. > > Rob > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > You got any idea how the coding would go? From gambas at ...1828... Fri Jan 11 19:01:33 2008 From: gambas at ...1828... (manuel viet) Date: Fri, 11 Jan 2008 10:01:33 -0800 (PST) Subject: [Gambas-user] Image.Gradient help please In-Reply-To: <1f1e8c1b0801110758r62c60a48ge080eb79b11874e4@...627...> References: <1f1e8c1b0801110758r62c60a48ge080eb79b11874e4@...627...> Message-ID: <14761731.post@...1379...> M0E Lnx wrote: > > I'm trying to create a text label with a gradient background > (white-to-blue, left to right) > I've been reading abotu image.gradient in the gb.image section of the > wiki, but I'm having a hard time understanding how this is supposed to > work > > Hello, It's unclear how proficient with gambas you're already, so bear with me if what I say seems simplimistic. You should understand an 'image' in gambas meaning is just a square Object, and you have special methods to use it. So first you declare your Image by a name, ie Public myButImg AS Image or Dim myButImg AS Image And then you instanciate it : myButImg = New Image(width(*), height(*), [transparent]) (*)You can calculate the height and the width in relation to another Object, like the button where the image will be displayed. After that you can use all the native methods of the Image class on your 'image' which at this point is merely a black square in memory. Especially, you can set the gradient : myButImg.Gradient (myButImg.Width, myButImg.Height, Color.White, Color.Blue, Image.horizontal) To set text upon that background, tou then have to use the draw methods, and they are a bit peculiar. First, you need to declarre you want to draw on your object, so you : Draw.begin(myButImg) You can set various colors and such with some draw methods, they will apply to the current object being drawn, here, your image. Then, you Draw.text("your label", X,Y,[W,H,ALIGN]) where X Y are the coordinates in pixel inside the object myButImg where to place the beginning of the text. Mind the clipping if the text is bigger than the image ! Then you end drawing : Draw.end() 'easy one isn't it And you place your image object inside a button by using the myButImg.picture property. Button.picture = myButImg.picture Have fun ! ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Image.Gradient-help-please-tp14759465p14761731.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Jan 11 19:09:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 11 Jan 2008 19:09:34 +0100 Subject: [Gambas-user] Image.Gradient help please In-Reply-To: <1f1e8c1b0801110758r62c60a48ge080eb79b11874e4@...627...> References: <1f1e8c1b0801110758r62c60a48ge080eb79b11874e4@...627...> Message-ID: <200801111909.35043.gambas@...1...> On vendredi 11 janvier 2008, M0E Lnx wrote: > I'm trying to create a text label with a gradient background > (white-to-blue, left to right) > I've been reading abotu image.gradient in the gb.image section of the > wiki, but I'm having a hard time understanding how this is supposed to > work > > Has anyone done this before? > Can anyone think of a way to do this? > I'd rather try to get gambas to do this instead of drawing hard images > of the text labels > Have you read the documentation before? As written in it, Image.Gradient is a static method that "creates a gradient from a source color to a destination color and returns it as a new image". A gradient type can be specified. Once created, you can paint the gradient image with the Draw.Image() or Draw.Picture() methods. But you cannot use it as a brush at the moment. Regards, -- Benoit Minisini From m0e.lnx at ...626... Fri Jan 11 19:12:57 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 11 Jan 2008 12:12:57 -0600 Subject: [Gambas-user] Image.Gradient help please In-Reply-To: <200801111909.35043.gambas@...1...> References: <1f1e8c1b0801110758r62c60a48ge080eb79b11874e4@...627...> <200801111909.35043.gambas@...1...> Message-ID: <1f1e8c1b0801111012s7c873d5r96ff3281eb6023e0@...627...> On Jan 11, 2008 12:09 PM, Benoit Minisini wrote: > > On vendredi 11 janvier 2008, M0E Lnx wrote: > > I'm trying to create a text label with a gradient background > > (white-to-blue, left to right) > > I've been reading abotu image.gradient in the gb.image section of the > > wiki, but I'm having a hard time understanding how this is supposed to > > work > > > > Has anyone done this before? > > Can anyone think of a way to do this? > > I'd rather try to get gambas to do this instead of drawing hard images > > of the text labels > > > > Have you read the documentation before? As written in it, Image.Gradient is a > static method that "creates a gradient from a source color to a destination > color and returns it as a new image". A gradient type can be specified. > > Once created, you can paint the gradient image with the Draw.Image() or > Draw.Picture() methods. But you cannot use it as a brush at the moment. > > Regards, > > -- > Benoit Minisini > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I've managed to create the gradient... but I had no idea how to use it as a background for a label or button. And yes, I've read the documentation... that's how I managed to create it, but never could determine what to do with the thing once it was ceated. the text label backcolor property wont take an image I suppose, so I'd have to draw the image + text and use it as a button? From gambas at ...1... Fri Jan 11 19:15:29 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 11 Jan 2008 19:15:29 +0100 Subject: [Gambas-user] Image.Gradient help please In-Reply-To: <1f1e8c1b0801111012s7c873d5r96ff3281eb6023e0@...627...> References: <1f1e8c1b0801110758r62c60a48ge080eb79b11874e4@...627...> <200801111909.35043.gambas@...1...> <1f1e8c1b0801111012s7c873d5r96ff3281eb6023e0@...627...> Message-ID: <200801111915.29552.gambas@...1...> On vendredi 11 janvier 2008, M0E Lnx wrote: > On Jan 11, 2008 12:09 PM, Benoit Minisini wrote: > > On vendredi 11 janvier 2008, M0E Lnx wrote: > > > I'm trying to create a text label with a gradient background > > > (white-to-blue, left to right) > > > I've been reading abotu image.gradient in the gb.image section of the > > > wiki, but I'm having a hard time understanding how this is supposed to > > > work > > > > > > Has anyone done this before? > > > Can anyone think of a way to do this? > > > I'd rather try to get gambas to do this instead of drawing hard images > > > of the text labels > > > > Have you read the documentation before? As written in it, Image.Gradient > > is a static method that "creates a gradient from a source color to a > > destination color and returns it as a new image". A gradient type can be > > specified. > > > > Once created, you can paint the gradient image with the Draw.Image() or > > Draw.Picture() methods. But you cannot use it as a brush at the moment. > > > > Regards, > > > > -- > > Benoit Minisini > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > >ace _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I've managed to create the gradient... but I had no idea how to use it > as a background for a label or button. This is theorically possible, but was not implemented in Gambas. > And yes, I've read the documentation... that's how I managed to create > it, but never could determine what to do with the thing once it was > ceated. > the text label backcolor property wont take an image I suppose, so I'd > have to draw the image + text and use it as a button? Yes. It is not really complex and you will learn how to make your custom widgets :-) Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Fri Jan 11 19:51:59 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 11 Jan 2008 13:51:59 -0500 Subject: [Gambas-user] Image.Gradient help please In-Reply-To: <1f1e8c1b0801111012s7c873d5r96ff3281eb6023e0@...627...> References: <1f1e8c1b0801110758r62c60a48ge080eb79b11874e4@...627...> <200801111909.35043.gambas@...1...> <1f1e8c1b0801111012s7c873d5r96ff3281eb6023e0@...627...> Message-ID: <200801111352.00056.sourceforge-raindog2@...94...> On Friday 11 January 2008 13:12, M0E Lnx wrote: > I've managed to create the gradient... but I had no idea how to use > it as a background for a label or button. Waiting for a DVD to burn so I figured I'd help you out. Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: GradientButton-0.0.1.tar.gz Type: application/x-tgz Size: 4400 bytes Desc: not available URL: From m0e.lnx at ...626... Fri Jan 11 20:22:26 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 11 Jan 2008 13:22:26 -0600 Subject: [Gambas-user] Image.Gradient help please In-Reply-To: <200801111352.00056.sourceforge-raindog2@...94...> References: <1f1e8c1b0801110758r62c60a48ge080eb79b11874e4@...627...> <200801111909.35043.gambas@...1...> <1f1e8c1b0801111012s7c873d5r96ff3281eb6023e0@...627...> <200801111352.00056.sourceforge-raindog2@...94...> Message-ID: <1f1e8c1b0801111122k3a06a065ka9668099dc4bec84@...627...> On Jan 11, 2008 12:51 PM, Rob wrote: > On Friday 11 January 2008 13:12, M0E Lnx wrote: > > I've managed to create the gradient... but I had no idea how to use > > it as a background for a label or button. > > Waiting for a DVD to burn so I figured I'd help you out. > > Rob > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ty From gambas at ...1828... Sat Jan 12 01:31:15 2008 From: gambas at ...1828... (manuel viet) Date: Fri, 11 Jan 2008 16:31:15 -0800 (PST) Subject: [Gambas-user] Image.Gradient help please In-Reply-To: <200801111352.00056.sourceforge-raindog2@...94...> References: <1f1e8c1b0801110758r62c60a48ge080eb79b11874e4@...627...> <200801111909.35043.gambas@...1...> <1f1e8c1b0801111012s7c873d5r96ff3281eb6023e0@...627...> <200801111352.00056.sourceforge-raindog2@...94...> Message-ID: <14768062.post@...1379...> Rob Kudla wrote: > > On Friday 11 January 2008 13:12, M0E Lnx wrote: >> I've managed to create the gradient... but I had no idea how to use >> it as a background for a label or button. > > Waiting for a DVD to burn so I figured I'd help you out. > > Beware, I don't know why but I fetched your tarball from nabble and it was gziped twice. So in effect you should ungzip it once first then untar it with the -z option (or ungzip it again). ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/Image.Gradient-help-please-tp14759465p14768062.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Sat Jan 12 03:07:18 2008 From: rterry at ...1822... (richard terry) Date: Sat, 12 Jan 2008 13:07:18 +1100 Subject: [Gambas-user] Tiny fonts in auto-complete unreadable (to my old eyes) In-Reply-To: <200801111038.55532.gambas@...1...> References: <200801111428.22746.rterry@...1822...> <200801111038.55532.gambas@...1...> Message-ID: <200801121307.19124.rterry@...1822...> Its just a standard laptop - at 1280x800 Perhaps you could put something in the config as an option. On Fri, 11 Jan 2008 08:38:55 pm Benoit Minisini wrote: > On vendredi 11 janvier 2008, richard terry wrote: > > Wondered if this has been/can be fixed - someone mentioned earlier that > > the value is fixed in the code at 8. > > > > On my screen the popup text is virtually unreadable (see the attatched > > file), which effectivley disables a powerful feature of gambas and makes > > learning difficult > > > > Regards > > > > Richard > > Point size 8 seems is very small on your screen. Which screen do you use? > What is its resolution? From sourceforge-raindog2 at ...94... Sat Jan 12 06:14:23 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 12 Jan 2008 00:14:23 -0500 Subject: [Gambas-user] Image.Gradient help please In-Reply-To: <14768062.post@...1379...> References: <1f1e8c1b0801110758r62c60a48ge080eb79b11874e4@...627...> <200801111352.00056.sourceforge-raindog2@...94...> <14768062.post@...1379...> Message-ID: <200801120014.24275.sourceforge-raindog2@...94...> On Friday 11 January 2008 19:31, manuel viet wrote: > Beware, I don't know why but I fetched your tarball from nabble > and it was gziped twice. So in effect you should ungzip it once > first then untar it with the -z option (or ungzip it again). Must have been something Nabble did. My local copy is a normal tarball as created by the Gambas IDE. Rob From rolf.frogs at ...221... Sat Jan 12 09:52:45 2008 From: rolf.frogs at ...221... (rolf) Date: Sat, 12 Jan 2008 09:52:45 +0100 Subject: [Gambas-user] Tiny fonts in auto-complete unreadable (to my old eyes) In-Reply-To: <200801121307.19124.rterry@...1822...> References: <200801111428.22746.rterry@...1822...> <200801111038.55532.gambas@...1...> <200801121307.19124.rterry@...1822...> Message-ID: <200801120952.45533.rolf.frogs@...221...> Hello, > Its just a standard laptop - at 1280x800 My Laptop only has 102x768 so the problem is even stronger. > Perhaps you could put something in the config as an option. This will make my happy too. Fine regards Rolf From scatman at ...1832... Sat Jan 12 15:34:22 2008 From: scatman at ...1832... (scatman) Date: Sat, 12 Jan 2008 15:34:22 +0100 Subject: [Gambas-user] 64 bits version In-Reply-To: <200801091614.44194.gambas@...1...> References: <200801091614.44194.gambas@...1...> (sfid-20080109_161703_287888_F94552E0F6982C1E) Message-ID: <200801121534.22938.scatman@...1832...> Am Mittwoch, 9. Januar 2008 schrieb Benoit Minisini: Hello, > I'm currently trying to port Gambas to 64 bits, but I don't do it on a 64 > bits machine at the moment. > > Until I can work on a 64 bits system, it will be cool if some people > having a 64 bits system could help me. here my try. SVN Revision 952 AMD X2 3800 gcc (GCC) 4.2.2 (Gentoo 4.2.2 p1.0) glibc 2.7-r1 see Attachment. thanks -------------- next part -------------- make[5]: Entering directory `/home/test/64bits/gb.qt/src' /bin/sh ../libtool --tag=CXX --mode=compile ccache g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/qt3/ -D_REENTRANT -I../share -I../src/share -DGB_QT_COMPONENT -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -MT gb_qt_la-main.lo -MD -MP -MF .deps/gb_qt_la-main.Tpo -c -o gb_qt_la-main.lo `test -f 'main.cpp' || echo './'`main.cpp ccache g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/qt3/ -D_REENTRANT -I../share -I../src/share -DGB_QT_COMPONENT -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -MT gb_qt_la-main.lo -MD -MP -MF .deps/gb_qt_la-main.Tpo -c main.cpp -fPIC -DPIC -o .libs/gb_qt_la-main.o main.cpp: In function 'void hook_timer(GB_TIMER*, bool)': main.cpp:558: error: cast from 'MyTimer*' to 'int' loses precision make[5]: *** [gb_qt_la-main.lo] Error 1 From gambas at ...1... Sat Jan 12 16:14:54 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 12 Jan 2008 16:14:54 +0100 Subject: [Gambas-user] 64 bits version In-Reply-To: <200801121534.22938.scatman@...1832...> References: <200801091614.44194.gambas@...1...> <200801121534.22938.scatman@...1832...> Message-ID: <200801121614.54781.gambas@...1...> On samedi 12 janvier 2008, scatman wrote: > Am Mittwoch, 9. Januar 2008 schrieb Benoit Minisini: > > Hello, > > > I'm currently trying to port Gambas to 64 bits, but I don't do it on a 64 > > bits machine at the moment. > > > > Until I can work on a 64 bits system, it will be cool if some people > > having a 64 bits system could help me. > > here my try. > > SVN Revision 952 > > AMD X2 3800 > gcc (GCC) 4.2.2 (Gentoo 4.2.2 p1.0) > glibc 2.7-r1 > > see Attachment. > > thanks Thanks. I fixed the qt component in the rev. 953. If you want to try it, please post the result on the developer mailing-list. Thanks in advance. Regards, -- Benoit Minisini From rterry at ...1822... Sun Jan 13 02:03:02 2008 From: rterry at ...1822... (richard terry) Date: Sun, 13 Jan 2008 12:03:02 +1100 Subject: [Gambas-user] Constants Question Message-ID: <200801131203.02951.rterry@...1822...> When creating your own control and want to use say panel.border and set it to something, where are the constants names, ie the documentation for these. Richard From rterry at ...1822... Sun Jan 13 02:08:54 2008 From: rterry at ...1822... (richard terry) Date: Sun, 13 Jan 2008 12:08:54 +1100 Subject: [Gambas-user] Parsing error with Replace$/Instr Message-ID: <200801131208.54467.rterry@...1822...> I'Ive got thousands of old *.rtf letters which are in simple rtf format and very easy to parse. to convert them to html for display but I can't get the syntax correct, which should be simple: Here is some for demo purposes of my code, which bombs with the error message: "Bad character constant in string". sResult = Replace$(alltext, "\plain\f3\fs24 \par }", "") iSpotInString= InStr(alltext, "\plain\f3\fs24\par") Any idea's how to get around this/what I'm doing wrong? Regards Richard From rterry at ...1822... Sun Jan 13 02:26:34 2008 From: rterry at ...1822... (richard terry) Date: Sun, 13 Jan 2008 12:26:34 +1100 Subject: [Gambas-user] Apparently huge exectable file Message-ID: <200801131226.34794.rterry@...1822...> I tried compiling my project (as get just basically a gui). Takes for ages, and in the installation directory I end up with a 2.0GIG, yes GIG file called project1.gambas (which I was silly enough to click on and dosn't run). In the Project1/ directory root there is also a file called project1.gambas weighing in at a huge 52K!!!!!, yeah,well small cf the other one. If I type gbx2 project1.gambas up pops my program What's is happening? Richard From pete992000 at ...1683... Sun Jan 13 04:18:28 2008 From: pete992000 at ...1683... (Peter Russell) Date: Sat, 12 Jan 2008 19:18:28 -0800 Subject: [Gambas-user] Tiny fonts in auto-complete unreadable (to my old eyes) In-Reply-To: <200801120952.45533.rolf.frogs@...221...> References: <200801121307.19124.rterry@...1822...> <200801111038.55532.gambas@...1...> <200801111428.22746.rterry@...1822...> Message-ID: <3670BA30454.00000518pete992000@...1683...> Just a longshot, try changing your desktop theme and see if that makes a difference. Regards Pete > -----Original Message----- > From: rolf.frogs at ...221... > Sent: Sat, 12 Jan 2008 09:52:45 +0100 > To: rterry at ...1823..., gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Tiny fonts in auto-complete unreadable (to my > old eyes) > > Hello, > >> Its just a standard laptop - at 1280x800 > My Laptop only has 102x768 so the problem is even stronger. > >> Perhaps you could put something in the config as an option. > This will make my happy too. > > Fine regards > Rolf > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________ Receive Notifications of Incoming Messages Easily monitor multiple email accounts & access them with a click. Visit http://www.inbox.com/notifier and check it out! From sourceforge-raindog2 at ...94... Sun Jan 13 05:59:21 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 12 Jan 2008 23:59:21 -0500 Subject: [Gambas-user] Parsing error with Replace$/Instr In-Reply-To: <200801131208.54467.rterry@...1822...> References: <200801131208.54467.rterry@...1822...> Message-ID: <200801122359.22058.sourceforge-raindog2@...94...> On Saturday 12 January 2008 20:08, richard terry wrote: > Here is some for demo purposes of my code, which bombs with the > error message: "Bad character constant in string". > > sResult = Replace$(alltext, "\plain\f3\fs24 \par }", > "") You need to change all your "\"'s into "\\"'s. Gambas interpolates character constants, such as "\n" for newline, in strings. Rob From gambas.fr at ...626... Sun Jan 13 08:43:48 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Jan 2008 08:43:48 +0100 Subject: [Gambas-user] Constants Question In-Reply-To: <200801131203.02951.rterry@...1822...> References: <200801131203.02951.rterry@...1822...> Message-ID: <200801130843.48343.gambas.fr@...626...> Le Sunday 13 January 2008 02:03:02 richard terry, vous avez ?crit?: > When creating your own control and want to use say panel.border and set it > to something, where are the constants names, ie the documentation for > these. > > Richard > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user it's Border.None, Border.Plain... etc http://gambasdoc.org/help/comp/gb.qt/border From gambas.fr at ...626... Sun Jan 13 08:46:17 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Jan 2008 08:46:17 +0100 Subject: [Gambas-user] Apparently huge exectable file In-Reply-To: <200801131226.34794.rterry@...1822...> References: <200801131226.34794.rterry@...1822...> Message-ID: <200801130846.17706.gambas.fr@...626...> Le Sunday 13 January 2008 02:26:34 richard terry, vous avez ?crit?: > I tried compiling my project (as get just basically a gui). > > Takes for ages, and in the installation directory I end up with a 2.0GIG, > yes GIG file called project1.gambas (which I was silly enough to click on > and dosn't run). > > In the Project1/ directory root there is also a file called project1.gambas > weighing in at a huge 52K!!!!!, yeah,well small cf the other one. > > If I type gbx2 project1.gambas up pops my program > > What's is happening? > > Richard your system is really curious... I give the hand to Benoit... > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sun Jan 13 08:57:35 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 13 Jan 2008 08:57:35 +0100 Subject: [Gambas-user] Apparently huge exectable file In-Reply-To: <200801131226.34794.rterry@...1822...> References: <200801131226.34794.rterry@...1822...> Message-ID: <200801130857.35414.gambas@...1...> On dimanche 13 janvier 2008, richard terry wrote: > I tried compiling my project (as get just basically a gui). > > Takes for ages, and in the installation directory I end up with a 2.0GIG, > yes GIG file called project1.gambas (which I was silly enough to click on > and dosn't run). > > In the Project1/ directory root there is also a file called project1.gambas > weighing in at a huge 52K!!!!!, yeah,well small cf the other one. > > If I type gbx2 project1.gambas up pops my program > > What's is happening? > > Richard > Please send your project to my private e-mail, without the 2Gb file of course! Regards, -- Benoit Minisini From rospolosco at ...152... Sun Jan 13 09:41:29 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 13 Jan 2008 09:41:29 +0100 Subject: [Gambas-user] Apparently huge exectable file In-Reply-To: <200801130857.35414.gambas@...1...> References: <200801131226.34794.rterry@...1822...> <200801130857.35414.gambas@...1...> Message-ID: <200801130941.29947.rospolosco@...152...> Alle 08:57, domenica 13 gennaio 2008, Benoit Minisini ha scritto: > On dimanche 13 janvier 2008, richard terry wrote: > > I tried compiling my project (as get just basically a gui). > > > > Takes for ages, and in the installation directory I end up with a 2.0GIG, > > yes GIG file called project1.gambas (which I was silly enough to click on > > and dosn't run). > > > > In the Project1/ directory root there is also a file called > > project1.gambas weighing in at a huge 52K!!!!!, yeah,well small cf the > > other one. > > > > If I type gbx2 project1.gambas up pops my program > > > > What's is happening? > > > > Richard > > Please send your project to my private e-mail, without the 2Gb file of > course! > > Regards, Is it possible that you stored a lot of file in project1/Data directory and when making the executable all that file were inglobated in the executable, isnt'it? Could you show us the output of "ls -arlh" typed in your project directory? Regards, Stefano From gambas.fr at ...626... Sun Jan 13 10:19:00 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Jan 2008 10:19:00 +0100 Subject: [Gambas-user] Apparently huge exectable file In-Reply-To: <200801130941.29947.rospolosco@...152...> References: <200801131226.34794.rterry@...1822...> <200801130857.35414.gambas@...1...> <200801130941.29947.rospolosco@...152...> Message-ID: <200801131019.00534.gambas.fr@...626...> Le Sunday 13 January 2008 09:41:29 Stefano Palmeri, vous avez ?crit?: > Alle 08:57, domenica 13 gennaio 2008, Benoit Minisini ha scritto: > > On dimanche 13 janvier 2008, richard terry wrote: > > > I tried compiling my project (as get just basically a gui). > > > > > > Takes for ages, and in the installation directory I end up with a > > > 2.0GIG, yes GIG file called project1.gambas (which I was silly enough > > > to click on and dosn't run). > > > > > > In the Project1/ directory root there is also a file called > > > project1.gambas weighing in at a huge 52K!!!!!, yeah,well small cf the > > > other one. > > > > > > If I type gbx2 project1.gambas up pops my program > > > > > > What's is happening? > > > > > > Richard > > > > Please send your project to my private e-mail, without the 2Gb file of > > course! > > > > Regards, > > Is it possible that you stored a lot of file in project1/Data directory and > when making the executable all that file were inglobated in the executable, > isnt'it? > > Could you show us the output of "ls -arlh" typed in your project directory? > > Regards, > > Stefano > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user but in this case the big files have been added after a first executable mading in the project directory... one time i've seen recurssive project content because the user not use the good saving button ... he use the 'project save as' (=copy) button and so copy recurssively the project... so it make twice the project size each time he was saving the project... but in the case of an executable it will not change anything if the project loading is doing with the front page lastproject. Wait to see more. From dcamposf at ...626... Sun Jan 13 10:53:58 2008 From: dcamposf at ...626... (Daniel Campos) Date: Sun, 13 Jan 2008 10:53:58 +0100 Subject: [Gambas-user] Apparently huge exectable file In-Reply-To: <200801131226.34794.rterry@...1822...> References: <200801131226.34794.rterry@...1822...> Message-ID: <7259b5ae0801130153o225c6182g7c49f6009f848dcc@...627...> A hard link into the project to the root "/" directory? 2008/1/13, richard terry : > I tried compiling my project (as get just basically a gui). > > Takes for ages, and in the installation directory I end up with a 2.0GIG, yes > GIG file called project1.gambas (which I was silly enough to click on and > dosn't run). > > In the Project1/ directory root there is also a file called project1.gambas > weighing in at a huge 52K!!!!!, yeah,well small cf the other one. > > If I type gbx2 project1.gambas up pops my program > > What's is happening? > > Richard > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From piresl at ...626... Sun Jan 13 15:22:56 2008 From: piresl at ...626... (lozza1978) Date: Sun, 13 Jan 2008 06:22:56 -0800 (PST) Subject: [Gambas-user] my stream is not working Message-ID: <14785370.post@...1379...> HI All, I just need a quick bit of help as to where im going wrong here. EXEC ["dvdauthor", "-o", Textbox3.Text &/ "dvd", "-x", Textbox3.Text &/ "dvd.xml"] FOR READ AS "Chaps" PUBLIC SUB Chaps_Read() DIM hFile AS File DIM sLine AS String DIM aString AS String[] DIM filsize AS Integer READ #LAST, sLine, Lof(LAST) sOutput &= sLine hFile = OPEN "/home/don/Desktop/11percent" FOR CREATE WRITE #hFile, sOutput, Len(sOutput) CLOSE #hFile PUBLIC SUB Chaps_Quit() PRINT "process completed" END The test file does not get created, and when the process is complete, the 'process completed' does not print, (the the exec command is still running in the background though, while process is running) but when I do EXEC ["ls", "-la", "/tmp"] FOR READ AS "Chaps" this works and prints output to file. hmm so close and yet so far, -- View this message in context: http://www.nabble.com/my-stream-is-not-working-tp14785370p14785370.html Sent from the gambas-user mailing list archive at Nabble.com. From piresl at ...626... Sun Jan 13 21:05:11 2008 From: piresl at ...626... (lozza1978) Date: Sun, 13 Jan 2008 12:05:11 -0800 (PST) Subject: [Gambas-user] my stream is not working In-Reply-To: <14785370.post@...1379...> References: <14785370.post@...1379...> Message-ID: <14790363.post@...1379...> Hi All, after playing with the stream for a few hours ive come to the conclusion that 'EXEC ["dvdauthor", "-o", Textbox3.Text &/ "dvd", "-x", Textbox3.Text &/ "dvd.xml"] FOR READ AS "chaps"' is not a stream and i guess thats the reason why i cant chaps_Read() any data, lozza1978 wrote: > > HI All, > > I just need a quick bit of help as to where im going wrong here. > > EXEC ["dvdauthor", "-o", Textbox3.Text &/ "dvd", "-x", Textbox3.Text &/ > "dvd.xml"] FOR READ AS "Chaps" > > PUBLIC SUB Chaps_Read() > DIM hFile AS File > DIM sLine AS String > DIM aString AS String[] > DIM filsize AS Integer > > READ #LAST, sLine, Lof(LAST) > sOutput &= sLine > > hFile = OPEN "/home/don/Desktop/11percent" FOR CREATE > WRITE #hFile, sOutput, Len(sOutput) > CLOSE #hFile > > PUBLIC SUB Chaps_Quit() > PRINT "process completed" > END > > The test file does not get created, and when the process is complete, the > 'process completed' does not print, (the the exec command is still running > in the background though, while process is running) > > but when I do > EXEC ["ls", "-la", "/tmp"] FOR READ AS "Chaps" > this works and prints output to file. > > hmm so close and yet so far, > -- View this message in context: http://www.nabble.com/my-stream-is-not-working-tp14785370p14790363.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Sun Jan 13 21:59:13 2008 From: rterry at ...1822... (richard terry) Date: Mon, 14 Jan 2008 07:59:13 +1100 Subject: [Gambas-user] Parsing error with Replace$/Instr In-Reply-To: <200801122359.22058.sourceforge-raindog2@...94...> References: <200801131208.54467.rterry@...1822...> <200801122359.22058.sourceforge-raindog2@...94...> Message-ID: <200801140759.13479.rterry@...1822...> On Sun, 13 Jan 2008 03:59:21 pm Rob wrote: > On Saturday 12 January 2008 20:08, richard terry wrote: > > Here is some for demo purposes of my code, which bombs with the > > error message: "Bad character constant in string". > > > > sResult = Replace$(alltext, "\plain\f3\fs24 \par }", > > "") > > You need to change all your "\"'s into "\\"'s. Gambas interpolates > character constants, such as "\n" for newline, in strings. That seems like catch22 to me, ie want Gambas to repace the string Doo you mean I have to do it first as replace all "\" with "\\" and then replace the resultant string with what I want, or are you saying it is impossible to do in code? Regards Richard From rohnny at ...1248... Sun Jan 13 22:13:48 2008 From: rohnny at ...1248... (R. Stormo) Date: Sun, 13 Jan 2008 13:13:48 -0800 (PST) Subject: [Gambas-user] Parsing error with Replace$/Instr In-Reply-To: <200801140759.13479.rterry@...1822...> References: <200801131208.54467.rterry@...1822...> <200801122359.22058.sourceforge-raindog2@...94...> <200801140759.13479.rterry@...1822...> Message-ID: <14791164.post@...1379...> Richard Terry-2 wrote: > > On Sun, 13 Jan 2008 03:59:21 pm Rob wrote: >> On Saturday 12 January 2008 20:08, richard terry wrote: >> > Here is some for demo purposes of my code, which bombs with the >> > error message: "Bad character constant in string". >> > >> > sResult = Replace$(alltext, "\plain\f3\fs24 \par }", >> > "") >> >> You need to change all your "\"'s into "\\"'s. Gambas interpolates >> character constants, such as "\n" for newline, in strings. > > That seems like catch22 to me, ie want Gambas to repace the string > > Doo you mean I have to do it first as replace all "\" with "\\" and then > replace the resultant string with what I want, > > or are you saying it is impossible to do in code? > > Regards > > Richard > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > this should do the trick. Replace$(TextBox1.Text, "\\plain\\f3\\fs24 \\par }", "") Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/Parsing-error-with-Replace%24-Instr-tp14781076p14791164.html Sent from the gambas-user mailing list archive at Nabble.com. From sourceforge-raindog2 at ...94... Sun Jan 13 22:15:02 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 13 Jan 2008 16:15:02 -0500 Subject: [Gambas-user] Parsing error with Replace$/Instr In-Reply-To: <200801140759.13479.rterry@...1822...> References: <200801131208.54467.rterry@...1822...> <200801122359.22058.sourceforge-raindog2@...94...> <200801140759.13479.rterry@...1822...> Message-ID: <200801131615.02873.sourceforge-raindog2@...94...> On Sunday 13 January 2008 15:59, richard terry wrote: > > You need to change all your "\"'s into "\\"'s. > That seems like catch22 to me, ie want Gambas to repace the string > Doo you mean I have to do it first as replace all "\" with "\\" and > then replace the resultant string with what I want, > or are you saying it is impossible to do in code? No, I really mean "You need to change all your "\"'s into "\\"'s." Like this: sResult = Replace$(alltext, "\\plain\\f3\\fs24 \\par }", "") Sorry for the word wrapping. Anyway, this only applies when you include text as a constant in your Gambas program, as you're doing here. If you load a string in from a file or something, Gambas doesn't interpolate it. It may seem counter-intuitive to someone coming from VB with no perl/python/java/javascript/C/C++/shell scripting experience, but I personally would much rather write print "Result 1\t\t0.80\n" ' than print "Result 1" & vbTab & vbTab & "0.80" & vbCRLF '. Rob From rterry at ...1822... Sun Jan 13 22:43:28 2008 From: rterry at ...1822... (richard terry) Date: Mon, 14 Jan 2008 08:43:28 +1100 Subject: [Gambas-user] Apparently huge exectable file In-Reply-To: <200801130941.29947.rospolosco@...152...> References: <200801131226.34794.rterry@...1822...> <200801130857.35414.gambas@...1...> <200801130941.29947.rospolosco@...152...> Message-ID: <200801140843.28698.rterry@...1822...> > Could you show us the output of "ls -arlh" typed in your project directory? > Good Idea, here it is. I re-ran the make executable (after removing would you beleive 2.3 GIG of files (don't ask!) but despite the total project now being only 1.8 MB, then exectable still weighs in at 2 GIG!!! (which I've removed again from this listing). Sorry to be such a klutz, Bernoit says he will run my code but I'll try and trim it down a little first. Any more suggestions welcomes, will try and look at this in between patients today. Thanks. On Sun, 13 Jan 2008 07:41:29 pm Stefano Palmeri wrote: > Alle 08:57, domenica 13 gennaio 2008, Benoit Minisini ha scritto: > > On dimanche 13 janvier 2008, richard terry wrote: > > > I tried compiling my project (as get just basically a gui). > > > > > > Takes for ages, and in the installation directory I end up with a > > > 2.0GIG, yes GIG file called project1.gambas (which I was silly enough > > > to click on and dosn't run). > > > > > > In the Project1/ directory root there is also a file called > > > project1.gambas weighing in at a huge 52K!!!!!, yeah,well small cf the > > > other one. > > > > > > If I type gbx2 project1.gambas up pops my program > > > > > > What's is happening? > > > > > > Richard > > > > Please send your project to my private e-mail, without the 2Gb file of > > course! > > > > Regards, > > Is it possible that you stored a lot of file in project1/Data directory and > when making the executable all that file were inglobated in the executable, > isnt'it? > > Could you show us the output of "ls -arlh" typed in your project directory? > > Regards, > > Stefano > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- total 1.8M drwxr-xr-x 2 richard users 4.0K 2008-01-01 21:01 to_fix drwxr-xr-x 2 richard users 4.0K 2008-01-14 08:13 sql_used -rwxr-xr-x 1 richard users 383 2005-07-02 07:54 script2020.png -rwxr-xr-x 1 richard users 311 2005-07-02 07:54 referrals16x16.png -rwxr-xr-x 1 richard users 565 2005-07-02 07:54 recalls16x16.png -rwxr-xr-x 1 richard users 350 2005-07-02 07:54 oneperson2020.png -rwxr-xr-x 1 richard users 1.1K 2007-03-21 18:27 no_photo.png -rwxr-xr-x 1 richard users 928 2007-01-10 20:50 next2020.png -rwxr-xr-x 1 richard users 326 2005-07-02 07:54 measurements2020.png drwxr-xr-x 2 richard richard 4.0K 2008-01-13 09:15 letters drwxr-xr-x 2 richard users 4.0K 2008-01-14 08:31 installation -rwxr-xr-x 1 richard users 209 2005-07-02 07:54 inbox16x16.png drwxr-xr-x 13 richard users 4.0K 2008-01-12 20:31 import drwxr-xr-x 6 richard users 4.0K 2008-01-07 22:22 icons drwxr-xr-x 2 richard users 4.0K 2008-01-08 22:50 html drwxr-xr-x 2 richard richard 4.0K 2008-01-13 14:03 hl7 drwxr-xr-x 2 richard users 4.0K 2008-01-14 08:11 help -rw-r--r-- 1 richard users 18K 2008-01-01 11:35 frmWorkcovernotabcontrol.form~ -rw-r--r-- 1 richard users 107 2008-01-01 11:35 frmWorkcovernotabcontrol.class~ -rw-r--r-- 1 richard users 28K 2008-01-02 19:48 frmWorkcoverMenuTabcontrols1.form~ -rw-r--r-- 1 richard users 28K 2008-01-02 19:52 frmWorkcoverMenuTabcontrols1.form -rw-r--r-- 1 richard users 134 2008-01-02 19:37 frmWorkcoverMenuTabcontrols1.class -rw-r--r-- 1 richard users 28K 2008-01-02 19:32 frmWorkcoverMenuTabcontrols.form~ -rw-r--r-- 1 richard users 28K 2008-01-02 19:33 frmWorkcoverMenuTabcontrols.form -rw-r--r-- 1 richard users 134 2008-01-02 19:35 frmWorkcoverMenuTabcontrols.class~ -rw-r--r-- 1 richard users 134 2008-01-02 19:36 frmWorkcoverMenuTabcontrols.class -rw-r--r-- 1 richard users 24K 2008-01-01 21:04 frmWorkcoverAndTabControls.form~ -rw-r--r-- 1 richard users 108 2008-01-01 21:04 frmWorkcoverAndTabControls.class~ -rw-r--r-- 1 richard users 24K 2008-01-01 02:37 frmWorkcover1.form~ -rw-r--r-- 1 richard users 107 2008-01-01 01:24 frmWorkcover1.class~ -rw-r--r-- 1 richard richard 20K 2008-01-12 20:45 frmWorkcover.form~ -rw-r--r-- 1 richard richard 19K 2008-01-12 20:47 frmWorkcover.form -rw-r--r-- 1 richard richard 21 2008-01-12 20:13 frmWorkcover.class -rw-r--r-- 1 richard users 12K 2008-01-01 00:49 frmWorkCover.form~ -rw-r--r-- 1 richard users 259 2007-12-31 23:47 frmWorkCover.class~ -rw-r--r-- 1 richard users 849 2007-12-28 22:11 frmWidgitStackSimple.form~ -rw-r--r-- 1 richard users 858 2007-12-28 22:17 frmWidgitStackSimple.class~ -rw-r--r-- 1 richard users 1.1K 2007-12-28 22:20 frmWidgetStackWithSplitter.form~ -rw-r--r-- 1 richard users 266 2007-12-28 22:27 frmWidgetStackWithSplitter.class~ -rw-r--r-- 1 richard users 4.0K 2007-12-28 22:36 frmWStackPlusVertRight1.form~ -rw-r--r-- 1 richard users 273 2007-12-28 22:33 frmWStackPlusVertRight1.class~ -rw-r--r-- 1 richard users 3.0K 2007-12-28 22:50 frmWStackPlusVertRight.form~ -rw-r--r-- 1 richard users 306 2007-12-28 22:59 frmWStackPlusVertRight.class~ -rw-r--r-- 1 richard users 3.0K 2007-12-28 22:30 frmWStackPlusVertRighplusleftsidebar.form~ -rw-r--r-- 1 richard richard 6.8K 2008-01-12 18:27 frmTextEditor.form~ -rw-r--r-- 1 richard richard 6.8K 2008-01-12 18:29 frmTextEditor.form -rw-r--r-- 1 richard richard 3.7K 2008-01-12 00:42 frmTextEditor.class~ -rw-r--r-- 1 richard richard 3.6K 2008-01-12 18:12 frmTextEditor.class -rw-r--r-- 1 richard users 118 2008-01-02 23:20 frmTemplateProjectDescription.form -rw-r--r-- 1 richard users 21 2008-01-02 23:20 frmTemplateProjectDescription.class~ -rw-r--r-- 1 richard users 1.6K 2008-01-02 23:20 frmTemplateProjectDescription.class -rw-r--r-- 1 richard users 28K 2008-01-01 19:57 frmTempWorkcover.form~ -rw-r--r-- 1 richard richard 304 2008-01-13 09:05 frmTempLibrary.form~ -rw-r--r-- 1 richard richard 296 2008-01-13 09:05 frmTempLibrary.form -rw-r--r-- 1 richard richard 149 2008-01-13 09:06 frmTempLibrary.class~ -rw-r--r-- 1 richard richard 178 2008-01-13 09:07 frmTempLibrary.class -rw-r--r-- 1 richard richard 776 2008-01-13 17:09 frmTempLetterReader.form~ -rw-r--r-- 1 richard richard 776 2008-01-13 17:10 frmTempLetterReader.form -rw-r--r-- 1 richard richard 4.0K 2008-01-13 13:10 frmTempLetterReader.class~ -rw-r--r-- 1 richard richard 4.0K 2008-01-13 13:10 frmTempLetterReader.class -rw-r--r-- 1 richard users 4.7K 2007-12-29 08:58 frmTemp.form~ -rw-r--r-- 1 richard users 21 2007-12-28 22:56 frmTemp.class~ -rw-r--r-- 1 richard users 4.2K 2007-12-28 23:03 frmSideBarPlusequivoldmedrec.form~ -rw-r--r-- 1 richard users 313 2007-12-28 23:03 frmSideBarPlusequivoldmedrec.class~ -rw-r--r-- 1 richard users 4.2K 2007-12-28 22:57 frmSideBarPlusPiccie1.form~ -rw-r--r-- 1 richard users 104 2007-12-28 22:38 frmSideBarPlusPiccie1.class~ -rw-r--r-- 1 richard users 1.7K 2007-12-28 22:35 frmSideBarPlusPiccie.form~ -rw-r--r-- 1 richard users 104 2007-12-28 22:00 frmSideBarPlusPiccie.class~ -rw-r--r-- 1 richard users 1.2K 2008-01-01 11:39 frmScratchpadReminders.form~ -rw-r--r-- 1 richard users 21 2008-01-01 11:39 frmScratchpadReminders.class~ -rw-r--r-- 1 richard users 3.5K 2007-12-30 23:46 frmPrescription.form~ -rw-r--r-- 1 richard richard 2.2K 2008-01-12 22:15 frmPdf.form~ -rw-r--r-- 1 richard richard 2.3K 2008-01-12 22:16 frmPdf.form -rw-r--r-- 1 richard richard 4.8K 2008-01-12 21:19 frmPdf.class~ -rw-r--r-- 1 richard richard 4.8K 2008-01-12 21:19 frmPdf.class -rw-r--r-- 1 richard users 3.8K 2007-12-31 17:26 frmNewProgressNote2.form~ -rw-r--r-- 1 richard users 3.8K 2007-12-31 17:27 frmNewProgressNote2.form -rw-r--r-- 1 richard users 86 2007-12-31 17:26 frmNewProgressNote2.class -rw-r--r-- 1 richard users 3.8K 2007-12-31 17:10 frmNewProgressNote1.form~ -rw-r--r-- 1 richard users 3.8K 2007-12-31 17:32 frmNewProgressNote1.form -rw-r--r-- 1 richard users 140 2007-12-31 17:35 frmNewProgressNote1.class~ -rw-r--r-- 1 richard users 121 2007-12-31 17:36 frmNewProgressNote1.class -rw-r--r-- 1 richard users 4.3K 2008-01-02 20:54 frmNewProgressNote.form~ -rw-r--r-- 1 richard richard 4.3K 2008-01-07 10:17 frmNewProgressNote.form -rw-r--r-- 1 richard users 73 2007-12-31 16:54 frmNewProgressNote.class~ -rw-r--r-- 1 richard users 68 2007-12-31 16:55 frmNewProgressNote.class -rw-r--r-- 1 richard users 99 2008-01-01 17:14 frmMenuBar.form~ -rw-r--r-- 1 richard users 3.6K 2008-01-01 17:15 frmMenuBar.form -rw-r--r-- 1 richard users 21 2008-01-01 17:14 frmMenuBar.class -rw-r--r-- 1 richard users 557 2008-01-01 15:59 frmLogout.form~ -rw-r--r-- 1 richard users 180 2008-01-01 15:56 frmLogout.class~ -rw-r--r-- 1 richard richard 330 2008-01-08 20:15 frmInbox.form~ -rw-r--r-- 1 richard richard 384 2008-01-08 22:33 frmInbox.form -rw-r--r-- 1 richard richard 21 2008-01-08 20:12 frmInbox.class -rw-r--r-- 1 richard richard 3.6K 2008-01-13 23:29 frmHL7Parser1.form~ -rw-r--r-- 1 richard richard 3.6K 2008-01-13 23:31 frmHL7Parser1.form -rw-r--r-- 1 richard richard 13K 2008-01-13 23:31 frmHL7Parser1.class~ -rw-r--r-- 1 richard richard 13K 2008-01-13 23:32 frmHL7Parser1.class -rw-r--r-- 1 richard richard 2.7K 2008-01-13 19:08 frmHL7Parser.form~ -rw-r--r-- 1 richard richard 2.8K 2008-01-13 21:16 frmHL7Parser.form -rw-r--r-- 1 richard richard 11K 2008-01-13 21:16 frmHL7Parser.class~ -rw-r--r-- 1 richard richard 8.8K 2008-01-13 21:21 frmHL7Parser.class -rw-r--r-- 1 richard users 12K 2008-01-01 11:36 frmEmulateAumednoworkcover.form~ -rw-r--r-- 1 richard users 3.3K 2008-01-01 11:36 frmEmulateAumednoworkcover.class~ -rw-r--r-- 1 richard users 3.3K 2007-12-31 17:30 frmEmulateAumed2.class~ -rw-r--r-- 1 richard users 40K 2008-01-01 02:47 frmEmulateAumed1.form~ -rw-r--r-- 1 richard users 3.7K 2008-01-01 02:42 frmEmulateAumed1.class~ -rw-r--r-- 1 richard richard 429 2008-01-12 20:33 frmEmbed.form -rw-r--r-- 1 richard richard 1.5K 2008-01-12 20:33 frmEmbed.class -rw-r--r-- 1 richard users 40K 2008-01-01 21:07 frmEasyGP.form~ -rw-r--r-- 1 richard users 3.7K 2008-01-01 11:37 frmEasyGP.class~ -rw-r--r-- 1 richard richard 4.3K 2008-01-08 21:14 frmDrugReference2.form~ -rw-r--r-- 1 richard richard 1.1K 2008-01-08 21:14 frmDrugReference2.class~ -rw-r--r-- 1 richard richard 4.4K 2008-01-08 21:07 frmDrugReference1.form~ -rw-r--r-- 1 richard richard 5.1K 2008-01-08 23:41 frmDrugReference.form~ -rw-r--r-- 1 richard richard 5.1K 2008-01-08 23:41 frmDrugReference.form -rw-r--r-- 1 richard richard 1.2K 2008-01-12 21:07 frmDrugReference.class~ -rw-r--r-- 1 richard richard 1.1K 2008-01-12 23:25 frmDrugReference.class -rw-r--r-- 1 richard users 2.5K 2007-12-30 22:33 frmDemoTabsProgress2.form~ -rw-r--r-- 1 richard users 2.5K 2007-12-31 10:03 frmDemoTabsProgress2.form -rw-r--r-- 1 richard users 2.4K 2007-12-30 23:15 frmDemoTabsProgress2.class~ -rw-r--r-- 1 richard users 2.4K 2008-01-01 21:43 frmDemoTabsProgress2.class -rw-r--r-- 1 richard users 2.9K 2007-12-31 17:12 frmDemoTabsProgress1.form~ -rw-r--r-- 1 richard users 1.9K 2007-12-30 22:20 frmDemoTabsProgress1.class~ -rw-r--r-- 1 richard richard 6.6K 2008-01-08 23:38 frmContacts.form~ -rw-r--r-- 1 richard richard 6.8K 2008-01-10 21:36 frmContacts.form -rw-r--r-- 1 richard users 208 2008-01-01 17:43 frmContacts.class~ -rw-r--r-- 1 richard richard 250 2008-01-10 21:36 frmContacts.class -rw-r--r-- 1 richard richard 345 2008-01-12 23:20 frmConfigure.form~ -rw-r--r-- 1 richard richard 344 2008-01-12 23:20 frmConfigure.form -rw-r--r-- 1 richard richard 21 2008-01-12 21:43 frmConfigure.class -rw-r--r-- 1 richard richard 12K 2008-01-12 20:47 frmClinical.form~ -rw-r--r-- 1 richard richard 12K 2008-01-12 20:50 frmClinical.form -rw-r--r-- 1 richard richard 4.4K 2008-01-12 20:48 frmClinical.class~ -rw-r--r-- 1 richard richard 4.5K 2008-01-12 20:51 frmClinical.class -rw-r--r-- 1 richard richard 58K 2008-01-08 23:45 frmBasic.form~ -rw-r--r-- 1 richard richard 58K 2008-01-08 23:48 frmBasic.form -rw-r--r-- 1 richard users 5.5K 2008-01-01 21:51 frmBasic.class~ -rw-r--r-- 1 richard richard 5.6K 2008-01-08 23:50 frmBasic.class -rw-r--r-- 1 richard users 3.8K 2007-12-31 10:04 frmAllergy.form~ -rw-r--r-- 1 richard users 3.5K 2007-12-31 10:07 frmAllergy.form -rw-r--r-- 1 richard users 20 2007-12-31 09:52 frmAllergy.class~ -rw-r--r-- 1 richard users 53 2007-12-31 16:47 frmAllergy.class drwxr-xr-x 2 richard richard 4.0K 2008-01-12 21:23 education drwxr-xr-x 2 richard users 4.0K 2008-01-01 20:29 config -rwxr-xr-x 1 richard users 753 2005-07-02 07:54 bmi_calculator2020.png -rwxr-xr-x 1 richard users 203 2005-07-02 07:54 bloodtube16x16.png -rw-r--r-- 1 richard richard 0 2008-01-14 08:39 arlhoutput -rwxr-xr-x 1 richard users 5.6K 2005-12-31 10:33 any_body2.png -rwxr-xr-x 1 richard richard 381K 2008-01-12 21:03 Prexige-Exercise-Plan.pdf -rw-r--r-- 1 richard richard 90 2008-01-13 22:52 Image1.png -rw-r--r-- 1 richard users 18K 2008-01-01 01:20 Form8.form~ -rw-r--r-- 1 richard users 72 2008-01-01 00:41 Form8.class~ -rw-r--r-- 1 richard users 1.1K 2007-12-30 20:26 Form7.form~ -rw-r--r-- 1 richard users 21 2007-12-30 20:12 Form7.class~ -rw-r--r-- 1 richard users 6.1K 2007-12-27 00:52 Form6.form~ -rw-r--r-- 1 richard users 456 2007-12-27 00:54 Form6.class~ -rw-r--r-- 1 richard richard 480 2008-01-12 17:47 Form5.form~ -rw-r--r-- 1 richard richard 460 2008-01-12 17:47 Form5.form -rw-r--r-- 1 richard richard 1.1K 2008-01-12 17:30 Form5.class~ -rw-r--r-- 1 richard richard 1.1K 2008-01-12 17:31 Form5.class -rw-r--r-- 1 richard richard 347 2008-01-07 20:08 Form4.form~ -rw-r--r-- 1 richard richard 467 2008-01-07 20:04 Form4.class~ -rw-r--r-- 1 richard users 134 2008-01-02 20:13 Form3.form~ -rw-r--r-- 1 richard users 93 2008-01-02 20:25 Form3.class~ -rw-r--r-- 1 richard users 3.0K 2007-12-26 23:08 Form2.form~ -rw-r--r-- 1 richard users 21 2007-12-26 23:02 Form2.class~ -rw-r--r-- 1 richard users 9.9K 2008-01-01 21:14 Form1.form~ -rw-r--r-- 1 richard users 21 2008-01-01 21:02 Form1.class~ -rw-r--r-- 1 richard richard 2.7K 2008-01-12 22:47 FWelcome2.form~ -rw-r--r-- 1 richard richard 2.7K 2008-01-12 22:51 FWelcome2.form -rw-r--r-- 1 richard richard 12K 2008-01-12 23:24 FWelcome2.class~ -rw-r--r-- 1 richard richard 12K 2008-01-13 14:58 FWelcome2.class -rw-r--r-- 1 richard richard 4.7K 2008-01-07 22:34 FWelcome1.form~ -rw-r--r-- 1 richard richard 4.7K 2008-01-07 22:35 FWelcome1.form -rw-r--r-- 1 richard richard 8.6K 2008-01-07 22:19 FWelcome1.class~ -rw-r--r-- 1 richard richard 8.6K 2008-01-07 22:44 FWelcome1.class -rw-r--r-- 1 richard richard 429 2008-01-12 20:30 FMain2.form~ -rwxr-xr-x 1 richard richard 1.5K 2008-01-09 16:37 FMain2.class~ -rw-r--r-- 1 richard users 5.5K 2008-01-01 11:53 FMain1.form~ -rw-r--r-- 1 richard users 112 2008-01-01 11:53 FMain1.class~ -rw-r--r-- 1 richard users 5.4K 2008-01-01 11:53 FMain.form~ -rw-r--r-- 1 richard users 112 2007-12-26 22:03 FMain.class~ -rw-r--r-- 1 richard richard 88 2008-01-11 21:44 EasyGP.module~ -rw-r--r-- 1 richard richard 88 2008-01-11 21:45 EasyGP.module -rw-r--r-- 1 richard richard 4.7K 2008-01-12 17:56 CGradientBar.class~ -rw-r--r-- 1 richard richard 4.7K 2008-01-12 17:57 CGradientBar.class -rw-r--r-- 1 richard richard 3.5K 2008-01-12 17:13 CCoolButton.class~ -rw-r--r-- 1 richard richard 3.5K 2008-01-12 17:14 CCoolButton.class -rw-r--r-- 1 richard users 307 2008-01-13 23:32 .settings -rw-r--r-- 1 richard richard 844 2008-01-14 08:21 .project -rw-r--r-- 1 richard richard 0 2008-01-14 08:19 .lock -rw-r--r-- 1 richard users 6.9K 2008-01-12 21:11 .icon.png drwxr-xr-x 2 richard richard 4.0K 2008-01-14 08:19 .gambas -rw-r--r-- 1 richard users 33 2008-01-12 21:11 .directory drwxr-xr-x 5 richard users 4.0K 2008-01-01 13:03 .. drwxr-xr-x 14 richard users 12K 2008-01-14 08:39 . From gambas.fr at ...626... Sun Jan 13 22:53:14 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Jan 2008 22:53:14 +0100 Subject: [Gambas-user] Apparently huge exectable file In-Reply-To: <200801140843.28698.rterry@...1822...> References: <200801131226.34794.rterry@...1822...> <200801130941.29947.rospolosco@...152...> <200801140843.28698.rterry@...1822...> Message-ID: <200801132253.14409.gambas.fr@...626...> Le Sunday 13 January 2008 22:43:28 richard terry, vous avez ?crit?: > > Could you show us the output of "ls -arlh" typed in your project > > directory? > > Good Idea, here it is. I re-ran the make executable (after removing would > you beleive 2.3 GIG of files (don't ask!) but despite the total project now > being only 1.8 MB, then exectable still weighs in at 2 GIG!!! (which I've > removed again from this listing). > > Sorry to be such a klutz, Bernoit says he will run my code but I'll try and > trim it down a little first. > > Any more suggestions welcomes, will try and look at this in between > patients today. > > Thanks. > > On Sun, 13 Jan 2008 07:41:29 pm Stefano Palmeri wrote: > > Alle 08:57, domenica 13 gennaio 2008, Benoit Minisini ha scritto: > > > On dimanche 13 janvier 2008, richard terry wrote: > > > > I tried compiling my project (as get just basically a gui). > > > > > > > > Takes for ages, and in the installation directory I end up with a > > > > 2.0GIG, yes GIG file called project1.gambas (which I was silly enough > > > > to click on and dosn't run). > > > > > > > > In the Project1/ directory root there is also a file called > > > > project1.gambas weighing in at a huge 52K!!!!!, yeah,well small cf > > > > the other one. > > > > > > > > If I type gbx2 project1.gambas up pops my program > > > > > > > > What's is happening? > > > > > > > > Richard > > > > > > Please send your project to my private e-mail, without the 2Gb file of > > > course! > > > > > > Regards, > > > > Is it possible that you stored a lot of file in project1/Data directory > > and when making the executable all that file were inglobated in the > > executable, isnt'it? > > > > Could you show us the output of "ls -arlh" typed in your project > > directory? > > > > Regards, > > > > Stefano > > > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl > >ac e _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user can you try this : make an archive of your project and tell us the size of this archive... Project->generate->archive From hennie at ...1826... Sun Jan 13 23:03:31 2008 From: hennie at ...1826... (gaupe) Date: Sun, 13 Jan 2008 14:03:31 -0800 (PST) Subject: [Gambas-user] QObject: timers now exist for object Message-ID: <14791802.post@...1379...> I see a lot of these messages in the console. saying QObject: xx timers now exist for object (xx is a number) especially when the webbrowser retrieves its data. can anyone tell me what this is? and ... if thats a problem and how to solve this? -- View this message in context: http://www.nabble.com/QObject%3A-timers-now-exist-for-object-tp14791802p14791802.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Sun Jan 13 23:26:07 2008 From: rterry at ...1822... (richard terry) Date: Mon, 14 Jan 2008 09:26:07 +1100 Subject: [Gambas-user] Apparently huge exectable file In-Reply-To: <200801132253.14409.gambas.fr@...626...> References: <200801131226.34794.rterry@...1822...> <200801140843.28698.rterry@...1822...> <200801132253.14409.gambas.fr@...626...> Message-ID: <200801140926.07867.rterry@...1822...> [richard at ...1833... ~]$ ls -al project1-0.0.6.tar.gz -rw-r--r-- 1 richard richard 497071 2008-01-14 09:25 project1-0.0.6.tar.gz regards On Mon, 14 Jan 2008 08:53:14 am Fabien Bodard wrote: > Le Sunday 13 January 2008 22:43:28 richard terry, vous avez ?crit?: > > > Could you show us the output of "ls -arlh" typed in your project > > > directory? > > > > Good Idea, here it is. I re-ran the make executable (after removing would > > you beleive 2.3 GIG of files (don't ask!) but despite the total project > > now being only 1.8 MB, then exectable still weighs in at 2 GIG!!! (which > > I've removed again from this listing). > > > > Sorry to be such a klutz, Bernoit says he will run my code but I'll try > > and trim it down a little first. > > > > Any more suggestions welcomes, will try and look at this in between > > patients today. > > > > Thanks. > > > > On Sun, 13 Jan 2008 07:41:29 pm Stefano Palmeri wrote: > > > Alle 08:57, domenica 13 gennaio 2008, Benoit Minisini ha scritto: > > > > On dimanche 13 janvier 2008, richard terry wrote: > > > > > I tried compiling my project (as get just basically a gui). > > > > > > > > > > Takes for ages, and in the installation directory I end up with a > > > > > 2.0GIG, yes GIG file called project1.gambas (which I was silly > > > > > enough to click on and dosn't run). > > > > > > > > > > In the Project1/ directory root there is also a file called > > > > > project1.gambas weighing in at a huge 52K!!!!!, yeah,well small cf > > > > > the other one. > > > > > > > > > > If I type gbx2 project1.gambas up pops my program > > > > > > > > > > What's is happening? > > > > > > > > > > Richard > > > > > > > > Please send your project to my private e-mail, without the 2Gb file > > > > of course! > > > > > > > > Regards, > > > > > > Is it possible that you stored a lot of file in project1/Data directory > > > and when making the executable all that file were inglobated in the > > > executable, isnt'it? > > > > > > Could you show us the output of "ls -arlh" typed in your project > > > directory? > > > > > > Regards, > > > > > > Stefano > > > > > > > > > > > > ----------------------------------------------------------------------- > > >-- Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/market > > >pl ac e _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > can you try this : > > make an archive of your project and tell us the size of this archive... > > Project->generate->archive > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac >e _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From horechuk at ...981... Sun Jan 13 23:32:14 2008 From: horechuk at ...981... (Paul Horechuk) Date: Sun, 13 Jan 2008 17:32:14 -0500 Subject: [Gambas-user] 64bit make install core dump Message-ID: <200801131732.14516.horechuk@...981...> using: Kubuntu 7.04 64 bit and svn 962, I get all the way through to make install and get this: make install make[4]: Nothing to be done for `install-exec-am'. test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" /usr/bin/install -c -m 644 'gb.gtk.component' '/usr/local/lib/gambas3/gb.gtk.component' test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" /usr/bin/install -c -m 644 'gb.gtk.component' '/usr/local/lib/gambas3/gb.gtk.component' test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" /bin/sh ../libtool --mode=install /usr/bin/install -c 'gb.gtk.la' '/usr/local/lib/gambas3/gb.gtk.la' /usr/bin/install -c .libs/gb.gtk.so.0.0.0 /usr/local/lib/gambas3/gb.gtk.so.0.0.0 (cd /usr/local/lib/gambas3 && rm -f gb.gtk.so.0 && ln -s gb.gtk.so.0.0.0 gb.gtk.so.0) (cd /usr/local/lib/gambas3 && rm -f gb.gtk.so && ln -s gb.gtk.so.0.0.0 gb.gtk.so) /usr/bin/install -c .libs/gb.gtk.lai /usr/local/lib/gambas3/gb.gtk.la PATH="$PATH:/sbin" ldconfig -n /usr/local/lib/gambas3 ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib/gambas3 If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make install-data-hook make[5]: Entering directory `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' Compiling the gb.gtk project... gb.gtk /bin/sh: line 10: 18586 Segmentation fault (core dumped) /usr/local/bin/gbi3 -r /usr/local gb.gtk /home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src/gb.gtk/Action.class:15: Unknown identifier: Control Creating the information files for gb.gtk component... gb.gtk make[5]: *** [install-data-hook] Segmentation fault (core dumped) make[5]: Leaving directory `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' make[4]: *** [install-data-am] Error 2 make[4]: Leaving directory `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' make[3]: *** [install-am] Error 2 make[3]: Leaving directory `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk' make: *** [install-recursive] Error 1 Any ideas? What more do you need? -- -- Paul Horechuk Think Free Use Open Sourec Software From ariefbayu at ...626... Mon Jan 14 03:14:17 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Mon, 14 Jan 2008 09:14:17 +0700 Subject: [Gambas-user] SVN ref 919 ./configure error Message-ID: <976ad9050801131814n5468bd25le75f7b3c9d920b4a@...627...> hello all, here's the snippet log: checking whether gcc and cc understand -c and -o together... yes checking for external internationalization library headers... /usr/include/ checking for external internationalization library libraries... no configure: This library should be located inside the system C library checking for optional external charset conversion library headers... /usr/include/ checking for optional external charset conversion library libraries... no configure: This library must be located inside the C library checking for external gettext library headers... checking for external gettext library libraries... no configure: This library must be located inside the C library checking for xdg-mime... xdg-mime configure: creating ./config.status config.status: creating Makefile config.status: creating share/Makefile config.status: creating gbc/Makefile config.status: creating gbx/Makefile config.status: creating lib/Makefile config.status: creating lib/debug/Makefile config.status: creating lib/eval/Makefile config.status: creating lib/db/Makefile config.status: creating lib/vb/Makefile config.status: creating lib/compress/Makefile config.status: creating lib/option/Makefile config.status: creating lib/draw/Makefile config.status: creating lib/gui/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands ./configure: line 23098: unexpected EOF while looking for matching ``' ./configure: line 23117: syntax error: unexpected end of file configure: error: ./configure failed for main silent at ...1792...:~/tmp/gambas2/trunk$ svn info Path: . URL: https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk Repository Root: https://gambas.svn.sourceforge.net/svnroot/gambas Repository UUID: 96304659-1d19-0410-acd0-aead272a8bd5 Revision: 965 Node Kind: directory Schedule: normal Last Changed Author: lordheavy Last Changed Rev: 919 Last Changed Date: 2008-01-07 03:06:44 +0700 (Mon, 07 Jan 2008) -- Daiguren Hy?rinmaru From gambas at ...1... Mon Jan 14 08:32:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 14 Jan 2008 08:32:34 +0100 Subject: [Gambas-user] QObject: timers now exist for object In-Reply-To: <14791802.post@...1379...> References: <14791802.post@...1379...> Message-ID: <200801140832.34764.gambas@...1...> On dimanche 13 janvier 2008, gaupe wrote: > I see a lot of these messages in the console. > saying QObject: xx timers now exist for object (xx is a number) > especially when the webbrowser retrieves its data. > can anyone tell me what this is? > > and ... if thats a problem and how to solve this? These are warning messages from the QT library, but I don't have any of them. Which version of QT is installed on your system? -- Benoit Minisini From gambas at ...1... Mon Jan 14 08:34:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 14 Jan 2008 08:34:10 +0100 Subject: [Gambas-user] 64bit make install core dump In-Reply-To: <200801131732.14516.horechuk@...981...> References: <200801131732.14516.horechuk@...981...> Message-ID: <200801140834.10793.gambas@...1...> On dimanche 13 janvier 2008, Paul Horechuk wrote: > using: Kubuntu 7.04 64 bit and svn 962, I get all the way through to make > install and get this: > > make install > > > make[4]: Nothing to be done for `install-exec-am'. > test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" > /usr/bin/install -c -m > 644 'gb.gtk.component' '/usr/local/lib/gambas3/gb.gtk.component' > test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" > /usr/bin/install -c -m > 644 'gb.gtk.component' '/usr/local/lib/gambas3/gb.gtk.component' > test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" > /bin/sh ../libtool --mode=install /usr/bin/install -c 'gb.gtk.la' > '/usr/local/lib/gambas3/gb.gtk.la' /usr/bin/install -c > .libs/gb.gtk.so.0.0.0 /usr/local/lib/gambas3/gb.gtk.so.0.0.0 (cd > /usr/local/lib/gambas3 && rm -f gb.gtk.so.0 && ln -s gb.gtk.so.0.0.0 > gb.gtk.so.0) > (cd /usr/local/lib/gambas3 && rm -f gb.gtk.so && ln -s gb.gtk.so.0.0.0 > gb.gtk.so) > /usr/bin/install -c .libs/gb.gtk.lai /usr/local/lib/gambas3/gb.gtk.la > PATH="$PATH:/sbin" ldconfig -n /usr/local/lib/gambas3 > ---------------------------------------------------------------------- > Libraries have been installed in: > /usr/local/lib/gambas3 > > If you ever happen to want to link against installed libraries > in a given directory, LIBDIR, you must either use libtool, and > specify the full pathname of the library, or use the `-LLIBDIR' > flag during linking and do at least one of the following: > - add LIBDIR to the `LD_LIBRARY_PATH' environment variable > during execution > - add LIBDIR to the `LD_RUN_PATH' environment variable > during linking > - use the `-Wl,--rpath -Wl,LIBDIR' linker flag > - have your system administrator add LIBDIR to `/etc/ld.so.conf' > > See any operating system documentation about shared libraries for > more information, such as the ld(1) and ld.so(8) manual pages. > ---------------------------------------------------------------------- > make install-data-hook > make[5]: Entering directory > `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' > Compiling the gb.gtk project... > gb.gtk > /bin/sh: line 10: 18586 Segmentation fault (core > dumped) /usr/local/bin/gbi3 -r /usr/local gb.gtk > /home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src/gb.gtk/Action.class:15: > Unknown identifier: Control > > Creating the information files for gb.gtk component... > gb.gtk > make[5]: *** [install-data-hook] Segmentation fault (core dumped) > make[5]: Leaving directory > `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' > make[4]: *** [install-data-am] Error 2 > make[4]: Leaving directory > `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' > make[3]: *** [install-am] Error 2 > make[3]: Leaving directory > `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' > make[2]: *** [install-recursive] Error 1 > make[2]: Leaving directory > `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' > make[1]: *** [install-recursive] Error 1 > make[1]: Leaving directory `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk' > make: *** [install-recursive] Error 1 > > > Any ideas? What more do you need? Yes. I am aware of that. Rob Kudla granted me an ssh access to a 64 bits system, so I will be able to compile and debug directly on it soon. Anyway, can you post the result of your 64 bits compilation on the developer mailing-list instead of this one? Regards, -- Benoit Minisini From lordheavym at ...626... Mon Jan 14 08:52:11 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 14 Jan 2008 08:52:11 +0100 Subject: [Gambas-user] SVN ref 919 ./configure error In-Reply-To: <976ad9050801131814n5468bd25le75f7b3c9d920b4a@...627...> References: <976ad9050801131814n5468bd25le75f7b3c9d920b4a@...627...> Message-ID: <200801140852.15599.lordheavym@...626...> Le Monday 14 January 2008 03:14:17 Arief Bayu Purwanto, vous avez ?crit?: > hello all, > > here's the snippet log: > > checking whether gcc and cc understand -c and -o together... yes > checking for external internationalization library headers... /usr/include/ > checking for external internationalization library libraries... no > configure: This library should be located inside the system C library > checking for optional external charset conversion library headers... > /usr/include/ > checking for optional external charset conversion library libraries... no > configure: This library must be located inside the C library > checking for external gettext library headers... > checking for external gettext library libraries... no > configure: This library must be located inside the C library > checking for xdg-mime... xdg-mime > configure: creating ./config.status > config.status: creating Makefile > config.status: creating share/Makefile > config.status: creating gbc/Makefile > config.status: creating gbx/Makefile > config.status: creating lib/Makefile > config.status: creating lib/debug/Makefile > config.status: creating lib/eval/Makefile > config.status: creating lib/db/Makefile > config.status: creating lib/vb/Makefile > config.status: creating lib/compress/Makefile > config.status: creating lib/option/Makefile > config.status: creating lib/draw/Makefile > config.status: creating lib/gui/Makefile > config.status: creating config.h > config.status: config.h is unchanged > config.status: executing depfiles commands > ./configure: line 23098: unexpected EOF while looking for matching ``' > ./configure: line 23117: syntax error: unexpected end of file > configure: error: ./configure failed for main > silent at ...1792...:~/tmp/gambas2/trunk$ svn info > Path: . > URL: https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk > Repository Root: https://gambas.svn.sourceforge.net/svnroot/gambas > Repository UUID: 96304659-1d19-0410-acd0-aead272a8bd5 > Revision: 965 > Node Kind: directory > Schedule: normal > Last Changed Author: lordheavy > Last Changed Rev: 919 > Last Changed Date: 2008-01-07 03:06:44 +0700 (Mon, 07 Jan 2008) From gambas at ...1... Mon Jan 14 08:56:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 14 Jan 2008 08:56:12 +0100 Subject: [Gambas-user] Subversion repository (was Re: SVN ref 919 ./configure error) In-Reply-To: <200801140852.15599.lordheavym@...626...> References: <976ad9050801131814n5468bd25le75f7b3c9d920b4a@...627...> <200801140852.15599.lordheavym@...626...> Message-ID: <200801140856.12604.gambas@...1...> On lundi 14 janvier 2008, Laurent Carlier wrote: > From which repository did you grab your gambas version ? > > It's better to grab it from from 2.0 branch instead of the trunk, because > the trunk can be broke until work is finished on the 64 bit branch. It's > better to grab it from : > svn co > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 > > In the 2.0 branch there is only bugfixes, and (i hope) it is granted to > work. > > Regards, A little summary may be needed... At the moment, you can checkout the following paths on the repository (all are relative to https://gambas.svn.sourceforge.net/svnroot/gambas/) 1) /gambas/trunk is the trunk for the future 3.0. Nothing has been really done in it at the moment. 2) /gambas/branches/2.0 is the trunk for the next 2.0 release (maybe 2.1). It will include mainly bug fixes. 3) /gambas/branches/64bits is the trunk for the 64 bits port. I'm only working on it at the moment. It will be merge to /gambas/trunk when finished, and maybe backported to /gambas/branches/2.0 too. 4) /gambas/branches/2.0-lordh* are the branches created by Laurent for its own work. I hope things are clearer now. :-) Regards, -- Benoit Minisini From ariefbayu at ...626... Mon Jan 14 09:19:58 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Mon, 14 Jan 2008 15:19:58 +0700 Subject: [Gambas-user] SVN ref 919 ./configure error In-Reply-To: <200801140852.15599.lordheavym@...626...> References: <976ad9050801131814n5468bd25le75f7b3c9d920b4a@...627...> <200801140852.15599.lordheavym@...626...> Message-ID: <976ad9050801140019i3296e45etcec16b341ab933c@...627...> On 1/14/08, Laurent Carlier wrote: > > From which repository did you grab your gambas version ? > > It's better to grab it from from 2.0 branch instead of the trunk, because > the > trunk can be broke until work is finished on the 64 bit branch. It's > better > to grab it from : > svn co > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 > > In the 2.0 branch there is only bugfixes, and (i hope) it is granted to > work. Thank you, I'll checkout and compile it again. -- Daiguren Hy?rinmaru From bundeshund at ...467... Mon Jan 14 09:49:15 2008 From: bundeshund at ...467... (Hans-Martin =?iso-8859-1?q?B=F6hme?=) Date: Mon, 14 Jan 2008 09:49:15 +0100 Subject: [Gambas-user] Gambas2: trouble with executable In-Reply-To: <200801061803.52099.gambas@...1...> References: <200801061626.19477.> <200801061803.52099.gambas@...1...> Message-ID: <200801140949.15470.bundeshund@...467...> Am Sonntag, 6. Januar 2008 18:03:51 schrieb Benoit Minisini: > On dimanche 6 janvier 2008, Hans-Martin B?hme wrote: > > Hi, > > > > I have Gambas 2.0 running here on my pc without any trouble, but today I > > installed the 2.0 on a friends pc (SuSE 10.2) and all run fine except the > > executable from my selfwritten application. > > > > I build that executeable new on his pc from the source (it runs fine with > > F5 from the GUI on his pc) but no way to start it from a shell (konsole) > > as an executable. (On mine there is no trouble at all, so it must be > > somewhat with his pc I guess) > > > > Uh, thats not right, the first Window of the executable starts, but it > > has to open a second window (the first window is a login-window), wich > > will not come up pressing the login-button. The first window will not > > response any more after pressing this button. > > > > No error-text to see on the console, the application just 'hangs' > > > > I am sure it is no Gambas problem, because all run fine on mine machine > > and so i didnt post some code-snippet from my application here. > > > > Anyone has a tip where to start? > > > > Thanks a lot, > > > > HMB > > It recalls me some similar problem on SuSE, but I can't remember what it is > exactly. > > You should try to know where it hangs with gdb: > > $ gdb gbx2 > ... > (gdb) bt > ... > > where is the process id of the program that hangs. > > Send me the result of the gdb 'bt' command. > > Regards, Hmm, I was there on Sunday. He installed SuSE 10.3 during the week - I told him to wait :( But to late to get this error out now, all runs fine on 10.3 Don't know if this is a good or bad info for you... regards, HMB From ariefbayu at ...626... Mon Jan 14 09:56:36 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Mon, 14 Jan 2008 15:56:36 +0700 Subject: [Gambas-user] SVN rev.965 `sudo make` error Message-ID: <976ad9050801140056q42932d1w4464faf058141577@...627...> Log snippet. Making all in gbx make[4]: Entering directory `/home/silent/tmp/gambas2/trunk/main/gbx' /bin/bash ../libtool --tag=CC --mode=link gcc -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -o gbx2 gbx2-gb_common.o gbx2-gbx_debug.o gbx2-gb_error.o gbx2-gb_alloc.o gbx2-gb_array.o gbx2-gbx_stack.o gbx2-gb_buffer.o gbx2-gbx_replace.o gbx2-gb_list.o gbx2-gb_hash.o gbx2-gb_table.o gbx2-gbx_type.o gbx2-gbx_value.o gbx2-gbx_subst.o gbx2-gbx_exec.o gbx2-gbx_exec_push.o gbx2-gbx_exec_enum.o gbx2-gbx_exec_pop.o gbx2-gbx_exec_loop.o gbx2-gbx_class_init.o gbx2-gbx_class.o gbx2-gbx_class_native.o gbx2-gbx_class_load.o gbx2-gbx_event.o gbx2-gb_file.o gbx2-gbx_stream.o gbx2-gbx_stream_direct.o gbx2-gbx_stream_buffer.o gbx2-gbx_stream_memory.o gbx2-gbx_stream_arch.o gbx2-gbx_stream_process.o gbx2-gbx_stream_pipe.o gbx2-gbx_project.o gbx2-gbx_library.o gbx2-gbx_subr.o gbx2-gbx_subr_file.o gbx2-gbx_subr_string.o gbx2-gbx_subr_conv.o gbx2-gbx_subr_time.o gbx2-gbx_subr_extern.o gbx2-gbx_subr_misc.o gbx2-gbx_math.o gbx2-gbx_subr_math.o gbx2-gbx_subr_test.o gbx2-gbx_api.o gbx2-gbx_local.o gbx2-gbx_regexp.o gbx2-gbx_archive.o gbx2-gbx_watch.o gbx2-gbx_eval.o gbx2-gbx_compare.o gbx2-gbx.o gbx2-gbx_number.o gbx2-gbx_object.o gbx2-gbx_string.o gbx2-gbx_variant.o gbx2-gbx_date.o gbx2-gbx_array.o gbx2-gbx_c_class.o gbx2-gbx_c_collection.o gbx2-gbx_c_error.o gbx2-gbx_c_gambas.o gbx2-gbx_c_file.o gbx2-gbx_c_application.o gbx2-gbx_c_array.o gbx2-gbx_c_process.o gbx2-gbx_c_subcollection.o gbx2-gbx_c_string.o gbx2-gbx_component.o gbx2-gbx_extern.o gbx2-gbx_print.o gbx2-gbx_c_enum.o gbx2-gbx_c_timer.o gbx2-gbx_c_quote.o -lm -lgettextlib -ldl @TTY_LIB@ gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -o gbx2 gbx2-gb_common.o gbx2-gbx_debug.o gbx2-gb_error.o gbx2-gb_alloc.o gbx2-gb_array.o gbx2-gbx_stack.o gbx2-gb_buffer.o gbx2-gbx_replace.o gbx2-gb_list.o gbx2-gb_hash.o gbx2-gb_table.o gbx2-gbx_type.o gbx2-gbx_value.o gbx2-gbx_subst.o gbx2-gbx_exec.o gbx2-gbx_exec_push.o gbx2-gbx_exec_enum.o gbx2-gbx_exec_pop.o gbx2-gbx_exec_loop.o gbx2-gbx_class_init.o gbx2-gbx_class.o gbx2-gbx_class_native.o gbx2-gbx_class_load.o gbx2-gbx_event.o gbx2-gb_file.o gbx2-gbx_stream.o gbx2-gbx_stream_direct.o gbx2-gbx_stream_buffer.o gbx2-gbx_stream_memory.o gbx2-gbx_stream_arch.o gbx2-gbx_stream_process.o gbx2-gbx_stream_pipe.o gbx2-gbx_project.o gbx2-gbx_library.o gbx2-gbx_subr.o gbx2-gbx_subr_file.o gbx2-gbx_subr_string.o gbx2-gbx_subr_conv.o gbx2-gbx_subr_time.o gbx2-gbx_subr_extern.o gbx2-gbx_subr_misc.o gbx2-gbx_math.o gbx2-gbx_subr_math.o gbx2-gbx_subr_test.o gbx2-gbx_api.o gbx2-gbx_local.o gbx2-gbx_regexp.o gbx2-gbx_archive.o gbx2-gbx_watch.o gbx2-gbx_eval.o gbx2-gbx_compare.o gbx2-gbx.o gbx2-gbx_number.o gbx2-gbx_object.o gbx2-gbx_string.o gbx2-gbx_variant.o gbx2-gbx_date.o gbx2-gbx_array.o gbx2-gbx_c_class.o gbx2-gbx_c_collection.o gbx2-gbx_c_error.o gbx2-gbx_c_gambas.o gbx2-gbx_c_file.o gbx2-gbx_c_application.o gbx2-gbx_c_array.o gbx2-gbx_c_process.o gbx2-gbx_c_subcollection.o gbx2-gbx_c_string.o gbx2-gbx_component.o gbx2-gbx_extern.o gbx2-gbx_print.o gbx2-gbx_c_enum.o gbx2-gbx_c_timer.o gbx2-gbx_c_quote.o @TTY_LIB@ -lm /usr/lib/libgettextlib.so -lc -ldl gcc: @TTY_LIB@: No such file or directory make[4]: *** [gbx2] Error 1 make[4]: Leaving directory `/home/silent/tmp/gambas2/trunk/main/gbx' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/silent/tmp/gambas2/trunk/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/silent/tmp/gambas2/trunk/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/silent/tmp/gambas2/trunk' make: *** [all] Error 2 I think this fault is from my side, but I couldn't find a solution, so any help is appreciated. -- Daiguren Hy?rinmaru From lordheavym at ...626... Mon Jan 14 10:07:37 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 14 Jan 2008 10:07:37 +0100 Subject: [Gambas-user] SVN rev.965 `sudo make` error In-Reply-To: <976ad9050801140056q42932d1w4464faf058141577@...627...> References: <976ad9050801140056q42932d1w4464faf058141577@...627...> Message-ID: <200801141007.41541.lordheavym@...626...> Le Monday 14 January 2008 09:56:36 Arief Bayu Purwanto, vous avez ?crit?: > Log snippet. > > Making all in gbx > make[4]: Entering directory `/home/silent/tmp/gambas2/trunk/main/gbx' > /bin/bash ../libtool --tag=CC --mode=link gcc > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -fvisibility=hidden -g -Os -o gbx2 gbx2-gb_common.o gbx2-gbx_debug.o > gbx2-gb_error.o gbx2-gb_alloc.o gbx2-gb_array.o gbx2-gbx_stack.o > gbx2-gb_buffer.o gbx2-gbx_replace.o gbx2-gb_list.o gbx2-gb_hash.o > gbx2-gb_table.o gbx2-gbx_type.o gbx2-gbx_value.o gbx2-gbx_subst.o > gbx2-gbx_exec.o gbx2-gbx_exec_push.o gbx2-gbx_exec_enum.o > gbx2-gbx_exec_pop.o gbx2-gbx_exec_loop.o gbx2-gbx_class_init.o > gbx2-gbx_class.o gbx2-gbx_class_native.o gbx2-gbx_class_load.o > gbx2-gbx_event.o gbx2-gb_file.o gbx2-gbx_stream.o gbx2-gbx_stream_direct.o > gbx2-gbx_stream_buffer.o gbx2-gbx_stream_memory.o gbx2-gbx_stream_arch.o > gbx2-gbx_stream_process.o gbx2-gbx_stream_pipe.o gbx2-gbx_project.o > gbx2-gbx_library.o gbx2-gbx_subr.o gbx2-gbx_subr_file.o > gbx2-gbx_subr_string.o gbx2-gbx_subr_conv.o gbx2-gbx_subr_time.o > gbx2-gbx_subr_extern.o gbx2-gbx_subr_misc.o gbx2-gbx_math.o > gbx2-gbx_subr_math.o gbx2-gbx_subr_test.o gbx2-gbx_api.o gbx2-gbx_local.o > gbx2-gbx_regexp.o gbx2-gbx_archive.o gbx2-gbx_watch.o gbx2-gbx_eval.o > gbx2-gbx_compare.o gbx2-gbx.o gbx2-gbx_number.o gbx2-gbx_object.o > gbx2-gbx_string.o gbx2-gbx_variant.o gbx2-gbx_date.o gbx2-gbx_array.o > gbx2-gbx_c_class.o gbx2-gbx_c_collection.o gbx2-gbx_c_error.o > gbx2-gbx_c_gambas.o gbx2-gbx_c_file.o gbx2-gbx_c_application.o > gbx2-gbx_c_array.o gbx2-gbx_c_process.o gbx2-gbx_c_subcollection.o > gbx2-gbx_c_string.o gbx2-gbx_component.o gbx2-gbx_extern.o gbx2-gbx_print.o > gbx2-gbx_c_enum.o gbx2-gbx_c_timer.o gbx2-gbx_c_quote.o -lm -lgettextlib > -ldl @TTY_LIB@ > gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall -Wno-unused-value > -fvisibility=hidden -g -Os -o gbx2 gbx2-gb_common.o gbx2-gbx_debug.o > gbx2-gb_error.o gbx2-gb_alloc.o gbx2-gb_array.o gbx2-gbx_stack.o > gbx2-gb_buffer.o gbx2-gbx_replace.o gbx2-gb_list.o gbx2-gb_hash.o > gbx2-gb_table.o gbx2-gbx_type.o gbx2-gbx_value.o gbx2-gbx_subst.o > gbx2-gbx_exec.o gbx2-gbx_exec_push.o gbx2-gbx_exec_enum.o > gbx2-gbx_exec_pop.o gbx2-gbx_exec_loop.o gbx2-gbx_class_init.o > gbx2-gbx_class.o gbx2-gbx_class_native.o gbx2-gbx_class_load.o > gbx2-gbx_event.o gbx2-gb_file.o gbx2-gbx_stream.o gbx2-gbx_stream_direct.o > gbx2-gbx_stream_buffer.o gbx2-gbx_stream_memory.o gbx2-gbx_stream_arch.o > gbx2-gbx_stream_process.o gbx2-gbx_stream_pipe.o gbx2-gbx_project.o > gbx2-gbx_library.o gbx2-gbx_subr.o gbx2-gbx_subr_file.o > gbx2-gbx_subr_string.o gbx2-gbx_subr_conv.o gbx2-gbx_subr_time.o > gbx2-gbx_subr_extern.o gbx2-gbx_subr_misc.o gbx2-gbx_math.o > gbx2-gbx_subr_math.o gbx2-gbx_subr_test.o gbx2-gbx_api.o gbx2-gbx_local.o > gbx2-gbx_regexp.o gbx2-gbx_archive.o gbx2-gbx_watch.o gbx2-gbx_eval.o > gbx2-gbx_compare.o gbx2-gbx.o gbx2-gbx_number.o gbx2-gbx_object.o > gbx2-gbx_string.o gbx2-gbx_variant.o gbx2-gbx_date.o gbx2-gbx_array.o > gbx2-gbx_c_class.o gbx2-gbx_c_collection.o gbx2-gbx_c_error.o > gbx2-gbx_c_gambas.o gbx2-gbx_c_file.o gbx2-gbx_c_application.o > gbx2-gbx_c_array.o gbx2-gbx_c_process.o gbx2-gbx_c_subcollection.o > gbx2-gbx_c_string.o gbx2-gbx_component.o gbx2-gbx_extern.o gbx2-gbx_print.o > gbx2-gbx_c_enum.o gbx2-gbx_c_timer.o gbx2-gbx_c_quote.o @TTY_LIB@ -lm > /usr/lib/libgettextlib.so -lc -ldl > gcc: @TTY_LIB@: No such file or directory > make[4]: *** [gbx2] Error 1 > make[4]: Leaving directory `/home/silent/tmp/gambas2/trunk/main/gbx' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/silent/tmp/gambas2/trunk/main' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/silent/tmp/gambas2/trunk/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/silent/tmp/gambas2/trunk' > make: *** [all] Error 2 > > I think this fault is from my side, but I couldn't find a solution, so any > help is appreciated. Fixed in rev 966, it's my fault, not your :-/ Thanks ! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From ariefbayu at ...626... Mon Jan 14 10:10:50 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Mon, 14 Jan 2008 16:10:50 +0700 Subject: [Gambas-user] SVN rev.965 `sudo make` error In-Reply-To: <200801141007.41541.lordheavym@...626...> References: <976ad9050801140056q42932d1w4464faf058141577@...627...> <200801141007.41541.lordheavym@...626...> Message-ID: <976ad9050801140110m6b737bban37cc97c2324e49e8@...627...> On 1/14/08, Laurent Carlier wrote: > > Fixed in rev 966, it's my fault, not your :-/ Ah, thanks, let me try it again. -- Daiguren Hy?rinmaru From hennie at ...1826... Mon Jan 14 10:43:36 2008 From: hennie at ...1826... (gaupe) Date: Mon, 14 Jan 2008 01:43:36 -0800 (PST) Subject: [Gambas-user] QObject: timers now exist for object In-Reply-To: <14791802.post@...1379...> References: <14791802.post@...1379...> Message-ID: <14797288.post@...1379...> hmm lets see. its a ubuntu gutsy ribbon installation fully patched and if a search for on it then i find that there is a libqt3 on it which says 3.3.6really3.3.7-0ubuntu11.1 and then libqt4-core and libqt4-gui versions 4,3,2,0ubuntu3.1 the version of gambas=2.0.0.0 according to the gambase ide 2.0.0.1-ubuntu1 according to the systems package manager gaupe wrote: > > I see a lot of these messages in the console. > saying QObject: xx timers now exist for object (xx is a number) > especially when the webbrowser retrieves its data. > can anyone tell me what this is? > > and ... if thats a problem and how to solve this? > -- View this message in context: http://www.nabble.com/QObject%3A-timers-now-exist-for-object-tp14791802p14797288.html Sent from the gambas-user mailing list archive at Nabble.com. From ariefbayu at ...626... Mon Jan 14 10:44:35 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Mon, 14 Jan 2008 16:44:35 +0700 Subject: [Gambas-user] SVN rev.965 `sudo make` error In-Reply-To: <976ad9050801140110m6b737bban37cc97c2324e49e8@...627...> References: <976ad9050801140056q42932d1w4464faf058141577@...627...> <200801141007.41541.lordheavym@...626...> <976ad9050801140110m6b737bban37cc97c2324e49e8@...627...> Message-ID: <976ad9050801140144x1e7dbde3o75b7aab55b585a2c@...627...> yup, work fine. now test some bugs if it's still exist. Will post in another email. On 1/14/08, Arief Bayu Purwanto wrote: > > > > On 1/14/08, Laurent Carlier wrote: > > > > Fixed in rev 966, it's my fault, not your :-/ > > > Ah, thanks, let me try it again. > > > > > -- > Daiguren Hy?rinmaru -- Daiguren Hy?rinmaru From ariefbayu at ...626... Mon Jan 14 10:57:00 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Mon, 14 Jan 2008 16:57:00 +0700 Subject: [Gambas-user] Rev 967 bug. Ballon Message-ID: <976ad9050801140157o379fc74chf91227b700aa5f8@...627...> Here's how to do it: - add object, in this case, I add TextBox - add _KeyPress() event handler - on method body add Ballon.Error("", yourobject) PUBLIC SUB txtKode_KeyPress() IF Key.Code = key.Return THEN 'ceritanya dapat data dengan kode 'ASDF123' IF txtKode.text = "ASDF123" THEN txtNamaItem.Text = "Barang testing" txtHarga.text = "4750" txtJumlah.SetFocus() ELSE 'nah, kalau ini, data tidak ada txtKode.Select(0, txtKode.Length) Balloon.Error("Maaf, kode barang tidak ada", txtKode) txtKode.SetFocus() END IF ELSE IF key.Code = key.Tab THEN txtKode.SetFocus() END IF END - run - test your Ballon, and it'll error on the second appearance. Here's the trace: silent at ...1792...:~/tmp/Gambas2Demo$ gbc2 -agt OK silent at ...1792...:~/tmp/Gambas2Demo$ gdb gbx2 GNU gdb 6.6-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"... Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) set args -p (gdb) run Starting program: /usr/local/bin/gbx2 -p [Thread debugging using libthread_db enabled] [New Thread -1209948496 (LWP 16947)] Error while reading shared library symbols: Cannot find new threads: generic error /usr/share/themes/Blubuntu/gtk-2.0/gtkrc:169: Clearlooks configuration option "progressbarstyle" is not supported and will be ignored. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1209948496 (LWP 16947)] 0x0805e062 in GB_Raise (object=0x8344290, event_id=0, nparam=0) at gbx_api.c:544 544 LIST_for_each(obs, OBJECT_event(object)->observer) (gdb) bt #0 0x0805e062 in GB_Raise (object=0x8344290, event_id=0, nparam=0) at gbx_api.c:544 #1 0xb7dbb8fe in raise_configure (widget=0x80fb8b0, e=0x80edae8, _object=0x8344290) at CWatcher.cpp:57 #2 0xb7b351de in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib/libgtk- x11-2.0.so.0 #3 0xb76f0772 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #4 0xb7701323 in ?? () from /usr/lib/libgobject-2.0.so.0 #5 0x083447d8 in ?? () #6 0xbfb03440 in ?? () #7 0x00000002 in ?? () #8 0xbfb0351c in ?? () #9 0xbfb0342c in ?? () #10 0x0823bf60 in ?? () #11 0xbfb0355c in ?? () #12 0x00000000 in ?? () -- Daiguren Hy?rinmaru From rospolosco at ...152... Mon Jan 14 12:05:35 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 14 Jan 2008 12:05:35 +0100 Subject: [Gambas-user] Apparently huge exectable file In-Reply-To: <200801140926.07867.rterry@...1822...> References: <200801131226.34794.rterry@...1822...> <200801132253.14409.gambas.fr@...626...> <200801140926.07867.rterry@...1822...> Message-ID: <200801141205.35695.rospolosco@...152...> Alle 23:26, domenica 13 gennaio 2008, richard terry ha scritto: > [richard at ...1833... ~]$ ls -al project1-0.0.6.tar.gz > -rw-r--r-- 1 richard richard 497071 2008-01-14 09:25 project1-0.0.6.tar.gz > > > regards Now that you have a reasonable sized source package, could you try these steps: 1) unpack the source package in a place other than the old project location; 2) cd inside the directory with the source files of your project; 3) to make the executable type on console: "gbc2 -a -p && gba2" Finally, look if you still obtain a 2GIG monster or a normal executable. Regards, Stefano From hennie at ...1826... Mon Jan 14 16:10:56 2008 From: hennie at ...1826... (gaupe) Date: Mon, 14 Jan 2008 07:10:56 -0800 (PST) Subject: [Gambas-user] multidimensional array of integers Message-ID: <14803157.post@...1379...> In some way i am not able to get how a multidimensional array in gambas works I have tried this in a hundred ways it seems something soooo simple but i cant work it out.... What i want is dim a as new integer[] or .... dim a as new integer[1,2] [0,0] doesnt seem to be allowed) then insert elements like a.add([1,5]) (but that does not function in this case....) fill dynamic an array with an array of two integers like 1 5 ( this is the first element so print a[0,0],a[0,1] gives 1 5 2 4 3 2 4 6 5 3 6 1 then i want to sort the array so the second vertical row gets sorted and the first row comes with after the sort then the array looks like this 6 1 3 2 5 3 2 4 1 5 4 6 -- View this message in context: http://www.nabble.com/multidimensional-array-of-integers-tp14803157p14803157.html Sent from the gambas-user mailing list archive at Nabble.com. From nando_f at ...951... Tue Jan 15 01:16:37 2008 From: nando_f at ...951... (nando) Date: Mon, 14 Jan 2008 19:16:37 -0500 Subject: [Gambas-user] multidimensional array of integers In-Reply-To: <14803157.post@...1379...> References: <14803157.post@...1379...> Message-ID: <20080115001242.M78780@...951...> I use arrays heavily, both static and dynamic, both global and local example: at the top of .class before any subs or functions: PRIVATE xyz[13] AS Integer 'xyz[0] ... xyz[12] are global to this .class PRIVATE abc[10,10] AS Integer '2-D array ---------- Original Message ----------- From: gaupe To: gambas-user at lists.sourceforge.net Sent: Mon, 14 Jan 2008 07:10:56 -0800 (PST) Subject: [Gambas-user] multidimensional array of integers > In some way i am not able to get how a multidimensional array in gambas works > I have tried this in a hundred ways > it seems something soooo simple but i cant work it out.... > > What i want is > > dim a as new integer[] > or .... dim a as new integer[1,2] [0,0] doesnt seem to be allowed) > > then insert elements > > like a.add([1,5]) (but that does not function in this case....) > > fill dynamic an array with an array of two integers > > like > > 1 5 ( this is the first element so print a[0,0],a[0,1] gives > 1 5 > 2 4 > 3 2 > 4 6 > 5 3 > 6 1 > > then i want to sort the array so the second vertical row gets sorted and the > first row comes with > after the sort then the array looks like this > > 6 1 > 3 2 > 5 3 > 2 4 > 1 5 > 4 6 > -- > View this message in context: http://www.nabble.com/multidimensional-array-of- > integers-tp14803157p14803157.html Sent from the gambas-user mailing list archive > at Nabble.com. > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From hennie at ...1826... Tue Jan 15 02:12:45 2008 From: hennie at ...1826... (gaupe) Date: Mon, 14 Jan 2008 17:12:45 -0800 (PST) Subject: [Gambas-user] multidimensional array of integers In-Reply-To: <20080115001242.M78780@...951...> References: <14803157.post@...1379...> <20080115001242.M78780@...951...> Message-ID: <14823390.post@...1379...> thanks for answering. It does however not bring me much further as these are examples of fixed arrays and there is no sorting done in your example most important for me is the sorting , not for a one dimensional but a 2 dimensional as shown in the starting post then i would like to have dynamicly add records to it. perhaps you know how to do that too? this is bothering me allready for weeks. ;-) i feel real stupid not beeing able to figure it out :-) nando-7 wrote: > > I use arrays heavily, both static and dynamic, both global and local > > example: > at the top of .class before any subs or functions: > > PRIVATE xyz[13] AS Integer 'xyz[0] ... xyz[12] are global to this .class > PRIVATE abc[10,10] AS Integer '2-D array > > > ---------- Original Message ----------- > From: gaupe > To: gambas-user at lists.sourceforge.net > Sent: Mon, 14 Jan 2008 07:10:56 -0800 (PST) > Subject: [Gambas-user] multidimensional array of integers > >> In some way i am not able to get how a multidimensional array in gambas >> works >> I have tried this in a hundred ways >> it seems something soooo simple but i cant work it out.... >> >> What i want is >> >> dim a as new integer[] >> or .... dim a as new integer[1,2] [0,0] doesnt seem to be allowed) >> >> then insert elements >> >> like a.add([1,5]) (but that does not function in this case....) >> >> fill dynamic an array with an array of two integers >> >> like >> >> 1 5 ( this is the first element so print a[0,0],a[0,1] >> gives >> 1 5 >> 2 4 >> 3 2 >> 4 6 >> 5 3 >> 6 1 >> >> then i want to sort the array so the second vertical row gets sorted and >> the >> first row comes with >> after the sort then the array looks like this >> >> 6 1 >> 3 2 >> 5 3 >> 2 4 >> 1 5 >> 4 6 >> -- >> View this message in context: >> http://www.nabble.com/multidimensional-array-of- >> integers-tp14803157p14803157.html Sent from the gambas-user mailing list >> archive >> at Nabble.com. >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/multidimensional-array-of-integers-tp14803157p14823390.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1828... Tue Jan 15 03:41:20 2008 From: gambas at ...1828... (manuel viet) Date: Mon, 14 Jan 2008 18:41:20 -0800 (PST) Subject: [Gambas-user] multidimensional array of integers In-Reply-To: <14823390.post@...1379...> References: <14803157.post@...1379...> <20080115001242.M78780@...951...> <14823390.post@...1379...> Message-ID: <14826262.post@...1379...> gaupe wrote: > > thanks for answering. > It does however not bring me much further as these are examples of fixed > arrays > and there is no sorting done in your example > > most important for me is the sorting , not for a one dimensional but a 2 > dimensional as shown in the starting > post > then i would like to have dynamicly add records to it. > perhaps you know how to do that too? > this is bothering me allready for weeks. ;-) i feel real stupid not > beeing able to figure it out :-) > FWIW, http://gambasdoc.org/help/comp/gb/array/resize states that multidim arrays are not resizables. You are in troubles ;-) ----- -- Manuel Viet -- View this message in context: http://www.nabble.com/multidimensional-array-of-integers-tp14803157p14826262.html Sent from the gambas-user mailing list archive at Nabble.com. From ronstk at ...239... Tue Jan 15 07:25:34 2008 From: ronstk at ...239... (ron) Date: Tue, 15 Jan 2008 07:25:34 +0100 Subject: [Gambas-user] multidimensional array of integers In-Reply-To: <14823390.post@...1379...> References: <14803157.post@...1379...> <20080115001242.M78780@...951...> <14823390.post@...1379...> Message-ID: <200801150725.34664.ronstk@...239...> On Tuesday 15 January 2008 02:12, gaupe wrote: > > thanks for answering. > It does however not bring me much further as these are examples of fixed > arrays > and there is no sorting done in your example > > most important for me is the sorting , not for a one dimensional but a 2 > dimensional as shown in the starting > post > then i would like to have dynamicly add records to it. > perhaps you know how to do that too? > this is bothering me allready for weeks. ;-) i feel real stupid not beeing > able to figure it out :-) > > Sorting a One-Dimensional Array in gambas http://gambasdoc.org/help/comp/gb/string[]/sort ---- Sorting a Two-Dimensional Array Simple give code without explain why and how make no sense. See following pages. There will be shown howto do it. It is written for a alien basic ( :) ) but it show the technics to use. The method is usable with gambas. The article link is the explain for the method. The demo link is a page with the code only, almost ready to cut/paste for gambas. Article: Sorting a Two-Dimensional Array using a Bubble Sort http://www.4guysfromrolla.com/webtech/011601-1.shtml demo: Two-Dimensional Array Sort Using Bubble Sort http://www.4guysfromrolla.com/demos/2dsort.asp Article: Sorting a Two-Dimensional Array using a Bubble Sort, Part 2 http://www.4guysfromrolla.com/webtech/011601-1.2.shtml demo: Array of Objects Sorting Using Bubble Sort http://www.4guysfromrolla.com/demos/objsort.asp Ron ps 'Response.Write' can replaced with 'Print' LBound() and UBound() are the first and last index of in the array use for LBound 0 and for UBound YourArray.Max (http://gambasdoc.org/help/comp/gb/array/max) From gunartha.nyoman at ...1817... Tue Jan 15 05:11:04 2008 From: gunartha.nyoman at ...1817... (gunartha.nyoman) Date: Tue, 15 Jan 2008 11:11:04 +0700 Subject: [Gambas-user] convert code vb to gambas Message-ID: <200801151111.04826.gunartha.nyoman@...1817...> Dear All, I try to create code to fin a record as : where run get message : unknown symbol EOF in result ..... PUBLIC SUB FindStok() DIM strsql AS String DIM rs AS Result strsql = " select code,nm_brg,pricef,avgcost from goods where code ='002' " rs = conn.Exec(strsql) 'code in visual basic, how to convert to gambas 'rs as new adodb.recordset (in vb) IF NOT rs.EOF THEN txtKD_BRG.Text = rs!nm_brg else message ("no records found ") ENDIF END Thank you regards Gunartha From hennie at ...1826... Tue Jan 15 12:00:37 2008 From: hennie at ...1826... (gaupe) Date: Tue, 15 Jan 2008 03:00:37 -0800 (PST) Subject: [Gambas-user] multidimensional array of integers In-Reply-To: <200801150725.34664.ronstk@...239...> References: <14803157.post@...1379...> <20080115001242.M78780@...951...> <14823390.post@...1379...> <200801150725.34664.ronstk@...239...> Message-ID: <14837268.post@...1379...> Ron Thanks for pointing me in the right direction. My mistake was apperently that i did not realise that it is not possible to do this with a single statement. if have some ancient experience with clipper5 an old database like language and (i looked it up ;-) it was as .... simple.. as 'asort( anArray,,,{|x,y| x[2] >= y[2] .AND. IIF( x[2] = y[2], x[1] < y[1],.T.)}) you would think that after all those years these simple things would be functions classes or whatever these are called, easy to use as these are the basics. same with dynamical multidimensional arrays. I am of the opinion that one should not have to write these code for such basic needs anymore. btw the a.max does not seem to work also not a.max[0] or a[0].max so i used a.bounds[0] for that here is the code that works for those who struggle with the same.... DIM i AS Integer DIM a AS NEW Integer[5, 2] a[0, 0] = 1 a[0, 1] = 5 a[1, 0] = 3 a[1, 1] = 4 a[2, 0] = 2 a[2, 1] = 2 a[3, 0] = 4 a[3, 1] = 3 a[4, 0] = 5 a[4, 1] = 1 PRINT "Unsorted List of 2d Array." FOR i = 0 TO a.Bounds[0] - 1 PRINT a[i, 0], a[i, 1] NEXT DualSorter(a, 1) PRINT "Sorted List of 2d Array by Number." FOR i = 0 TO a.Bounds[0] - 1 PRINT a[i, 0], a[i, 1] NEXT DualSorter(a, 0) PRINT "Sorted List of 2d Array by Name." FOR i = 0 TO a.Bounds[0] - 1 PRINT a[i, 0], a[i, 1] NEXT END PUBLIC FUNCTION DualSorter(a AS Integer[], DimensionToSort AS Integer) AS Integer[] DIM column AS Integer = 0 DIM row, j, StartingKeyValue, StartingOtherValue, NewStartingKey, NewStartingOther, swap_pos, OtherDimension AS Integer ' Ensure that the user has picked a valid DimensionToSort IF DimensionToSort = 1 THEN OtherDimension = 0 ELSE IF DimensionToSort = 0 THEN OtherDimension = 1 ELSE 'Shoot, invalid value of DimensionToSort PRINT "Invalid dimension for DimensionToSort: must be value of 1 or 0." END IF FOR row = 0 TO a.Bounds[column] - 1 'Start outer loop. 'Take a snapshot of the first element 'in the array because if there is a 'smaller value elsewhere in the array 'we'll need to do a swap. StartingKeyValue = a[row, DimensionToSort] StartingOtherValue = a[row, OtherDimension] ' Default the Starting values to the First Record NewStartingKey = a[row, DimensionToSort] NewStartingOther = a[row, OtherDimension] swap_pos = row FOR j = row + 1 TO a.bounds[column] - 1 'Start inner loop. IF a[j, DimensionToSort] < NewStartingKey THEN 'This is now the lowest number - 'remember it's position. swap_pos = j NewStartingKey = a[j, DimensionToSort] NewStartingOther = a[j, OtherDimension] END IF NEXT IF swap_pos <> row THEN 'If we get here then we are about to do a swap 'within the array. a[swap_pos, DimensionToSort] = StartingKeyValue a[swap_pos, OtherDimension] = StartingOtherValue a[row, DimensionToSort] = NewStartingKey a[row, OtherDimension] = NewStartingOther END IF NEXT RETURN a END Ron Onstenk wrote: > > On Tuesday 15 January 2008 02:12, gaupe wrote: >> >> thanks for answering. >> It does however not bring me much further as these are examples of fixed >> arrays >> and there is no sorting done in your example >> >> most important for me is the sorting , not for a one dimensional but a 2 >> dimensional as shown in the starting >> post >> then i would like to have dynamicly add records to it. >> perhaps you know how to do that too? >> this is bothering me allready for weeks. ;-) i feel real stupid not >> beeing >> able to figure it out :-) >> >> > > Sorting a One-Dimensional Array in gambas > http://gambasdoc.org/help/comp/gb/string[]/sort > > ---- > Sorting a Two-Dimensional Array > Simple give code without explain why and how make no sense. > > See following pages. There will be shown howto do it. > It is written for a alien basic ( :) ) but it show the > technics to use. The method is usable with gambas. > The article link is the explain for the method. > The demo link is a page with the code only, almost > ready to cut/paste for gambas. > > > > Article: > Sorting a Two-Dimensional Array using a Bubble Sort > http://www.4guysfromrolla.com/webtech/011601-1.shtml > > demo: > Two-Dimensional Array Sort Using Bubble Sort > http://www.4guysfromrolla.com/demos/2dsort.asp > > Article: > Sorting a Two-Dimensional Array using a Bubble Sort, Part 2 > http://www.4guysfromrolla.com/webtech/011601-1.2.shtml > > demo: > Array of Objects Sorting Using Bubble Sort > http://www.4guysfromrolla.com/demos/objsort.asp > > Ron > > ps > 'Response.Write' can replaced with 'Print' > LBound() and UBound() are the first and last index of in the array > use for LBound 0 and for UBound YourArray.Max > (http://gambasdoc.org/help/comp/gb/array/max) > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/multidimensional-array-of-integers-tp14803157p14837268.html Sent from the gambas-user mailing list archive at Nabble.com. From nando_f at ...951... Tue Jan 15 14:34:45 2008 From: nando_f at ...951... (nando) Date: Tue, 15 Jan 2008 08:34:45 -0500 Subject: [Gambas-user] convert code vb to gambas In-Reply-To: <200801151111.04826.gunartha.nyoman@...1817...> References: <200801151111.04826.gunartha.nyoman@...1817...> Message-ID: <20080115133140.M80054@...951...> I would seem to me that if you did NOT get the message 'no records found' then your data actually has symbol EOF in it. Check your data rows for what code 002 has -Fernando ---------- Original Message ----------- From: "gunartha.nyoman" To: mailing list for gambas users Sent: Tue, 15 Jan 2008 11:11:04 +0700 Subject: [Gambas-user] convert code vb to gambas > Dear All, > > I try to create code to fin a record as : > where run get message : unknown symbol EOF in result ..... > > PUBLIC SUB FindStok() > DIM strsql AS String > DIM rs AS Result > > strsql = " select code,nm_brg,pricef,avgcost from goods where code ='002' " > rs = conn.Exec(strsql) > > 'code in visual basic, how to convert to gambas > 'rs as new adodb.recordset (in vb) > IF NOT rs.EOF THEN > txtKD_BRG.Text = rs!nm_brg > > else > message ("no records found ") > ENDIF > END > > Thank you > regards > Gunartha > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From ronstk at ...239... Tue Jan 15 17:01:20 2008 From: ronstk at ...239... (ron) Date: Tue, 15 Jan 2008 17:01:20 +0100 Subject: [Gambas-user] multidimensional array of integers In-Reply-To: <14837268.post@...1379...> References: <14803157.post@...1379...> <200801150725.34664.ronstk@...239...> <14837268.post@...1379...> Message-ID: <200801151701.20570.ronstk@...239...> On Tuesday 15 January 2008 12:00, gaupe wrote: > Ron Thanks for pointing me in the right direction. > My mistake was apperently that i did not realise that it is not possible to > do this with a single statement. > if have some ancient experience with clipper5 an old database like language > and (i looked it up ;-) > it was as .... simple.. as > > 'asort( anArray,,,{|x,y| x[2] >= y[2] .AND. IIF( x[2] = y[2], x[1] < > y[1],.T.)}) I asume this is clipper code, a friend of my did/still use it. :) > > you would think that after all those years these simple things would be > functions classes or whatever > these are called, easy to use as these are the basics. same with dynamical > multidimensional arrays. > For most basic sort there is a command/method in many languages. Most of them are single dimension. For the double or more dimensions you should note that in every dimension the type of the cell can be nummeric or string based. This makes it more complex to write a general class for it. Once I did write for a module in VBA to manage this in a MS Access database where many sorts had to be done. This module was very big because all those variable types. Sorting numbers as value or as string need different ways. For usage you need to give the arrays but for every cell in those array the method to handle the cell before the sort. In PHP you can do such things with callbacks for the compare. Very powerfull. For your example code i see you did read and used the examples given. > btw the a.max does not seem to work also not a.max[0] or a[0].max > so i used a.bounds[0] ?for that Regarding the gambas help the UBound(arrMyArray) should be arrMyArray.Max. If that isn't the case then maybe a bug or it is replaced by arrMyArray.Bounds. Not clear to me. I expect the .Bounds is an array where .Bounds[0] is the lower index as LBound() and .Bounds[1] same as UBound(). Maybe Benoit can explain. Ron From Karl.Reinl at ...9... Tue Jan 15 19:47:58 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 15 Jan 2008 19:47:58 +0100 Subject: [Gambas-user] multidimensional array of integers In-Reply-To: <200801151701.20570.ronstk@...239...> References: <14803157.post@...1379...> <200801150725.34664.ronstk@...239...> <14837268.post@...1379...> <200801151701.20570.ronstk@...239...> Message-ID: <1200422878.6787.6.camel@...40...> Am Dienstag, den 15.01.2008, 17:01 +0100 schrieb ron: > On Tuesday 15 January 2008 12:00, gaupe wrote: > > Ron Thanks for pointing me in the right direction. > > My mistake was apperently that i did not realise that it is not possible to > > do this with a single statement. > > if have some ancient experience with clipper5 an old database like language > > and (i looked it up ;-) > > it was as .... simple.. as > > > > 'asort( anArray,,,{|x,y| x[2] >= y[2] .AND. IIF( x[2] = y[2], x[1] < > > y[1],.T.)}) > > I asume this is clipper code, a friend of my did/still use it. :) > Ok, only one line of code. But he forgot something, he is using a CodeBlock , {|x,y| x[2] >= y[2] .AND. IIF( x[2] = y[2], x[1] <> y[1],.T.)} which will be compiled at run time. So he's using code to sort. > > > > you would think that after all those years these simple things would be > > functions classes or whatever > > these are called, easy to use as these are the basics. same with dynamical > > multidimensional arrays. > > > > For most basic sort there is a command/method in many languages. > Most of them are single dimension. > > For the double or more dimensions you should note that in every > dimension the type of the cell can be nummeric or string based. > This makes it more complex to write a general class for it. > Once I did write for a module in VBA to manage this in a MS Access > database where many sorts had to be done. > This module was very big because all those variable types. > Sorting numbers as value or as string need different ways. > > For usage you need to give the arrays but for every cell in those > array the method to handle the cell before the sort. > > In PHP you can do such things with callbacks for the compare. > Very powerfull. > > For your example code i see you did read and used the examples given. > > > > btw the a.max does not seem to work also not a.max[0] or a[0].max > > so i used a.bounds[0] for that > > > Regarding the gambas help the UBound(arrMyArray) should be > arrMyArray.Max. If that isn't the case then maybe a bug or > it is replaced by arrMyArray.Bounds. Not clear to me. > I expect the .Bounds is an array where .Bounds[0] is the lower > index as LBound() and .Bounds[1] same as UBound(). > > Maybe Benoit can explain. > > Ron -- Amicalment Charlie From wspinto at ...1405... Wed Jan 16 00:37:17 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Tue, 15 Jan 2008 21:37:17 -0200 Subject: [Gambas-user] Problems in makefiles In-Reply-To: References: Message-ID: <1200440237.478d43ade8eab@...1539...> Hi! I'm use svn and when type make; make install show in any moment: Installing the development environment... Compiling gambas2... /bin/bash: line 2: cd: /home/kurumin/trunk/app/src/gambas2: Arquivo ou diret?rio inexistente Arquivo ou diret?rio inexistente (file or directory not exist!!!) then the gambas ide not work Reguards, Souza, Wellington ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From gambas at ...1... Wed Jan 16 00:39:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 16 Jan 2008 00:39:31 +0100 Subject: [Gambas-user] Problems in makefiles In-Reply-To: <1200440237.478d43ade8eab@...1539...> References: <1200440237.478d43ade8eab@...1539...> Message-ID: <200801160039.31658.gambas@...1...> On mercredi 16 janvier 2008, Wellington de Souza Pinto wrote: > Hi! > > I'm use svn and when type make; make install show in any moment: > > Installing the development environment... > Compiling gambas2... > /bin/bash: line 2: cd: /home/kurumin/trunk/app/src/gambas2: Arquivo ou > diret?rio inexistente > > Arquivo ou diret?rio inexistente (file or directory not exist!!!) > > then the gambas ide not work > > Reguards, > > Souza, Wellington > Did you do a 'svn udpate' and a './reconf-all'? -- Benoit Minisini From gareth at ...1689... Wed Jan 16 00:43:13 2008 From: gareth at ...1689... (Gareth Bult) Date: Tue, 15 Jan 2008 23:43:13 +0000 (GMT) Subject: [Gambas-user] Issue trying to access external Libraties In-Reply-To: <4086705.4891200440431357.JavaMail.root@...1834...> Message-ID: <10030441.4911200440593292.JavaMail.root@...1834...> Hi, I'm trying to call functions from an external "C" library and I'm getting so far, then running into a problem. I have; P UBLIC EXTERN virConnectOpenReadOnly(host AS String) AS Pointer IN "libvirt" PUBLIC EXTERN virDomainLookupByID(con AS Pointer, id AS Integer) AS Pointer IN "libvirt" PUBLIC EXTERN virDomainGetInfo(dom AS Pointer, inf AS String) IN "libvirt" So far so good ... PUBLIC SUB Form_Open() DIM con AS Pointer DIM dom AS Pointer DIM inf AS Pointer = Alloc(32) con = virConnectOpenReadOnly("xen+tls://nodeb/default") dom = virDomainLookupByID(con, 0) PRINT virDomainGetInfo(dom, inf) END Which looks good, and traced through with "F8" until I get to the print line which gives me; "Type Mismatch: wanted Void, got Null instead" The "C" header definition is; int virDomainGetInfo( virDomainPtr domain, virDomainInfoPtr info) Can anyone tell me what I'm doing wrong? This is a standard library and the equivalent "C" code works fine .. ??? tia Gareth. From ariefbayu at ...626... Wed Jan 16 02:43:46 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Wed, 16 Jan 2008 08:43:46 +0700 Subject: [Gambas-user] convert code vb to gambas In-Reply-To: <20080115133140.M80054@...951...> References: <200801151111.04826.gunartha.nyoman@...1817...> <20080115133140.M80054@...951...> Message-ID: <976ad9050801151743x5bb0f978qcdbcf7f1bf4799a7@...627...> IF rs.Count > 0 THEN txtKD_BRG.Text = rs!nm_brg On 1/15/08, nando wrote: > > I would seem to me that if you did NOT get the message 'no records found' > then your data actually has symbol EOF in it. > Check your data rows for what code 002 has > -Fernando > > > ---------- Original Message ----------- > From: "gunartha.nyoman" > To: mailing list for gambas users > Sent: Tue, 15 Jan 2008 11:11:04 +0700 > Subject: [Gambas-user] convert code vb to gambas > > > Dear All, > > > > I try to create code to fin a record as : > > where run get message : unknown symbol EOF in result ..... > > > > PUBLIC SUB FindStok() > > DIM strsql AS String > > DIM rs AS Result > > > > strsql = " select code,nm_brg,pricef,avgcost from goods where code > ='002' " > > rs = conn.Exec(strsql) > > > > 'code in visual basic, how to convert to gambas > > 'rs as new adodb.recordset (in vb) > > IF NOT rs.EOF THEN > > txtKD_BRG.Text = rs!nm_brg > > > > else > > message ("no records found ") > > ENDIF > > END > > > > Thank you > > regards > > Gunartha > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From nxgtrturbo at ...626... Wed Jan 16 03:06:35 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Tue, 15 Jan 2008 18:06:35 -0800 Subject: [Gambas-user] Void Key Error Message-ID: <688afe140801151806n6286ffefs22f4dc618932b612@...627...> Hi everybody, this is my first post here, I tried a lot not to bother you but I have a problem I cant solve, what i am trying to do is show the items of a table in a DataCombo, just like the Database example at Gambas where the Colors where shown in DataCombo, the steps are this: 1. Include a datasource1 where I can access the table I want ( datasource1.table = x*) 2. Include a databrowser1 (inside datasource1) and set a given column, lets say Y (databrowser1.column = y*) 3. Include a datacombo1 (inside datasource1) and DO NOTHING 4. I run the application and everything goes OK, since the datacombo1 is doing nothing, but the databrowser works perfect. 5. So, I configure the datacombo1 to table X and field Y 6. Run the application and I get a error, it says (almost nothing) : "Void key" (thats all) when i try to open the form that has the related steps (1 to 5), the error handler say its at the form2.show, thats the code of a button, of course the problem is not there, since, without STEP 5 everything goes OK. OS: Freespire 2.0 (the database example works perfect) Gambas 2.0.0 *This is not code, are properties. -- http://www.cardomain.com/ride/645756 http://nxgtrturbo.googlepages.com/ http://www.fotolog.com/nxgtrturbo/ http://tallerhuertas.googlepages.com/ From gunartha.nyoman at ...1817... Wed Jan 16 05:17:52 2008 From: gunartha.nyoman at ...1817... (gunartha.nyoman) Date: Wed, 16 Jan 2008 11:17:52 +0700 Subject: [Gambas-user] metod record count Message-ID: <200801161117.52894.gunartha.nyoman@...1817...> Dear All, Hi all, could you like to help me. How to know a table have records or no using result metod ( 'how to know rs have records or no 'when rs have records, show message "?? records found" 'else if no records, show message "no record found" ) PRIVATE FUNCTION kon() AS Boolean conn = NEW Connection WITH conn .Type = "postgresql" .Host = "localhost" .Login = "djs" .Password = "djs" .Name = "inventory" END WITH TRY conn.OPEN IF ERROR THEN Message("Cannot open database. Error = " & Error.Text) RETURN FALSE END IF RETURN TRUE END PUBLIC SUB Button1_Click() DIM strsql AS String DIM rs AS Result strsql = "select * from goods" rs = conn.Exec(strsql) 'how to know rs have records or no 'when rs have records, show message "?? records found" 'else if no records, show message "no record found" END Thank you for your help regards Gunartha From ariefbayu at ...626... Wed Jan 16 08:52:40 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Wed, 16 Jan 2008 14:52:40 +0700 Subject: [Gambas-user] metod record count In-Reply-To: <200801161117.52894.gunartha.nyoman@...1817...> References: <200801161117.52894.gunartha.nyoman@...1817...> Message-ID: <976ad9050801152352t1807bddi8653df60094ac3e0@...627...> On 1/16/08, gunartha.nyoman wrote: > > Dear All, > > Hi all, could you like to help me. > How to know a table have records or no using result metod > ( 'how to know rs have records or no > 'when rs have records, show message "?? records found" > 'else if no records, show message "no record found" ) > > PRIVATE FUNCTION kon() AS Boolean > > conn = NEW Connection > WITH conn > .Type = "postgresql" > .Host = "localhost" > .Login = "djs" > .Password = "djs" > .Name = "inventory" > END WITH > > TRY conn.OPEN > IF ERROR THEN > Message("Cannot open database. Error = " & Error.Text) > RETURN FALSE > END IF > RETURN TRUE > > END > > PUBLIC SUB Button1_Click() > > DIM strsql AS String > DIM rs AS Result > > strsql = "select * from goods" > rs = conn.Exec(strsql) > > 'how to know rs have records or no > 'when rs have records, show message "?? records found" > 'else if no records, show message "no record found" > > END First of all, have you ever read the documentation[1]? you can use rs.Count[2]. Btw, I've give you this previously in your rs.EOF problem. [1]http://www.gambasdoc.org/help/ of F1 in IDE [2]http://www.gambasdoc.org/help/comp/gb.db/result/count -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From dcamposf at ...626... Wed Jan 16 11:46:04 2008 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 16 Jan 2008 11:46:04 +0100 Subject: [Gambas-user] Issue trying to access external Libraties In-Reply-To: <10030441.4911200440593292.JavaMail.root@...1834...> References: <4086705.4891200440431357.JavaMail.root@...1834...> <10030441.4911200440593292.JavaMail.root@...1834...> Message-ID: <7259b5ae0801160246m2f6d387dw79799efde3a77a01@...627...> > > I'm trying to call functions from an external "C" library and I'm getting so far, then running into a problem. > > I have; > > P UBLIC EXTERN virConnectOpenReadOnly(host AS String) AS Pointer IN "libvirt" > PUBLIC EXTERN virDomainLookupByID(con AS Pointer, id AS Integer) AS Pointer IN "libvirt" > PUBLIC EXTERN virDomainGetInfo(dom AS Pointer, inf AS String) IN "libvirt" In this definition the last function has no return value, so you can not print the output of the function, as there's not any return value. I suppose that "inf" can be s pointer which receives the information or something like that, or may be you forgot to put the return value... Daniel From gambas at ...1... Wed Jan 16 12:48:49 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 16 Jan 2008 12:48:49 +0100 Subject: [Gambas-user] Void Key Error In-Reply-To: <688afe140801151806n6286ffefs22f4dc618932b612@...627...> References: <688afe140801151806n6286ffefs22f4dc618932b612@...627...> Message-ID: <200801161248.49801.gambas@...1...> On mercredi 16 janvier 2008, Nx GT-R BOY wrote: > Hi everybody, this is my first post here, I tried a lot not to bother you > but I have a problem I cant solve, what i am trying to do is show the items > of a table in a DataCombo, just like the Database example at Gambas where > the Colors where shown in DataCombo, the steps are this: > > > > 1. > > Include a datasource1 where I can access the table I want ( > datasource1.table = x*) > 2. > > Include a databrowser1 (inside datasource1) and set a given column, > lets say Y (databrowser1.column = y*) > 3. > > Include a datacombo1 (inside datasource1) and DO NOTHING > 4. > > I run the application and everything goes OK, since the datacombo1 is > doing nothing, but the databrowser works perfect. > 5. > > So, I configure the datacombo1 to table X and field Y > 6. > > Run the application and I get a error, it says (almost nothing) : > "Void key" (thats all) when i try to open the form that has the related > steps (1 to 5), the error handler say its at the form2.show, thats the > code of a button, of course the problem is not there, since, without > STEP 5 everything goes OK. > > > OS: Freespire 2.0 (the database example works perfect) > > Gambas 2.0.0 > > > *This is not code, are properties. Do you use gb.gtk ? -- Benoit Minisini From jaap_cramer at ...67... Wed Jan 16 13:12:20 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Wed, 16 Jan 2008 13:12:20 +0100 Subject: [Gambas-user] sudden crash after textarea.text change Message-ID: Hi I'm using gambas to write a program that analyses and displays biblical hebrew texts. After choosing a book (cbBooks) and entering Chapter number and Verse (eventualy with a verse range) the function (called AOV) makes an array. Each entry contains a single verse (string contains hebrew, right2left, unicode). The line "tBible.Text = aov.join("\n") should display the selected text. Here is a part of the code: aov = mH.ArrayOfVerses(cbBooks.Index, Trim(tbChap.Text)) tBible.Text = aov.join("\n") Most of the time it works fine, some times, (same verses), it's like something brakes, and gambas hangs. After a hang, it is difficult to debug. I tried with steps, and it seems it is no bug in the join-function. The array can be viewed in a message-box. When I try to display it in a textarea it goes wrong... Any ideas? greetings, Jaap Cramer, holland _____________ Info: Ubuntu 7:10 Gambas 2.0.0 using GB.QT and GB.QT.EXT (and others) _________________________________________________________________ De mooiste afbeeldingen van Angelina Jolie vind je met Live Search http://search.live.com/images/results.aspx?q=angelina%20jolie&FORM=MIINTM From gambas at ...1... Wed Jan 16 13:25:04 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 16 Jan 2008 13:25:04 +0100 Subject: [Gambas-user] sudden crash after textarea.text change In-Reply-To: References: Message-ID: <200801161325.04562.gambas@...1...> On mercredi 16 janvier 2008, Jaap Cramer wrote: > Hi > > I'm using gambas to write a program that analyses and displays biblical > hebrew texts. After choosing a book (cbBooks) and entering Chapter number > and Verse (eventualy with a verse range) the function (called AOV) makes an > array. Each entry contains a single verse (string contains hebrew, > right2left, unicode). The line "tBible.Text = aov.join("\n") should display > the selected text. > > Here is a part of the code: > aov = mH.ArrayOfVerses(cbBooks.Index, Trim(tbChap.Text)) > tBible.Text = aov.join("\n") > > Most of the time it works fine, some times, (same verses), it's like > something brakes, and gambas hangs. After a hang, it is difficult to debug. > I tried with steps, and it seems it is no bug in the join-function. The > array can be viewed in a message-box. When I try to display it in a > textarea it goes wrong... > > Any ideas? > > greetings, > Jaap Cramer, holland > _____________ > > Info: > Ubuntu 7:10 > Gambas 2.0.0 > using GB.QT and GB.QT.EXT (and others) Maybe a bug in QT when dealing with rtl language in the widget? Try to PRINT aov.Join("\n") before putting it in tBible.Text Regards, -- Benoit Minisini From jaap_cramer at ...67... Wed Jan 16 13:58:34 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Wed, 16 Jan 2008 13:58:34 +0100 Subject: [Gambas-user] xml-bug In-Reply-To: <200801161325.04562.gambas@...1...> References: <200801161325.04562.gambas@...1...> Message-ID: Hi again I want to report some other bug. I'm using the XML-modules and after exiting a sub-routine Gambas gives an error, exeption #11 I don't know how to use the GB.XML and GB.XML.XSTL since documentation is very poor. Is there someone who can make this? I discovered at some fora 2 ways of reading an XML file. the First is using class XMLDocument. With this way I get this error 11. Maybe because there is no xmldocument.close() ??? The second way is by using XMLReader. I find this a awkward method, because y have to read every single node, and you cant use XSLT, because XSLT.Transform() needs two xmldocuments as arguments... How can I use XSLT and XML files? greetings Jaap _______________________________ code: PUBLIC s AS string PUBLIC SUB XML_Query(f AS String) DIM x_Doc AS NEW XmlDocument DIM x_Xslt AS NEW XmlDocument DIM x_Q AS NEW XmlDocument DIM x_slt AS NEW Xslt x_Doc.Open(f) x_xslt.Open("xslt.xml") x_Q = x_slt.Transform(x_Doc, x_xslt) s = x_Q.ToString("UTF-8") END _______________________________ Info: Ubuntu 7:10 Gambas 2.0.0 _________________________________________________________________ Probeer Live Search: de zoekmachine van de makers van MSN! http://www.live.com/?searchOnly=true From Mike at ...680... Wed Jan 16 14:17:26 2008 From: Mike at ...680... (Mike Keehan) Date: Wed, 16 Jan 2008 13:17:26 +0000 Subject: [Gambas-user] xml-bug In-Reply-To: References: <200801161325.04562.gambas@...1...> Message-ID: <478E03E6.1010008@...680...> Hi Jaap. This is a routine, slightly cut down, from a project that I am using. It works well for me :) PRIVATE SUB TransformXML2HTML(pFname AS String) DIM lDoc AS XmlDocument DIM lDocXsl AS XmlDocument DIM lXslt AS XmlDocument lDoc = NEW XmlDocument lDoc.Open("path-to-an XML file.xml") lXslt = NEW XmlDocument lXslt.Open("path to an XSL file.xsl") IF NOT ERROR THEN lDocXsl = Xslt.Transform(lDoc, lXslt) lDocXsl.Write("path to output HTML file.html") ENDIF END Hope this helps. Mike. Jaap Cramer wrote: > Hi again > > I want to report some other bug. > I'm using the XML-modules and after exiting a sub-routine Gambas gives an error, exeption #11 > I don't know how to use the GB.XML and GB.XML.XSTL since documentation is very poor. Is there someone who can make this? > > I discovered at some fora 2 ways of reading an XML file. > > the First is using class XMLDocument. With this way I get this error 11. Maybe because there is no xmldocument.close() ??? > The second way is by using XMLReader. I find this a awkward method, because y have to read every single node, and you cant use XSLT, because XSLT.Transform() needs two xmldocuments as arguments... > > How can I use XSLT and XML files? > > greetings > Jaap > > _______________________________ > > code: > PUBLIC s AS string > > PUBLIC SUB XML_Query(f AS String) > DIM x_Doc AS NEW XmlDocument > DIM x_Xslt AS NEW XmlDocument > DIM x_Q AS NEW XmlDocument > DIM x_slt AS NEW Xslt > > x_Doc.Open(f) > x_xslt.Open("xslt.xml") > x_Q = x_slt.Transform(x_Doc, x_xslt) > > s = x_Q.ToString("UTF-8") > END > _______________________________ > > Info: > Ubuntu 7:10 > Gambas 2.0.0 > > > _________________________________________________________________ From gareth at ...1689... Wed Jan 16 15:53:03 2008 From: gareth at ...1689... (Gareth Bult) Date: Wed, 16 Jan 2008 14:53:03 +0000 (GMT) Subject: [Gambas-user] Issue trying to access external Libraties In-Reply-To: <16175206.5991200495105106.JavaMail.root@...1834...> Message-ID: <22151986.6011200495183437.JavaMail.root@...1834...> Mmm, Interesting .. just calling the routine without the print no longer gives an error. However, the documentation on the site states; Function: virDomainGetInfo int virDomainGetInfo (virDomainPtr domain, virDomainInfoPtr info) Extract information about a domain. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted. domain: a domain object info: pointer to a virDomainInfo structure allocated by the user Returns: 0 in case of success and -1 in case of failure. .... confused ... ----- Original Message ----- step 3.: "Daniel Campos" To: "mailing list for gambas users" Sent: 16 January 2008 10:46:04 o'clock (GMT) Europe/London Subject: Re: [Gambas-user] Issue trying to access external Libraties > > I'm trying to call functions from an external "C" library and I'm getting so far, then running into a problem. > > I have; > > P UBLIC EXTERN virConnectOpenReadOnly(host AS String) AS Pointer IN "libvirt" > PUBLIC EXTERN virDomainLookupByID(con AS Pointer, id AS Integer) AS Pointer IN "libvirt" > PUBLIC EXTERN virDomainGetInfo(dom AS Pointer, inf AS String) IN "libvirt" In this definition the last function has no return value, so you can not print the output of the function, as there's not any return value. I suppose that "inf" can be s pointer which receives the information or something like that, or may be you forgot to put the return value... Daniel ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Jan 16 15:59:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 16 Jan 2008 15:59:21 +0100 Subject: [Gambas-user] Issue trying to access external Libraties In-Reply-To: <10030441.4911200440593292.JavaMail.root@...1834...> References: <10030441.4911200440593292.JavaMail.root@...1834...> Message-ID: <200801161559.21132.gambas@...1...> On mercredi 16 janvier 2008, Gareth Bult wrote: ... > PUBLIC EXTERN virDomainGetInfo(dom AS Pointer, inf > AS String) IN "libvirt" > PUBLIC EXTERN virDomainGetInfo(dom AS Pointer, inf AS String) AS Integer IN "libvirt" You must declare the type of the returned value. Moreover, if virDomainGetInfo() returns something in 'inf', you must not use 'AS String', but 'AS Pointer'. You can use 'AS String' only if the function does not modify the string (the declaration in C is then 'const char *'). I suggest you read carefully the documentation on extern function declaration on the wiki. Regards, -- Benoit Minisini From gareth at ...1689... Wed Jan 16 16:05:45 2008 From: gareth at ...1689... (Gareth Bult) Date: Wed, 16 Jan 2008 15:05:45 +0000 (GMT) Subject: [Gambas-user] Issue trying to access external Libraties In-Reply-To: <200801161559.21132.gambas@...1...> Message-ID: <15123793.6121200495945344.JavaMail.root@...1834...> >PUBLIC EXTERN virDomainGetInfo(dom AS Pointer, inf AS String) AS Integer IN "libvirt" Ahhhhh... Ok, my fault, missed the Gambas return part. >Moreover, if virDomainGetInfo() returns something in 'inf', you must not use 'AS String' Sorry, that we me playing around to see what it did, I did initially use Pointer ... >I suggest you read carefully the documentation on extern function declaration on the wiki. Yup did that, just one of those things I couldn't see for looking.. Many thanks, Gareth. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From nxgtrturbo at ...626... Wed Jan 16 16:21:08 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Wed, 16 Jan 2008 07:21:08 -0800 Subject: [Gambas-user] Void Key error (GTK issue) Message-ID: <688afe140801160721l9586d54u5964592a3bbab532@...627...> First.. Thanks for the replay Then... the components I select are this: gb gb.chart gb.db gb.db.form gb.form gb.gui and thats all, so I am not sure about the gb.gtk since the gb.guidescription says QT/GTK+ switcher component. Again.. thanks a lot. On mercredi 16 janvier 2008, Nx GT-R BOY wrote: > Hi everybody, this is my first post here, I tried a lot not to bother you > but I have a problem I cant solve, what i am trying to do is show the items > of a table in a DataCombo, just like the Database example at Gambas where > the Colors where shown in DataCombo, the steps are this: > > > > 1. > > Include a datasource1 where I can access the table I want ( > datasource1.table = x*) > 2. > > Include a databrowser1 (inside datasource1) and set a given column, > lets say Y (databrowser1.column = y*) > 3. > > Include a datacombo1 (inside datasource1) and DO NOTHING > 4. > > I run the application and everything goes OK, since the datacombo1 is > doing nothing, but the databrowser works perfect. > 5. > > So, I configure the datacombo1 to table X and field Y > 6. > > Run the application and I get a error, it says (almost nothing) : > "Void key" (thats all) when i try to open the form that has the related > steps (1 to 5), the error handler say its at the form2.show, thats the > code of a button, of course the problem is not there, since, without > STEP 5 everything goes OK. > > > OS: Freespire 2.0 (the database example works perfect) > > Gambas 2.0.0 > > > *This is not code, are properties. Do you use gb.gtk ? >-- >Benoit Minisini -- Nx GT-R From wspinto at ...1405... Wed Jan 16 16:19:54 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Wed, 16 Jan 2008 13:19:54 -0200 Subject: [Gambas-user] Error in make files continue In-Reply-To: References: Message-ID: <1200496794.478e209a92224@...1540...> Hi Benoit Minisini! My english is not very well. Whe i install the gambas2-2.0 via svn command... svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ ./reconf-all ./configure -C make sudo make install ... ... ... nstalling gb.chart... make[2]: Nada a ser feito para `install-data-am'. make[2]: Saindo do diret?rio `/home/kurumin/trunk/comp' make[1]: Saindo do diret?rio `/home/kurumin/trunk/comp' Making install in app make[1]: Entrando no diret?rio `/home/kurumin/trunk/app' make[2]: Entrando no diret?rio `/home/kurumin/trunk/app' Installing the development environment... Compiling gambas2... /bin/bash: line 2: cd: /home/kurumin/trunk/app/src/gambas2: Arquivo ou diret?rio inexistente (File or directory not found!!) gbc: project file not found: /home/kurumin/trunk/app/src/.project gba: project file not found: /home/kurumin/trunk/app/src/.project /usr/bin/install: imposs?vel fazer stat em `gambas2.gambas': Arquivo ou diret?rio inexistente Compiling gambas-database-manager... OK Compiling gbs3... OK ... the make is setting to ...app/src/gambas2 and the directory gambas2 not exist, now the directory is gambas3. Reguards, Souza, Wellington ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From gambas at ...1... Wed Jan 16 17:39:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 16 Jan 2008 17:39:13 +0100 Subject: [Gambas-user] Error in make files continue In-Reply-To: <1200496794.478e209a92224@...1540...> References: <1200496794.478e209a92224@...1540...> Message-ID: <200801161739.13403.gambas@...1...> On mercredi 16 janvier 2008, Wellington de Souza Pinto wrote: > Hi Benoit Minisini! > > My english is not very well. > > Whe i install the gambas2-2.0 via svn command... > > svn checkout > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ > ./reconf-all > ./configure -C > make > sudo make install > ... Maybe you didn't notice :-), but Gambas 2 was released, and so /gambas/gambas/trunk/ is not the 2.0 version at all, but the future 3.0. 'trunk' is always the latest snapshot of the development version. If you want a development snapshot of the 2.0 version, i.e. the future 2.1, then you must checkout /gambas/gambas/branches/2.0 If you want the real 2.0, you must checkout /gambas/gambas/tags/2.0.0. I hope it is clear now. :-) Regards, -- Benoit Minisini From gambas at ...1... Wed Jan 16 17:40:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 16 Jan 2008 17:40:10 +0100 Subject: [Gambas-user] Void Key error (GTK issue) In-Reply-To: <688afe140801160721l9586d54u5964592a3bbab532@...627...> References: <688afe140801160721l9586d54u5964592a3bbab532@...627...> Message-ID: <200801161740.10491.gambas@...1...> On mercredi 16 janvier 2008, Nx GT-R BOY wrote: > First.. Thanks for the replay > > Then... the components I select are this: > > gb > > gb.chart > > gb.db > > gb.db.form > > gb.form > > gb.gui > > and thats all, so I am not sure about the gb.gtk since the > gb.guidescription says QT/GTK+ switcher component. > > Again.. thanks a lot. > gb.gtk chooses gb.qt if you use KDE, and gb.gtk otherwise. There is a bug with gb.db.form + gb.gtk that raises this 'void key' error that I have to fix, so I think you got it. Regards, -- Benoit Minisini From wspinto at ...1405... Wed Jan 16 20:06:17 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Wed, 16 Jan 2008 17:06:17 -0200 Subject: [Gambas-user] Explaining better about Makefile problem In-Reply-To: References: Message-ID: <1200510377.478e55a9b7fa5@...1825...> Hi again Benoit Minisini!!! Explaining better. When I execute make install command appears the error that does not exist the archive or directory gambas2, therefore the directory was renomeado for gambas3. Already I found the problem. This inside of archive INSTALL. trunk/app/src/INSTALL trunk/trunk/app/src/INSTALL cat INSTALL This thus: gambas2 gambas-database-manager gbs3 It would have thus to be: gambas3 gambas-database-manager gbs3 After changes the make install command work fine. Reguards, Souza, Wellington ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From nando_f at ...951... Wed Jan 16 20:15:55 2008 From: nando_f at ...951... (nando) Date: Wed, 16 Jan 2008 14:15:55 -0500 Subject: [Gambas-user] metod record count In-Reply-To: <976ad9050801152352t1807bddi8653df60094ac3e0@...627...> References: <200801161117.52894.gunartha.nyoman@...1817...> <976ad9050801152352t1807bddi8653df60094ac3e0@...627...> Message-ID: <20080116191253.M37107@...951...> Something like...(and read the help as suggested) PUBLIC SUB Button1_Click() DIM strsql AS String DIM rs AS Result strsql = "select * from goods" rs = conn.Exec(strsql) IF rs.count=0 THEN PRINT "NO RECORDS" ELSE PRINT "Records Found: " & rs.count ENDIF END -Fernando ---------- Original Message ----------- From: "Arief Bayu Purwanto" To: gunartha.nyoman at ...1817..., "mailing list for gambas users" Sent: Wed, 16 Jan 2008 14:52:40 +0700 Subject: Re: [Gambas-user] metod record count > On 1/16/08, gunartha.nyoman wrote: > > > > Dear All, > > > > Hi all, could you like to help me. > > How to know a table have records or no using result metod > > ( 'how to know rs have records or no > > 'when rs have records, show message "?? records found" > > 'else if no records, show message "no record found" ) > > > > PRIVATE FUNCTION kon() AS Boolean > > > > conn = NEW Connection > > WITH conn > > .Type = "postgresql" > > .Host = "localhost" > > .Login = "djs" > > .Password = "djs" > > .Name = "inventory" > > END WITH > > > > TRY conn.OPEN > > IF ERROR THEN > > Message("Cannot open database. Error = " & Error.Text) > > RETURN FALSE > > END IF > > RETURN TRUE > > > > END > > > > PUBLIC SUB Button1_Click() > > > > DIM strsql AS String > > DIM rs AS Result > > > > strsql = "select * from goods" > > rs = conn.Exec(strsql) > > > > 'how to know rs have records or no > > 'when rs have records, show message "?? records found" > > 'else if no records, show message "no record found" > > > > END > > First of all, have you ever read the documentation[1]? > you can use rs.Count[2]. > Btw, I've give you this previously in your rs.EOF problem. > > [1]http://www.gambasdoc.org/help/ of F1 in IDE > [2]http://www.gambasdoc.org/help/comp/gb.db/result/count > > -- > Arief Bayu Purwanto > About : http://about.freelancer.web.id/ > Blog : http://bayu.freelancer.web.id/ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas.fr at ...626... Wed Jan 16 21:15:03 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 16 Jan 2008 21:15:03 +0100 Subject: [Gambas-user] metod record count In-Reply-To: <200801161117.52894.gunartha.nyoman@...1817...> References: <200801161117.52894.gunartha.nyoman@...1817...> Message-ID: <200801162115.03596.gambas.fr@...626...> Le Wednesday 16 January 2008 05:17:52 gunartha.nyoman, vous avez ?crit?: > Dear All, > > Hi all, could you like to help me. > How to know a table have records or no using result metod > ( 'how to know rs have records or no > 'when rs have records, show message "?? records found" > 'else if no records, show message "no record found" ) > > PRIVATE FUNCTION kon() AS Boolean > > conn = NEW Connection > WITH conn > .Type = "postgresql" > .Host = "localhost" > .Login = "djs" > .Password = "djs" > .Name = "inventory" > END WITH > > TRY conn.OPEN > IF ERROR THEN > Message("Cannot open database. Error = " & Error.Text) > RETURN FALSE > END IF > RETURN TRUE > > END > > PUBLIC SUB Button1_Click() > > DIM strsql AS String > DIM rs AS Result > > strsql = "select * from goods" > rs = conn.Exec(strsql) > > 'how to know rs have records or no > 'when rs have records, show message "?? records found" > 'else if no records, show message "no record found" > > END > > > Thank you for your help > regards > Gunartha > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user You have this sql method too Print Db.Exec("SELECT count(*) FROM &1", sTable)["count(*)"] From gambas at ...1... Wed Jan 16 22:21:42 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 16 Jan 2008 22:21:42 +0100 Subject: [Gambas-user] 64 bits version Message-ID: <200801162221.42928.gambas@...1...> Hi, Thanks to the ssh access on the 64 bits Ubuntu system of Rob Kudla, I could fix enough things, and now everything compiles, the installation works, and the development environment runs. But testing more is difficult, as running an X11 program through ssh is slow. So I invite "64 bits people" to test again and send the result on the developer mailing-list. Now, let's talk about 'valgrind'. Valgrind is an extraordinary program that emulates a processor. You run your program in it, and valgrind will check every memory access at the byte granularity. It can even tell you how fast each piece of your program is, by taking the different CPU caches into account. Thanks to valgrind, I could make the Gambas compiler twice faster. By running some examples with valgrind, I got a lot of memory access errors inside the gnu C library, and in the dynamic loader library too. I don't know if these errors are really significant. They could be valgrind bugs. But it is perfectly possible that the program does not crash even with such memory errors, because the Linux granularity is 4Kb (the size of a page), not a single byte. So, if something crashes during the installation, or during the startup of examples or IDE, please try valgrind and send me its output. Using valgrind is easy. Go to the project directory, and run: $ valgrind gbx3 -p Thanks in advance for any help. Regards, -- Benoit Minisini From nxgtrturbo at ...626... Thu Jan 17 02:03:09 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Wed, 16 Jan 2008 17:03:09 -0800 Subject: [Gambas-user] Bool Data in MySQL Message-ID: <688afe140801161703r1aaf88f1h42def6c462431a82@...627...> Bool Data in MySQL Hi everybody, I am trying to change the value of a BOOL field with Gambas but I cant, no matter how I try, the program always says "Invalid value", I can manually insert "0" or "1", "TRUE" or "FALSE" values without problems from the mysql console, Is there any know issue about Bool field with Datacontrols? Can I change the way the Datacontrols works with a given "field type" I mean, if my data type is BOOL, then the DataControl becomes a DataCombo, I have had issues with DataCombos, so, do you recommend stop working with DataCombos? OS: Freespire 2.0.3 Gambas: 2.0.0 Components: gb, gb.chart, gb.db, gb.db.form, gb.form and gb.gui Nx GT-R -- http://www.cardomain.com/ride/645756 http://nxgtrturbo.googlepages.com/ http://www.fotolog.com/nxgtrturbo/ http://tallerhuertas.googlepages.com/ From nxgtrturbo at ...626... Thu Jan 17 03:56:33 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Wed, 16 Jan 2008 18:56:33 -0800 Subject: [Gambas-user] Gambas Runtime Environment Message-ID: <688afe140801161856y50cfeecfl6cde07c7bf8e5122@...627...> I have a problem running a gambas executable file in my machine, when I test the program from the IDE works perfect, but when I try to run the executable, it says: "ERROR: #2: Cannot load class 'CControl': Unable to load class file" (that class was automatically generated). By the way, I have NO problems running the executable generated (by me) from the DataBase example that comes with gambas. And yes, of course, the CControl.class is there (with the other part of the code) OS: Freespire 2.0.0 Gambas 2.0.0 Components: gb, gb.chart, gb.db, gb.db.form, gb.form and gb.gui -- http://www.cardomain.com/ride/645756 http://nxgtrturbo.googlepages.com/ http://www.fotolog.com/nxgtrturbo/ http://tallerhuertas.googlepages.com/ From gunartha.nyoman at ...1817... Thu Jan 17 09:49:46 2008 From: gunartha.nyoman at ...1817... (gunartha) Date: Thu, 17 Jan 2008 00:49:46 -0800 Subject: [Gambas-user] listview Message-ID: <00f201c858e5$ea079660$0f0010b2@...1818...> Hi All, I am trying to use a listview in control of gambas, but I dont understand how to use it. Could you like to tell me where I can get manual or simple example source code to use it. I have browse in google and don't find. Thank you for your kindly help Regards Nyoman From ariefbayu at ...626... Thu Jan 17 05:30:06 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Thu, 17 Jan 2008 11:30:06 +0700 Subject: [Gambas-user] listview In-Reply-To: <00f201c858e5$ea079660$0f0010b2@...1818...> References: <00f201c858e5$ea079660$0f0010b2@...1818...> Message-ID: <976ad9050801162030s6a7c7b3dv44db6bd1ec491d9f@...627...> On 1/17/08, gunartha wrote: > > Hi All, > > I am trying to use a listview in control of gambas, but I dont understand > how to use it. > Could you like to tell me where I can get manual or simple example source > code to use it. I have browse in google and don't find. > > Thank you for your kindly help > > Regards > Nyoman Try this one. -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ -------------- next part -------------- A non-text attachment was scrubbed... Name: ListViewTest-0.0.1.tar.gz Type: application/x-gzip Size: 7766 bytes Desc: not available URL: From gunartha.nyoman at ...1817... Thu Jan 17 13:00:02 2008 From: gunartha.nyoman at ...1817... (gunartha) Date: Thu, 17 Jan 2008 04:00:02 -0800 Subject: [Gambas-user] listview References: <00f201c858e5$ea079660$0f0010b2@...1818...> <976ad9050801162030s6a7c7b3dv44db6bd1ec491d9f@...627...> Message-ID: <002b01c85900$7fdfe1f0$0f0010b2@...1818...> Thank for your reply and I have tried your example, but I want to create a listview like in VB A listview have some colomm and dynamis, if I type caracter in texbox then the data in listview filtered by it. ----- Original Message ----- From: "Arief Bayu Purwanto" To: "mailing list for gambas users" Sent: Wednesday, January 16, 2008 8:30 PM Subject: Re: [Gambas-user] listview > On 1/17/08, gunartha wrote: >> >> Hi All, >> >> I am trying to use a listview in control of gambas, but I dont understand >> how to use it. >> Could you like to tell me where I can get manual or simple example source >> code to use it. I have browse in google and don't find. >> >> Thank you for your kindly help >> >> Regards >> Nyoman > > > Try this one. > > > > > -- > Arief Bayu Purwanto > About : http://about.freelancer.web.id/ > Blog : http://bayu.freelancer.web.id/ > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------------------------------------------------------------------------- > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: listview.JPG Type: image/jpeg Size: 87665 bytes Desc: not available URL: From ariefbayu at ...626... Thu Jan 17 09:55:36 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Thu, 17 Jan 2008 15:55:36 +0700 Subject: [Gambas-user] listview In-Reply-To: <002b01c85900$7fdfe1f0$0f0010b2@...1818...> References: <00f201c858e5$ea079660$0f0010b2@...1818...> <976ad9050801162030s6a7c7b3dv44db6bd1ec491d9f@...627...> <002b01c85900$7fdfe1f0$0f0010b2@...1818...> Message-ID: <976ad9050801170055h5b36011bh5a232398fe82ed5d@...627...> try this. Here's the table to test: create table friends(fid integer not null primary key auto_increment, fname varchar(50) not null, address varchar(100)); On 1/17/08, gunartha wrote: > > Thank for your reply and I have tried your example, but I want to create a > listview like in VB > A listview have some colomm and dynamis, if I type caracter in texbox then > the data in listview filtered by it. > > > > ----- Original Message ----- > From: "Arief Bayu Purwanto" > To: "mailing list for gambas users" > Sent: Wednesday, January 16, 2008 8:30 PM > Subject: Re: [Gambas-user] listview > > > > On 1/17/08, gunartha wrote: > >> > >> Hi All, > >> > >> I am trying to use a listview in control of gambas, but I dont > understand > >> how to use it. > >> Could you like to tell me where I can get manual or simple example > source > >> code to use it. I have browse in google and don't find. > >> > >> Thank you for your kindly help > >> > >> Regards > >> Nyoman > > > > > > Try this one. > > > > > > > > > > -- > > Arief Bayu Purwanto > > About : http://about.freelancer.web.id/ > > Blog : http://bayu.freelancer.web.id/ > > > > > > -------------------------------------------------------------------------------- > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > -------------------------------------------------------------------------------- > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ -------------- next part -------------- A non-text attachment was scrubbed... Name: ListViewTest-0.0.2.tar.gz Type: application/x-gzip Size: 8610 bytes Desc: not available URL: From gambas at ...1... Thu Jan 17 14:01:59 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Jan 2008 14:01:59 +0100 Subject: [Gambas-user] Gambas Runtime Environment In-Reply-To: <688afe140801161856y50cfeecfl6cde07c7bf8e5122@...627...> References: <688afe140801161856y50cfeecfl6cde07c7bf8e5122@...627...> Message-ID: <200801171402.00102.gambas@...1...> On jeudi 17 janvier 2008, Nx GT-R BOY wrote: > I have a problem running a gambas executable file in my machine, when I > test the program from the IDE works perfect, but when I try to run the > executable, it says: "ERROR: #2: Cannot load class 'CControl': Unable to > load class file" (that class was automatically generated). > > By the way, I have NO problems running the executable generated (by me) > from the DataBase example that comes with gambas. > > And yes, of course, the CControl.class is there (with the other part of the > code) > > > OS: Freespire 2.0.0 > Gambas 2.0.0 > Components: gb, gb.chart, gb.db, gb.db.form, gb.form and gb.gui Please send me your project so that I check it. Regards, -- Benoit Minisini From gambas at ...1... Thu Jan 17 14:05:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Jan 2008 14:05:33 +0100 Subject: [Gambas-user] 64 bits news Message-ID: <200801171405.33223.gambas@...1...> Yeh, I got the 1000th commit. In this commit, the extern function implementation has been redesigned and is now based on libffi, a library I discovered at 1:00 in the morning. This library allows to call any function in a shared library on any system. The old Gambas system only worked on 32 bits OS. Alas everything is not perfect. Because of a flaw in the compiler design, projects that use the Pointer datatype will have to be recompiled to be used on a 64 bits system. This flaw will be fixed in Gambas 3. The 64 bits interpreter will be backported to the future 2.1 version of Gambas, and will have this flaw. Regards, -- Benoit Minisini From jredrejo at ...626... Thu Jan 17 14:13:53 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Thu, 17 Jan 2008 14:13:53 +0100 Subject: [Gambas-user] 64 bits news In-Reply-To: <200801171405.33223.gambas@...1...> References: <200801171405.33223.gambas@...1...> Message-ID: <8eb28a500801170513r58376bcfy737ab5eed1245e52@...627...> 2008/1/17, Benoit Minisini : > > Yeh, I got the 1000th commit. > > In this commit, the extern function implementation has been redesigned and > is > now based on libffi, a library I discovered at 1:00 in the morning. > > This library allows to call any function in a shared library on any > system. > The old Gambas system only worked on 32 bits OS. Great! Alas everything is not perfect. Because of a flaw in the compiler design, > projects that use the Pointer datatype will have to be recompiled to be > used > on a 64 bits system. This flaw will be fixed in Gambas 3. The 64 bits interpreter will be > backported to the future 2.1 version of Gambas, and will have this flaw. How do we know if a project user such datatype? I mean, could you report if some of the gambas based components use it? . It would be good to know if we could avoid recompiling the projects. Regards From gambas at ...1... Thu Jan 17 14:23:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Jan 2008 14:23:06 +0100 Subject: [Gambas-user] 64 bits news In-Reply-To: <8eb28a500801170513r58376bcfy737ab5eed1245e52@...627...> References: <200801171405.33223.gambas@...1...> <8eb28a500801170513r58376bcfy737ab5eed1245e52@...627...> Message-ID: <200801171423.06869.gambas@...1...> On jeudi 17 janvier 2008, Jos? Luis Redrejo wrote: > 2008/1/17, Benoit Minisini : > > Yeh, I got the 1000th commit. > > > > In this commit, the extern function implementation has been redesigned > > and is > > now based on libffi, a library I discovered at 1:00 in the morning. > > > > This library allows to call any function in a shared library on any > > system. > > The old Gambas system only worked on 32 bits OS. > > Great! > > > Alas everything is not perfect. Because of a flaw in the compiler design, > > > projects that use the Pointer datatype will have to be recompiled to be > > used > > on a 64 bits system. > > This flaw will be fixed in Gambas 3. The 64 bits interpreter will be > > > backported to the future 2.1 version of Gambas, and will have this flaw. > > How do we know if a project user such datatype? I mean, could you > report if some of the gambas based components use it? . It would be good to > know if we could avoid recompiling the projects. > > Regards No Gambas component use it. Some C/C++ component use it, but they are not a problem. Nobody should use the Pointer datatype. It is only there for extern functions, and for properties like Image.Data that returns a pointer to the image data in memory. So people that really need it should be programmer advanced enough for being aware of 64 bits/32 bits tricks. Regards, -- Benoit Minisini From gambas at ...1... Thu Jan 17 14:28:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Jan 2008 14:28:10 +0100 Subject: [Gambas-user] Bool Data in MySQL In-Reply-To: <688afe140801161703r1aaf88f1h42def6c462431a82@...627...> References: <688afe140801161703r1aaf88f1h42def6c462431a82@...627...> Message-ID: <200801171428.10927.gambas@...1...> On jeudi 17 janvier 2008, Nx GT-R BOY wrote: > Bool Data in MySQL > > Hi everybody, I am trying to change the value of a BOOL field with Gambas > but I cant, no matter how I try, the program always says "Invalid value", I > can manually insert "0" or "1", "TRUE" or "FALSE" values without problems > from the mysql console, Is there any know issue about Bool field with > Datacontrols? Can I change the way the Datacontrols works with a given > "field type" I mean, if my data type is BOOL, then the DataControl becomes > a DataCombo, I have had issues with DataCombos, so, do you recommend stop > working with DataCombos? > > > OS: Freespire 2.0.3 > Gambas: 2.0.0 > Components: gb, gb.chart, gb.db, gb.db.form, gb.form and gb.gui > > Nx GT-R Which version of mysql do you use? I was not aware of a BOOL datatype in mysql. I only saw integer datatypes, and, at the moment, the mysql driver uses the TINY integer datype for representing boolean values. Regards, -- Benoit Minisini From gambas at ...1... Thu Jan 17 14:29:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Jan 2008 14:29:45 +0100 Subject: [Gambas-user] xml-bug In-Reply-To: References: <200801161325.04562.gambas@...1...> Message-ID: <200801171429.45504.gambas@...1...> On mercredi 16 janvier 2008, Jaap Cramer wrote: > Hi again > > I want to report some other bug. > I'm using the XML-modules and after exiting a sub-routine Gambas gives an > error, exeption #11 I don't know how to use the GB.XML and GB.XML.XSTL > since documentation is very poor. Is there someone who can make this? > > I discovered at some fora 2 ways of reading an XML file. > > the First is using class XMLDocument. With this way I get this error 11. > Maybe because there is no xmldocument.close() ??? The second way is by > using XMLReader. I find this a awkward method, because y have to read every > single node, and you cant use XSLT, because XSLT.Transform() needs two > xmldocuments as arguments... > > How can I use XSLT and XML files? > > greetings > Jaap > > _______________________________ > > code: > PUBLIC s AS string > > PUBLIC SUB XML_Query(f AS String) > DIM x_Doc AS NEW XmlDocument > DIM x_Xslt AS NEW XmlDocument > DIM x_Q AS NEW XmlDocument > DIM x_slt AS NEW Xslt > > x_Doc.Open(f) > x_xslt.Open("xslt.xml") > x_Q = x_slt.Transform(x_Doc, x_xslt) > > s = x_Q.ToString("UTF-8") > END > _______________________________ > > Info: > Ubuntu 7:10 > Gambas 2.0.0 > > Please can you send your project, or at least the xml files opened by the function that crashes? Thanks in advance. Regards, -- Benoit Minisini From gambas at ...1... Thu Jan 17 14:32:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Jan 2008 14:32:13 +0100 Subject: [Gambas-user] Rev 967 bug. Ballon In-Reply-To: <976ad9050801140157o379fc74chf91227b700aa5f8@...627...> References: <976ad9050801140157o379fc74chf91227b700aa5f8@...627...> Message-ID: <200801171432.13711.gambas@...1...> On lundi 14 janvier 2008, Arief Bayu Purwanto wrote: > Here's how to do it: > - add object, in this case, I add TextBox > - add _KeyPress() event handler > - on method body add Ballon.Error("", yourobject) > > PUBLIC SUB txtKode_KeyPress() > > IF Key.Code = key.Return THEN > 'ceritanya dapat data dengan kode 'ASDF123' > IF txtKode.text = "ASDF123" THEN > txtNamaItem.Text = "Barang testing" > txtHarga.text = "4750" > txtJumlah.SetFocus() > ELSE 'nah, kalau ini, data tidak ada > txtKode.Select(0, txtKode.Length) > Balloon.Error("Maaf, kode barang tidak ada", txtKode) > txtKode.SetFocus() > END IF > ELSE IF key.Code = key.Tab THEN > txtKode.SetFocus() > END IF > > END > > - run > - test your Ballon, and it'll error on the second appearance. > > Here's the trace: > > silent at ...1792...:~/tmp/Gambas2Demo$ gbc2 -agt > OK > silent at ...1792...:~/tmp/Gambas2Demo$ gdb gbx2 > GNU gdb 6.6-debian > Copyright (C) 2006 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i486-linux-gnu"... > Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". > (gdb) set args -p > (gdb) run > Starting program: /usr/local/bin/gbx2 -p > [Thread debugging using libthread_db enabled] > [New Thread -1209948496 (LWP 16947)] > Error while reading shared library symbols: > Cannot find new threads: generic error > /usr/share/themes/Blubuntu/gtk-2.0/gtkrc:169: Clearlooks configuration > option "progressbarstyle" is not supported and will be ignored. > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1209948496 (LWP 16947)] > 0x0805e062 in GB_Raise (object=0x8344290, event_id=0, nparam=0) at > gbx_api.c:544 > 544 LIST_for_each(obs, OBJECT_event(object)->observer) > (gdb) bt > #0 0x0805e062 in GB_Raise (object=0x8344290, event_id=0, nparam=0) at > gbx_api.c:544 > #1 0xb7dbb8fe in raise_configure (widget=0x80fb8b0, e=0x80edae8, > _object=0x8344290) at CWatcher.cpp:57 > #2 0xb7b351de in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib/libgtk- > x11-2.0.so.0 > #3 0xb76f0772 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 > #4 0xb7701323 in ?? () from /usr/lib/libgobject-2.0.so.0 > #5 0x083447d8 in ?? () > #6 0xbfb03440 in ?? () > #7 0x00000002 in ?? () > #8 0xbfb0351c in ?? () > #9 0xbfb0342c in ?? () > #10 0x0823bf60 in ?? () > #11 0xbfb0355c in ?? () > #12 0x00000000 in ?? () Thanks for the report, but please send me your full project, or at least smaller project that raises the same bug. Thanks in advance. Regards, -- Benoit Minisini From gambas at ...1... Thu Jan 17 14:37:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Jan 2008 14:37:46 +0100 Subject: [Gambas-user] Bool Data in MySQL In-Reply-To: <200801171428.10927.gambas@...1...> References: <688afe140801161703r1aaf88f1h42def6c462431a82@...627...> <200801171428.10927.gambas@...1...> Message-ID: <200801171437.46691.gambas@...1...> On jeudi 17 janvier 2008, Benoit Minisini wrote: > On jeudi 17 janvier 2008, Nx GT-R BOY wrote: > > Bool Data in MySQL > > > > Hi everybody, I am trying to change the value of a BOOL field with Gambas > > but I cant, no matter how I try, the program always says "Invalid value", > > I can manually insert "0" or "1", "TRUE" or "FALSE" values without > > problems from the mysql console, Is there any know issue about Bool field > > with Datacontrols? Can I change the way the Datacontrols works with a > > given "field type" I mean, if my data type is BOOL, then the DataControl > > becomes a DataCombo, I have had issues with DataCombos, so, do you > > recommend stop working with DataCombos? > > > > > > OS: Freespire 2.0.3 > > Gambas: 2.0.0 > > Components: gb, gb.chart, gb.db, gb.db.form, gb.form and gb.gui > > > > Nx GT-R > > Which version of mysql do you use? > > I was not aware of a BOOL datatype in mysql. I only saw integer datatypes, > and, at the moment, the mysql driver uses the TINY integer datype for > representing boolean values. > > Regards, OK, I read the doc: BOOL is a synonymous of TINYINT(1), which is the MYSQL datatype used by the driver to make boolean values. Can you send me a mysql dump of your database? Anyway, you should create your database with the database manager to be sure there is no problem. Did you do that? -- Benoit Minisini From gambas at ...1... Thu Jan 17 15:02:04 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Jan 2008 15:02:04 +0100 Subject: [Gambas-user] Void Key error (GTK issue) In-Reply-To: <200801161740.10491.gambas@...1...> References: <688afe140801160721l9586d54u5964592a3bbab532@...627...> <200801161740.10491.gambas@...1...> Message-ID: <200801171502.04171.gambas@...1...> On mercredi 16 janvier 2008, Benoit Minisini wrote: > On mercredi 16 janvier 2008, Nx GT-R BOY wrote: > > First.. Thanks for the replay > > > > Then... the components I select are this: > > > > gb > > > > gb.chart > > > > gb.db > > > > gb.db.form > > > > gb.form > > > > gb.gui > > > > and thats all, so I am not sure about the gb.gtk since the > > gb.guidescription says QT/GTK+ switcher component. > > > > Again.. thanks a lot. > > gb.gtk chooses gb.qt if you use KDE, and gb.gtk otherwise. There is a bug > with gb.db.form + gb.gtk that raises this 'void key' error that I have to > fix, so I think you got it. > > Regards, Can you send me your project? -- Benoit Minisini From jaap_cramer at ...67... Thu Jan 17 15:05:05 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 17 Jan 2008 15:05:05 +0100 Subject: [Gambas-user] xml-bug In-Reply-To: <200801171429.45504.gambas@...1...> References: <200801161325.04562.gambas@...1...> <200801171429.45504.gambas@...1...> Message-ID: Hi Benoit After the example of Mike I changed something, using XMLS as class and not as Object. Now doing Xslt.Transform(.., ..), in stead of DIM ObjXslt as new xslt Objxslt.transform(.., ..) etc. I dont know why, but that seems to have solved my problem. Thanks anyway :-) Jaap ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Thu, 17 Jan 2008 14:29:45 +0100 > Subject: Re: [Gambas-user] xml-bug > > On mercredi 16 janvier 2008, Jaap Cramer wrote: >> Hi again >> >> I want to report some other bug. >> I'm using the XML-modules and after exiting a sub-routine Gambas gives an >> error, exeption #11 I don't know how to use the GB.XML and GB.XML.XSTL >> since documentation is very poor. Is there someone who can make this? >> >> I discovered at some fora 2 ways of reading an XML file. >> >> the First is using class XMLDocument. With this way I get this error 11. >> Maybe because there is no xmldocument.close() ??? The second way is by >> using XMLReader. I find this a awkward method, because y have to read every >> single node, and you cant use XSLT, because XSLT.Transform() needs two >> xmldocuments as arguments... >> >> How can I use XSLT and XML files? >> >> greetings >> Jaap >> >> _______________________________ >> >> code: >> PUBLIC s AS string >> >> PUBLIC SUB XML_Query(f AS String) >> DIM x_Doc AS NEW XmlDocument >> DIM x_Xslt AS NEW XmlDocument >> DIM x_Q AS NEW XmlDocument >> DIM x_slt AS NEW Xslt >> >> x_Doc.Open(f) >> x_xslt.Open("xslt.xml") >> x_Q = x_slt.Transform(x_Doc, x_xslt) >> >> s = x_Q.ToString("UTF-8") >> END >> _______________________________ >> >> Info: >> Ubuntu 7:10 >> Gambas 2.0.0 >> >> > > Please can you send your project, or at least the xml files opened by the > function that crashes? > > Thanks in advance. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Nieuw: Windows Live Messenger 2008! Gratis downloaden http://get.live.com/messenger From gambas at ...1... Thu Jan 17 15:08:17 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Jan 2008 15:08:17 +0100 Subject: [Gambas-user] xml-bug In-Reply-To: References: <200801171429.45504.gambas@...1...> Message-ID: <200801171508.18026.gambas@...1...> On jeudi 17 janvier 2008, Jaap Cramer wrote: > Hi Benoit > > After the example of Mike I changed something, using XMLS as class and not > as Object. > > Now doing Xslt.Transform(.., ..), in stead of > > DIM ObjXslt as new xslt > Objxslt.transform(.., ..) etc. > > I dont know why, but that seems to have solved my problem. Thanks anyway > :-) > > Jaap > Anyway can you send me the original project that does crash? This crash is a bug in the XML component, and so should be fixed, even if you found a workaround! Regards, -- Benoit Minisini From jaap_cramer at ...67... Thu Jan 17 15:18:09 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 17 Jan 2008 15:18:09 +0100 Subject: [Gambas-user] xml-bug Message-ID: Ofcourse, here you are List of relevant Subs in FMain: PUBLIC SUB Button1_Click() this is where i call one of the following SUBs PUBLIC SUB XML_Query(f AS String) this is the working method PUBLIC SUB XML_Query_Buggy(f AS String) this gives error 11 PUBLIC SUB Load_XML(f AS String) there are other options i found at forums at the internet PUBLIC SUB xmlread(f AS String) idem SUB parseNode(node AS XmlNode) grt Jaap ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Thu, 17 Jan 2008 15:08:17 +0100 > Subject: Re: [Gambas-user] xml-bug > > On jeudi 17 janvier 2008, Jaap Cramer wrote: >> Hi Benoit >> >> After the example of Mike I changed something, using XMLS as class and not >> as Object. >> >> Now doing Xslt.Transform(.., ..), in stead of >> >> DIM ObjXslt as new xslt >> Objxslt.transform(.., ..) etc. >> >> I dont know why, but that seems to have solved my problem. Thanks anyway >> :-) >> >> Jaap >> > > Anyway can you send me the original project that does crash? This crash is a > bug in the XML component, and so should be fixed, even if you found a > workaround! > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Probeer Live Search: de zoekmachine van de makers van MSN! http://www.live.com/?searchOnly=true -------------- next part -------------- A non-text attachment was scrubbed... Name: xmlTest-0.0.1.tar.gz Type: application/x-gzip Size: 18433 bytes Desc: not available URL: From jaap_cramer at ...67... Thu Jan 17 15:24:58 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 17 Jan 2008 15:24:58 +0100 Subject: [Gambas-user] Problems with installation package with beta-modules In-Reply-To: <200801161325.04562.gambas@...1...> References: <200801161325.04562.gambas@...1...> Message-ID: Hello When I create a installation Package (ubuntu/debian) while my project uses beta-modules (GB.DEBUG, GB.XML.XSTL etc) i got unresolvalbe dependency problems. How do I solve this? grt Jaap Gambas 2.0.0 Ubuntu 7.10 _________________________________________________________________ Jouw nieuws en entertainment, vind je op MSN.nl! http://nl.msn.com/ From gambas at ...1... Thu Jan 17 15:29:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Jan 2008 15:29:01 +0100 Subject: [Gambas-user] Problems with installation package with beta-modules In-Reply-To: References: <200801161325.04562.gambas@...1...> Message-ID: <200801171529.01731.gambas@...1...> On jeudi 17 janvier 2008, Jaap Cramer wrote: > Hello > > When I create a installation Package (ubuntu/debian) while my project uses > beta-modules (GB.DEBUG, GB.XML.XSTL etc) i got unresolvalbe dependency > problems. How do I solve this? > > grt > Jaap > > Gambas 2.0.0 > Ubuntu 7.10 Do you have more details? -- Benoit Minisini From gambas at ...1... Thu Jan 17 16:05:23 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Jan 2008 16:05:23 +0100 Subject: [Gambas-user] xml-bug In-Reply-To: References: Message-ID: <200801171605.23426.gambas@...1...> On jeudi 17 janvier 2008, Jaap Cramer wrote: > Ofcourse, here you are > > List of relevant Subs in FMain: > > PUBLIC SUB Button1_Click() this is where i call > one of the following SUBs PUBLIC SUB XML_Query(f AS String) > this is the working method PUBLIC SUB XML_Query_Buggy(f AS String) this > gives error 11 > PUBLIC SUB Load_XML(f AS String) there are other options i > found at forums at the internet PUBLIC SUB xmlread(f AS String) > idem > SUB parseNode(node AS XmlNode) > > grt > Jaap > Thanks. It is fixed now, the Xslt class was not declared as non creatable. -- Benoit Minisini From jaap_cramer at ...67... Thu Jan 17 16:06:48 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 17 Jan 2008 16:06:48 +0100 Subject: [Gambas-user] Problems with installation package with beta-modules In-Reply-To: <200801171529.01731.gambas@...1...> References: <200801161325.04562.gambas@...1...> <200801171529.01731.gambas@...1...> Message-ID: sorry for being to brief I think it is an error of the one who packaged gambas2 for debian/sid I have installed package gambas2 from an official Debian/sid repository. They havent included the xml-xslt package The strange thing is that I can use it, altough not installed... Is the xml-xslt part of GB.XML? Some extra info, as requested. For example I tried in terminal: "gdebi hebr3_0.3-1_i386.deb" this was the output: Reading package lists: Done Reading state information: Done Reading state information: Done Reading state information: Done This package is uninstallable Dependency is not satisfiable: gambas2-gb-xml-xslt PS I wanted to send the debian package allong, but it was to big... ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Thu, 17 Jan 2008 15:29:01 +0100 > Subject: Re: [Gambas-user] Problems with installation package with beta-modules > > On jeudi 17 janvier 2008, Jaap Cramer wrote: >> Hello >> >> When I create a installation Package (ubuntu/debian) while my project uses >> beta-modules (GB.DEBUG, GB.XML.XSTL etc) i got unresolvalbe dependency >> problems. How do I solve this? >> >> grt >> Jaap >> >> Gambas 2.0.0 >> Ubuntu 7.10 > > Do you have more details? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Bekijk Yes-R's real life soap op MSN Video! http://video.msn.com/video.aspx?mkt=nl-nl&tab=m1192527562294&vid=8aff5b76-b78d-4b55-8b64-ef7e1d73aab2&playlist=videoByUuids:uuids:50b732c2-c105-41e9-adf0-36bd627d4eaa,0813da8c-031b-423f-a79d-35d925aee805,5cce447e-948d-43af-9862-45bb6bb9d6d8,6a39138c-f562-4254-be70-9d93343650f8,f9b8d78f-05a4-4c74-8e4b-28d20a4037ab&from=NLNL_Yes-R From jredrejo at ...626... Thu Jan 17 16:20:40 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Thu, 17 Jan 2008 16:20:40 +0100 Subject: [Gambas-user] Problems with installation package with beta-modules In-Reply-To: References: <200801161325.04562.gambas@...1...> <200801171529.01731.gambas@...1...> Message-ID: <8eb28a500801170720g637cd658pfa5b93e3f80eed22@...627...> 2008/1/17, Jaap Cramer : > > > sorry for being to brief > > I think it is an error of the one who packaged gambas2 for debian/sid > I have installed package gambas2 from an official Debian/sid repository. It was me ;-) They havent included the xml-xslt package > The strange thing is that I can use it, altough not installed... > Is the xml-xslt part of GB.XML? Right, it's the where it has being from the first time that component appeared, more than 2 years ago: http://packages.debian.org/sid/i386/gambas-gb-xml/filelist http://packages.debian.org/sid/i386/gambas2-gb-xml/filelist Some extra info, as requested. > For example I tried in terminal: "gdebi hebr3_0.3-1_i386.deb" > this was the output: > > Reading package lists: Done > Reading state information: Done > Reading state information: Done > Reading state information: Done > This package is uninstallable > Dependency is not satisfiable: gambas2-gb-xml-xslt mmm, then it's a bug from the packaging or from the way gambas check for dependencies. The easiest way to fix it is adding a Provides: gambas2-gb-xml-xslt. A more elegant way would be creating a package only for that component but would like to know Beno?t opinion first... If he says a new package should be create, please fill a bug in Debian BTS, otherwise I could forget it next time I upload the packages to Debian. PS I wanted to send the debian package allong, but it was to big... I don't need it, the problem source is clear. Anyway for gb.debug that should not happen... Regards. Jos? L. ---------------------------------------- > > From: gambas at ...1... > > To: gambas-user at lists.sourceforge.net > > Date: Thu, 17 Jan 2008 15:29:01 +0100 > > Subject: Re: [Gambas-user] Problems with installation package > with beta-modules > > > > On jeudi 17 janvier 2008, Jaap Cramer wrote: > >> Hello > >> > >> When I create a installation Package (ubuntu/debian) while my project > uses > >> beta-modules (GB.DEBUG, GB.XML.XSTL etc) i got unresolvalbe dependency > >> problems. How do I solve this? > >> > >> grt > >> Jaap > >> > >> Gambas 2.0.0 > >> Ubuntu 7.10 > > > > Do you have more details? > > > > -- > > Benoit Minisini > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > _________________________________________________________________ > Bekijk Yes-R's real life soap op MSN Video! > > http://video.msn.com/video.aspx?mkt=nl-nl&tab=m1192527562294&vid=8aff5b76-b78d-4b55-8b64-ef7e1d73aab2&playlist=videoByUuids:uuids:50b732c2-c105-41e9-adf0-36bd627d4eaa,0813da8c-031b-423f-a79d-35d925aee805,5cce447e-948d-43af-9862-45bb6bb9d6d8,6a39138c-f562-4254-be70-9d93343650f8,f9b8d78f-05a4-4c74-8e4b-28d20a4037ab&from=NLNL_Yes-R > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Jan 17 16:25:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Jan 2008 16:25:36 +0100 Subject: [Gambas-user] Problems with installation package with beta-modules In-Reply-To: <8eb28a500801170720g637cd658pfa5b93e3f80eed22@...627...> References: <8eb28a500801170720g637cd658pfa5b93e3f80eed22@...627...> Message-ID: <200801171625.36177.gambas@...1...> On jeudi 17 janvier 2008, Jos? Luis Redrejo wrote: > 2008/1/17, Jaap Cramer : > > sorry for being to brief > > > > I think it is an error of the one who packaged gambas2 for debian/sid > > I have installed package gambas2 from an official Debian/sid repository. > > It was me ;-) > > They havent included the xml-xslt package > > > The strange thing is that I can use it, altough not installed... > > Is the xml-xslt part of GB.XML? > > Right, it's the where it has being from the first time that component > appeared, more than 2 years ago: > http://packages.debian.org/sid/i386/gambas-gb-xml/filelist > http://packages.debian.org/sid/i386/gambas2-gb-xml/filelist > > > > Some extra info, as requested. > > > For example I tried in terminal: "gdebi hebr3_0.3-1_i386.deb" > > this was the output: > > > > Reading package lists: Done > > Reading state information: Done > > Reading state information: Done > > Reading state information: Done > > This package is uninstallable > > Dependency is not satisfiable: gambas2-gb-xml-xslt > > mmm, then it's a bug from the packaging or from the way gambas check for > dependencies. The easiest way to fix it is adding a Provides: > gambas2-gb-xml-xslt. A more elegant way would be creating a package only > for that component but would like to know Beno?t opinion first... > If he says a new package should be create, please fill a bug in Debian BTS, > otherwise I could forget it next time I upload the packages to Debian. > > > PS I wanted to send the debian package allong, but it was to big... > > > > I don't need it, the problem source is clear. Anyway for gb.debug that > should not happen... > > Regards. > Jos? L. > > gb.xml.xslt must have its own package, as any other component. Did I forget to specify that somewhere? -- Benoit Minisini From jredrejo at ...626... Thu Jan 17 16:53:43 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Thu, 17 Jan 2008 16:53:43 +0100 Subject: [Gambas-user] Problems with installation package with beta-modules In-Reply-To: <200801171625.36177.gambas@...1...> References: <8eb28a500801170720g637cd658pfa5b93e3f80eed22@...627...> <200801171625.36177.gambas@...1...> Message-ID: <8eb28a500801170753h154cf167hf675f30aecfea043@...627...> 2008/1/17, Benoit Minisini : > > On jeudi 17 janvier 2008, Jos? Luis Redrejo wrote: > > 2008/1/17, Jaap Cramer : > > > sorry for being to brief > > > > > > I think it is an error of the one who packaged gambas2 for debian/sid > > > I have installed package gambas2 from an official Debian/sid > repository. > > > > It was me ;-) > > > > They havent included the xml-xslt package > > > > > The strange thing is that I can use it, altough not installed... > > > Is the xml-xslt part of GB.XML? > > > > Right, it's the where it has being from the first time that component > > appeared, more than 2 years ago: > > http://packages.debian.org/sid/i386/gambas-gb-xml/filelist > > http://packages.debian.org/sid/i386/gambas2-gb-xml/filelist > > > > > > > > Some extra info, as requested. > > > > > For example I tried in terminal: "gdebi hebr3_0.3-1_i386.deb" > > > this was the output: > > > > > > Reading package lists: Done > > > Reading state information: Done > > > Reading state information: Done > > > Reading state information: Done > > > This package is uninstallable > > > Dependency is not satisfiable: gambas2-gb-xml-xslt > > > > mmm, then it's a bug from the packaging or from the way gambas check for > > dependencies. The easiest way to fix it is adding a Provides: > > gambas2-gb-xml-xslt. A more elegant way would be creating a package only > > for that component but would like to know Beno?t opinion first... > > If he says a new package should be create, please fill a bug in Debian > BTS, > > otherwise I could forget it next time I upload the packages to Debian. > > > > > > PS I wanted to send the debian package allong, but it was to big... > > > > > > > > I don't need it, the problem source is clear. Anyway for gb.debug that > > should not happen... > > > > Regards. > > Jos? L. > > > > > > gb.xml.xslt must have its own package, as any other component. Did I > forget to > specify that somewhere? > > Not, it's my fault as I did the package some years ago before you set the package policy and forgot about it as it's created from the same sources branch as gb.xml. I'll fix it in the next upload to Debian splitting xml package in two. Regards. From nando_f at ...951... Thu Jan 17 20:41:04 2008 From: nando_f at ...951... (nando) Date: Thu, 17 Jan 2008 14:41:04 -0500 Subject: [Gambas-user] Bool Data in MySQL In-Reply-To: <200801171437.46691.gambas@...1...> References: <688afe140801161703r1aaf88f1h42def6c462431a82@...627...> <200801171428.10927.gambas@...1...> <200801171437.46691.gambas@...1...> Message-ID: <20080117193608.M27438@...951...> My personal suggestion is to use TINYINT in mySQL for TRUE/FALSE requirements. I use: Zero is false and Not zero is true. We are converting from MDB (ACCESS) backend and ACCESS has problems and complains if it is TINYINT UNSIGNED, so don't have it UNSIGNED because it likes -1 for FALSE. Other than that particular issue, Access front-end works fine. (...and yes, Gambas will replace Access front-end in the future...) -Fernando ---------- Original Message ----------- From: Benoit Minisini To: mailing list for gambas users Sent: Thu, 17 Jan 2008 14:37:46 +0100 Subject: Re: [Gambas-user] Bool Data in MySQL > On jeudi 17 janvier 2008, Benoit Minisini wrote: > > On jeudi 17 janvier 2008, Nx GT-R BOY wrote: > > > Bool Data in MySQL > > > > > > Hi everybody, I am trying to change the value of a BOOL field with Gambas > > > but I cant, no matter how I try, the program always says "Invalid value", > > > I can manually insert "0" or "1", "TRUE" or "FALSE" values without > > > problems from the mysql console, Is there any know issue about Bool field > > > with Datacontrols? Can I change the way the Datacontrols works with a > > > given "field type" I mean, if my data type is BOOL, then the DataControl > > > becomes a DataCombo, I have had issues with DataCombos, so, do you > > > recommend stop working with DataCombos? > > > > > > > > > OS: Freespire 2.0.3 > > > Gambas: 2.0.0 > > > Components: gb, gb.chart, gb.db, gb.db.form, gb.form and gb.gui > > > > > > Nx GT-R > > > > Which version of mysql do you use? > > > > I was not aware of a BOOL datatype in mysql. I only saw integer datatypes, > > and, at the moment, the mysql driver uses the TINY integer datype for > > representing boolean values. > > > > Regards, > > OK, I read the doc: BOOL is a synonymous of TINYINT(1), which is the MYSQL > datatype used by the driver to make boolean values. > > Can you send me a mysql dump of your database? > > Anyway, you should create your database with the database manager to be sure > there is no problem. Did you do that? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From jaap_cramer at ...67... Thu Jan 17 21:22:22 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 17 Jan 2008 21:22:22 +0100 Subject: [Gambas-user] difference between QT TextEdit.Select and TextArea.Select In-Reply-To: <20080117193608.M27438@...951...> References: <688afe140801161703r1aaf88f1h42def6c462431a82@...627...> <200801171428.10927.gambas@...1...> <200801171437.46691.gambas@...1...> <20080117193608.M27438@...951...> Message-ID: HI I discovered a inconvenient difference between the behavior of Method SELECT in TextEdit and TextArea. By a TextArea properties like POS can be used in the method SELECT. If the text contains Unicode the value of the cursor-position can be recalculated to the position in the string. This is not the case in TextEdit. Because TextEdit contains HTML-tags, the cursor position cannot be used, or recalculated to a position in the string. Is this an error in TextEdit.Select; I want to select text, not positions... I added a example snippet to illustrate. The following code is called on tBible_MouseUp(). If one changed the position of the cursor, the purpose is to select the word on a single click. The following snippet works fine if tBible is a TextArea. I want to add some markups, so I decided to change tBible into a TextEdit. DIM iPos, iStart, iEnd AS Integer DIM sB AS String ' a temp container for the contents of tBible.text sB = tBible.Text & " " 'end of text and space, so each word is surrounded by spaces sB = Replace(sB, "\n", " ") 'consider a return as a space sB = Replace(sB, "?", " ") 'consider 'maqqef' (the high division-marker) as space IF tBible.Selection.Length = 0 THEN 'if there is already a selection, then don't change it! iPos = tBible.Pos 'Position of the CURSOR, not string, so I don't need to recalculate it from a unicode string iStart = String.RInStr(sB, " ", iPos) 'working with unicode, so recalculate values iEnd = String.InStr(sB, " ", iPos) - 1 tBible.Select(iStart, iEnd - iStart) ENDIF grt Jaap Ubuntu 7.10, Gambas 2.0.0 _________________________________________________________________ Probeer Live Search: de zoekmachine van de makers van MSN! http://www.live.com/?searchOnly=true From nxgtrturbo at ...626... Fri Jan 18 00:08:09 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Thu, 17 Jan 2008 15:08:09 -0800 Subject: [Gambas-user] Gambas Runtime Environment (Fixed) Message-ID: <688afe140801171508v2cf4c3edt508e2a9bc2bc6348@...627...> If you want it, I can send you my project, by at this moment would be (someway) useless since I fixed the problem already, for next issues, I will post what I did, I just move the project to my FS partition, since the project was originally created under a FAT partition (that I share with WinXP), but even if I create the executable under my FAT partition says the same, It cant load a Class. Something is happening of course, but could be just my fault. Thanks a lot. Regards, Nx GT-R On jeudi 17 janvier 2008, Nx GT-R BOY wrote: > I have a problem running a gambas executable file in my machine, when I > test the program from the IDE works perfect, but when I try to run the > executable, it says: "ERROR: #2: Cannot load class 'CControl': Unable to > load class file" (that class was automatically generated). > > By the way, I have NO problems running the executable generated (by me) > from the DataBase example that comes with gambas. > > And yes, of course, the CControl.class is there (with the other part of the > code) > > > OS: Freespire 2.0.0 > Gambas 2.0.0 > Components: gb, gb.chart, gb.db, gb.db.form, gb.form and gb.gui >Please send me your project so that I check it. >Regards, >-- >Benoit Minisini -- http://www.cardomain.com/ride/645756 http://nxgtrturbo.googlepages.com/ http://www.fotolog.com/nxgtrturbo/ http://tallerhuertas.googlepages.com/ From gambas at ...1... Fri Jan 18 00:11:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 18 Jan 2008 00:11:57 +0100 Subject: [Gambas-user] Gambas Runtime Environment (Fixed) In-Reply-To: <688afe140801171508v2cf4c3edt508e2a9bc2bc6348@...627...> References: <688afe140801171508v2cf4c3edt508e2a9bc2bc6348@...627...> Message-ID: <200801180011.58414.gambas@...1...> On vendredi 18 janvier 2008, Nx GT-R BOY wrote: > If you want it, I can send you my project, by at this moment would be > (someway) useless since I fixed the problem already, for next issues, I > will post what I did, I just move the project to my FS partition, since the > project was originally created under a FAT partition (that I share with > WinXP), but even if I create the executable under my FAT partition says the > same, It cant load a Class. Something is happening of course, but could be > just my fault. Thanks a lot. > > Regards, > Nx GT-R > I guess that Gambas project cannot be stored on a FAT partition, because they are case unsensitive. -- Benoit Minisini From nxgtrturbo at ...626... Fri Jan 18 00:21:13 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Thu, 17 Jan 2008 15:21:13 -0800 Subject: [Gambas-user] Re x2: Bool Data in MySQL (closed) Message-ID: <688afe140801171521p74a4b582y8fcb41ba2177f866@...627...> Yes, I notice that strange behavior, I was expecting 0=false, and X>0=TRUE, but I know now, I was designed BOOL data types with DBDesigner 4.054b (that was translated to TinyINT UNSIGNED) so I dont need (Should I?) use the Gambas database manager. MySQL server is 5.0.38-Ubuntu (I have Freespire 2) Regards, Nx GT-R >My personal suggestion is to use TINYINT in mySQL for TRUE/FALSE requirements. >I use: Zero is false and Not zero is true. >We are converting from MDB (ACCESS) backend and ACCESS has problems and complains >if it is TINYINT UNSIGNED, so don't have it UNSIGNED because it likes -1 for FALSE. >Other than that particular issue, Access front-end works fine. >(...and yes, Gambas will replace Access front-end in the future...) >-Fernando > On jeudi 17 janvier 2008, Benoit Minisini wrote: > > On jeudi 17 janvier 2008, Nx GT-R BOY wrote: > > > Bool Data in MySQL > > > > > > Hi everybody, I am trying to change the value of a BOOL field with Gambas > > > but I cant, no matter how I try, the program always says "Invalid value", > > > I can manually insert "0" or "1", "TRUE" or "FALSE" values without > > > problems from the mysql console, Is there any know issue about Bool field > > > with Datacontrols? Can I change the way the Datacontrols works with a > > > given "field type" I mean, if my data type is BOOL, then the DataControl > > > becomes a DataCombo, I have had issues with DataCombos, so, do you > > > recommend stop working with DataCombos? > > > > > > > > > OS: Freespire 2.0.3 > > > Gambas: 2.0.0 > > > Components: gb, gb.chart, gb.db, gb.db.form, gb.form and gb.gui > > > > > > Nx GT-R > > > > Which version of mysql do you use? > > > > I was not aware of a BOOL datatype in mysql. I only saw integer datatypes, > > and, at the moment, the mysql driver uses the TINY integer datype for > > representing boolean values. > > > > Regards, > > OK, I read the doc: BOOL is a synonymous of TINYINT(1), which is the MYSQL > datatype used by the driver to make boolean values. > > Can you send me a mysql dump of your database? > > Anyway, you should create your database with the database manager to be sure > there is no problem. Did you do that? > > -- > Benoit Minisini -- http://www.cardomain.com/ride/645756 http://nxgtrturbo.googlepages.com/ http://www.fotolog.com/nxgtrturbo/ http://tallerhuertas.googlepages.com/ From gambas at ...1... Fri Jan 18 00:31:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 18 Jan 2008 00:31:43 +0100 Subject: [Gambas-user] Re x2: Bool Data in MySQL (closed) In-Reply-To: <688afe140801171521p74a4b582y8fcb41ba2177f866@...627...> References: <688afe140801171521p74a4b582y8fcb41ba2177f866@...627...> Message-ID: <200801180031.43709.gambas@...1...> On vendredi 18 janvier 2008, Nx GT-R BOY wrote: > Yes, I notice that strange behavior, I was expecting 0=false, and X>0=TRUE, > but I know now, I was designed BOOL data types with DBDesigner 4.054b (that > was translated to TinyINT UNSIGNED) so I dont need (Should I?) use the > Gambas database manager. > > MySQL server is 5.0.38-Ubuntu (I have Freespire 2) > > Regards, > Nx GT-R > You just should do what I asked you, otherwise I won't be able to fix your problem! Regards, -- Benoit Minisini From leonardo at ...1237... Fri Jan 18 00:54:22 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 18 Jan 2008 00:54:22 +0100 Subject: [Gambas-user] New italian site dedicated to Gambas Message-ID: <478FEAAE.9000100@...1237...> I'm glad to announce that a new site dedicated to Gambas has been opened right now! It's for italian Gambas users and it's accessible at www.gambas-it.org. On it, users will find: - news from Gambas and Linux worlds - articles, tutorials, guides - forum - gambas example codes - newsletter - faq - wiki (important) - some other things I hope that this site will help the diffusion of Gambas between the italian linux users. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gunartha.nyoman at ...1817... Fri Jan 18 06:59:44 2008 From: gunartha.nyoman at ...1817... (gunartha) Date: Thu, 17 Jan 2008 21:59:44 -0800 Subject: [Gambas-user] listview References: <00f201c858e5$ea079660$0f0010b2@...1818...> <976ad9050801162030s6a7c7b3dv44db6bd1ec491d9f@...627...> <002b01c85900$7fdfe1f0$0f0010b2@...1818...> <976ad9050801170055h5b36011bh5a232398fe82ed5d@...627...> Message-ID: <003101c85997$53109ab0$0f0010b2@...1818...> Thank you Mas Bayu for your reply and I am sorry I ask you again. Refering from your example : how can I select a row in GridView and when a row have selected I want get return value at colomm ID ( first colomm in GridView) Example : fid fname address 1 nyoman bali 2 joko surabaya 3 agung jakarta When cursor at fid 2, how to get that value. Regards Nyoman Gunartha ----- Original Message ----- From: "Arief Bayu Purwanto" To: "mailing list for gambas users" Sent: Thursday, January 17, 2008 12:55 AM Subject: Re: [Gambas-user] listview > try this. > > Here's the table to test: > create table friends(fid integer not null primary key auto_increment, > fname > varchar(50) not null, address varchar(100)); > > On 1/17/08, gunartha wrote: >> >> Thank for your reply and I have tried your example, but I want to create >> a >> listview like in VB >> A listview have some colomm and dynamis, if I type caracter in texbox >> then >> the data in listview filtered by it. >> >> >> >> ----- Original Message ----- >> From: "Arief Bayu Purwanto" >> To: "mailing list for gambas users" >> Sent: Wednesday, January 16, 2008 8:30 PM >> Subject: Re: [Gambas-user] listview >> >> >> > On 1/17/08, gunartha wrote: >> >> >> >> Hi All, >> >> >> >> I am trying to use a listview in control of gambas, but I dont >> understand >> >> how to use it. >> >> Could you like to tell me where I can get manual or simple example >> source >> >> code to use it. I have browse in google and don't find. >> >> >> >> Thank you for your kindly help >> >> >> >> Regards >> >> Nyoman >> > >> > >> > Try this one. >> > >> > >> > >> > >> > -- >> > Arief Bayu Purwanto >> > About : http://about.freelancer.web.id/ >> > Blog : http://bayu.freelancer.web.id/ >> > >> >> >> >> -------------------------------------------------------------------------------- >> >> >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Microsoft >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> >> >> >> -------------------------------------------------------------------------------- >> >> >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > > -- > Arief Bayu Purwanto > About : http://about.freelancer.web.id/ > Blog : http://bayu.freelancer.web.id/ > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------------------------------------------------------------------------- > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ariefbayu at ...626... Fri Jan 18 02:23:52 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Fri, 18 Jan 2008 08:23:52 +0700 Subject: [Gambas-user] listview In-Reply-To: <003101c85997$53109ab0$0f0010b2@...1818...> References: <00f201c858e5$ea079660$0f0010b2@...1818...> <976ad9050801162030s6a7c7b3dv44db6bd1ec491d9f@...627...> <002b01c85900$7fdfe1f0$0f0010b2@...1818...> <976ad9050801170055h5b36011bh5a232398fe82ed5d@...627...> <003101c85997$53109ab0$0f0010b2@...1818...> Message-ID: <976ad9050801171723k687a26d8q5e3f826bcb2904bc@...627...> On 1/18/08, gunartha wrote: > > Thank you Mas Bayu for your reply and I am sorry > I ask you again. > Refering from your example : how can I select a row in GridView and when a > row have selected I want get return value at colomm ID ( first colomm in > GridView) > Example : > fid fname address > 1 nyoman bali > 2 joko surabaya > 3 agung jakarta > > When cursor at fid 2, how to get that value. Basically it's just a matter changing GridView1.Mode = Select.Single or Mode properties in design mode. and you can get the value using: GridView1[GridView1.Row, GridView1.Column].Text -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ -------------- next part -------------- A non-text attachment was scrubbed... Name: ListViewTest-0.0.3.tar.gz Type: application/x-gzip Size: 8656 bytes Desc: not available URL: From nxgtrturbo at ...626... Fri Jan 18 02:50:43 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Thu, 17 Jan 2008 17:50:43 -0800 Subject: [Gambas-user] Double DataSource Message-ID: <688afe140801171750n6ce731cax6f92a8057e23985f@...627...> A days ago I got a "Void Key" (known bug), but I change my database structure, and now its getting better, what I am trying to do is this: 1. I want a table, lets call "groups". where I can add profiles like "root", "not root", everything goes ok, I don't have problems with that. 2. I want a table, lest call "users", where I would like to add user information like "name" and "password", and let the user select ONLY the items that have been recorded under the table "groups" (something pretty match the same than the "color" @ gambas examples) Theres no code here (talking about high level code), just change properties, just to check I was doing everything OK, I add to my project the Ftest form from the database project, and of course, change the properties, to work with my database, and I got the SAME behavior, that what I do by myself, so I started to think something about my DB. The behavior I got, its that What is ACTIVE in the form is the DataSource/DataBrowse of "groups", and nothing about "users", I can add users, but I cant see them, nothing related with "users" works, just what is related with "groups" The project code, its not important I guess, since the same happens with the Database example, so, maybe the important its the structure of my DB, I worked with DBDesigner 4, and this is my script file (part of it) NOTE: comparing my project to the database example @ gambas: groups = colors users = test By the way, pleas tell me the way I should send my code. CREATE TABLE grupos ( clave VARCHAR(20) NOT NULL, nombre VARCHAR(20) NOT NULL, empleados TINYINT NULL, vacaciones TINYINT NULL, tipoproveedor TINYINT NULL, nomina TINYINT NULL, egresos TINYINT NULL, proveedores TINYINT NULL, ingresos TINYINT NULL, clientes TINYINT NULL, asistencia TINYINT NULL, inventario TINYINT NULL, tipomateriales TINYINT NULL, grupos TINYINT NULL, usuarios TINYINT NULL, puestos TINYINT NULL, PRIMARY KEY(clave) ); CREATE TABLE usuarios ( nombre VARCHAR(20) NOT NULL, grupos_clave VARCHAR(20) NOT NULL, clave VARCHAR(20) NOT NULL, PRIMARY KEY(nombre), INDEX usuarios_FKIndex1(grupos_clave), FOREIGN KEY(grupos_clave) REFERENCES grupos(clave) ON DELETE NO ACTION ON UPDATE NO ACTION ); (By the way, I am Spanish native speaker, so the design is in Spanish) Regards, Nx GT-R (nxgtrturbo at ...626... From ariefbayu at ...626... Fri Jan 18 02:56:26 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Fri, 18 Jan 2008 08:56:26 +0700 Subject: [Gambas-user] Rev 967 bug. Ballon In-Reply-To: <200801171432.13711.gambas@...1...> References: <976ad9050801140157o379fc74chf91227b700aa5f8@...627...> <200801171432.13711.gambas@...1...> Message-ID: <976ad9050801171756g3184b30lede4cf86a4822138@...627...> On 1/17/08, Benoit Minisini wrote: > > On lundi 14 janvier 2008, Arief Bayu Purwanto wrote: > > Here's how to do it: > > - add object, in this case, I add TextBox > > - add _KeyPress() event handler > > - on method body add Ballon.Error("", yourobject) > > > > PUBLIC SUB txtKode_KeyPress() > > > > IF Key.Code = key.Return THEN > > 'ceritanya dapat data dengan kode 'ASDF123' > > IF txtKode.text = "ASDF123" THEN > > txtNamaItem.Text = "Barang testing" > > txtHarga.text = "4750" > > txtJumlah.SetFocus() > > ELSE 'nah, kalau ini, data tidak ada > > txtKode.Select(0, txtKode.Length) > > Balloon.Error("Maaf, kode barang tidak ada", txtKode) > > txtKode.SetFocus() > > END IF > > ELSE IF key.Code = key.Tab THEN > > txtKode.SetFocus() > > END IF > > > > END > > > > - run > > - test your Ballon, and it'll error on the second appearance. > > > > Here's the trace: > > > > silent at ...1792...:~/tmp/Gambas2Demo$ gbc2 -agt > > OK > > silent at ...1792...:~/tmp/Gambas2Demo$ gdb gbx2 > > GNU gdb 6.6-debian > > Copyright (C) 2006 Free Software Foundation, Inc. > > GDB is free software, covered by the GNU General Public License, and you > > are welcome to change it and/or distribute copies of it under certain > > conditions. > > Type "show copying" to see the conditions. > > There is absolutely no warranty for GDB. Type "show warranty" for > details. > > This GDB was configured as "i486-linux-gnu"... > > Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". > > (gdb) set args -p > > (gdb) run > > Starting program: /usr/local/bin/gbx2 -p > > [Thread debugging using libthread_db enabled] > > [New Thread -1209948496 (LWP 16947)] > > Error while reading shared library symbols: > > Cannot find new threads: generic error > > /usr/share/themes/Blubuntu/gtk-2.0/gtkrc:169: Clearlooks configuration > > option "progressbarstyle" is not supported and will be ignored. > > > > Program received signal SIGSEGV, Segmentation fault. > > [Switching to Thread -1209948496 (LWP 16947)] > > 0x0805e062 in GB_Raise (object=0x8344290, event_id=0, nparam=0) at > > gbx_api.c:544 > > 544 LIST_for_each(obs, OBJECT_event(object)->observer) > > (gdb) bt > > #0 0x0805e062 in GB_Raise (object=0x8344290, event_id=0, nparam=0) at > > gbx_api.c:544 > > #1 0xb7dbb8fe in raise_configure (widget=0x80fb8b0, e=0x80edae8, > > _object=0x8344290) at CWatcher.cpp:57 > > #2 0xb7b351de in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib/libgtk- > > x11-2.0.so.0 > > #3 0xb76f0772 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 > > #4 0xb7701323 in ?? () from /usr/lib/libgobject-2.0.so.0 > > #5 0x083447d8 in ?? () > > #6 0xbfb03440 in ?? () > > #7 0x00000002 in ?? () > > #8 0xbfb0351c in ?? () > > #9 0xbfb0342c in ?? () > > #10 0x0823bf60 in ?? () > > #11 0xbfb0355c in ?? () > > #12 0x00000000 in ?? () > > Thanks for the report, but please send me your full project, or at least > smaller project that raises the same bug. Here's the test project. Just press enter in TextBox and wait a moment and press enter again. -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ -------------- next part -------------- A non-text attachment was scrubbed... Name: BallonTest-0.0.1.tar.gz Type: application/x-gzip Size: 7532 bytes Desc: not available URL: From gunartha.nyoman at ...1817... Fri Jan 18 14:21:46 2008 From: gunartha.nyoman at ...1817... (gunartha) Date: Fri, 18 Jan 2008 05:21:46 -0800 Subject: [Gambas-user] listview (solved) References: <00f201c858e5$ea079660$0f0010b2@...1818...> <976ad9050801162030s6a7c7b3dv44db6bd1ec491d9f@...627...> <002b01c85900$7fdfe1f0$0f0010b2@...1818...> <976ad9050801170055h5b36011bh5a232398fe82ed5d@...627...> <003101c85997$53109ab0$0f0010b2@...1818...> <976ad9050801171723k687a26d8q5e3f826bcb2904bc@...627...> Message-ID: <002a01c859d5$1416be00$0f0010b2@...1818...> Ok, thank you very much Mas Bayu Problem solve ----- Original Message ----- From: "Arief Bayu Purwanto" To: "mailing list for gambas users" Sent: Thursday, January 17, 2008 5:23 PM Subject: Re: [Gambas-user] listview > On 1/18/08, gunartha wrote: >> >> Thank you Mas Bayu for your reply and I am sorry >> I ask you again. >> Refering from your example : how can I select a row in GridView and when >> a >> row have selected I want get return value at colomm ID ( first colomm in >> GridView) >> Example : >> fid fname address >> 1 nyoman bali >> 2 joko surabaya >> 3 agung jakarta >> >> When cursor at fid 2, how to get that value. > > > Basically it's just a matter changing GridView1.Mode = Select.Single > or Mode properties in design mode. > and you can get the value using: > > GridView1[GridView1.Row, GridView1.Column].Text > > > -- > Arief Bayu Purwanto > About : http://about.freelancer.web.id/ > Blog : http://bayu.freelancer.web.id/ > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------------------------------------------------------------------------- > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Jan 18 12:40:00 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 18 Jan 2008 12:40:00 +0100 Subject: [Gambas-user] 64 bits branch merge done Message-ID: <200801181240.00880.gambas@...1...> Hi, The merge has been done. We went back to: * /trunk, that is the next 3.0 version. * /branches/2.0, that is the next 2.1 version. So, from now, if you have to do your 64 bits fixes both in /trunk and in /branches/2.0. Everyone is invited to test the /branches/2.0 on their 64 bits and 32 bits system (because 64 bits changes can break the old code), and report any problem! Regards, -- Benoit Minisini From jaap_cramer at ...67... Fri Jan 18 13:59:28 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Fri, 18 Jan 2008 13:59:28 +0100 Subject: [Gambas-user] difference between QT TextEdit.Select and TextArea.Select In-Reply-To: <20080117193608.M27438@...951...> References: <688afe140801161703r1aaf88f1h42def6c462431a82@...627...> <200801171428.10927.gambas@...1...> <200801171437.46691.gambas@...1...> <20080117193608.M27438@...951...> Message-ID: Hi I found a workaround for this problem. (I have troubles with the mailinglist, couldn't find back the message below, maybe it dint come trough, hope don't make a mess of it...). I use the following function to recalculate the StringPos in the RichText-string (s as string) from given CursorPosition. PUBLIC FUNCTION iTags(s AS String, CursorPos AS Integer) AS Integer DIM i, q AS Integer DIM c AS Boolean i = 1 q = 0 DO INC q IF string.Mid(s, q, 1) = "<" THEN c = TRUE IF c THEN INC i IF string.Mid(s, q, 1) = ">" THEN c = FALSE LOOP UNTIL i = q - CursorPos OR q = string.Len(s) RETURN i END ---------------------------------------- > From: jaap_cramer at ...67... > To: gambas-user at lists.sourceforge.net > Subject: difference between QT TextEdit.Select and TextArea.Select > Date: Thu, 17 Jan 2008 21:22:22 +0100 > > > HI > > I discovered a inconvenient difference between the behavior of Method SELECT in TextEdit and TextArea. By a TextArea properties like POS can be used in the method SELECT. If the text contains Unicode the value of the cursor-position can be recalculated to the position in the string. This is not the case in TextEdit. Because TextEdit contains HTML-tags, the cursor position cannot be used, or recalculated to a position in the string. > Is this an error in TextEdit.Select; I want to select text, not positions... > > I added a example snippet to illustrate. The following code is called on tBible_MouseUp(). If one changed the position of the cursor, the purpose is to select the word on a single click. The following snippet works fine if tBible is a TextArea. I want to add some markups, so I decided to change tBible into a TextEdit. > > DIM iPos, iStart, iEnd AS Integer > DIM sB AS String ' a temp container for the contents of tBible.text > > sB = tBible.Text & " " 'end of text and space, so each word is surrounded by spaces > sB = Replace(sB, "\n", " ") 'consider a return as a space > sB = Replace(sB, "?", " ") 'consider 'maqqef' (the high division-marker) as space > > IF tBible.Selection.Length = 0 THEN 'if there is already a selection, then don't change it! > iPos = tBible.Pos 'Position of the CURSOR, not string, so I don't need to recalculate it from a unicode string > iStart = String.RInStr(sB, " ", iPos) 'working with unicode, so recalculate values > iEnd = String.InStr(sB, " ", iPos) - 1 > tBible.Select(iStart, iEnd - iStart) > ENDIF > > > grt > Jaap > > Ubuntu 7.10, Gambas 2.0.0 > _________________________________________________________________ > Probeer Live Search: de zoekmachine van de makers van MSN! > http://www.live.com/?searchOnly=true _________________________________________________________________ De mooiste afbeeldingen van Angelina Jolie vind je met Live Search http://search.live.com/images/results.aspx?q=angelina%20jolie&FORM=MIINTM From rohnny at ...1248... Fri Jan 18 18:32:14 2008 From: rohnny at ...1248... (R. Stormo) Date: Fri, 18 Jan 2008 09:32:14 -0800 (PST) Subject: [Gambas-user] 64 bits branch merge done In-Reply-To: <200801181240.00880.gambas@...1...> References: <200801181240.00880.gambas@...1...> Message-ID: <14954014.post@...1379...> Benoit Minisini wrote: > > Hi, > > The merge has been done. We went back to: > > * /trunk, that is the next 3.0 version. > > * /branches/2.0, that is the next 2.1 version. > > So, from now, if you have to do your 64 bits fixes both in /trunk and > in /branches/2.0. > > Everyone is invited to test the /branches/2.0 on their 64 bits and 32 bits > system (because 64 bits changes can break the old code), and report any > problem! > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Did a fresh download from Think it was rev.1011 svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 ./ ./reconf-all ./configure make and got this error --snip gbx_extern.c: In function ?EXTERN_call?: gbx_extern.c:244: error: ?ffi_cif? undeclared (first use in this function) gbx_extern.c:244: error: (Each undeclared identifier is reported only once gbx_extern.c:244: error: for each function it appears in.) gbx_extern.c:244: error: expected ?;? before ?cif? gbx_extern.c:245: error: ?ffi_type? undeclared (first use in this function) gbx_extern.c:245: error: ?types? undeclared (first use in this function) gbx_extern.c:246: error: ?rtype? undeclared (first use in this function) gbx_extern.c:282: error: ?_to_ffi_type? undeclared (first use in this function) gbx_extern.c:338: warning: implicit declaration of function ?ffi_prep_cif? gbx_extern.c:338: error: ?cif? undeclared (first use in this function) gbx_extern.c:338: error: ?FFI_DEFAULT_ABI? undeclared (first use in this function) gbx_extern.c:338: error: ?FFI_OK? undeclared (first use in this function) gbx_extern.c:341: warning: implicit declaration of function ?ffi_call? make[4]: *** [gbx2-gbx_extern.o] Error 1 --snap Ubuntu Gutsy (32) regards Rohnny My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/64-bits-branch-merge-done-tp14951491p14954014.html Sent from the gambas-user mailing list archive at Nabble.com. From paolo.fagni at ...626... Fri Jan 18 19:55:36 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Fri, 18 Jan 2008 19:55:36 +0100 Subject: [Gambas-user] DataBrowser and SQL views Message-ID: <560cf1ab0801181055j19670486h10893a485ef5876f@...627...> Hello, I'm experimenting with DataSource and DataBrowser, I can successfully use the DataBrowser to print rows from a table but not from a persistent view with SQLite. Gambas (latest version available) tells me that the table xxx doesn't exist when I set DataSource1.Table = "pView" Is there a way to use views with DataSource and DataBrowser? Or at least to use Joined tables? Since I can do a "SELECT * FROM pView" with my database connection it shouldn't be impossible...I guess :) By the way, what's the correct way to get data from the currently selected row in a DataBrowser? Thank you. Cheers, -- Paolo Fagni From gambas at ...1... Fri Jan 18 21:10:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 18 Jan 2008 21:10:43 +0100 Subject: [Gambas-user] DataBrowser and SQL views In-Reply-To: <560cf1ab0801181055j19670486h10893a485ef5876f@...627...> References: <560cf1ab0801181055j19670486h10893a485ef5876f@...627...> Message-ID: <200801182110.44271.gambas@...1...> On vendredi 18 janvier 2008, Paolo Fagni wrote: > Hello, > > I'm experimenting with DataSource and DataBrowser, I can successfully use > the DataBrowser to print rows from a table but not from a persistent view > with SQLite. > > Gambas (latest version available) tells me that the table xxx doesn't exist > when I set > > DataSource1.Table = "pView" > > Is there a way to use views with DataSource and DataBrowser? Or at least to > use Joined tables? Since I can do a "SELECT * FROM pView" with my database > connection it shouldn't be impossible...I guess :) > > By the way, what's the correct way to get data from the currently selected > row in a DataBrowser? > > Thank you. > > Cheers, I'm afraid there is no view support at the moment in the database component. To get the current data of a DataBrowser, you must ask to its DataSource. For example, if MyDataBrowser is inside MyDataSource, then you should do: PRINT MyDataSource[FieldName] You have method to move the cursor of the DataSource: MoveFirst, MoveLast, MoveTo... Other methods change its editable state: Create, Save, Cancel... Actually all these methods are called by the DataBrowser toolbar. Regards, -- Benoit Minisini From cheguebeara at ...626... Fri Jan 18 21:14:22 2008 From: cheguebeara at ...626... (Che) Date: Fri, 18 Jan 2008 15:14:22 -0500 Subject: [Gambas-user] Context Menu for WebBrowser component In-Reply-To: <560cf1ab0801181055j19670486h10893a485ef5876f@...627...> References: <560cf1ab0801181055j19670486h10893a485ef5876f@...627...> Message-ID: <1200687262.26431.8.camel@...1835...> Hi, New to Gambas - programmer since 1976... I am building a freeform style writer's organizer / manuscript editor (LGPL - screenshot at: http://mark.indigoblues.ca/images/op2-012.jpg and http://mark.indigoblues.ca/images/op2-008.jpg if anyone is interested...) as a way to learn Gambas and have included the WebBrowser component in a form for web based research. So far so good. What I am wondering is is there a way to create a context menu that calls the inherent contexts of the kde browser, i.e. bookmark this page etc. or should I be trying to shell out to Firefox or default browser instead of using the WebBrowser component/class? Not a lot of info on WebBrowser, context menu's or mouse right click in Gambas available on the web... :( BTW the rest of the app is rockin' and rollin' - even got the print functions working... :) Thanks, Mark From gambas at ...1... Fri Jan 18 21:42:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 18 Jan 2008 21:42:45 +0100 Subject: [Gambas-user] Context Menu for WebBrowser component In-Reply-To: <1200687262.26431.8.camel@...1835...> References: <560cf1ab0801181055j19670486h10893a485ef5876f@...627...> <1200687262.26431.8.camel@...1835...> Message-ID: <200801182142.46039.gambas@...1...> On vendredi 18 janvier 2008, Che wrote: > Hi, > > New to Gambas - programmer since 1976... > > I am building a freeform style writer's organizer / manuscript editor > (LGPL - screenshot at: http://mark.indigoblues.ca/images/op2-012.jpg and > http://mark.indigoblues.ca/images/op2-008.jpg if anyone is > interested...) as a way to learn Gambas and have included the WebBrowser > component in a form for web based research. So far so good. > > What I am wondering is is there a way to create a context menu that > calls the inherent contexts of the kde browser, i.e. bookmark this page > etc. or should I be trying to shell out to Firefox or default browser > instead of using the WebBrowser component/class? > > Not a lot of info on WebBrowser, context menu's or mouse right click in > Gambas available on the web... :( > > BTW the rest of the app is rockin' and rollin' - even got the print > functions working... :) > > Thanks, > Mark > WebBrowser is based on KHTML, which is a KDE 'KPart' that "only" deals with HTML, Javascript, and Java. Konqueror is a KPart container, it's him that manages the contextual menus. You can run Konqueror externally, or better the gb.desktop component for that. If you really need Konqueror "inside" your application, you can try to play with the Embedder control and embeds the window of a running Konqueror inside your application. Regards, -- Benoit Minisini From gambas at ...1... Fri Jan 18 21:47:23 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 18 Jan 2008 21:47:23 +0100 Subject: [Gambas-user] difference between QT TextEdit.Select and TextArea.Select In-Reply-To: References: <688afe140801161703r1aaf88f1h42def6c462431a82@...627...> <20080117193608.M27438@...951...> Message-ID: <200801182147.23458.gambas@...1...> On jeudi 17 janvier 2008, Jaap Cramer wrote: > HI > > I discovered a inconvenient difference between the behavior of Method > SELECT in TextEdit and TextArea. By a TextArea properties like POS can be > used in the method SELECT. If the text contains Unicode the value of the > cursor-position can be recalculated to the position in the string. This is > not the case in TextEdit. Because TextEdit contains HTML-tags, the cursor > position cannot be used, or recalculated to a position in the string. Is > this an error in TextEdit.Select; I want to select text, not positions... > > I added a example snippet to illustrate. The following code is called on > tBible_MouseUp(). If one changed the position of the cursor, the purpose is > to select the word on a single click. The following snippet works fine if > tBible is a TextArea. I want to add some markups, so I decided to change > tBible into a TextEdit. > > DIM iPos, iStart, iEnd AS Integer > DIM sB AS String ' a temp container for the contents of > tBible.text > > sB = tBible.Text & " " 'end of text and space, so each word is > surrounded by spaces sB = Replace(sB, "\n", " ") 'consider a return as a > space > sB = Replace(sB, "?", " ") 'consider 'maqqef' (the high > division-marker) as space > > IF tBible.Selection.Length = 0 THEN 'if there is already a > selection, then don't change it! iPos = tBible.Pos > 'Position of the CURSOR, not string, so I don't need to > recalculate it from a unicode string iStart = String.RInStr(sB, " ", iPos) > 'working with unicode, so recalculate values iEnd = > String.InStr(sB, " ", iPos) - 1 > tBible.Select(iStart, iEnd - iStart) > ENDIF > > > grt > Jaap > > Ubuntu 7.10, Gambas 2.0.0 There is really a problem with the TextEdit interface, and it comes from the way the QT widget it is based on works. Maybe I should try to split the Text property, and have: * Text for returning the text. * RichText for returning the text with the markups. * Selection.Text for returning the selected text. * Selection.RichText for returning the selected text with the markups. But I don't know if it is possible. Stay tune... -- Benoit Minisini From cheguebeara at ...626... Fri Jan 18 22:37:30 2008 From: cheguebeara at ...626... (Che) Date: Fri, 18 Jan 2008 16:37:30 -0500 Subject: [Gambas-user] Context Menu for WebBrowser component In-Reply-To: <200801182142.46039.gambas@...1...> References: <560cf1ab0801181055j19670486h10893a485ef5876f@...627...> <1200687262.26431.8.camel@...1835...> <200801182142.46039.gambas@...1...> Message-ID: <1200692251.26740.3.camel@...1835...> Ahhh... bingo! Many thanks! I was loading the WebBrowser component for just that one function and is much nicer to use the desktop.open to shell the url to my default browser... Merci! Mark (of course it helped to load gb.desktop into the project... :P lol) On Fri, 2008-01-18 at 21:42 +0100, Benoit Minisini wrote: > On vendredi 18 janvier 2008, Che wrote: > > Hi, > > > > New to Gambas - programmer since 1976... > > > > I am building a freeform style writer's organizer / manuscript editor > > (LGPL - screenshot at: http://mark.indigoblues.ca/images/op2-012.jpg and > > http://mark.indigoblues.ca/images/op2-008.jpg if anyone is > > interested...) as a way to learn Gambas and have included the WebBrowser > > component in a form for web based research. So far so good. > > > > What I am wondering is is there a way to create a context menu that > > calls the inherent contexts of the kde browser, i.e. bookmark this page > > etc. or should I be trying to shell out to Firefox or default browser > > instead of using the WebBrowser component/class? > > > > Not a lot of info on WebBrowser, context menu's or mouse right click in > > Gambas available on the web... :( > > > > BTW the rest of the app is rockin' and rollin' - even got the print > > functions working... :) > > > > Thanks, > > Mark > > > > WebBrowser is based on KHTML, which is a KDE 'KPart' that "only" deals with > HTML, Javascript, and Java. > > Konqueror is a KPart container, it's him that manages the contextual menus. > > You can run Konqueror externally, or better the gb.desktop component for that. > If you really need Konqueror "inside" your application, you can try to play > with the Embedder control and embeds the window of a running Konqueror inside > your application. > > Regards, > From gambas at ...1... Fri Jan 18 22:40:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 18 Jan 2008 22:40:56 +0100 Subject: [Gambas-user] difference between QT TextEdit.Select and TextArea.Select In-Reply-To: <200801182147.23458.gambas@...1...> References: <688afe140801161703r1aaf88f1h42def6c462431a82@...627...> <200801182147.23458.gambas@...1...> Message-ID: <200801182240.56573.gambas@...1...> On vendredi 18 janvier 2008, Benoit Minisini wrote: > On jeudi 17 janvier 2008, Jaap Cramer wrote: > > HI > > > > I discovered a inconvenient difference between the behavior of Method > > SELECT in TextEdit and TextArea. By a TextArea properties like POS can be > > used in the method SELECT. If the text contains Unicode the value of the > > cursor-position can be recalculated to the position in the string. This > > is not the case in TextEdit. Because TextEdit contains HTML-tags, the > > cursor position cannot be used, or recalculated to a position in the > > string. Is this an error in TextEdit.Select; I want to select text, not > > positions... > > > > I added a example snippet to illustrate. The following code is called on > > tBible_MouseUp(). If one changed the position of the cursor, the purpose > > is to select the word on a single click. The following snippet works fine > > if tBible is a TextArea. I want to add some markups, so I decided to > > change tBible into a TextEdit. > > > > DIM iPos, iStart, iEnd AS Integer > > DIM sB AS String ' a temp container for the contents of > > tBible.text > > > > sB = tBible.Text & " " 'end of text and space, so each word > > is surrounded by spaces sB = Replace(sB, "\n", " ") 'consider a return > > as a space > > sB = Replace(sB, "?", " ") 'consider 'maqqef' (the high > > division-marker) as space > > > > IF tBible.Selection.Length = 0 THEN 'if there is already a > > selection, then don't change it! iPos = tBible.Pos > > 'Position of the CURSOR, not string, so I don't need to > > recalculate it from a unicode string iStart = String.RInStr(sB, " ", > > iPos) 'working with unicode, so recalculate values iEnd = > > String.InStr(sB, " ", iPos) - 1 > > tBible.Select(iStart, iEnd - iStart) > > ENDIF > > > > > > grt > > Jaap > > > > Ubuntu 7.10, Gambas 2.0.0 > > There is really a problem with the TextEdit interface, and it comes from > the way the QT widget it is based on works. > > Maybe I should try to split the Text property, and have: > * Text for returning the text. > * RichText for returning the text with the markups. > * Selection.Text for returning the selected text. > * Selection.RichText for returning the selected text with the markups. > > But I don't know if it is possible. Stay tune... It works. But you get it only in the development version, not in the stable one. -- Benoit Minisini From dcamposf at ...626... Fri Jan 18 22:52:12 2008 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 18 Jan 2008 22:52:12 +0100 Subject: [Gambas-user] 64 bits branch merge done In-Reply-To: <14954014.post@...1379...> References: <200801181240.00880.gambas@...1...> <14954014.post@...1379...> Message-ID: <7259b5ae0801181352x50b5dd6fvc4d87da8b9a3e57b@...627...> > > ./reconf-all > ./configure > make > and got this error > Me too, Benoit should add libffi detection. At this moment just do: apt-get install libffi4-dev Daniel From paolo.fagni at ...626... Fri Jan 18 23:06:33 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Fri, 18 Jan 2008 23:06:33 +0100 Subject: [Gambas-user] DataBrowser and SQL views In-Reply-To: <200801182110.44271.gambas@...1...> References: <560cf1ab0801181055j19670486h10893a485ef5876f@...627...> <200801182110.44271.gambas@...1...> Message-ID: <560cf1ab0801181406o5625b521sec9faae949ebef0d@...627...> On Jan 18, 2008 9:10 PM, Benoit Minisini wrote: > On vendredi 18 janvier 2008, Paolo Fagni wrote: > > Hello, > > > > I'm experimenting with DataSource and DataBrowser, I can successfully > use > > the DataBrowser to print rows from a table but not from a persistent > view > > with SQLite. > > > > Gambas (latest version available) tells me that the table xxx doesn't > exist > > when I set > > > > DataSource1.Table = "pView" > > > > Is there a way to use views with DataSource and DataBrowser? Or at least > to > > use Joined tables? Since I can do a "SELECT * FROM pView" with my > database > > connection it shouldn't be impossible...I guess :) > > > > By the way, what's the correct way to get data from the currently > selected > > row in a DataBrowser? > > > > Thank you. > > > > Cheers, > > I'm afraid there is no view support at the moment in the database > component. > > To get the current data of a DataBrowser, you must ask to its DataSource. > For > example, if MyDataBrowser is inside MyDataSource, then you should do: > > PRINT MyDataSource[FieldName] > > You have method to move the cursor of the DataSource: MoveFirst, MoveLast, > MoveTo... Other methods change its editable state: Create, Save, Cancel... > Actually all these methods are called by the DataBrowser toolbar. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Thank you for your clear explanation, and of course for your wonderful work on gambas. May I ask if view support is planned for some future release? Will it be hard/time consuming to implement? Thank you :) -- Paolo Fagni From gambas at ...1... Fri Jan 18 23:11:42 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 18 Jan 2008 23:11:42 +0100 Subject: [Gambas-user] DataBrowser and SQL views In-Reply-To: <560cf1ab0801181406o5625b521sec9faae949ebef0d@...627...> References: <560cf1ab0801181055j19670486h10893a485ef5876f@...627...> <200801182110.44271.gambas@...1...> <560cf1ab0801181406o5625b521sec9faae949ebef0d@...627...> Message-ID: <200801182311.42801.gambas@...1...> On vendredi 18 janvier 2008, Paolo Fagni wrote: > > Thank you for your clear explanation, and of course for your wonderful work > on gambas. > > May I ask if view support is planned for some future release? Yes. I think I wrote that in the TODO file of the source package somewhere. > Will it be > hard/time consuming to implement? I don't know. Normally, views act exactly like tables, but I must be sure for all database backends! > > Thank you :) You're welcome. -- Benoit Minisini From paolo.fagni at ...626... Sat Jan 19 02:00:34 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Sat, 19 Jan 2008 02:00:34 +0100 Subject: [Gambas-user] Rename DataBrowser column header elements Message-ID: <560cf1ab0801181700s576741cfte52195c0277dce44@...627...> Hello again, this is the second post in a few hours, sorry about that but I can't figure out this thing :) I would like to rename the header title in a DataBrowser: since my project is translated in multiple languages and the database's table names are in a single language (and often not user-friendly). Any help would be appreciated. Thank you. Cheers, -- Paolo Fagni From gambas at ...1... Sat Jan 19 02:06:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 19 Jan 2008 02:06:06 +0100 Subject: [Gambas-user] Rename DataBrowser column header elements In-Reply-To: <560cf1ab0801181700s576741cfte52195c0277dce44@...627...> References: <560cf1ab0801181700s576741cfte52195c0277dce44@...627...> Message-ID: <200801190206.06794.gambas@...1...> On samedi 19 janvier 2008, Paolo Fagni wrote: > Hello again, this is the second post in a few hours, sorry about that but I > can't figure out this thing :) > > I would like to rename the header title in a DataBrowser: since my project > is translated in multiple languages and the database's table names are in a > single language (and often not user-friendly). Any help would be > appreciated. > > Thank you. > > Cheers, Use the DataBrowser.GridView property, that returns the GridView used by the control. Regards, -- Benoit Minisini From paolo.fagni at ...626... Sat Jan 19 02:19:19 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Sat, 19 Jan 2008 02:19:19 +0100 Subject: [Gambas-user] Rename DataBrowser column header elements In-Reply-To: <200801190206.06794.gambas@...1...> References: <560cf1ab0801181700s576741cfte52195c0277dce44@...627...> <200801190206.06794.gambas@...1...> Message-ID: <560cf1ab0801181719x2eee88bjf2c7246b18146c6@...627...> On Jan 19, 2008 2:06 AM, Benoit Minisini wrote: > > Use the DataBrowser.GridView property, that returns the GridView used by > the > control. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Thank you, I just looked at Database example provided with gambas and found the answer, sorry about that, too much coding for me today :) -- Paolo Fagni From gambas.fr at ...626... Sat Jan 19 10:03:00 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 19 Jan 2008 10:03:00 +0100 Subject: [Gambas-user] Rename DataBrowser column header elements In-Reply-To: <200801190206.06794.gambas@...1...> References: <560cf1ab0801181700s576741cfte52195c0277dce44@...627...> <200801190206.06794.gambas@...1...> Message-ID: <200801191003.01201.gambas.fr@...626...> Le Saturday 19 January 2008 02:06:06 Benoit Minisini, vous avez ?crit?: > On samedi 19 janvier 2008, Paolo Fagni wrote: > > Hello again, this is the second post in a few hours, sorry about that but > > I can't figure out this thing :) > > > > I would like to rename the header title in a DataBrowser: since my > > project is translated in multiple languages and the database's table > > names are in a single language (and often not user-friendly). Any help > > would be appreciated. > > > > Thank you. > > > > Cheers, > > Use the DataBrowser.GridView property, that returns the GridView used by > the control. > > Regards, I don't know if it's better but in the last datagrid syt?me i've done for myself, i've put a property Display that is a string array. This property set the grid visible header... and if the content is not set or the array is more short, the datafield entry is used. It's just a visual shortcut... and maybe some able to be putted in the property form... (As more it is visual as more it is quick)... Fabien From francesco.difusco at ...69... Sat Jan 19 12:57:57 2008 From: francesco.difusco at ...69... (difusco_francesco@tiscali.it) Date: Sat, 19 Jan 2008 12:57:57 +0100 Subject: [Gambas-user] 64 bits branch merge done Message-ID: > > > > ./reconf-all > > ./configure > > make > > and got this error > > > > Me too, Benoit should add libffi detection. At this moment just do: > > apt-get install libffi4-dev > > Daniel when I do make, I get a lot of errors, this is the first one gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl -DGBX_INFO -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -O0 -MT gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c gbx_c_class.c -fPIC -DPIC -o .libs/gb_la-gbx_c_class.o gbx_c_class.c:866: error: initializer element is not computable at load time gbx_c_class.c:866: error: (near initialization for 'NATIVE_Symbol[3].val1') gbx_c_class.c:867: error: initializer element is not computable at load time gbx_c_class.c:867: error: (near initialization for 'NATIVE_Symbol[4].val1') I have installed libffi4 Francesco From jscops at ...11... Sat Jan 19 14:53:36 2008 From: jscops at ...11... (Jacky) Date: Sat, 19 Jan 2008 14:53:36 +0100 Subject: [Gambas-user] Float and decimal in MySQL Message-ID: <200801191453.36629.jscops@...11...> Hello, After some problem with fields of type Float in MySQL here is something that could interest some of you. "MySQL performs rounding when storing values, so if you insert 999.00009 into a FLOAT(7,4) column, the approximate result is 999.0001." It is preferable to use a field of type DECIMAL as recommended in the material of MySQL: "The DECIMAL and NUMERIC data types are used to store exact numeric data values. In MySQL, NUMERIC is implemented as DECIMAL. These types are used to store values for which it is important to preserve exact precision, for example with monetary data". Jacky From horechuk at ...981... Sat Jan 19 16:32:34 2008 From: horechuk at ...981... (Paul Horechuk) Date: Sat, 19 Jan 2008 10:32:34 -0500 Subject: [Gambas-user] 64bit make install core dump In-Reply-To: <200801140834.10793.gambas@...1...> References: <200801131732.14516.horechuk@...981...> <200801140834.10793.gambas@...1...> Message-ID: <200801191032.35074.horechuk@...981...> On January 14, 2008 02:34:10 am Benoit Minisini wrote: > On dimanche 13 janvier 2008, Paul Horechuk wrote: > > using: Kubuntu 7.04 64 bit and svn 962, I get all the way through to make > > install and get this: > > > > make install > > > > > > make[4]: Nothing to be done for `install-exec-am'. > > test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" > > /usr/bin/install -c -m > > 644 'gb.gtk.component' '/usr/local/lib/gambas3/gb.gtk.component' > > test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" > > /usr/bin/install -c -m > > 644 'gb.gtk.component' '/usr/local/lib/gambas3/gb.gtk.component' > > test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" > > /bin/sh ../libtool --mode=install /usr/bin/install -c 'gb.gtk.la' > > '/usr/local/lib/gambas3/gb.gtk.la' /usr/bin/install -c > > .libs/gb.gtk.so.0.0.0 /usr/local/lib/gambas3/gb.gtk.so.0.0.0 (cd > > /usr/local/lib/gambas3 && rm -f gb.gtk.so.0 && ln -s gb.gtk.so.0.0.0 > > gb.gtk.so.0) > > (cd /usr/local/lib/gambas3 && rm -f gb.gtk.so && ln -s gb.gtk.so.0.0.0 > > gb.gtk.so) > > /usr/bin/install -c .libs/gb.gtk.lai /usr/local/lib/gambas3/gb.gtk.la > > PATH="$PATH:/sbin" ldconfig -n /usr/local/lib/gambas3 > > ---------------------------------------------------------------------- > > Libraries have been installed in: > > /usr/local/lib/gambas3 > > > > If you ever happen to want to link against installed libraries > > in a given directory, LIBDIR, you must either use libtool, and > > specify the full pathname of the library, or use the `-LLIBDIR' > > flag during linking and do at least one of the following: > > - add LIBDIR to the `LD_LIBRARY_PATH' environment variable > > during execution > > - add LIBDIR to the `LD_RUN_PATH' environment variable > > during linking > > - use the `-Wl,--rpath -Wl,LIBDIR' linker flag > > - have your system administrator add LIBDIR to `/etc/ld.so.conf' > > > > See any operating system documentation about shared libraries for > > more information, such as the ld(1) and ld.so(8) manual pages. > > ---------------------------------------------------------------------- > > make install-data-hook > > make[5]: Entering directory > > `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' > > Compiling the gb.gtk project... > > gb.gtk > > /bin/sh: line 10: 18586 Segmentation fault (core > > dumped) /usr/local/bin/gbi3 -r /usr/local gb.gtk > > /home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src/gb.gtk/Action.class:15 > >: Unknown identifier: Control > > > > Creating the information files for gb.gtk component... > > gb.gtk > > make[5]: *** [install-data-hook] Segmentation fault (core dumped) > > make[5]: Leaving directory > > `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' > > make[4]: *** [install-data-am] Error 2 > > make[4]: Leaving directory > > `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' > > make[3]: *** [install-am] Error 2 > > make[3]: Leaving directory > > `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' > > make[2]: *** [install-recursive] Error 1 > > make[2]: Leaving directory > > `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk/src' > > make[1]: *** [install-recursive] Error 1 > > make[1]: Leaving directory > > `/home/phorechuk/Downloads/Gambas/64bits/gb.gtk' make: *** > > [install-recursive] Error 1 > > > > > > Any ideas? What more do you need? > > Yes. I am aware of that. > > Rob Kudla granted me an ssh access to a 64 bits system, so I will be able > to compile and debug directly on it soon. > > Anyway, can you post the result of your 64 bits compilation on the > developer mailing-list instead of this one? > > Regards, Thanks for the response. I will do that for future problems. -- -- Paul Horechuk Think Free Use Open Sourec Software From gambas at ...1... Sat Jan 19 18:55:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 19 Jan 2008 18:55:58 +0100 Subject: [Gambas-user] Arguments passed by reference Message-ID: <200801191855.58875.gambas@...1...> Hi, I have finally implemented the ability to pass arguments by reference in 'trunk'. To do that, just add a '@' character before the argument. For example: SplitName(FullName, @FirstName, @LastName) Now here are the caveats: * This is experimental. * You can only use this syntax when calling Gambas code, not native code. * This is slower than passing arguments by value. I did that mainly to help porting VB projects to Gambas. Enjoy it! Regards, -- Benoit Minisini From paolo.fagni at ...626... Sat Jan 19 22:06:24 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Sat, 19 Jan 2008 22:06:24 +0100 Subject: [Gambas-user] Automatically sort DataBrowser column Message-ID: <560cf1ab0801191306n6b4f975fpa390edd4d85bbcfd@...627...> Hello, When displaying data in a DataBrowser, I guess results are ordered by primary key (please correct me if I'm wrong). Is there a way to use another field as in "ORDER BY" SQL statement? Or maybe a way to tell the GridView to immediately sort by a given column after the data has been inserted. I would like to have data sorted by field X that is not the classic `id`, without user intervention. Thank you for your help. -- Paolo Fagni From gambas at ...1... Sat Jan 19 22:36:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 19 Jan 2008 22:36:32 +0100 Subject: [Gambas-user] Automatically sort DataBrowser column In-Reply-To: <560cf1ab0801191306n6b4f975fpa390edd4d85bbcfd@...627...> References: <560cf1ab0801191306n6b4f975fpa390edd4d85bbcfd@...627...> Message-ID: <200801192236.32386.gambas@...1...> On samedi 19 janvier 2008, Paolo Fagni wrote: > Hello, > > When displaying data in a DataBrowser, I guess results are ordered by > primary key (please correct me if I'm wrong). Is there a way to use another > field as in "ORDER BY" SQL statement? Or maybe a way to tell the GridView > to immediately sort by a given column after the data has been inserted. I > would like to have data sorted by field X that is not the classic `id`, > without user intervention. > > Thank you for your help. Just set the Sort property of the DataSource to the field name of the sort. Regards, -- Benoit Minisini From nxgtrturbo at ...626... Sat Jan 19 23:35:54 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Sat, 19 Jan 2008 14:35:54 -0800 Subject: [Gambas-user] HOW TO MOVE IN DATASOURCE Message-ID: <688afe140801191435k518e6199m5e42db5070625ec7@...627...> Hi, hope somebody help me with this one, is there a way to move the datasource row, to a given record, but not just by index, I mean: I can do in MySQL console something like this: select code from colors where person = "someone" so, I can do: resultado = conexion.Exec (select code from colors where person = "someone") Then resultado!code will have the record I am looking for, but how do I move my datasource to that record to show it at screen, I know I can do: DataSource1.MoveTo(X) But that its going to work only when "code" is numeric, what about if code es "RD" (for RED color), so, how do I move?, Must I add a numeric field in all my tables to be able to do what I want? -- http://www.cardomain.com/ride/645756 http://nxgtrturbo.googlepages.com/ http://www.fotolog.com/nxgtrturbo/ http://tallerhuertas.googlepages.com/ From gambas at ...1... Sat Jan 19 23:44:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 19 Jan 2008 23:44:34 +0100 Subject: [Gambas-user] HOW TO MOVE IN DATASOURCE In-Reply-To: <688afe140801191435k518e6199m5e42db5070625ec7@...627...> References: <688afe140801191435k518e6199m5e42db5070625ec7@...627...> Message-ID: <200801192344.34380.gambas@...1...> On samedi 19 janvier 2008, Nx GT-R BOY wrote: > Hi, hope somebody help me with this one, is there a way to move the > datasource row, to a given record, but not just by index, I mean: > > I can do in MySQL console something like this: > select code from colors where person = "someone" > > so, I can do: > resultado = conexion.Exec (select code from colors where person = > "someone") > > Then > resultado!code will have the record I am looking for, but how do I move my > datasource to that record to show it at screen, I know I can do: > > DataSource1.MoveTo(X) > > But that its going to work only when "code" is numeric, what about if code > es "RD" (for RED color), so, how do I move?, Must I add a numeric field in > all my tables to be able to do what I want? MoveTo(X) moves to the Xth record of the underlying Result object of the DataSource. It is not related at all with a possible numeric key. But I don't know if it is possible in SQL to find the order of a specific query inside another query. It's beyond my sql skills... If anybody have an idea? Otherwise, you have to do the search yourself, one record by one record. Really stupid, but if there is no other solution... Regards, -- Benoit Minisini From gambas at ...1... Sat Jan 19 23:47:22 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 19 Jan 2008 23:47:22 +0100 Subject: [Gambas-user] Double DataSource In-Reply-To: <688afe140801171750n6ce731cax6f92a8057e23985f@...627...> References: <688afe140801171750n6ce731cax6f92a8057e23985f@...627...> Message-ID: <200801192347.22544.gambas@...1...> On vendredi 18 janvier 2008, Nx GT-R BOY wrote: > A days ago I got a "Void Key" (known bug), but I change my database > structure, and now its getting better, what I am trying to do is this: > > 1. > > I want a table, lets call "groups". where I can add profiles like > "root", "not root", everything goes ok, I don't have problems with that. > 2. > > I want a table, lest call "users", where I would like to add user > information like "name" and "password", and let the user select ONLY the > items that have been recorded under the table "groups" (something pretty > match the same than the "color" @ gambas examples) > > Theres no code here (talking about high level code), just change > properties, just to check I was doing everything OK, I add to my project > the Ftest form from the database project, and of course, change the > properties, to work with my database, and I got the SAME behavior, that > what I do by myself, so I started to think something about my DB. > > The behavior I got, its that What is ACTIVE in the form is the > DataSource/DataBrowse of "groups", and nothing about "users", I can add > users, but I cant see them, nothing related with "users" works, just what > is related with "groups" > > The project code, its not important I guess, since the same happens with > the Database example, so, maybe the important its the structure of my DB, I > worked with DBDesigner 4, and this is my script file (part of it) > > NOTE: comparing my project to the database example @ gambas: > groups = colors > users = test > > By the way, pleas tell me the way I should send my code. > > CREATE TABLE grupos ( > clave VARCHAR(20) NOT NULL, > nombre VARCHAR(20) NOT NULL, > empleados TINYINT NULL, > vacaciones TINYINT NULL, > tipoproveedor TINYINT NULL, > nomina TINYINT NULL, > egresos TINYINT NULL, > proveedores TINYINT NULL, > ingresos TINYINT NULL, > clientes TINYINT NULL, > asistencia TINYINT NULL, > inventario TINYINT NULL, > tipomateriales TINYINT NULL, > grupos TINYINT NULL, > usuarios TINYINT NULL, > puestos TINYINT NULL, > PRIMARY KEY(clave) > ); > > CREATE TABLE usuarios ( > nombre VARCHAR(20) NOT NULL, > grupos_clave VARCHAR(20) NOT NULL, > clave VARCHAR(20) NOT NULL, > PRIMARY KEY(nombre), > INDEX usuarios_FKIndex1(grupos_clave), > FOREIGN KEY(grupos_clave) > REFERENCES grupos(clave) > ON DELETE NO ACTION > ON UPDATE NO ACTION > ); > > (By the way, I am Spanish native speaker, so the design is in Spanish) > > Regards, Nx GT-R (nxgtrturbo at ...626... Please send your project anyway, otherwise I can't help you. Regards, -- Benoit Minisini From o.s.p at ...69... Sun Jan 20 02:29:58 2008 From: o.s.p at ...69... (o.s.p@libero.it) Date: Sun, 20 Jan 2008 02:29:58 +0100 Subject: [Gambas-user] no fonts at all Message-ID: hallo! i'm trying to compile the svn 1017 everything seems ok but when i run the ide no chars are displayed but only sqares ... i've tryed to run some precompiled examples but many show this error: "No fonts found; this probably means that the fontconfig library is not correctly configured. You may need to edit the fonts.conf configuration file. More information about fontconfig can be found in the fontconfig(3) manual page and on http://fontconfig.org" this is the only app with this error and seems that the fontconfig configuration files are correct. my distro is frugalware 0.8. what can i check? thanks From peterdatkins at ...1073... Sun Jan 20 11:28:37 2008 From: peterdatkins at ...1073... (Peterdatkins) Date: Sun, 20 Jan 2008 02:28:37 -0800 (PST) Subject: [Gambas-user] Database Manager useage Message-ID: <14980242.post@...1379...> I am new to linux and Gambas so if I am doing something stupid please be patient. I have selected Gambas2 from th Synaptic Package Manager in Debian 4. I would like to use the Database Manager in Gambas but I'm not at all sure how it should be used. I have selected it from the tools menu and entered a random keystring 12345678, because it insists on one? Select Server (no chioce) Select New Server (nothing else does anything useful) In the New Connection dialogue I select mysql. Host, I'm not sure, tried all sorts, eg. 'localhost' User and password, again not sure because I don't know what to expect the Database Manager to be doing. Can someone please point me in the right direction? Peter -- View this message in context: http://www.nabble.com/Database-Manager-useage-tp14980242p14980242.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sun Jan 20 11:41:15 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 20 Jan 2008 11:41:15 +0100 Subject: [Gambas-user] HOW TO MOVE IN DATASOURCE In-Reply-To: <200801192344.34380.gambas@...1...> References: <688afe140801191435k518e6199m5e42db5070625ec7@...627...> <200801192344.34380.gambas@...1...> Message-ID: <200801201141.15449.gambas.fr@...626...> Le Saturday 19 January 2008 23:44:34 Benoit Minisini, vous avez ?crit?: > On samedi 19 janvier 2008, Nx GT-R BOY wrote: > > Hi, hope somebody help me with this one, is there a way to move the > > datasource row, to a given record, but not just by index, I mean: > > > > I can do in MySQL console something like this: > > select code from colors where person = "someone" > > > > so, I can do: > > resultado = conexion.Exec (select code from colors where person = > > "someone") > > > > Then > > resultado!code will have the record I am looking for, but how do I move > > my datasource to that record to show it at screen, I know I can do: > > > > DataSource1.MoveTo(X) > > > > But that its going to work only when "code" is numeric, what about if > > code es "RD" (for RED color), so, how do I move?, Must I add a numeric > > field in all my tables to be able to do what I want? > > MoveTo(X) moves to the Xth record of the underlying Result object of the > DataSource. It is not related at all with a possible numeric key. > > But I don't know if it is possible in SQL to find the order of a specific > query inside another query. It's beyond my sql skills... If anybody have an > idea? > moveto... move like in an array... in fact it is not the Field (code) value that is used so never problem to walk throuth the result. You can have an ordered result by using ORDER BY ... and ... DESC keys For Benoit, There is in fact 2 possiblity you can look at : - Sub Request (IN operator) - INTERSECT SELECT DESCRIPTION FROM ARTICLES WHERE NUMERO_ARTICLE IN (SELECT NUMERO_ARTICLE FROM LIGNE_COMMANDES WHERE NUMERO_COMMANDE= '12491'); 'sous requ?te... heu nan ?a doit as ?tre bon SELECT NUMERO_CLIENT, NOM, PRENOM FROM CLIENTS WHERE NUM_REPRESENTANT='12' INTERSECT SELECT CLIENTS.NUMERO_CLIENT, NOM, PRENOM FROM CLIENTS, COMMANDES WHERE CLIENTS.NUMERO_CLIENT = COMMANDES.NUMERO_CLIENTS; affiche le num?ro de client, nom, le prenom de tout les client du representant n?12 > Otherwise, you have to do the search yourself, one record by one record. > Really stupid, but if there is no other solution... > > Regards, From gambas.fr at ...626... Sun Jan 20 11:46:34 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 20 Jan 2008 11:46:34 +0100 Subject: [Gambas-user] Database Manager useage In-Reply-To: <14980242.post@...1379...> References: <14980242.post@...1379...> Message-ID: <200801201146.34847.gambas.fr@...626...> Le Sunday 20 January 2008 11:28:37 Peterdatkins, vous avez ?crit?: > I am new to linux and Gambas so if I am doing something stupid please be > patient. > > I have selected Gambas2 from th Synaptic Package Manager in Debian 4. > > I would like to use the Database Manager in Gambas but I'm not at all sure > how it should be used. > > I have selected it from the tools menu and entered a random keystring > 12345678, because it insists on one? > > Select Server (no chioce) > > Select New Server (nothing else does anything useful) > > In the New Connection dialogue I select mysql. > > Host, I'm not sure, tried all sorts, eg. 'localhost' > > User and password, again not sure because I don't know what to expect the > Database Manager to be doing. > > Can someone please point me in the right direction? > > Peter For your password 12345678 is a good choice lol Type : mysql Host: localhost login: root pssword: normally nothing connect then try to manage your databasright by right click in the tree on your left.. use menu and ... continue Fabien From peterdatkins at ...1073... Sun Jan 20 12:00:26 2008 From: peterdatkins at ...1073... (Peterdatkins) Date: Sun, 20 Jan 2008 03:00:26 -0800 (PST) Subject: [Gambas-user] Database Manager useage In-Reply-To: <200801201146.34847.gambas.fr@...626...> References: <14980242.post@...1379...> <200801201146.34847.gambas.fr@...626...> Message-ID: <14980481.post@...1379...> Fabien I have made entries as suggested, click OK and nothing, no tree no menu? Should a tree appear in the Database manager window? Fabien Bodard-4 wrote: > > Le Sunday 20 January 2008 11:28:37 Peterdatkins, vous avez ?crit : >> I am new to linux and Gambas so if I am doing something stupid please be >> patient. >> >> I have selected Gambas2 from th Synaptic Package Manager in Debian 4. >> >> I would like to use the Database Manager in Gambas but I'm not at all >> sure >> how it should be used. >> >> I have selected it from the tools menu and entered a random keystring >> 12345678, because it insists on one? >> >> Select Server (no chioce) >> >> Select New Server (nothing else does anything useful) >> >> In the New Connection dialogue I select mysql. >> >> Host, I'm not sure, tried all sorts, eg. 'localhost' >> >> User and password, again not sure because I don't know what to expect the >> Database Manager to be doing. >> >> Can someone please point me in the right direction? >> >> Peter > > > > For your password 12345678 is a good choice lol > > Type : mysql > Host: localhost > login: root > pssword: normally nothing > > connect > > then try to manage your databasright by right click in the tree on your > left.. > > use menu and ... continue > > Fabien > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Database-Manager-useage-tp14980242p14980481.html Sent from the gambas-user mailing list archive at Nabble.com. From rohnny at ...1248... Sun Jan 20 12:08:44 2008 From: rohnny at ...1248... (R. Stormo) Date: Sun, 20 Jan 2008 03:08:44 -0800 (PST) Subject: [Gambas-user] Arguments passed by reference In-Reply-To: <200801191855.58875.gambas@...1...> References: <200801191855.58875.gambas@...1...> Message-ID: <14980574.post@...1379...> Benoit Minisini wrote: > > Hi, > > I have finally implemented the ability to pass arguments by reference > in 'trunk'. > > To do that, just add a '@' character before the argument. For example: > > SplitName(FullName, @FirstName, @LastName) > > Now here are the caveats: > > * This is experimental. > > * You can only use this syntax when calling Gambas code, not native code. > > * This is slower than passing arguments by value. > > I did that mainly to help porting VB projects to Gambas. > > Enjoy it! > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I have tried this by creating a module1 with a sub public sub testing (invar as string, outvar as string) outvar = "Hi " & invar end sub Called in main form dim avariable as string module1.testing("Rohnny", @avariable) print avariable But avariable is empty should it be "Hi Rohnny"? Or have a missed something. Regards Rohnny My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/Arguments-passed-by-reference-tp14973070p14980574.html Sent from the gambas-user mailing list archive at Nabble.com. From scatman at ...1832... Sun Jan 20 12:55:29 2008 From: scatman at ...1832... (scatman) Date: Sun, 20 Jan 2008 12:55:29 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: References: (sfid-20080120_104348_905253_D4FF7E9BF47E1B95) Message-ID: <200801201255.29500.scatman@...1832...> Am Sonntag, 20. Januar 2008 schrieb o.s.p at ...69...: > hallo! > i'm trying to compile the svn 1017 > everything seems ok but when i run the ide no chars are displayed but > only sqares ... > i've tryed to run some precompiled examples but many show this error: > > "No fonts found; this probably means that the fontconfig > library is not correctly configured. You may need to > edit the fonts.conf configuration file. More information > about fontconfig can be found in the fontconfig(3) manual > page and on http://fontconfig.org" > > this is the only app with this error and seems that the fontconfig > configuration files are correct. > my distro is frugalware 0.8. > what can i check? the same under gentoo. Gambas (rev 1020) doesn?t find the installed Fonts. If i rename or move /etc/fonts/fonts.conf, Gambas detects the Fonts. Gambas with /etc/fonts/fonts.conf ########################## open("/usr/lib/libfontconfig.so.1", O_RDONLY) = 4 access("/etc/fonts/fonts.conf", R_OK) = 0 stat("/etc/fonts/fonts.conf", {st_mode=S_IFREG|0644, st_size=5251, ...}) = 0 open("/etc/fonts/fonts.conf", O_RDONLY) = 14 write(2, "Fontconfig warning: adding /var/cache/fontconfig write(2, "Fontconfig warning: adding ~/.fontconfig Gambas without /etc/fonts/fonts.conf mv /etc/fonts/fonts.conf /etc/fonts/fonts.conf_bak #################################### open("/usr/lib/libfontconfig.so.1", O_RDONLY) = 4 access("/etc/fonts/fonts.conf", R_OK) = -1 ENOENT (No such file or directory) stat("/usr/share/fonts", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/var/cache/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-x86-64.cache-2", O_RDONLY) = 14 stat("/usr/share/fonts/100dpi", {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0 open("/var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86-64.cache-2", O_RDONLY) = 14 stat("/usr/share/fonts/75dpi", {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0 open("/var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86-64.cache-2", O_RDONLY) = 14 stat("/usr/share/fonts/corefonts", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/var/cache/fontconfig/4b5cf4386f1cde02a336ba961b4ac82d-x86-64.cache-2", O_RDONLY) = 14 stat("/usr/share/fonts/cronyx", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/var/cache/fontconfig/51b4782270b1a913b397305b70e2eca3-x86-64.cache-2", O_RDONLY) = 14 and so on. very strange. From gambas at ...1... Sun Jan 20 13:26:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Jan 2008 13:26:57 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: <200801201255.29500.scatman@...1832...> References: <200801201255.29500.scatman@...1832...> Message-ID: <200801201326.57603.gambas@...1...> On dimanche 20 janvier 2008, scatman wrote: > Am Sonntag, 20. Januar 2008 schrieb o.s.p at ...69...: > > hallo! > > i'm trying to compile the svn 1017 > > everything seems ok but when i run the ide no chars are displayed but > > only sqares ... > > i've tryed to run some precompiled examples but many show this error: > > > > "No fonts found; this probably means that the fontconfig > > library is not correctly configured. You may need to > > edit the fonts.conf configuration file. More information > > about fontconfig can be found in the fontconfig(3) manual > > page and on http://fontconfig.org" > > > > this is the only app with this error and seems that the fontconfig > > configuration files are correct. > > my distro is frugalware 0.8. > > what can i check? > > the same under gentoo. Gambas (rev 1020) doesn?t find the installed Fonts. > If i rename or move /etc/fonts/fonts.conf, Gambas detects the Fonts. > > Gambas with /etc/fonts/fonts.conf > ########################## > > open("/usr/lib/libfontconfig.so.1", O_RDONLY) = 4 > access("/etc/fonts/fonts.conf", R_OK) = 0 > stat("/etc/fonts/fonts.conf", {st_mode=S_IFREG|0644, st_size=5251, ...}) = > 0 open("/etc/fonts/fonts.conf", O_RDONLY) = 14 > write(2, "Fontconfig warning: adding adding /var/cache/fontconfig > write(2, "Fontconfig warning: adding adding ~/.fontconfig > > Gambas without /etc/fonts/fonts.conf > mv /etc/fonts/fonts.conf /etc/fonts/fonts.conf_bak > #################################### > > open("/usr/lib/libfontconfig.so.1", O_RDONLY) = 4 > access("/etc/fonts/fonts.conf", R_OK) = -1 ENOENT (No such file or > directory) > stat("/usr/share/fonts", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 > open("/var/cache/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-x86-64.cache-2 >", O_RDONLY) = 14 > stat("/usr/share/fonts/100dpi", {st_mode=S_IFDIR|0755, st_size=36864, ...}) > = 0 > open("/var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86-64.cache-2 >", O_RDONLY) = 14 > stat("/usr/share/fonts/75dpi", {st_mode=S_IFDIR|0755, st_size=36864, ...}) > = 0 > open("/var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86-64.cache-2 >", O_RDONLY) = 14 > stat("/usr/share/fonts/corefonts", {st_mode=S_IFDIR|0755, > st_size=4096, ...}) = 0 > open("/var/cache/fontconfig/4b5cf4386f1cde02a336ba961b4ac82d-x86-64.cache-2 >", O_RDONLY) = 14 > stat("/usr/share/fonts/cronyx", {st_mode=S_IFDIR|0755, st_size=4096, ...}) > = 0 > open("/var/cache/fontconfig/51b4782270b1a913b397305b70e2eca3-x86-64.cache-2 >", O_RDONLY) = 14 > > and so on. > > very strange. > Which GUI library do you use: QT or GTK+ ? -- Benoit Minisini From ronstk at ...239... Sun Jan 20 13:31:50 2008 From: ronstk at ...239... (ron) Date: Sun, 20 Jan 2008 13:31:50 +0100 Subject: [Gambas-user] Database Manager useage In-Reply-To: <14980242.post@...1379...> References: <14980242.post@...1379...> Message-ID: <200801201331.51162.ronstk@...239...> On Sunday 20 January 2008 11:28, Peterdatkins wrote: > > I am new to linux and Gambas so if I am doing something stupid please be > patient. > > I have selected Gambas2 from th Synaptic Package Manager in Debian 4. > > I would like to use the Database Manager in Gambas but I'm not at all sure > how it should be used. > > I have selected it from the tools menu and entered a random keystring > 12345678, because it insists on one? Some explain. This is not a _password_ as Fabien sugest but it act like a pasword :) Th reason is that gambas need to to store _your_ information given in the database manager into a text based configuration file. This is readable to everyone (at the world, not realy true but think so for the moment) To prevent others can read your password you give in next steps it use this _random keystring_ to mangle you given passwords to a secret password. If you do not care other on your box can read in this configuration file you database servers passwords you are allowed to skip this question and let the input box empty. > > Select Server (no chioce) In normal situation you can find here a list of servers gambas found initially. These are also stored in the configuration file of gambas database manager. If this is empty it is posible you haven't installed one?? Here the name of one of your found _installed_ SQL servers (type of:mysql, postgresql, sqlite etc) > > Select New Server (nothing else does anything useful) This is used if there are in above step none found. you need to enter the servers addres (localhost, ip as 123.123.123.123, mylocalnetworkbox.lan etc) > > In the New Connection dialogue I select mysql. > > Host, I'm not sure, tried all sorts, eg. 'localhost' This is OK if you have _installed_ a server on your local box. > > User and password, again not sure because I don't know what to expect the > Database Manager to be doing. For mysql you can use for user 'root' and for password '' (nothing) if you do not have changed it. > > Can someone please point me in the right direction? > > Peter > > continue as Fabian wrote > For your password 12345678 is a good choice lol > > Type : mysql > Host: localhost > login: root > password: normally nothing > > connect Above is the basic we can give. Any way for correct help we need to know what you have installed for SQL, Server and client parts. Installing gambas is only suppert that can use i.e. mysql. It does not install mysql too. Ron From scatman at ...1832... Sun Jan 20 13:49:45 2008 From: scatman at ...1832... (scatman) Date: Sun, 20 Jan 2008 13:49:45 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: <200801201326.57603.gambas@...1...> References: <200801201255.29500.scatman@...1832...> <200801201326.57603.gambas@...1...> (sfid-20080120_133126_104073_E2D8FD3B73D6300F) Message-ID: <200801201349.45926.scatman@...1832...> Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: Hello, > > open("/var/cache/fontconfig/51b4782270b1a913b397305b70e2eca3-x86-64.cac > >he-2 ", O_RDONLY) = 14 > > > > and so on. > > > > very strange. > > Which GUI library do you use: QT or GTK+ ? QT-3.3.8-r4 From gambas at ...1... Sun Jan 20 14:01:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Jan 2008 14:01:33 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: <200801201349.45926.scatman@...1832...> References: <200801201326.57603.gambas@...1...> <200801201349.45926.scatman@...1832...> Message-ID: <200801201401.33666.gambas@...1...> On dimanche 20 janvier 2008, scatman wrote: > Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > > Hello, > > > > open("/var/cache/fontconfig/51b4782270b1a913b397305b70e2eca3-x86-64.cac > > >he-2 ", O_RDONLY) = 14 > > > > > > and so on. > > > > > > very strange. > > > > Which GUI library do you use: QT or GTK+ ? > > QT-3.3.8-r4 > Does it change anything if you run a Gambas project by typing 'gbx3 -p' in a console inside the project directory? -- Benoit Minisini From gambas at ...1... Sun Jan 20 14:03:38 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Jan 2008 14:03:38 +0100 Subject: [Gambas-user] Enhanced component project management for 2.1 Message-ID: <200801201403.38736.gambas@...1...> Hi, I have uploaded in the IDE of /branches/2.0 an enhanced 'component project' management. Now, when you install a component project into your home directory (a.k.a 'user component directory') by checking the option in the 'make executable' dialog, the IDE is automatically refreshed and the new component automatically selected. This way, the controls defined in your component are automatically displayed in the toolbox. Moreover, now, you can define the icons of your controls directly in the project. To do that, you must create a 'control' directory in your project, and create .png files whose each name must be the name of the controls in lower case. For example, if you export a control named 'MyTextBox', then you should create an icon named 'mytextbox.png' in the 'control' directory of your project. If you uninstall the component, the project is automatically refreshed too, and the forms using this component are automatically closed. The packager wizard should then be able to create a binary package of your component, but it is not done yet. I think there will be a convention for the naming of components not located in the Gambas sources: something like vendor.x.y.z, gb.x.y.z being reserved. For example, if you create a component with your own controls, and if you do it for the company named 'Apple' (why not?), you should name it 'apple.form'. And the package name will be 'gambas2-apple-form'. Another point: if you install a component project that has the same name as a global component, it is ignored. I mean, if, for example, you open the project 'gb.db.form' from the Gambas sources, and you install it in the user component directory, it will be installed, but the IDE will ignore it and print a warning message. Waiting for your comments... :-) -- Benoit Minisini From scatman at ...1832... Sun Jan 20 14:12:15 2008 From: scatman at ...1832... (scatman) Date: Sun, 20 Jan 2008 14:12:15 +0100 Subject: [Gambas-user] no fonts at all In-Reply-To: <200801201401.33666.gambas@...1...> References: <200801201349.45926.scatman@...1832...> <200801201401.33666.gambas@...1...> (sfid-20080120_140513_633927_E372C44B0E370FBD) Message-ID: <200801201412.15879.scatman@...1832...> Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > On dimanche 20 janvier 2008, scatman wrote: > > Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini: > > > > Hello, > > > > > > open("/var/cache/fontconfig/51b4782270b1a913b397305b70e2eca3-x86-64 > > > >.cac he-2 ", O_RDONLY) = 14 > > > > > > > > and so on. > > > > > > > > very strange. > > > > > > Which GUI library do you use: QT or GTK+ ? > > > > QT-3.3.8-r4 > > Does it change anything if you run a Gambas project by typing 'gbx3 -p' > in a console inside the project directory? No, it?s the same. See Attachment. -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas_trunk.jpeg Type: image/jpeg Size: 22458 bytes Desc: not available URL: From gambas at ...1... Sun Jan 20 14:14:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Jan 2008 14:14:43 +0100 Subject: [Gambas-user] Enhanced component project management for 2.1 In-Reply-To: <200801201403.38736.gambas@...1...> References: <200801201403.38736.gambas@...1...> Message-ID: <200801201414.43416.gambas@...1...> On dimanche 20 janvier 2008, Benoit Minisini wrote: > Hi, > > I have uploaded in the IDE of /branches/2.0 an enhanced 'component project' > management. > > Now, when you install a component project into your home directory > (a.k.a 'user component directory') by checking the option in the 'make > executable' dialog, the IDE is automatically refreshed and the new > component automatically selected. This way, the controls defined in your > component are automatically displayed in the toolbox. > > Moreover, now, you can define the icons of your controls directly in the > project. To do that, you must create a 'control' directory in your project, > and create .png files whose each name must be the name of the controls in > lower case. For example, if you export a control named 'MyTextBox', then > you should create an icon named 'mytextbox.png' in the 'control' directory > of your project. > > If you uninstall the component, the project is automatically refreshed too, > and the forms using this component are automatically closed. > > The packager wizard should then be able to create a binary package of your > component, but it is not done yet. > > I think there will be a convention for the naming of components not located > in the Gambas sources: something like vendor.x.y.z, gb.x.y.z being > reserved. For example, if you create a component with your own controls, > and if you do it for the company named 'Apple' (why not?), you should name > it 'apple.form'. And the package name will be 'gambas2-apple-form'. > > Another point: if you install a component project that has the same name as > a global component, it is ignored. I mean, if, for example, you open the > project 'gb.db.form' from the Gambas sources, and you install it in the > user component directory, it will be installed, but the IDE will ignore it > and print a warning message. > > Waiting for your comments... :-) Note that these changes are fully compatible with the current 2.0, so this is the reason why they are put in 2.1. -- Benoit Minisini From peterdatkins at ...1073... Sun Jan 20 14:34:48 2008 From: peterdatkins at ...1073... (Peterdatkins) Date: Sun, 20 Jan 2008 05:34:48 -0800 (PST) Subject: [Gambas-user] Database Manager useage In-Reply-To: <200801201331.51162.ronstk@...239...> References: <14980242.post@...1379...> <200801201331.51162.ronstk@...239...> Message-ID: <14981793.post@...1379...> Thanks for the explaination Ron. I have installed mysql-server 5.0.32-7etch4 and mysql-client-5.0.32-7etch4. I find that I can use the database example to connect to the mysql 'test' database. I use : WITH $hConn .Type = cmbType.Text .Host = txtHost.Text .Login = "root" 'txtUser.Text .Password = "" 'txtPassword.Text .Name = "" END WITH where : .type = 'mysql' .host can be either nothing or 'localhost' .login = 'root' .password = .name = 'test' The above all works ok, so why doesnt the manager show me an available mysql server? Peter Ron Onstenk wrote: > > On Sunday 20 January 2008 11:28, Peterdatkins wrote: >> >> I am new to linux and Gambas so if I am doing something stupid please be >> patient. >> >> I have selected Gambas2 from th Synaptic Package Manager in Debian 4. >> >> I would like to use the Database Manager in Gambas but I'm not at all >> sure >> how it should be used. >> >> I have selected it from the tools menu and entered a random keystring >> 12345678, because it insists on one? > > Some explain. This is not a _password_ as Fabien sugest but it act like a > pasword :) > Th reason is that gambas need to to store _your_ information given in the > database > manager into a text based configuration file. > This is readable to everyone (at the world, not realy true but think so > for the moment) > To prevent others can read your password you give in next steps it use > this _random keystring_ > to mangle you given passwords to a secret password. > > If you do not care other on your box can read in this configuration file > you database servers > passwords you are allowed to skip this question and let the input box > empty. > > >> >> Select Server (no chioce) > > In normal situation you can find here a list of servers gambas found > initially. > These are also stored in the configuration file of gambas database > manager. > If this is empty it is posible you haven't installed one?? > > Here the name of one of your found _installed_ SQL servers (type of:mysql, > postgresql, sqlite etc) > >> >> Select New Server (nothing else does anything useful) > This is used if there are in above step none found. you need to enter > the servers addres (localhost, ip as 123.123.123.123, > mylocalnetworkbox.lan etc) > >> >> In the New Connection dialogue I select mysql. >> >> Host, I'm not sure, tried all sorts, eg. 'localhost' > > This is OK if you have _installed_ a server on your local box. > >> >> User and password, again not sure because I don't know what to expect the >> Database Manager to be doing. > > For mysql you can use for user 'root' and for password '' (nothing) if you > do not have changed it. > > >> >> Can someone please point me in the right direction? >> >> Peter >> >> > > continue as Fabian wrote >> For your password 12345678 is a good choice lol >> >> Type : mysql >> Host: localhost >> login: root >> password: normally nothing >> >> connect > > Above is the basic we can give. > > Any way for correct help we need to know what you have installed for SQL, > Server and client parts. > Installing gambas is only suppert that can use i.e. mysql. It does not > install mysql too. > > Ron > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Database-Manager-useage-tp14980242p14981793.html Sent from the gambas-user mailing list archive at Nabble.com. From kim.hoskin at ...1073... Sun Jan 20 14:54:57 2008 From: kim.hoskin at ...1073... (Khos) Date: Sun, 20 Jan 2008 05:54:57 -0800 (PST) Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <14931902.post@...1379...> References: <14931902.post@...1379...> Message-ID: <14981935.post@...1379...> Khos wrote: > > Hi, > > I am quite new to Ubuntu and Gambas worlds but wanted to ask you a > Gambas (which seems to be a such a brilliant piece of software by the > way) coding related question. Hope you won't mind helping me out. How > would I be able to find an active window's caption of any window on the > Ubuntu desktop to show it in a text box on my Gambas created > application? > > I apologize if I sent this in error to the wrong group but hope you could > point me in > the right direction or provide some sample code. > > Many thanks, > Kim > Hi, Anyone have any advise for me? please help :) -- View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p14981935.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Jan 20 15:02:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Jan 2008 15:02:50 +0100 Subject: [Gambas-user] Arguments passed by reference In-Reply-To: <14980574.post@...1379...> References: <200801191855.58875.gambas@...1...> <14980574.post@...1379...> Message-ID: <200801201502.51063.gambas@...1...> On dimanche 20 janvier 2008, R. Stormo wrote: > > I have tried this by creating a module1 with a sub > public sub testing (invar as string, outvar as string) > outvar = "Hi " & invar > end sub > > Called in main form > dim avariable as string > module1.testing("Rohnny", @avariable) > print avariable > > But avariable is empty should it be "Hi Rohnny"? > > Or have a missed something. > > > Regards Rohnny > > My Gambas Community http://gambasforum.tk It should be fixed in the last revision. Regards, -- Benoit Minisini From jredrejo at ...626... Sun Jan 20 15:29:52 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Sun, 20 Jan 2008 15:29:52 +0100 Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <14981935.post@...1379...> References: <14931902.post@...1379...> <14981935.post@...1379...> Message-ID: <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> I'm using this code to do something similar to what you asked, but not over a text box, but on over a Embedder control. You'll have to use such control, and maybe use it inserted in a container component with your textbox if you need the textbox. It works perfectly with qt or gtk components. The only pre-requisite is that you have to know the exact window Title of the app you want to embed: At my Form I have: PUBLIC SUB Presence_Embed(windowTitle AS String) DIM key AS Integer key = Utils.getWindowID(windowTitle) WAIT 1 IF key > 0 THEN emb.Embed(key) WAIT emb.SetFocus ENDIF emb.Visible = TRUE END And at a Static Class Utils, I use for many other, things I have: STATIC PUBLIC FUNCTION getWindowID(title AS String) AS Integer DIM result1 AS String DIM result2 AS String DIM beginning AS Integer SHELL "xwininfo -name \"" & title & "\"| grep \"Window id\" " to result1 'result1=xwininfo: Window id: 0x3201eca "title" IF result1 = "" THEN WAIT 2 SHELL "xwininfo -name \"" & title & "\"| grep \"Window id\" " to result1 ENDIF beginning = InStr(result1, "0x") result2 = Mid$(result1, beginning + 2, 7) 'result2 = Mid$(result1, Len("xwininfo: Window id: 0x"), Len("3a00003")) IF NOT IsNull(result2) THEN RETURN CInteger(Val("&H" & result2)) ELSE RETURN 0 ENDIF END I think the code is pretty self-explained. If not don't hesitate in asking any question. Regards. Jos? L. 2008/1/20, Khos : > > > > > Khos wrote: > > > > Hi, > > > > I am quite new to Ubuntu and Gambas worlds but wanted to ask you a > > Gambas (which seems to be a such a brilliant piece of software by the > > way) coding related question. Hope you won't mind helping me out. How > > would I be able to find an active window's caption of any window on the > > Ubuntu desktop to show it in a text box on my Gambas created > > application? > > > > I apologize if I sent this in error to the wrong group but hope you > could > > point me in > > the right direction or provide some sample code. > > > > Many thanks, > > Kim > > > > Hi, Anyone have any advise for me? please help :) > -- > View this message in context: > http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p14981935.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Sun Jan 20 15:29:19 2008 From: ronstk at ...239... (ron) Date: Sun, 20 Jan 2008 15:29:19 +0100 Subject: [Gambas-user] Enhanced component project management for 2.1 In-Reply-To: <200801201403.38736.gambas@...1...> References: <200801201403.38736.gambas@...1...> Message-ID: <200801201529.19605.ronstk@...239...> On Sunday 20 January 2008 14:03, Benoit Minisini wrote: > Hi, > .... Great addition for gambas. > > I think there will be a convention for the naming of components not located in > the Gambas sources: something like vendor.x.y.z, gb.x.y.z being reserved. For > example, if you create a component with your own controls, and if you do it > for the company named 'Apple' (why not?), you should name it 'apple.form'. > And the package name will be 'gambas2-apple-form'. > ... > > Waiting for your comments... :-) > Big smile from me. Here I would say 'welcome into the wonderfull world of namespace' gb.x.y.z : namespace is 'gb' vendor.x.y.z : namespace is 'vendor' Now I can use a gb.form with a control rons.ListBox The next step ?? +----------------- example -------------- | Dim listbox1 AS NEW gb.Listbox | Dim listbox2 AS NEW rons.Listbox | Dim listbox3 AS NEW ListBox | | For row = 0 to 9 | listbox1[row].text = "row " & row '<-- gb style | listbox2.items(row).value = "row " & row '<-- vb style | listbox3[row].text = "row " & row '<-- gb style | next +---------------------------------------- What about listbox3? Well because no namespace is given it defaults to the native one or the first namespace in component order that knows ListBox. The last method is used in VB and if for some reason that order was changed your project did fail. That was IMHO the most wrong implementation of it in VB/MSaccess. Easy in editing code but unsafe in final behaviour. (components order is in the project properties where you choose the components) If no component namespace is given the native is the only one, gb in this case. Adding own components is easy and the usage need only the adding of namespace in the declaration parts of the code. i.e. xyz AS namespace.object or AS NEW namespace.object I know my view of namespace may/is not 100% correct and there is more involved but effective you can see it also as a class. Timer in gb.qt is a class and the parent (qt) is also a class, here qt and the parents of it. All components starting with gb as prefix are the native ones, other prefixes are user components. In this story I do see the parent of the objects as namespace. gb as namespace for all gb.x.y.z and Apple for the Apple.x.y.z components/objects/classes etc. gb.qt is the namespace for all gb.qt components/objects/classes etc. Once someone asked me 'What is a class?'. I could not answer because parts of the class where also or could be a class. A class can have Methods, Events and Properties (MEPs). A property can be also a class and with MEPs. No end of it. Here the prove a parent is or can be a class (with MEPs). Some classes are here also called 'Virtual Class' in gambas. The place where all those classes belong to is called by someone a namespace. This does not sound bad to me because a listbox from the namespace of GB is different of the namespace VB but shows the same on the screen and other similarites. To know how to help someone you need to know from where the listbox is and that is the name. I know Benoit don't like (or even hate it) the namespace but the 'gb.' and 'GB_' prefix he use is a effective way to tell the name of the (working) space/room he uses. Where the code belong to. > Waiting for your comments... :-) Me too. :-) Ron From ronstk at ...239... Sun Jan 20 15:48:38 2008 From: ronstk at ...239... (ron) Date: Sun, 20 Jan 2008 15:48:38 +0100 Subject: [Gambas-user] Database Manager useage In-Reply-To: <14981793.post@...1379...> References: <14980242.post@...1379...> <200801201331.51162.ronstk@...239...> <14981793.post@...1379...> Message-ID: <200801201548.38963.ronstk@...239...> On Sunday 20 January 2008 14:34, Peterdatkins wrote: > > Thanks for the explaination Ron. > > I have installed mysql-server 5.0.32-7etch4 and mysql-client-5.0.32-7etch4. > I find that I can use the database example to connect to the mysql 'test' > database. > I use : > WITH $hConn > .Type = cmbType.Text > .Host = txtHost.Text > .Login = "root" 'txtUser.Text > .Password = "" 'txtPassword.Text > .Name = "" > END WITH > where : > .type = 'mysql' > .host can be either nothing or 'localhost' > .login = 'root' > .password = > .name = 'test' > The above all works ok, so why doesnt the manager show me an available mysql > server? > > Peter > > Not clear you had installed before or did it after my reply. I do understand you can use the mysql server now from inside your code. and you are unable to add 'New Server' to the datbase manager. If I start gb-db-manager i geve the code 12345678 Then select in the menu use 'Scan datbase servers' and get in the left tree 2 servers on my box, mysql and sqllite. Did you start the mysql server? for quick test you can use '/etc/init.d/mysql status' in a root terminal. '/etc/init.d/mysql start' wil start the server. After shutdown of the box you need to do it again. Exact method to start it automagic depends on your distibution. Ron From ronstk at ...239... Sun Jan 20 15:57:00 2008 From: ronstk at ...239... (ron) Date: Sun, 20 Jan 2008 15:57:00 +0100 Subject: [Gambas-user] Database Manager useage In-Reply-To: <14981793.post@...1379...> References: <14980242.post@...1379...> <200801201331.51162.ronstk@...239...> <14981793.post@...1379...> Message-ID: <200801201557.00842.ronstk@...239...> Stupid me. :-) Your server is running because you are able to use it in code? So I did remove both servers and choose "New Server' type:mysql host:localhost user:gambas pass:gambas Pressing OK did showup my gambas at ...40...(mysql) server. The user/pass are once made for gambas projects. No error messages popup? Ron From peterdatkins at ...1073... Sun Jan 20 16:18:03 2008 From: peterdatkins at ...1073... (Peterdatkins) Date: Sun, 20 Jan 2008 07:18:03 -0800 (PST) Subject: [Gambas-user] Database Manager useage In-Reply-To: <200801201548.38963.ronstk@...239...> References: <14980242.post@...1379...> <200801201331.51162.ronstk@...239...> <14981793.post@...1379...> <200801201548.38963.ronstk@...239...> Message-ID: <14982713.post@...1379...> I already had mysql running. I have checked using your terminal commands and it is confirmed that mysql is running the response contains the following: Server version 5.0.32-Debian_7etch4-log Protocol version 10 Connection Localhost via UNIX socket UNIX socket /var/run/mysqld/mysqld.sock Uptime 2hrs etc If I type 'etc/init.d/mysql start' the response is 'Starting MySQL database server: mysqld already running. Why mysqld in the above, and not mysql? Peter Ron Onstenk wrote: > > On Sunday 20 January 2008 14:34, Peterdatkins wrote: >> >> Thanks for the explaination Ron. >> >> I have installed mysql-server 5.0.32-7etch4 and >> mysql-client-5.0.32-7etch4. >> I find that I can use the database example to connect to the mysql 'test' >> database. >> I use : >> WITH $hConn >> .Type = cmbType.Text >> .Host = txtHost.Text >> .Login = "root" 'txtUser.Text >> .Password = "" 'txtPassword.Text >> .Name = "" >> END WITH >> where : >> .type = 'mysql' >> .host can be either nothing or 'localhost' >> .login = 'root' >> .password = >> .name = 'test' >> The above all works ok, so why doesnt the manager show me an available >> mysql >> server? >> >> Peter >> >> > > Not clear you had installed before or did it after my reply. > > I do understand you can use the mysql server now from inside your code. > and you are unable to add 'New Server' to the datbase manager. > > If I start gb-db-manager i geve the code 12345678 > Then select in the menu use 'Scan datbase servers' and get in the > left tree 2 servers on my box, mysql and sqllite. > > Did you start the mysql server? > for quick test you can use '/etc/init.d/mysql status' in a root terminal. > '/etc/init.d/mysql start' wil start the server. > After shutdown of the box you need to do it again. > > Exact method to start it automagic depends on your distibution. > > Ron > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Database-Manager-useage-tp14980242p14982713.html Sent from the gambas-user mailing list archive at Nabble.com. From peterdatkins at ...1073... Sun Jan 20 17:17:17 2008 From: peterdatkins at ...1073... (Peterdatkins) Date: Sun, 20 Jan 2008 08:17:17 -0800 (PST) Subject: [Gambas-user] Database Manager useage In-Reply-To: <200801201557.00842.ronstk@...239...> References: <14980242.post@...1379...> <200801201331.51162.ronstk@...239...> <14981793.post@...1379...> <200801201557.00842.ronstk@...239...> Message-ID: <14983303.post@...1379...> No, no error messages pop up. Peter Ron Onstenk wrote: > > Stupid me. :-) > > Your server is running because you are able to use it in code? > > So I did remove both servers and choose "New Server' > type:mysql > host:localhost > user:gambas > pass:gambas > Pressing OK did showup my gambas at ...40...(mysql) server. > > The user/pass are once made for gambas projects. > > No error messages popup? > > Ron > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Database-Manager-useage-tp14980242p14983303.html Sent from the gambas-user mailing list archive at Nabble.com. From kim.hoskin at ...1073... Sun Jan 20 17:34:46 2008 From: kim.hoskin at ...1073... (Khos) Date: Sun, 20 Jan 2008 08:34:46 -0800 (PST) Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> References: <14931902.post@...1379...> <14981935.post@...1379...> <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> Message-ID: <14983556.post@...1379...> Hi Jose, I emailed you direct but if there is anyone else who can provide input that would be great. Am I correct in thinking that your 2 lines of code: SHELL "xwininfo -name \"" & title & "\"| grep \"Window id\" " to result1 'result1=xwininfo: Window id: 0x3201eca "title" Will give me the active window's title on the Ubuntu desktop (any app/window)? Does xwininfo program give all the info(ID/Title etc) that the mouse is hovering over? Thanks Kim Jos? Luis Redrejo wrote: > > I'm using this code to do something similar to what you asked, but not > over > a text box, but on over a Embedder control. You'll have to use such > control, > and maybe use it inserted in a container component with your textbox if > you > need the textbox. It works perfectly with qt or gtk components. The only > pre-requisite is that you have to know the exact window Title of the app > you > want to embed: > > > At my Form I have: > > PUBLIC SUB Presence_Embed(windowTitle AS String) > DIM key AS Integer > key = Utils.getWindowID(windowTitle) > WAIT 1 > IF key > 0 THEN > emb.Embed(key) > WAIT > emb.SetFocus > ENDIF > emb.Visible = TRUE > > END > > > And at a Static Class Utils, I use for many other, things I have: > > STATIC PUBLIC FUNCTION getWindowID(title AS String) AS Integer > DIM result1 AS String > DIM result2 AS String > DIM beginning AS Integer > > SHELL "xwininfo -name \"" & title & "\"| grep \"Window id\" " to result1 > 'result1=xwininfo: Window id: 0x3201eca "title" > IF result1 = "" THEN > WAIT 2 > SHELL "xwininfo -name \"" & title & "\"| grep \"Window id\" " to > result1 > > ENDIF > beginning = InStr(result1, "0x") > > result2 = Mid$(result1, beginning + 2, 7) > 'result2 = Mid$(result1, Len("xwininfo: Window id: 0x"), > Len("3a00003")) > IF NOT IsNull(result2) THEN > RETURN CInteger(Val("&H" & result2)) > ELSE > RETURN 0 > ENDIF > > END > > > > I think the code is pretty self-explained. If not don't hesitate in asking > any question. > Regards. > Jos? L. > > > > > > > > 2008/1/20, Khos : >> >> >> >> >> Khos wrote: >> > >> > Hi, >> > >> > I am quite new to Ubuntu and Gambas worlds but wanted to ask you a >> > Gambas (which seems to be a such a brilliant piece of software by the >> > way) coding related question. Hope you won't mind helping me out. How >> > would I be able to find an active window's caption of any window on the >> > Ubuntu desktop to show it in a text box on my Gambas created >> > application? >> > >> > I apologize if I sent this in error to the wrong group but hope you >> could >> > point me in >> > the right direction or provide some sample code. >> > >> > Many thanks, >> > Kim >> > >> >> Hi, Anyone have any advise for me? please help :) >> -- >> View this message in context: >> http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p14981935.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p14983556.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Jan 20 18:04:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Jan 2008 18:04:27 +0100 Subject: [Gambas-user] Enhanced component project management for 2.1 In-Reply-To: <200801201529.19605.ronstk@...239...> References: <200801201403.38736.gambas@...1...> <200801201529.19605.ronstk@...239...> Message-ID: <200801201804.27941.gambas@...1...> On dimanche 20 janvier 2008, ron wrote: > On Sunday 20 January 2008 14:03, Benoit Minisini wrote: > > Hi, > > .... > Great addition for gambas. > > > I think there will be a convention for the naming of components not > > located in the Gambas sources: something like vendor.x.y.z, gb.x.y.z > > being reserved. For example, if you create a component with your own > > controls, and if you do it for the company named 'Apple' (why not?), you > > should name it 'apple.form'. And the package name will be > > 'gambas2-apple-form'. > > ... > > > Waiting for your comments... :-) > > Big smile from me. > > Here I would say 'welcome into the wonderfull world of namespace' > > gb.x.y.z : namespace is 'gb' > vendor.x.y.z : namespace is 'vendor' > Now I can use a gb.form with a control rons.ListBox > > The next step ?? > > +----------------- example -------------- > > | Dim listbox1 AS NEW gb.Listbox > | Dim listbox2 AS NEW rons.Listbox > | Dim listbox3 AS NEW ListBox > | > | For row = 0 to 9 > | listbox1[row].text = "row " & row '<-- gb style > | listbox2.items(row).value = "row " & row '<-- vb style > | listbox3[row].text = "row " & row '<-- gb style > | next > > +---------------------------------------- > > What about listbox3? Well because no namespace is given it defaults to the > native one or the first namespace in component order that knows ListBox. > > The last method is used in VB and if for some reason that order was changed > your project did fail. That was IMHO the most wrong implementation of it in > VB/MSaccess. Easy in editing code but unsafe in final behaviour. > (components order is in the project properties where you choose the > components) > > If no component namespace is given the native is the only one, gb in this > case. Adding own components is easy and the usage need only the adding of > namespace in the declaration parts of the code. > i.e. xyz AS namespace.object or AS NEW namespace.object > > > I know my view of namespace may/is not 100% correct and there is more > involved but effective you can see it also as a class. > > Timer in gb.qt is a class and the parent (qt) is also a class, here qt and > the parents of it. All components starting with gb as prefix are the native > ones, other prefixes are user components. > > In this story I do see the parent of the objects as namespace. gb as > namespace for all gb.x.y.z and Apple for the Apple.x.y.z > components/objects/classes etc. gb.qt is the namespace for all gb.qt > components/objects/classes etc. > > > Once someone asked me 'What is a class?'. > I could not answer because parts of the class where also or could be a > class. A class can have Methods, Events and Properties (MEPs). > A property can be also a class and with MEPs. No end of it. > Here the prove a parent is or can be a class (with MEPs). > Some classes are here also called 'Virtual Class' in gambas. > > The place where all those classes belong to is called by someone a > namespace. This does not sound bad to me because a listbox from the > namespace of GB is different of the namespace VB but shows the same on the > screen and other similarites. To know how to help someone you need to know > from where the listbox is and that is the name. > > I know Benoit don't like (or even hate it) the namespace but the 'gb.' and > 'GB_' prefix he use is a effective way to tell the name of the (working) > space/room he uses. Where the code belong to. > > > Waiting for your comments... :-) > > Me too. :-) > > Ron > There is no namespace in Gambas, and I won't implement them. As you wrote, it is a source of conflict that the language is unable to solve intelligently. If there are two classes with the same name in two components, they surely are doing the same thing, or one must extend the other. So I prefer relying on what I did in Gambas: a component has a list of requirements, needed features and provided features, so that the IDE can easily know which components are in conflict, and how to order them. Regards, -- Benoit Minisini From ronstk at ...239... Sun Jan 20 18:19:03 2008 From: ronstk at ...239... (ron) Date: Sun, 20 Jan 2008 18:19:03 +0100 Subject: [Gambas-user] Database Manager useage In-Reply-To: <14982713.post@...1379...> References: <14980242.post@...1379...> <200801201548.38963.ronstk@...239...> <14982713.post@...1379...> Message-ID: <200801201819.04140.ronstk@...239...> On Sunday 20 January 2008 16:18, Peterdatkins wrote: > > I already had mysql running. > I have checked using your terminal commands and it is confirmed that mysql > is running > the response contains the following: > Server version 5.0.32-Debian_7etch4-log > Protocol version 10 > Connection Localhost via UNIX socket > UNIX socket /var/run/mysqld/mysqld.sock > Uptime 2hrs etc > > If I type 'etc/init.d/mysql start' the response is 'Starting MySQL database > server: mysqld already running. > > Why mysqld in the above, and not mysql? > Peter > > That is OK, just after send the reply I realise this fact. Simple said 'mysqld' is the deamon for mysql server and 'mysql' is the application. Deamons run in the background usable for everyone that are allowed. Application are things you run on the console as single proccess. Ron From ronstk at ...239... Sun Jan 20 18:22:33 2008 From: ronstk at ...239... (ron) Date: Sun, 20 Jan 2008 18:22:33 +0100 Subject: [Gambas-user] Database Manager useage In-Reply-To: <14983303.post@...1379...> References: <14980242.post@...1379...> <200801201557.00842.ronstk@...239...> <14983303.post@...1379...> Message-ID: <200801201822.33572.ronstk@...239...> On Sunday 20 January 2008 17:17, Peterdatkins wrote: > > No, no error messages pop up. > Peter > > Ron Onstenk wrote: > > > > Stupid me. :-) > > > > Your server is running because you are able to use it in code? > > > > So I did remove both servers and choose "New Server' > > type:mysql > > host:localhost > > user:gambas > > pass:gambas > > Pressing OK did showup my gambas at ...40...(mysql) server. > > > > The user/pass are once made for gambas projects. > > > > No error messages popup? > > > > Ron > > No idea what goes wrong at your place. You can try in terminal to start gambas-database-manager. Maybe this way a error message occurs. Ron From ronstk at ...239... Sun Jan 20 18:55:57 2008 From: ronstk at ...239... (ron) Date: Sun, 20 Jan 2008 18:55:57 +0100 Subject: [Gambas-user] Enhanced component project management for 2.1 In-Reply-To: <200801201804.27941.gambas@...1...> References: <200801201403.38736.gambas@...1...> <200801201529.19605.ronstk@...239...> <200801201804.27941.gambas@...1...> Message-ID: <200801201855.57352.ronstk@...239...> On Sunday 20 January 2008 18:04, Benoit Minisini wrote: > There is no namespace in Gambas, and I won't implement them. As you wrote, it > is a source of conflict that the language is unable to solve intelligently. > You missed my point for code as 'AS ListBox' versus 'AS Apple.ListBox' You mentioned as a example the vendor identification i.e. 'Apple' for gb-apple-x.y.z Why should Apple not make a component apple.x.y.z usable inside gb? Oooh and shame for me for see the gb-apple.x.y.z as apple.x.y.z. here :-( > If there are two classes with the same name in two components, they surely are > doing the same thing, or one must extend the other. > If they share the same name for the same basic function versus name it looks true. The implementation and handeling of the Methods/Events/Properties can be total different but only the name i.e. ListBox with the visual presentation and end results are the same. In this case there is no extent of the other one. > So I prefer relying on what I did in Gambas: a component has a list of > requirements, needed features and provided features, so that the IDE can > easily know which components are in conflict, and how to order them. > > Regards, > > -- > Benoit Minisini > What is the difference between 'msctl32.ListBox' 'Apple.ListBox' and 'gb.qt.listbox'? The implementaion only, all show and present the same content. My point was the 'msctrl32', 'gb.apple' and 'gb.qt' are equivalent to the namespace for the listbox, in simple view and words. I do not mean the OS and/or language of the Listbox or library is written with. Still fan of gambas guru Benoit :-) Ron From gambas at ...1... Sun Jan 20 19:05:04 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Jan 2008 19:05:04 +0100 Subject: [Gambas-user] Enhanced component project management for 2.1 In-Reply-To: <200801201855.57352.ronstk@...239...> References: <200801201403.38736.gambas@...1...> <200801201804.27941.gambas@...1...> <200801201855.57352.ronstk@...239...> Message-ID: <200801201905.05050.gambas@...1...> On dimanche 20 janvier 2008, ron wrote: > On Sunday 20 January 2008 18:04, Benoit Minisini wrote: > > There is no namespace in Gambas, and I won't implement them. As you > > wrote, it is a source of conflict that the language is unable to solve > > intelligently. > > You missed my point for code as 'AS ListBox' versus 'AS Apple.ListBox' > You mentioned as a example the vendor identification i.e. 'Apple' for > gb-apple-x.y.z Why should Apple not make a component apple.x.y.z usable > inside gb? Oooh and shame for me for see the gb-apple.x.y.z as apple.x.y.z. > here :-( > I was talking about naming the component packages. Nothing related to the language itself. > > If there are two classes with the same name in two components, they > > surely are doing the same thing, or one must extend the other. > > If they share the same name for the same basic function versus name it > looks true. The implementation and handeling of the > Methods/Events/Properties can be total different but only the name i.e. > ListBox with the visual presentation and end results are the same. In this > case there is no extent of the other one. > > > So I prefer relying on what I did in Gambas: a component has a list of > > requirements, needed features and provided features, so that the IDE can > > easily know which components are in conflict, and how to order them. > > > > Regards, > > > > -- > > Benoit Minisini > > What is the difference between 'msctl32.ListBox' 'Apple.ListBox' and > 'gb.qt.listbox'? The implementaion only, all show and present the same > content. Either these implementations are doing the same thing, and so you won't have to use them simultaneously, either they are not, and then they must have different names. > My point was the 'msctrl32', 'gb.apple' and 'gb.qt' are equivalent to the > namespace for the listbox, in simple view and words. > I do not mean the OS and/or language of the Listbox or library is written > with. I don't understand what you meant there... > > Still fan of gambas guru Benoit :-) > > Ron > I was afraid you tried to persuade me to implement namespaces. Beware, I can bite! -- Benoit Minisini From jredrejo at ...626... Sun Jan 20 19:32:05 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Sun, 20 Jan 2008 19:32:05 +0100 Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <14983556.post@...1379...> References: <14931902.post@...1379...> <14981935.post@...1379...> <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> <14983556.post@...1379...> Message-ID: <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> 2008/1/20, Khos : > > > Hi Jose, > > I emailed you direct but if there is anyone else who can provide input > that > would be great. Am I correct in thinking that your 2 lines of code: > SHELL "xwininfo -name \"" & title & "\"| grep \"Window id\" " to result1 > 'result1=xwininfo: Window id: 0x3201eca "title" > > Will give me the active window's title on the Ubuntu desktop (any > app/window)? Only the first line, the second one is commented. It was just a comment for me to remember the returning value of xwininfo. Here you have an example of how it works if you execute it in a terminal: jose at ...1836...:~$ xwininfo -name "monitor - Gambas II"| grep "Window id" xwininfo: Window id: 0x3c0000c "monitor - Gambas II" Does xwininfo program give all the info(ID/Title etc) that the mouse is > hovering over? > if you take a look to "man xwininfo" you will see that you have to pass it the window name or the window id and it will return all the data about the window. You can also use it just clicking on the selected window to get all the information. The way I use it in this code is passing the window name to get the window id, as the Embedder control needs the window id. I know the window name because it's launched using shell from the same application. Depending on your needs you have to choose between the different options to use xwininfo. Regards. Jos? L. From gambas at ...1... Sun Jan 20 19:39:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Jan 2008 19:39:58 +0100 Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> References: <14931902.post@...1379...> <14983556.post@...1379...> <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> Message-ID: <200801201939.59120.gambas@...1...> On dimanche 20 janvier 2008, Jos? Luis Redrejo wrote: > 2008/1/20, Khos : > > Hi Jose, > > > > I emailed you direct but if there is anyone else who can provide input > > that > > would be great. Am I correct in thinking that your 2 lines of code: > > SHELL "xwininfo -name \"" & title & "\"| grep \"Window id\" " to result1 > > 'result1=xwininfo: Window id: 0x3201eca "title" > > > > Will give me the active window's title on the Ubuntu desktop (any > > app/window)? > > Only the first line, the second one is commented. It was just a comment for > me to remember the > returning value of xwininfo. Here you have an example of how it works if > you execute it in a terminal: > > jose at ...1836...:~$ xwininfo -name "monitor - Gambas II"| grep "Window id" > xwininfo: Window id: 0x3c0000c "monitor - Gambas II" > > > Does xwininfo program give all the info(ID/Title etc) that the mouse is > > > hovering over? > > if you take a look to "man xwininfo" you will see that you have to pass it > the window name or the window id and it will return all the data about the > window. You can also use it just clicking on the selected window to get all > the information. The way I use it in this code is passing the window name > to get the window id, as the Embedder control needs the window id. I know > the window name because it's launched using shell from the same > application. Depending on your needs you have to choose between the > different options to use xwininfo. > > Regards. > Jos? L. To find a window id from its title, you can use the Desktop.Find() method of the gb.desktop component. Regards, -- Benoit Minisini From kim.hoskin at ...1073... Sun Jan 20 20:26:37 2008 From: kim.hoskin at ...1073... (Khos) Date: Sun, 20 Jan 2008 11:26:37 -0800 (PST) Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <200801201939.59120.gambas@...1...> References: <14931902.post@...1379...> <14981935.post@...1379...> <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> <14983556.post@...1379...> <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> <200801201939.59120.gambas@...1...> Message-ID: <14985624.post@...1379...> Thanks Jose and Oh master of Gambas :) I will have a look at Jose's info but Benoit.. I have tried to use Desktop.Find() but the documentation was not so understandable for me. It would seem like a much simpler way with this. Does this function get all the windows titles and put it into an array? if so how would you know which one is the active window? there are no sample codes on how to use this function, unless you could point to some, I would appreciate your efforts very much :) Many thanks for the help so far folks! Kind regards Kim Benoit Minisini wrote: > > On dimanche 20 janvier 2008, Jos? Luis Redrejo wrote: >> 2008/1/20, Khos : >> > Hi Jose, >> > >> > I emailed you direct but if there is anyone else who can provide input >> > that >> > would be great. Am I correct in thinking that your 2 lines of code: >> > SHELL "xwininfo -name \"" & title & "\"| grep \"Window id\" " to >> result1 >> > 'result1=xwininfo: Window id: 0x3201eca "title" >> > >> > Will give me the active window's title on the Ubuntu desktop (any >> > app/window)? >> >> Only the first line, the second one is commented. It was just a comment >> for >> me to remember the >> returning value of xwininfo. Here you have an example of how it works if >> you execute it in a terminal: >> >> jose at ...1836...:~$ xwininfo -name "monitor - Gambas II"| grep "Window id" >> xwininfo: Window id: 0x3c0000c "monitor - Gambas II" >> >> >> Does xwininfo program give all the info(ID/Title etc) that the mouse is >> >> > hovering over? >> >> if you take a look to "man xwininfo" you will see that you have to pass >> it >> the window name or the window id and it will return all the data about >> the >> window. You can also use it just clicking on the selected window to get >> all >> the information. The way I use it in this code is passing the window name >> to get the window id, as the Embedder control needs the window id. I know >> the window name because it's launched using shell from the same >> application. Depending on your needs you have to choose between the >> different options to use xwininfo. >> >> Regards. >> Jos? L. > > To find a window id from its title, you can use the Desktop.Find() method > of > the gb.desktop component. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p14985624.html Sent from the gambas-user mailing list archive at Nabble.com. From peterdatkins at ...1073... Sun Jan 20 20:30:08 2008 From: peterdatkins at ...1073... (Peterdatkins) Date: Sun, 20 Jan 2008 11:30:08 -0800 (PST) Subject: [Gambas-user] Database Manager useage In-Reply-To: <200801201822.33572.ronstk@...239...> References: <14980242.post@...1379...> <200801201331.51162.ronstk@...239...> <14981793.post@...1379...> <200801201557.00842.ronstk@...239...> <14983303.post@...1379...> <200801201822.33572.ronstk@...239...> Message-ID: <14985658.post@...1379...> How would I start the database manager in the terminal? I can type 'gambas2' and gambas2 starts OK If I type gambas-database-manager there is a response of,... bash: gambas-database-manager: command not found. Ron Onstenk wrote: > > On Sunday 20 January 2008 17:17, Peterdatkins wrote: >> >> No, no error messages pop up. >> Peter >> >> Ron Onstenk wrote: >> > >> > Stupid me. :-) >> > >> > Your server is running because you are able to use it in code? >> > >> > So I did remove both servers and choose "New Server' >> > type:mysql >> > host:localhost >> > user:gambas >> > pass:gambas >> > Pressing OK did showup my gambas at ...40...(mysql) server. >> > >> > The user/pass are once made for gambas projects. >> > >> > No error messages popup? >> > >> > Ron >> > > > No idea what goes wrong at your place. > You can try in terminal to start gambas-database-manager. > Maybe this way a error message occurs. > > Ron > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Database-Manager-useage-tp14980242p14985658.html Sent from the gambas-user mailing list archive at Nabble.com. From sourceforge-raindog2 at ...94... Sun Jan 20 20:32:51 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 20 Jan 2008 14:32:51 -0500 Subject: [Gambas-user] Enhanced component project management for 2.1 In-Reply-To: <200801201905.05050.gambas@...1...> References: <200801201403.38736.gambas@...1...> <200801201855.57352.ronstk@...239...> <200801201905.05050.gambas@...1...> Message-ID: <200801201432.51832.sourceforge-raindog2@...94...> On Sunday 20 January 2008 13:05, Benoit Minisini wrote: > > What is the difference between 'msctl32.ListBox' 'Apple.ListBox' > > and 'gb.qt.listbox'? The implementaion only, all show and present > > the same content. > > Either these implementations are doing the same thing, and so you > won't have to use them simultaneously, either they are not, and > then they must have different names. So will a Gambas program that uses two components which both offer a class with the same name, regardless of what the two classes do, simply not compile? Or will Gambas make some attempt to choose the "right" class? Rob From jredrejo at ...626... Sun Jan 20 20:48:21 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Sun, 20 Jan 2008 20:48:21 +0100 Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <200801201939.59120.gambas@...1...> References: <14931902.post@...1379...> <14983556.post@...1379...> <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> <200801201939.59120.gambas@...1...> Message-ID: <8eb28a500801201148u4158a2a0s5e51c932d90127ef@...627...> gb.desktop didn't exist when I did that application... that obviously is easier 2008/1/20, Benoit Minisini : > > On dimanche 20 janvier 2008, Jos? Luis Redrejo wrote: > > 2008/1/20, Khos : > > > Hi Jose, > > > > > > I emailed you direct but if there is anyone else who can provide input > > > that > > > would be great. Am I correct in thinking that your 2 lines of code: > > > SHELL "xwininfo -name \"" & title & "\"| grep \"Window id\" " to > result1 > > > 'result1=xwininfo: Window id: 0x3201eca "title" > > > > > > Will give me the active window's title on the Ubuntu desktop (any > > > app/window)? > > > > Only the first line, the second one is commented. It was just a comment > for > > me to remember the > > returning value of xwininfo. Here you have an example of how it works if > > you execute it in a terminal: > > > > jose at ...1836...:~$ xwininfo -name "monitor - Gambas II"| grep "Window id" > > xwininfo: Window id: 0x3c0000c "monitor - Gambas II" > > > > > > Does xwininfo program give all the info(ID/Title etc) that the mouse is > > > > > hovering over? > > > > if you take a look to "man xwininfo" you will see that you have to pass > it > > the window name or the window id and it will return all the data about > the > > window. You can also use it just clicking on the selected window to get > all > > the information. The way I use it in this code is passing the window > name > > to get the window id, as the Embedder control needs the window id. I > know > > the window name because it's launched using shell from the same > > application. Depending on your needs you have to choose between the > > different options to use xwininfo. > > > > Regards. > > Jos? L. > > To find a window id from its title, you can use the Desktop.Find() method > of > the gb.desktop component. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jan 20 20:57:22 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Jan 2008 20:57:22 +0100 Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <14985624.post@...1379...> References: <14931902.post@...1379...> <200801201939.59120.gambas@...1...> <14985624.post@...1379...> Message-ID: <200801202057.22187.gambas@...1...> On dimanche 20 janvier 2008, Khos wrote: > Thanks Jose and Oh master of Gambas :) > > I will have a look at Jose's info but Benoit.. I have tried to use > Desktop.Find() but the documentation was not so understandable for me. It > would seem like a much simpler way with this. Does this function get all > the windows titles and put it into an array? if so how would you know which > one is the active window? there are no sample codes on how to use this > function, unless you could point to some, I would appreciate your efforts > very much :) > > Many thanks for the help so far folks! > Kind regards > Kim > I don't know if it is possible to know the active window with X Window. Maybe the desktop manager stores a property about it in the root window? -- Benoit Minisini From ronstk at ...239... Sun Jan 20 20:03:45 2008 From: ronstk at ...239... (ron) Date: Sun, 20 Jan 2008 20:03:45 +0100 Subject: [Gambas-user] Enhanced component project management for 2.1 In-Reply-To: <200801201905.05050.gambas@...1...> References: <200801201403.38736.gambas@...1...> <200801201855.57352.ronstk@...239...> <200801201905.05050.gambas@...1...> Message-ID: <200801202003.46050.ronstk@...239...> On Sunday 20 January 2008 19:05, Benoit Minisini wrote: > On dimanche 20 janvier 2008, ron wrote: ... > > inside gb? Oooh and shame for me for see the gb-apple.x.y.z as apple.x.y.z. > > here :-( > > > > I was talking about naming the component packages. Nothing related to the > language itself. > That is why I wrote 'Oooh and shame' :) > > > If there are two classes with the same name in two components, they ... > > What is the difference between 'msctl32.ListBox' 'Apple.ListBox' and > > 'gb.qt.listbox'? The implementaion only, all show and present the same > > content. > > Either these implementations are doing the same thing, and so you won't have > to use them simultaneously, either they are not, and then they must have > different names. That is my point. Benoit, Ron and God write a ListBox, all with different implementations. Why should the a person (God) not call the contol 'ListBox'. I do like your implemantation more then mine for the Methods/Events/Proprties but MisterX likes the Listbox implementation of God. Every programmer has the right to name his/her controls like they want and choose a name close to the function. I asume your packagename as gb-apple.x.y.z is the container pack. inside the component will be then gb.apple.ListBox. If I like that one more then yours in gb.qt.ListBox how do I use then only the gb.apple.Listbox? > > > My point was the 'msctrl32', 'gb.apple' and 'gb.qt' are equivalent to the > > namespace for the listbox, in simple view and words. > > I do not mean the OS and/or language of the Listbox or library is written > > with. > > I don't understand what you meant there... see above > > > > > Still fan of gambas guru Benoit :-) > > > > Ron > > > > I was afraid you tried to persuade me to implement namespaces. > Need dictionary to look up 'persuade'. OK found. Yes it may looks that way from your point. I write a 'VideoViewerBox' and someone else does at the same time in Brazil with the same name. Why should I or the Brazilian rename his control. Lets asume both persons write 10 controls. With pacakge names gb-ron-controllers and gb-brazilian-controllers and by accident all controls have the same name. Fabian wants to use 5 controls from ron and other 5 from apple/brazilian. How could he reference to the correct ones? It was this I had in my eyes at reading the announcement. My fault. > Beware, I can bite! Good heavens, from one point I would and then be infected by your programming skills :-) Lot to learn for me but also happy you are far away from the Netherlands. Ron PS. Do take your rest. It loke as you are 23/6 working on gambas. From gareth at ...1689... Sun Jan 20 20:11:55 2008 From: gareth at ...1689... (Gareth Bult) Date: Sun, 20 Jan 2008 19:11:55 +0000 (GMT) Subject: [Gambas-user] Weird Timer Problem In-Reply-To: <10268640.481200856092858.JavaMail.root@...1834...> Message-ID: <13151722.501200856315419.JavaMail.root@...1834...> Ok, I finally managed to reproduce my problem in a code snippet. Essentially this is a new project, stock V2 gambas, with a blank form and one element, a timer called "killer". If I run the code, it works fine. If I insert the killer.stop and killer.start lines, the program crashes with a signal #11 after about 5 to 10 iterations. Help! ---- ' Gambas class file PUBLIC EXTERN virConnectOpenReadOnly(host AS String) AS Pointer IN "libvirt" PUBLIC EXTERN virDomainLookupByID(con AS Pointer, id AS Integer) AS Pointer IN "libvirt" PUBLIC EXTERN virDomainGetInfo(dom AS Pointer, inf AS Pointer) AS Integer IN "libvirt" PUBLIC SUB killer_Timer() 'killer.Stop() 'Adding these lines causes Sig#11 after 5-10 iterations PRINT "Help me!" DoIt() 'killer.Start() 'Adding these lines causes Sig#11 after 5-1- iterations END PUBLIC SUB DoIt() DIM node AS Pointer DIM domain AS Pointer DIM info AS Pointer = Alloc(24) node = virConnectOpenReadOnly("xen+tls://nodeb/default") domain = virDomainLookupByID(node, 0) virDomainGetInfo(domain, info) END From kim.hoskin at ...1073... Sun Jan 20 21:40:25 2008 From: kim.hoskin at ...1073... (Khos) Date: Sun, 20 Jan 2008 12:40:25 -0800 (PST) Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <8eb28a500801201148u4158a2a0s5e51c932d90127ef@...627...> References: <14931902.post@...1379...> <14981935.post@...1379...> <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> <14983556.post@...1379...> <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> <200801201939.59120.gambas@...1...> <8eb28a500801201148u4158a2a0s5e51c932d90127ef@...627...> Message-ID: <14986572.post@...1379...> Hi, So from what I can gather it might not be possible with desktop.find() to get the active window info (could a component be developed:)) but does this xwininfo or man xwininfo give you info of the window that your mouse is hovering over? I think so, so I could try use this? What are your thoughts? Thanks Kim Jos? Luis Redrejo wrote: > > gb.desktop didn't exist when I did that application... that obviously is > easier > > 2008/1/20, Benoit Minisini : >> >> On dimanche 20 janvier 2008, Jos? Luis Redrejo wrote: >> > 2008/1/20, Khos : >> > > Hi Jose, >> > > >> > > I emailed you direct but if there is anyone else who can provide >> input >> > > that >> > > would be great. Am I correct in thinking that your 2 lines of code: >> > > SHELL "xwininfo -name \"" & title & "\"| grep \"Window id\" " to >> result1 >> > > 'result1=xwininfo: Window id: 0x3201eca "title" >> > > >> > > Will give me the active window's title on the Ubuntu desktop (any >> > > app/window)? >> > >> > Only the first line, the second one is commented. It was just a comment >> for >> > me to remember the >> > returning value of xwininfo. Here you have an example of how it works >> if >> > you execute it in a terminal: >> > >> > jose at ...1836...:~$ xwininfo -name "monitor - Gambas II"| grep "Window >> id" >> > xwininfo: Window id: 0x3c0000c "monitor - Gambas II" >> > >> > >> > Does xwininfo program give all the info(ID/Title etc) that the mouse is >> > >> > > hovering over? >> > >> > if you take a look to "man xwininfo" you will see that you have to pass >> it >> > the window name or the window id and it will return all the data about >> the >> > window. You can also use it just clicking on the selected window to get >> all >> > the information. The way I use it in this code is passing the window >> name >> > to get the window id, as the Embedder control needs the window id. I >> know >> > the window name because it's launched using shell from the same >> > application. Depending on your needs you have to choose between the >> > different options to use xwininfo. >> > >> > Regards. >> > Jos? L. >> >> To find a window id from its title, you can use the Desktop.Find() method >> of >> the gb.desktop component. >> >> Regards, >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p14986572.html Sent from the gambas-user mailing list archive at Nabble.com. From kim.hoskin at ...1073... Sun Jan 20 21:44:29 2008 From: kim.hoskin at ...1073... (Khos) Date: Sun, 20 Jan 2008 12:44:29 -0800 (PST) Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <200801202057.22187.gambas@...1...> References: <14931902.post@...1379...> <14981935.post@...1379...> <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> <14983556.post@...1379...> <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> <200801201939.59120.gambas@...1...> <14985624.post@...1379...> <200801202057.22187.gambas@...1...> Message-ID: <14986597.post@...1379...> The X window information program does seem to know which window your mouse is hovering over.. if I could use that in Gambas it would answer my questions. I just noticed.. this X window information does have a Global hints section where it lists the active window! man, how can I access that in Gambas? Would I need to follow Jose's tip/code? Benoit Minisini wrote: > > On dimanche 20 janvier 2008, Khos wrote: >> Thanks Jose and Oh master of Gambas :) >> >> I will have a look at Jose's info but Benoit.. I have tried to use >> Desktop.Find() but the documentation was not so understandable for me. It >> would seem like a much simpler way with this. Does this function get all >> the windows titles and put it into an array? if so how would you know >> which >> one is the active window? there are no sample codes on how to use this >> function, unless you could point to some, I would appreciate your efforts >> very much :) >> >> Many thanks for the help so far folks! >> Kind regards >> Kim >> > > I don't know if it is possible to know the active window with X Window. > Maybe > the desktop manager stores a property about it in the root window? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p14986597.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Jan 20 22:04:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Jan 2008 22:04:46 +0100 Subject: [Gambas-user] Weird Timer Problem In-Reply-To: <13151722.501200856315419.JavaMail.root@...1834...> References: <13151722.501200856315419.JavaMail.root@...1834...> Message-ID: <200801202204.46601.gambas@...1...> On dimanche 20 janvier 2008, Gareth Bult wrote: > Ok, I finally managed to reproduce my problem in a code snippet. > Essentially this is a new project, stock V2 gambas, with a blank form and > one element, a timer called "killer". > > If I run the code, it works fine. > If I insert the killer.stop and killer.start lines, the program crashes > with a signal #11 after about 5 to 10 iterations. > > Help! > > ---- > > ' Gambas class file > PUBLIC EXTERN virConnectOpenReadOnly(host AS String) AS Pointer IN > "libvirt" PUBLIC EXTERN virDomainLookupByID(con AS Pointer, id AS Integer) > AS Pointer IN "libvirt" PUBLIC EXTERN virDomainGetInfo(dom AS Pointer, inf > AS Pointer) AS Integer IN "libvirt" > > PUBLIC SUB killer_Timer() > > 'killer.Stop() 'Adding these lines causes Sig#11 after 5-10 iterations > PRINT "Help me!" > DoIt() > 'killer.Start() 'Adding these lines causes Sig#11 after 5-1- iterations > > END > > PUBLIC SUB DoIt() > > DIM node AS Pointer > DIM domain AS Pointer > DIM info AS Pointer = Alloc(24) > > node = virConnectOpenReadOnly("xen+tls://nodeb/default") > domain = virDomainLookupByID(node, 0) > virDomainGetInfo(domain, info) > > END > No problem there. I think that the crash comes from DoIt() instead. Try to remove the call DoIt() and keep the calls to Killer.Stop() and Killer.Start(), and tell me if it crashes. I don't know at all the extern functions you are calling, so I suggest that you run your project into valgrind to see when the memory is corrupted. To do that, open a terminal inside your project directory, and type: $ valgrind --num-callers=80 gbx2 -p Regards, -- Benoit Minisini From gareth at ...1689... Sun Jan 20 22:48:39 2008 From: gareth at ...1689... (Gareth Bult) Date: Sun, 20 Jan 2008 21:48:39 +0000 (GMT) Subject: [Gambas-user] Weird Timer Problem In-Reply-To: <21692478.571200865571895.JavaMail.root@...1834...> Message-ID: <22704909.591200865719835.JavaMail.root@...1834...> Well .. (!) If I run the code without the stop/start components, I don't see a problem with "Doit" at all. (and I've now had the code running for hours non-stop) If I run from the command line, it bombs on 11 iterations. If I run through valgrind - it doesn't crash ... Any other ideas? Note the code fragment is complete and libvirt is a fairly stable / standard library. (and of course it doesn't crash without the stop/start, OR when called outside the timer) ??? (I'm still watching Valgrind print out "Help me!" ...) ----- Original Message ----- step 3.: "Benoit Minisini" To: "mailing list for gambas users" Sent: 20 January 2008 21:04:46 o'clock (GMT) Europe/London Subject: Re: [Gambas-user] Weird Timer Problem On dimanche 20 janvier 2008, Gareth Bult wrote: > Ok, I finally managed to reproduce my problem in a code snippet. > Essentially this is a new project, stock V2 gambas, with a blank form and > one element, a timer called "killer". > > If I run the code, it works fine. > If I insert the killer.stop and killer.start lines, the program crashes > with a signal #11 after about 5 to 10 iterations. > > Help! > > ---- > > ' Gambas class file > PUBLIC EXTERN virConnectOpenReadOnly(host AS String) AS Pointer IN > "libvirt" PUBLIC EXTERN virDomainLookupByID(con AS Pointer, id AS Integer) > AS Pointer IN "libvirt" PUBLIC EXTERN virDomainGetInfo(dom AS Pointer, inf > AS Pointer) AS Integer IN "libvirt" > > PUBLIC SUB killer_Timer() > > 'killer.Stop() 'Adding these lines causes Sig#11 after 5-10 iterations > PRINT "Help me!" > DoIt() > 'killer.Start() 'Adding these lines causes Sig#11 after 5-1- iterations > > END > > PUBLIC SUB DoIt() > > DIM node AS Pointer > DIM domain AS Pointer > DIM info AS Pointer = Alloc(24) > > node = virConnectOpenReadOnly("xen+tls://nodeb/default") > domain = virDomainLookupByID(node, 0) > virDomainGetInfo(domain, info) > > END > No problem there. I think that the crash comes from DoIt() instead. Try to remove the call DoIt() and keep the calls to Killer.Stop() and Killer.Start(), and tell me if it crashes. I don't know at all the extern functions you are calling, so I suggest that you run your project into valgrind to see when the memory is corrupted. To do that, open a terminal inside your project directory, and type: $ valgrind --num-callers=80 gbx2 -p Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sun Jan 20 22:53:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Jan 2008 22:53:13 +0100 Subject: [Gambas-user] Weird Timer Problem In-Reply-To: <22704909.591200865719835.JavaMail.root@...1834...> References: <22704909.591200865719835.JavaMail.root@...1834...> Message-ID: <200801202253.13891.gambas@...1...> On dimanche 20 janvier 2008, Gareth Bult wrote: > Well .. (!) > > If I run the code without the stop/start components, I don't see a problem > with "Doit" at all. (and I've now had the code running for hours non-stop) > > If I run from the command line, it bombs on 11 iterations. > > If I run through valgrind - it doesn't crash ... > > Any other ideas? > If it does not crash with valgrind, and crashes without, I don't see! But at least you could provide me the backtrace of the crash with gdb. -- Benoit Minisini From gareth at ...1689... Sun Jan 20 23:08:20 2008 From: gareth at ...1689... (Gareth Bult) Date: Sun, 20 Jan 2008 22:08:20 +0000 (GMT) Subject: [Gambas-user] Weird Timer Problem In-Reply-To: <200801202253.13891.gambas@...1...> Message-ID: <24220068.621200866900722.JavaMail.root@...1834...> Mmm, yes ... But I think you're going to tell me I need to do something else to get more information out ?? Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1210841424 (LWP 25197)] 0x10aa5600 in ?? () (gdb) bt #0 0x10aa5600 in ?? () #1 0xb70b8506 in ?? () from /usr/lib/libglib-2.0.so.0 #2 0x082526a8 in ?? () #3 0x08334e80 in ?? () #4 0xbf9c81c8 in ?? () #5 0xb70b76b8 in ?? () from /usr/lib/libglib-2.0.so.0 #6 0xb712e804 in ?? () from /usr/lib/libglib-2.0.so.0 #7 0xbf9c81cc in ?? () #8 0xbf9c81d8 in ?? () #9 0xb712e248 in ?? () from /usr/lib/libglib-2.0.so.0 #10 0xb712e248 in ?? () from /usr/lib/libglib-2.0.so.0 #11 0xbf9c820c in ?? () #12 0xbf9c8228 in ?? () #13 0xb70b7d96 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 Backtrace stopped: frame did not save the PC ----- Original Message ----- step 3.: "Benoit Minisini" To: "mailing list for gambas users" Sent: 20 January 2008 21:53:13 o'clock (GMT) Europe/London Subject: Re: [Gambas-user] Weird Timer Problem On dimanche 20 janvier 2008, Gareth Bult wrote: > Well .. (!) > > If I run the code without the stop/start components, I don't see a problem > with "Doit" at all. (and I've now had the code running for hours non-stop) > > If I run from the command line, it bombs on 11 iterations. > > If I run through valgrind - it doesn't crash ... > > Any other ideas? > If it does not crash with valgrind, and crashes without, I don't see! But at least you could provide me the backtrace of the crash with gdb. -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sun Jan 20 23:35:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Jan 2008 23:35:11 +0100 Subject: [Gambas-user] Weird Timer Problem In-Reply-To: <24220068.621200866900722.JavaMail.root@...1834...> References: <24220068.621200866900722.JavaMail.root@...1834...> Message-ID: <200801202335.11464.gambas@...1...> On dimanche 20 janvier 2008, Gareth Bult wrote: > Mmm, yes ... > > But I think you're going to tell me I need to do something else to get more > information out ?? > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1210841424 (LWP 25197)] > 0x10aa5600 in ?? () > (gdb) bt > #0 0x10aa5600 in ?? () > #1 0xb70b8506 in ?? () from /usr/lib/libglib-2.0.so.0 > #2 0x082526a8 in ?? () > #3 0x08334e80 in ?? () > #4 0xbf9c81c8 in ?? () > #5 0xb70b76b8 in ?? () from /usr/lib/libglib-2.0.so.0 > #6 0xb712e804 in ?? () from /usr/lib/libglib-2.0.so.0 > #7 0xbf9c81cc in ?? () > #8 0xbf9c81d8 in ?? () > #9 0xb712e248 in ?? () from /usr/lib/libglib-2.0.so.0 > #10 0xb712e248 in ?? () from /usr/lib/libglib-2.0.so.0 > #11 0xbf9c820c in ?? () > #12 0xbf9c8228 in ?? () > #13 0xb70b7d96 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 > Backtrace stopped: frame did not save the PC > Did you compile Gambas with the debugging informations? To do that, you must use 'make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g"' instead of just 'make'. Can you try with gb.qt instead of gb.gtk too? Regards, -- Benoit Minisini From gambas at ...1... Sun Jan 20 23:48:54 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Jan 2008 23:48:54 +0100 Subject: [Gambas-user] Fwd: DBLog Message-ID: <200801202348.55035.gambas@...1...> ---------- Message transmis ---------- Sujet?: DBLog Date?: dimanche 20 janvier 2008 De?: "Pino Zollo" ??: "ai4jw" , "dl2wrj" , "g0frd" , "W7GJ Lance EME" , "va3db" , "PG4I" , "pa0r" , g3kma at ...1844..., gambas at ...1... Hi everybody in the list from Pino ZP4KFX. You might be interested in my DBLog, a logging program written in GAMBAS which uses CWDAEMON and relational data bases for storing datas and configurations. The Beta release is on my site http://www.qsl.net/zp4kfx/Linux Comments and help are very apreciated. 73 Pino ------------------------------------------------------------------------ Presentation of DBLog DBLog is a logging program for radio amateurs based on a relational Data Base. It has been developed in Gambas, a sort of Visual Basic for Linux, and the relational database PostgreSQL. It should work also with MySQL and SQLite, but this has not been tested yet. It allows to log QSOs and export a range of them in ADIF format. It can read the radio frequency via CAT interface It includes a CW Keyer based on cwdaemon. The advantages of using a relational data base both for qso datas and configuration datas are: -- The code of DBLog is much simpler. -- The user can do any kind of fancy query on datas using the standard SQL language. -- The client-sever structure (PostgreSQL and MySQL only) allows a multi-operator club station or DX expedition to have many operators logging into the same log. The log server can even be remote. -- data back-up can be done using the database features. -- Other program can be used to analyse datas like psql, pgAdmin III, TOra for PostgreSQL, or Emma, MySQL query browser, MySQL-navigator for MySQL. -- Anybody can write other programs ( for digimodes, EME, Meteorscatter etc.) who log into the same log, without the need of been integrated into DBLog. DBLog is using free software and it is released in source code under the GNU GPL licence, so anybody can modify it and improve it. Beta testers and Gambas programmers are welcome ! ------------------------------------------------------- -- Benoit Minisini From gareth at ...1689... Mon Jan 21 00:44:53 2008 From: gareth at ...1689... (Gareth Bult) Date: Sun, 20 Jan 2008 23:44:53 +0000 (GMT) Subject: [Gambas-user] Weird Timer Problem In-Reply-To: <2170432.651200872492901.JavaMail.root@...1834...> Message-ID: <3666395.671200872693400.JavaMail.root@...1834...> Hmm .... Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1210411344 (LWP 21559)] 0xb7e19d4a in ?? () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0xb7e19d4a in ?? () from /lib/tls/i686/cmov/libc.so.6 #1 0xb7adf282 in ?? () from /usr/lib/libgcrypt.so.11 #2 0x082ee2b0 in ?? () #3 0x00000001 in ?? () #4 0xbff2a638 in ?? () #5 0xb7ae29b3 in ?? () from /usr/lib/libgcrypt.so.11 #6 0xb7b1ea34 in ?? () from /usr/lib/libgcrypt.so.11 #7 0xb7b1e700 in ?? () from /usr/lib/libgcrypt.so.11 #8 0x0826f990 in ?? () #9 0xb7b1d904 in ?? () from /usr/lib/libgcrypt.so.11 #10 0x00000001 in ?? () #11 0xb7efa170 in ?? () from /lib/tls/i686/cmov/libc.so.6 #12 0xbff2a668 in ?? () #13 0x00000018 in ?? () #14 0x00000003 in ?? () #15 0xb7efa170 in ?? () from /lib/tls/i686/cmov/libc.so.6 #16 0xb7e19c81 in ?? () from /lib/tls/i686/cmov/libc.so.6 #17 0x00000000 in ?? () BUT !! If I switch to qt (as opposed to "gui") the problem goes away and the code works fine !!! ... I'm thinking this might be a Gambas/GTK problem ? ----- Original Message ----- step 3.: "Benoit Minisini" To: "mailing list for gambas users" Sent: 20 January 2008 22:35:11 o'clock (GMT) Europe/London Subject: Re: [Gambas-user] Weird Timer Problem On dimanche 20 janvier 2008, Gareth Bult wrote: > Mmm, yes ... > > But I think you're going to tell me I need to do something else to get more > information out ?? > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1210841424 (LWP 25197)] > 0x10aa5600 in ?? () > (gdb) bt > #0 0x10aa5600 in ?? () > #1 0xb70b8506 in ?? () from /usr/lib/libglib-2.0.so.0 > #2 0x082526a8 in ?? () > #3 0x08334e80 in ?? () > #4 0xbf9c81c8 in ?? () > #5 0xb70b76b8 in ?? () from /usr/lib/libglib-2.0.so.0 > #6 0xb712e804 in ?? () from /usr/lib/libglib-2.0.so.0 > #7 0xbf9c81cc in ?? () > #8 0xbf9c81d8 in ?? () > #9 0xb712e248 in ?? () from /usr/lib/libglib-2.0.so.0 > #10 0xb712e248 in ?? () from /usr/lib/libglib-2.0.so.0 > #11 0xbf9c820c in ?? () > #12 0xbf9c8228 in ?? () > #13 0xb70b7d96 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 > Backtrace stopped: frame did not save the PC > Did you compile Gambas with the debugging informations? To do that, you must use 'make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g"' instead of just 'make'. Can you try with gb.qt instead of gb.gtk too? Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Jan 21 00:51:19 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Jan 2008 00:51:19 +0100 Subject: [Gambas-user] Weird Timer Problem In-Reply-To: <3666395.671200872693400.JavaMail.root@...1834...> References: <3666395.671200872693400.JavaMail.root@...1834...> Message-ID: <200801210051.20324.gambas@...1...> On lundi 21 janvier 2008, Gareth Bult wrote: > Hmm .... > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1210411344 (LWP 21559)] > 0xb7e19d4a in ?? () from /lib/tls/i686/cmov/libc.so.6 > (gdb) bt > #0 0xb7e19d4a in ?? () from /lib/tls/i686/cmov/libc.so.6 > #1 0xb7adf282 in ?? () from /usr/lib/libgcrypt.so.11 > #2 0x082ee2b0 in ?? () > #3 0x00000001 in ?? () > #4 0xbff2a638 in ?? () > #5 0xb7ae29b3 in ?? () from /usr/lib/libgcrypt.so.11 > #6 0xb7b1ea34 in ?? () from /usr/lib/libgcrypt.so.11 > #7 0xb7b1e700 in ?? () from /usr/lib/libgcrypt.so.11 > #8 0x0826f990 in ?? () > #9 0xb7b1d904 in ?? () from /usr/lib/libgcrypt.so.11 > #10 0x00000001 in ?? () > #11 0xb7efa170 in ?? () from /lib/tls/i686/cmov/libc.so.6 > #12 0xbff2a668 in ?? () > #13 0x00000018 in ?? () > #14 0x00000003 in ?? () > #15 0xb7efa170 in ?? () from /lib/tls/i686/cmov/libc.so.6 > #16 0xb7e19c81 in ?? () from /lib/tls/i686/cmov/libc.so.6 > #17 0x00000000 in ?? () > > BUT !! > > If I switch to qt (as opposed to "gui") the problem goes away and the code > works fine !!! > > ... I'm thinking this might be a Gambas/GTK problem ? > For sure, but I did my test with both gb.qt and gb.gtk and everything works fine... It would be cool if you could try the version in /branches/2.0. Regards, -- Benoit Minisini From ronstk at ...239... Mon Jan 21 02:16:25 2008 From: ronstk at ...239... (ron) Date: Mon, 21 Jan 2008 02:16:25 +0100 Subject: [Gambas-user] Database Manager useage In-Reply-To: <14985658.post@...1379...> References: <14980242.post@...1379...> <200801201822.33572.ronstk@...239...> <14985658.post@...1379...> Message-ID: <200801210216.26175.ronstk@...239...> On Sunday 20 January 2008 20:30, Peterdatkins wrote: > > How would I start the database manager in the terminal? > I can type 'gambas2' and gambas2 starts OK > If I type gambas-database-manager there is a response of,... bash: > gambas-database-manager: command not found. > > Check for installation place of gambas2. At the same place the gambas-database-manager should be also. Because you can start the database-manager from within the gambas IDE it must be somewhere installed. Possible places for debian are /usr/bin or /usr/local/bin Using the full path to gambas2-database-manager should start it. i.e. /usr/bin/gambas-database-manager or /usr/local/bin/gambas-database-manager I did compile from source and my install path is /opt/gb I do have /opt/gb/bin directory now with gambas2 gambas2.gambas gambas-database-manager gba2 gbc2 gbi2 gbr2 gbx2 After reading over and over there is something strange. the IDE is gambas2, the datbase is gambas-database-manager. Maybe in your case, the final release, it is gambas2-database-manager. I don't have other idea what is going wrong. Ron From rterry at ...1822... Mon Jan 21 04:52:08 2008 From: rterry at ...1822... (richard terry) Date: Mon, 21 Jan 2008 14:52:08 +1100 Subject: [Gambas-user] How to use the svn Message-ID: <200801211452.09009.rterry@...1822...> I've upgraded the svn as Benoit tells me there are some changes which I've asked for. However I don't know how/where to build/run/execute or whatever the contents of the SVN. Any pointers. Thanks. Richard From peterdatkins at ...1073... Mon Jan 21 05:43:55 2008 From: peterdatkins at ...1073... (Peterdatkins) Date: Sun, 20 Jan 2008 20:43:55 -0800 (PST) Subject: [Gambas-user] Database Manager useage In-Reply-To: <200801210216.26175.ronstk@...239...> References: <14980242.post@...1379...> <200801201331.51162.ronstk@...239...> <14981793.post@...1379...> <200801201557.00842.ronstk@...239...> <14983303.post@...1379...> <200801201822.33572.ronstk@...239...> <14985658.post@...1379...> <200801210216.26175.ronstk@...239...> Message-ID: <14991206.post@...1379...> I have found the executable, it is called gambas-database-manager.gambas in /usr/bin. It runs in exactly the same way from there, i.e.it doesn't work! I suppose I should reinstall everything. It seems likely that there is something with the compilation somewhere. (Ron,Thanks for your help) Ron Onstenk wrote: > > On Sunday 20 January 2008 20:30, Peterdatkins wrote: >> >> How would I start the database manager in the terminal? >> I can type 'gambas2' and gambas2 starts OK >> If I type gambas-database-manager there is a response of,... bash: >> gambas-database-manager: command not found. >> >> > > > Check for installation place of gambas2. > At the same place the gambas-database-manager should be also. > > Because you can start the database-manager from within the gambas IDE > it must be somewhere installed. > Possible places for debian are /usr/bin or /usr/local/bin > > Using the full path to gambas2-database-manager should start it. > i.e. /usr/bin/gambas-database-manager or > /usr/local/bin/gambas-database-manager > > I did compile from source and my install path is /opt/gb > I do have /opt/gb/bin directory now with > gambas2 > gambas2.gambas > gambas-database-manager > gba2 > gbc2 > gbi2 > gbr2 > gbx2 > > After reading over and over there is something strange. > the IDE is gambas2, the datbase is gambas-database-manager. > Maybe in your case, the final release, it is gambas2-database-manager. > > I don't have other idea what is going wrong. > > Ron > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Database-Manager-useage-tp14980242p14991206.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jan 21 08:42:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Jan 2008 08:42:06 +0100 Subject: [Gambas-user] Database Manager useage In-Reply-To: <200801210216.26175.ronstk@...239...> References: <14980242.post@...1379...> <14985658.post@...1379...> <200801210216.26175.ronstk@...239...> Message-ID: <200801210842.06742.gambas@...1...> On lundi 21 janvier 2008, ron wrote: > On Sunday 20 January 2008 20:30, Peterdatkins wrote: > > How would I start the database manager in the terminal? > > I can type 'gambas2' and gambas2 starts OK > > If I type gambas-database-manager there is a response of,... bash: > > gambas-database-manager: command not found. > > Check for installation place of gambas2. > At the same place the gambas-database-manager should be also. > > Because you can start the database-manager from within the gambas IDE > it must be somewhere installed. > Possible places for debian are /usr/bin or /usr/local/bin > > Using the full path to gambas2-database-manager should start it. > i.e. /usr/bin/gambas-database-manager or > /usr/local/bin/gambas-database-manager > > I did compile from source and my install path is /opt/gb > I do have /opt/gb/bin directory now with > gambas2 > gambas2.gambas > gambas-database-manager > gba2 > gbc2 > gbi2 > gbr2 > gbx2 > > After reading over and over there is something strange. > the IDE is gambas2, the datbase is gambas-database-manager. > Maybe in your case, the final release, it is gambas2-database-manager. > > I don't have other idea what is going wrong. > > Ron > You made me notice that I forgot to rename gambas-database-manager to gambas2-database-manager in the 2.0 version. Otherwise it cannot be installed with the 1.0 version on the same system... I will fix that for the 2.1. Regards, -- Benoit Minisini From gunartha.nyoman at ...1817... Mon Jan 21 06:19:05 2008 From: gunartha.nyoman at ...1817... (gunartha.nyoman) Date: Mon, 21 Jan 2008 17:19:05 +1200 Subject: [Gambas-user] number format Message-ID: <200801211719.06045.gunartha.nyoman@...1817...> Hi all, How to unformat a number in textbox = 12,500,500.50 to a result number as 12500500.50 Thank you Regards Gunartha From ronstk at ...239... Mon Jan 21 09:25:04 2008 From: ronstk at ...239... (ron) Date: Mon, 21 Jan 2008 09:25:04 +0100 Subject: [Gambas-user] Database Manager useage In-Reply-To: <200801210842.06742.gambas@...1...> References: <14980242.post@...1379...> <200801210216.26175.ronstk@...239...> <200801210842.06742.gambas@...1...> Message-ID: <200801210925.04845.ronstk@...239...> On Monday 21 January 2008 08:42, Benoit Minisini wrote: > You made me notice that I forgot to rename gambas-database-manager to > gambas2-database-manager in the 2.0 version. Otherwise it cannot be installed > with the 1.0 version on the same system... I will fix that for the 2.1. > > Regards, > Again stupid me :-) I have both installed and had indeed problems with g-d-bm So I compiled v2 again my own way to /opt/gb Does Peter have version 1 installed in the past? Then removing the files and symlinks in /usr/bin before installing v2 is need. > in /usr/bin: > ? gambas2 > ? gambas2.gambas > ? gambas-database-manager > ? gba2 > ? gbc2 > ? gbi2 > ? gbr2 > ? gbx2 Reinstall can help to solve the problem. Ron From jscops at ...11... Mon Jan 21 09:39:50 2008 From: jscops at ...11... (Jacky) Date: Mon, 21 Jan 2008 09:39:50 +0100 Subject: [Gambas-user] number format In-Reply-To: <200801211719.06045.gunartha.nyoman@...1817...> References: <200801211719.06045.gunartha.nyoman@...1817...> Message-ID: <200801210939.50669.jscops@...11...> Le Monday 21 January 2008 06:19:05 gunartha.nyoman, vous avez ?crit?: > Hi all, > > How to unformat a number in textbox = 12,500,500.50 to a result number as > 12500500.50 textbox.text = format$(textbox.text, "#########0.#0") Jacky From jscops at ...11... Mon Jan 21 09:41:51 2008 From: jscops at ...11... (Jacky) Date: Mon, 21 Jan 2008 09:41:51 +0100 Subject: [Gambas-user] number format In-Reply-To: <200801210939.50669.jscops@...11...> References: <200801211719.06045.gunartha.nyoman@...1817...> <200801210939.50669.jscops@...11...> Message-ID: <200801210941.51199.jscops@...11...> Le Monday 21 January 2008 09:39:50 Jacky, vous avez ?crit?: > Le Monday 21 January 2008 06:19:05 gunartha.nyoman, vous avez ?crit?: > > Hi all, > > > > How to unformat a number in textbox = 12,500,500.50 to a result number as > > 12500500.50 > > textbox.text = format$(textbox.text, "#########0.#0") textbox.text = format$(val(textbox.text), "#########0.#0") This will be better. jacky From gambas.fr at ...626... Mon Jan 21 13:05:48 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 21 Jan 2008 13:05:48 +0100 Subject: [Gambas-user] number format In-Reply-To: <200801210941.51199.jscops@...11...> References: <200801211719.06045.gunartha.nyoman@...1817...> <200801210939.50669.jscops@...11...> <200801210941.51199.jscops@...11...> Message-ID: <6324a42a0801210405u51638459we44de55e277d8a11@...627...> simply do val(textbox.text) but you must take care that your system location is correct 2008/1/21, Jacky : > > Le Monday 21 January 2008 09:39:50 Jacky, vous avez ?crit: > > Le Monday 21 January 2008 06:19:05 gunartha.nyoman, vous avez ?crit: > > > Hi all, > > > > > > How to unformat a number in textbox = 12,500,500.50 to a result number > as > > > 12500500.50 > > > > textbox.text = format$(textbox.text, "#########0.#0") > > > textbox.text = format$(val(textbox.text), "#########0.#0") > > This will be better. > > jacky > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jaap_cramer at ...67... Mon Jan 21 13:25:14 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Mon, 21 Jan 2008 13:25:14 +0100 Subject: [Gambas-user] number format In-Reply-To: <6324a42a0801210405u51638459we44de55e277d8a11@...627...> References: <200801211719.06045.gunartha.nyoman@...1817...> <200801210939.50669.jscops@...11...> <200801210941.51199.jscops@...11...> <6324a42a0801210405u51638459we44de55e277d8a11@...627...> Message-ID: hello people I wonder what is the purpose of this mailing list. I'm am just a week around, so please correct me if I am wrong, but it seems to me this is not the place to ask simple questions about basic functionalities as VAL and FORMAT. It is ofcourse very kind of jacky and fabien to answer the question of gunartha, but I think he could find it in any available help of faq of gambas, or even any basic language... Am I right in assuming this mailing list is the place to ask questions of UNSUSPECTED behavoiur of gambas and bugs, instead of basic functionality? kind regards, Jaap ---------------------------------------- > Date: Mon, 21 Jan 2008 13:05:48 +0100 > From: gambas.fr at ...626... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] number format > > simply do val(textbox.text) but you must take care that your system location > is correct > > 2008/1/21, Jacky : >> >> Le Monday 21 January 2008 09:39:50 Jacky, vous avez ?crit: >>> Le Monday 21 January 2008 06:19:05 gunartha.nyoman, vous avez ?crit: >>>> Hi all, >>>> >>>> How to unformat a number in textbox = 12,500,500.50 to a result number >> as >>>> 12500500.50 >>> >>> textbox.text = format$(textbox.text, "#########0.#0") >> >> >> textbox.text = format$(val(textbox.text), "#########0.#0") >> >> This will be better. >> >> jacky >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ De mooiste afbeeldingen van Angelina Jolie vind je met Live Search http://search.live.com/images/results.aspx?q=angelina%20jolie&FORM=MIINTM From Karl.Reinl at ...9... Mon Jan 21 13:41:04 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 21 Jan 2008 13:41:04 +0100 Subject: [Gambas-user] How to use the svn In-Reply-To: <200801211452.09009.rterry@...1822...> References: <200801211452.09009.rterry@...1822...> Message-ID: <1200919264.7877.3.camel@...40...> Salut, attached you a script. use sudo make install > ../svn-make_install.log 2>&1 or su -c 'make install > ../svn-make_install.log 2>&1' Amicalment Charlie Am Montag, den 21.01.2008, 14:52 +1100 schrieb richard terry: > I've upgraded the svn as Benoit tells me there are some changes which I've > asked for. > > However I don't know how/where to build/run/execute or whatever the contents > of the SVN. > > Any pointers. > > Thanks. > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: svnMake Type: application/x-shellscript Size: 945 bytes Desc: not available URL: From rospolosco at ...152... Mon Jan 21 14:49:28 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 21 Jan 2008 14:49:28 +0100 Subject: [Gambas-user] number format In-Reply-To: References: <200801211719.06045.gunartha.nyoman@...1817...> <6324a42a0801210405u51638459we44de55e277d8a11@...627...> Message-ID: <200801211449.28943.rospolosco@...152...> Alle 13:25, luned? 21 gennaio 2008, Jaap Cramer ha scritto: > hello people > > I wonder what is the purpose of this mailing list. I'm am just a week > around, so please correct me if I am wrong, but it seems to me this is not > the place to ask simple questions about basic functionalities as VAL and > FORMAT. It is ofcourse very kind of jacky and fabien to answer the question > of gunartha, but I think he could find it in any available help of faq of > gambas, or even any basic language... > > Am I right in assuming this mailing list is the place to ask questions of > UNSUSPECTED behavoiur of gambas and bugs, instead of basic functionality? > > kind regards, > Jaap > You're wrong :-) We're all kind people :-) Beginners are *welcome* in this list, even with basic BASIC questions. If a Gambas beginner asks for easy questions there are two possible solutions: 1) ignore the question 2) answer the question Nobody has to reply. Nobody has to read non intersting questions. But if someone wants to reply, that's a positive thing. In last three years I made up this idea about this list: a lot of good people that want to help each other. Stefano ---------------------------------------- > > > Date: Mon, 21 Jan 2008 13:05:48 +0100 > > From: gambas.fr at ...626... > > To: gambas-user at lists.sourceforge.net > > Subject: Re: [Gambas-user] number format > > > > simply do val(textbox.text) but you must take care that your system > > location is correct > > > > 2008/1/21, Jacky : > >> Le Monday 21 January 2008 09:39:50 Jacky, vous avez ?crit: > >>> Le Monday 21 January 2008 06:19:05 gunartha.nyoman, vous avez ?crit: > >>>> Hi all, > >>>> > >>>> How to unformat a number in textbox = 12,500,500.50 to a result number > >> > >> as > >> > >>>> 12500500.50 > >>> > >>> textbox.text = format$(textbox.text, "#########0.#0") > >> > >> textbox.text = format$(val(textbox.text), "#########0.#0") > >> > >> This will be better. > >> > >> jacky > >> > >> > >> > >> ------------------------------------------------------------------------ > >>- This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > _________________________________________________________________ > De mooiste afbeeldingen van Angelina Jolie vind je met Live Search > http://search.live.com/images/results.aspx?q=angelina%20jolie&FORM=MIINTM > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jaap_cramer at ...67... Mon Jan 21 14:54:05 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Mon, 21 Jan 2008 14:54:05 +0100 Subject: [Gambas-user] number format In-Reply-To: <200801211449.28943.rospolosco@...152...> References: <200801211719.06045.gunartha.nyoman@...1817...> <6324a42a0801210405u51638459we44de55e277d8a11@...627...> <200801211449.28943.rospolosco@...152...> Message-ID: very well :-) I'm not against nice people keep up the good works! ---------------------------------------- > From: rospolosco at ...152... > To: gambas-user at lists.sourceforge.net > Date: Mon, 21 Jan 2008 14:49:28 +0100 > Subject: Re: [Gambas-user] number format > > Alle 13:25, luned? 21 gennaio 2008, Jaap Cramer ha scritto: >> hello people >> >> I wonder what is the purpose of this mailing list. I'm am just a week >> around, so please correct me if I am wrong, but it seems to me this is not >> the place to ask simple questions about basic functionalities as VAL and >> FORMAT. It is ofcourse very kind of jacky and fabien to answer the question >> of gunartha, but I think he could find it in any available help of faq of >> gambas, or even any basic language... >> >> Am I right in assuming this mailing list is the place to ask questions of >> UNSUSPECTED behavoiur of gambas and bugs, instead of basic functionality? >> >> kind regards, >> Jaap >> > > You're wrong :-) > > We're all kind people :-) > > Beginners are *welcome* in this list, even with basic BASIC questions. > > If a Gambas beginner asks for > easy questions there are two possible solutions: > > 1) ignore the question > 2) answer the question > > Nobody has to reply. Nobody has to read non intersting > questions. But if someone wants to reply, that's a positive thing. > > In last three years I made up this idea about this list: > a lot of good people that want to help each other. > > Stefano > > > > > > ---------------------------------------- >> >>> Date: Mon, 21 Jan 2008 13:05:48 +0100 >>> From: gambas.fr at ...626... >>> To: gambas-user at lists.sourceforge.net >>> Subject: Re: [Gambas-user] number format >>> >>> simply do val(textbox.text) but you must take care that your system >>> location is correct >>> >>> 2008/1/21, Jacky : >>>> Le Monday 21 January 2008 09:39:50 Jacky, vous avez ?crit: >>>>> Le Monday 21 January 2008 06:19:05 gunartha.nyoman, vous avez ?crit: >>>>>> Hi all, >>>>>> >>>>>> How to unformat a number in textbox = 12,500,500.50 to a result number >>>> >>>> as >>>> >>>>>> 12500500.50 >>>>> >>>>> textbox.text = format$(textbox.text, "#########0.#0") >>>> >>>> textbox.text = format$(val(textbox.text), "#########0.#0") >>>> >>>> This will be better. >>>> >>>> jacky >>>> >>>> >>>> >>>> ------------------------------------------------------------------------ >>>>- This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> _________________________________________________________________ >> De mooiste afbeeldingen van Angelina Jolie vind je met Live Search >> http://search.live.com/images/results.aspx?q=angelina%20jolie&FORM=MIINTM >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ De mooiste afbeeldingen van Angelina Jolie vind je met Live Search http://search.live.com/images/results.aspx?q=angelina%20jolie&FORM=MIINTM From cheguebeara at ...626... Mon Jan 21 15:47:37 2008 From: cheguebeara at ...626... (Che) Date: Mon, 21 Jan 2008 09:47:37 -0500 Subject: [Gambas-user] number format In-Reply-To: References: <200801211719.06045.gunartha.nyoman@...1817...> <6324a42a0801210405u51638459we44de55e277d8a11@...627...> <200801211449.28943.rospolosco@...152...> Message-ID: <1200926858.3902.7.camel@...1835...> There are no bad questions... although there are some bad answers out there... I've been programming for 30 years (starting with the infamous card readers) and only recently came upon Gambas. This week people more knowledgeable about Gambas helped me out with a simple question that saved me a lot of grief and hopefully in the next few months I can return the favour!! What would be nice though would be more tutorials, especially as they pertain to Gambas2. GambasDoc and GambasForge are coming along but there are still major gaps that when filled would certainly cut down on the questions from newbs like myself (gee, it has been years since I have been a newb...lol). Is there a formal Gambas documentation project or is it ad hoc at the present time? I would be willing to volunteer to help out with documentation - perhaps Jaap might want to volunteer as well? Cheers! Mark On Mon, 2008-01-21 at 14:54 +0100, Jaap Cramer wrote: > very well :-) > I'm not against nice people > > keep up the good works! > > > > ---------------------------------------- > > From: rospolosco at ...152... > > To: gambas-user at lists.sourceforge.net > > Date: Mon, 21 Jan 2008 14:49:28 +0100 > > Subject: Re: [Gambas-user] number format > > > > Alle 13:25, luned? 21 gennaio 2008, Jaap Cramer ha scritto: > >> hello people > >> > >> I wonder what is the purpose of this mailing list. I'm am just a week > >> around, so please correct me if I am wrong, but it seems to me this is not > >> the place to ask simple questions about basic functionalities as VAL and > >> FORMAT. It is ofcourse very kind of jacky and fabien to answer the question > >> of gunartha, but I think he could find it in any available help of faq of > >> gambas, or even any basic language... > >> > >> Am I right in assuming this mailing list is the place to ask questions of > >> UNSUSPECTED behavoiur of gambas and bugs, instead of basic functionality? > >> > >> kind regards, > >> Jaap > >> > > > > You're wrong :-) > > > > We're all kind people :-) > > > > Beginners are *welcome* in this list, even with basic BASIC questions. > > > > If a Gambas beginner asks for > > easy questions there are two possible solutions: > > > > 1) ignore the question > > 2) answer the question > > > > Nobody has to reply. Nobody has to read non intersting > > questions. But if someone wants to reply, that's a positive thing. > > > > In last three years I made up this idea about this list: > > a lot of good people that want to help each other. > > > > Stefano > > > > > > > > > > > > ---------------------------------------- > >> > >>> Date: Mon, 21 Jan 2008 13:05:48 +0100 > >>> From: gambas.fr at ...626... > >>> To: gambas-user at lists.sourceforge.net > >>> Subject: Re: [Gambas-user] number format > >>> > >>> simply do val(textbox.text) but you must take care that your system > >>> location is correct > >>> > >>> 2008/1/21, Jacky : > >>>> Le Monday 21 January 2008 09:39:50 Jacky, vous avez ?crit: > >>>>> Le Monday 21 January 2008 06:19:05 gunartha.nyoman, vous avez ?crit: > >>>>>> Hi all, > >>>>>> > >>>>>> How to unformat a number in textbox = 12,500,500.50 to a result number > >>>> > >>>> as > >>>> > >>>>>> 12500500.50 > >>>>> > >>>>> textbox.text = format$(textbox.text, "#########0.#0") > >>>> > >>>> textbox.text = format$(val(textbox.text), "#########0.#0") > >>>> > >>>> This will be better. > >>>> > >>>> jacky > >>>> > >>>> > >>>> > >>>> ------------------------------------------------------------------------ > >>>>- This SF.net email is sponsored by: Microsoft > >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >>> ------------------------------------------------------------------------- > >>> This SF.net email is sponsored by: Microsoft > >>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> _________________________________________________________________ > >> De mooiste afbeeldingen van Angelina Jolie vind je met Live Search > >> http://search.live.com/images/results.aspx?q=angelina%20jolie&FORM=MIINTM > >> ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > _________________________________________________________________ > De mooiste afbeeldingen van Angelina Jolie vind je met Live Search > http://search.live.com/images/results.aspx?q=angelina%20jolie&FORM=MIINTM > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From piramix at ...178... Mon Jan 21 16:05:55 2008 From: piramix at ...178... (=?iso-8859-1?B?UGlyYW1peCBUZWNub2xvZ+1hcw==?=) Date: Mon, 21 Jan 2008 10:05:55 -0500 Subject: [Gambas-user] (no subject) Message-ID: <20080121150555.227B01CE7A6@...1846...> Hi everybody and thanks in advance. Every help will be appreciated. Mi question must be simple but I've been trying to find a solution for my problem for about a week and still haven't found it. Here's the deal. I have a basic program wich stores data in a mysql database, using several tables wich a form that searches in a every table in particular; I'd like use the same form for every search. In that form I use a ListView control to show data to the user, so, when the user doubleclicks on a field of the listview I need the form to close itself and send the data (only one field) to the form wich made the call. To avoid problems I'm using the same names for control to every form. How should I do to make the search form to do that? I do not know if I can attach files so here I post the code I already made: For the Locali form: ' Gambas class file PRIVATE $hConn AS Connection PUBLIC SUB Form_Open() $hConn = NEW Connection GoConnect END PUBLIC SUB GoConnect() TRY $hConn.Close WITH $hConn .Type = "mysql" .Host = "localhost" .Login = "root" .Password = "" .Name = "" END WITH $hConn.Name = "LABORA" $hConn.Open CATCH Message.Error(Error.Text) END PUBLIC SUB Form_Close() END PUBLIC SUB BotGuarda_Click() DIM AgregaDatos AS Result IF Codigo.Text = "" OR Nombre.Text = "" OR Provin.Text = "" THEN Message.Error("Datos insuficientes. No se puede guardar el registro.") ELSE INC Application.Busy $hConn.Begin AgregaDatos = $hConn.Create("LOCALI") AgregaDatos!CODIGO = Codigo.Text AgregaDatos!NOMBRE = Nombre.Text AgregaDatos!PROVIN = Provin.Text AgregaDatos.Update $hConn.Commit DEC Application.Busy Message.Info("El registro se guard? correctamente.") BorrForm CATCH $hConn.Rollback Message.Error(DConv(Error.Text)) ENDIF END PUBLIC SUB BotNuevo_Click() BorrForm END PUBLIC SUB BotCodigo_Click() DIM rDatos AS Result DIM hBusqueda AS Buscar rDatos = $hConn.Exec("SELECT * FROM LOCALI ORDER BY NOMBRE") hBusqueda = NEW Buscar($hConn, rDatos) hBusqueda.Show Codigo.Text = Comun.MiNombre END PUBLIC SUB BotProvin_Click() DIM rDatos AS Result DIM hBusqueda AS Buscar rDatos = $hConn.Exec("SELECT * FROM PROVIN ORDER BY NOMBRE") hBusqueda = NEW Buscar($hConn, rDatos) hBusqueda.Show END PUBLIC SUB Codigo_LostFocus() ActuForm END PUBLIC SUB ActuForm() DIM rDatos AS Result IF Codigo.text <> "" THEN rDatos = $hConn.Exec("SELECT * FROM LOCALI WHERE CODIGO ='" & Codigo.Text & "'") IF rDatos.Available THEN Nombre.Text = rDatos!NOMBRE Provin.Text = rDatos!PROVIN ELSE ENDIF ENDIF END PUBLIC SUB BorrForm() Codigo.Text = "" Nombre.Text = "" Provin.Text = "" TextProvin.Text = "" END PUBLIC SUB Provin_LostFocus() DIM rDatos AS Result rDatos = $hConn.Exec("SELECT NOMBRE FROM PROVIN WHERE CODIGO ='" & Provin.Text & "'") IF rDatos.Available THEN TextProvin.Text = rDatos!NOMBRE ELSE TextProvin.Text = "" ENDIF END ########### For the search form: ' Gambas class file PRIVATE $hConn AS Connection PRIVATE $rDatos AS Result fine AS Boolean cur AS Integer PUBLIC SUB _new(hConn AS Connection, rDatos AS Result) $hConn = hConn $rDatos = rDatos ReadData ME.Move(Int(Rnd(Desktop.W - ME.W)), Int(Rnd(Desktop.H - ME.H))) END PRIVATE SUB ReadData() DIM hField AS ResultField DIM iInd AS Integer INC Application.Busy tbvData.Rows.Count = 0 tbvData.Columns.Count = $rDatos.Fields.Count FOR EACH hField IN $rDatos.Fields WITH hField tbvData.Columns[iInd].Text = .Name tbvData.Columns[iInd].Width = WidthFromType(tbvData, .Type, .Length, .Name) END WITH INC iInd NEXT IF $rDatos.Count = -1 THEN tbvData.Rows.Count = rowcount() ELSE tbvData.Rows.Count = $rDatos.Count ENDIF FINALLY DEC Application.Busy CATCH Message.Error("No se puede efectuar la consulta solicitada." & "\n\n" & DConv(Error.Text)) END PUBLIC SUB tbvData_Data(Row AS Integer, Column AS Integer) $rDatos.MoveTo(Row) tbvData.Data.Text = Str($rDatos[tbvData.Columns[Column].Text]) tbvData.Data.Background = Color.RGB(((Row MOD 2) + 1) * 255, ((Row MOD 2) + 1) * 255, ((Row MOD 2) + 1) * 225) tbvData.Data.Foreground = Color.Black END PUBLIC SUB Form_Resize() tbvData.Resize(ME.ClientW, ME.ClientH) END PRIVATE FUNCTION WidthFromType(hCtrl AS control, iType AS Integer, iLength AS Integer, sTitle AS String) AS Integer DIM iWidth AS Integer SELECT CASE iType CASE gb.Boolean iWidth = hCtrl.Font.Width(Str(FALSE)) + 32 CASE gb.Integer iWidth = hCtrl.Font.Width("1234567890") + 16 CASE gb.Long iWidth = hCtrl.Font.Width("12345678901234567890") + 16 CASE gb.Float iWidth = hCtrl.Font.Width(CStr(Pi) & "E+999") + 16 CASE gb.Date iWidth = hCtrl.Font.Width(Str(Now)) + 16 CASE gb.String IF iLength = 0 THEN iLength = 255 iLength = Min(32, iLength) iWidth = hCtrl.Font.Width("X") * iLength + 16 END SELECT iWidth = Max(iWidth, hCtrl.Font.Width(sTitle) + 8) RETURN iWidth END PRIVATE FUNCTION rowcount() AS Integer DIM rows AS Integer rows = 0 DO $rDatos.MoveTo(rows) INC rows LOOP CATCH RETURN rows END PUBLIC SUB tbvData_DblClick() Comun.MiNombre = tbvData.Current.Text Locali.Codigo.Text = Comun.MiNombre # I'm using this variable to pass the name to the parent form but it doesn't work as I intented to Locali.ActuForm # This is a sub wich refresh data at the parent form ME.Close END Greetings. Pablo. -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! From jaap_cramer at ...67... Mon Jan 21 16:42:22 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Mon, 21 Jan 2008 16:42:22 +0100 Subject: [Gambas-user] (no subject) In-Reply-To: <20080121150555.227B01CE7A6@...1846...> References: <20080121150555.227B01CE7A6@...1846...> Message-ID: Hi Pablo I tried to understand your code, but because many text and variablenames are in spanish (i think) I cant When I use multiple forms, I usualy make a Module (MainMOD) as StartupClass. In Module I call the form, like: dim fM as new FormMain fM.showModal When I am in a Form, I can call all my public variables by MainMOD.varName, and call even another form , and controls thereon like MainMOD.fM.TextBox1.Text I you want to send data form 1 form to another I suggest you do it like PUBLIC SUB tbvData_DblClick() MODULEName.fM.ControlName.Text = tbvData.Current.Text ... ME.close END IMPORTANT: I believe to do this u need to set in the project/properties/options the option 'form controls as public' to true Hope it helps! Jaap ---------------------------------------- > From: piramix at ...178... > To: gambas-user at lists.sourceforge.net > Date: Mon, 21 Jan 2008 10:05:55 -0500 > Subject: [Gambas-user] (no subject) > > Hi everybody and thanks in advance. Every help will be appreciated. > Mi question must be simple but I've been trying to find a solution for my problem for about a week and still haven't found it. > Here's the deal. > I have a basic program wich stores data in a mysql database, using several tables wich a form that searches in a every table in particular; I'd like use the same form for every search. In that form I use a ListView control to show data to the user, so, when the user doubleclicks on a field of the listview I need the form to close itself and send the data (only one field) to the form wich made the call. To avoid problems I'm using the same names for control to every form. How should I do to make the search form to do that? > I do not know if I can attach files so here I post the code I already made: > > For the Locali form: > > ' Gambas class file > > PRIVATE $hConn AS Connection > > PUBLIC SUB Form_Open() > $hConn = NEW Connection > GoConnect > END > > PUBLIC SUB GoConnect() > TRY $hConn.Close > WITH $hConn > .Type = "mysql" > .Host = "localhost" > .Login = "root" > .Password = "" > .Name = "" > END WITH > $hConn.Name = "LABORA" > $hConn.Open > CATCH > Message.Error(Error.Text) > END > > PUBLIC SUB Form_Close() > END > > PUBLIC SUB BotGuarda_Click() > DIM AgregaDatos AS Result > IF Codigo.Text = "" OR Nombre.Text = "" OR Provin.Text = "" THEN > Message.Error("Datos insuficientes. No se puede guardar el registro.") > ELSE > INC Application.Busy > $hConn.Begin > AgregaDatos = $hConn.Create("LOCALI") > AgregaDatos!CODIGO = Codigo.Text > AgregaDatos!NOMBRE = Nombre.Text > AgregaDatos!PROVIN = Provin.Text > AgregaDatos.Update > $hConn.Commit > DEC Application.Busy > Message.Info("El registro se guard? correctamente.") > BorrForm > CATCH > $hConn.Rollback > Message.Error(DConv(Error.Text)) > ENDIF > END > > PUBLIC SUB BotNuevo_Click() > BorrForm > END > > PUBLIC SUB BotCodigo_Click() > DIM rDatos AS Result > DIM hBusqueda AS Buscar > rDatos = $hConn.Exec("SELECT * FROM LOCALI ORDER BY NOMBRE") > hBusqueda = NEW Buscar($hConn, rDatos) > hBusqueda.Show > Codigo.Text = Comun.MiNombre > END > > PUBLIC SUB BotProvin_Click() > DIM rDatos AS Result > DIM hBusqueda AS Buscar > rDatos = $hConn.Exec("SELECT * FROM PROVIN ORDER BY NOMBRE") > hBusqueda = NEW Buscar($hConn, rDatos) > hBusqueda.Show END > > PUBLIC SUB Codigo_LostFocus() > ActuForm > END > > PUBLIC SUB ActuForm() > DIM rDatos AS Result > IF Codigo.text <> "" THEN > rDatos = $hConn.Exec("SELECT * FROM LOCALI WHERE CODIGO ='" & Codigo.Text & "'") > IF rDatos.Available THEN > Nombre.Text = rDatos!NOMBRE > Provin.Text = rDatos!PROVIN > ELSE > ENDIF > ENDIF > END > > > PUBLIC SUB BorrForm() > Codigo.Text = "" > Nombre.Text = "" > Provin.Text = "" > TextProvin.Text = "" > END > > PUBLIC SUB Provin_LostFocus() > DIM rDatos AS Result > rDatos = $hConn.Exec("SELECT NOMBRE FROM PROVIN WHERE CODIGO ='" & Provin.Text & "'") > IF rDatos.Available THEN > TextProvin.Text = rDatos!NOMBRE > ELSE > TextProvin.Text = "" > ENDIF > END > > > ########### > > > For the search form: > > ' Gambas class file > > PRIVATE $hConn AS Connection > PRIVATE $rDatos AS Result > fine AS Boolean > cur AS Integer > > PUBLIC SUB _new(hConn AS Connection, rDatos AS Result) > $hConn = hConn > $rDatos = rDatos > ReadData > ME.Move(Int(Rnd(Desktop.W - ME.W)), Int(Rnd(Desktop.H - ME.H))) > END > > PRIVATE SUB ReadData() > DIM hField AS ResultField > DIM iInd AS Integer > INC Application.Busy > tbvData.Rows.Count = 0 > tbvData.Columns.Count = $rDatos.Fields.Count > FOR EACH hField IN $rDatos.Fields > WITH hField > tbvData.Columns[iInd].Text = .Name > tbvData.Columns[iInd].Width = WidthFromType(tbvData, .Type, .Length, .Name) > END WITH > INC iInd > NEXT > IF $rDatos.Count = -1 THEN > tbvData.Rows.Count = rowcount() > ELSE > tbvData.Rows.Count = $rDatos.Count > ENDIF > FINALLY > DEC Application.Busy > CATCH > Message.Error("No se puede efectuar la consulta solicitada." & "\n\n" & DConv(Error.Text)) > END > > PUBLIC SUB tbvData_Data(Row AS Integer, Column AS Integer) > $rDatos.MoveTo(Row) > tbvData.Data.Text = Str($rDatos[tbvData.Columns[Column].Text]) > tbvData.Data.Background = Color.RGB(((Row MOD 2) + 1) * 255, ((Row MOD 2) + 1) * 255, ((Row MOD 2) + 1) * 225) > tbvData.Data.Foreground = Color.Black > END > > PUBLIC SUB Form_Resize() > tbvData.Resize(ME.ClientW, ME.ClientH) > END > > PRIVATE FUNCTION WidthFromType(hCtrl AS control, iType AS Integer, iLength AS Integer, sTitle AS String) AS Integer > DIM iWidth AS Integer > SELECT CASE iType > CASE gb.Boolean > iWidth = hCtrl.Font.Width(Str(FALSE)) + 32 > CASE gb.Integer > iWidth = hCtrl.Font.Width("1234567890") + 16 > CASE gb.Long > iWidth = hCtrl.Font.Width("12345678901234567890") + 16 > CASE gb.Float > iWidth = hCtrl.Font.Width(CStr(Pi) & "E+999") + 16 > CASE gb.Date > iWidth = hCtrl.Font.Width(Str(Now)) + 16 > CASE gb.String > IF iLength = 0 THEN iLength = 255 > iLength = Min(32, iLength) > iWidth = hCtrl.Font.Width("X") * iLength + 16 > END SELECT > iWidth = Max(iWidth, hCtrl.Font.Width(sTitle) + 8) > RETURN iWidth > END > > PRIVATE FUNCTION rowcount() AS Integer > DIM rows AS Integer > rows = 0 > DO > $rDatos.MoveTo(rows) > INC rows > LOOP > CATCH > RETURN rows > END > > PUBLIC SUB tbvData_DblClick() > Comun.MiNombre = tbvData.Current.Text > Locali.Codigo.Text = Comun.MiNombre # I'm using this variable to pass the name to the parent form but it doesn't work as I intented to > Locali.ActuForm # This is a sub wich refresh data at the parent form > ME.Close > END > > > > Greetings. > Pablo. > > > -- > Want an e-mail address like mine? > Get a free e-mail account today at www.mail.com! > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Probeer Live Search: de zoekmachine van de makers van MSN! http://www.live.com/?searchOnly=true From gareth at ...1689... Mon Jan 21 16:51:24 2008 From: gareth at ...1689... (Gareth Bult) Date: Mon, 21 Jan 2008 15:51:24 +0000 (GMT) Subject: [Gambas-user] Weird Timer Problem In-Reply-To: <2386342.1441200930534073.JavaMail.root@...1834...> Message-ID: <32361247.1461200930684357.JavaMail.root@...1834...> Hi, Same problem in the current 2.0 branch, works on Qt, dies with Gtk. Note !! If I enable the Stop/Start, the timer ceases to honor the DELAY property. i.e. set delay to 3000 and run without the timer stop/start and it runs as expected. Insert the stop/start and it runs with <1s delay .. Inserting an additional killer.delay=3000 makes no difference .. It looks like stop/start/delay are broken in the GTK Timer module. hth Gareth. ----- Original Message ----- step 3.: "Benoit Minisini" To: "mailing list for gambas users" Sent: 20 January 2008 23:51:19 o'clock (GMT) Europe/London Subject: Re: [Gambas-user] Weird Timer Problem On lundi 21 janvier 2008, Gareth Bult wrote: > Hmm .... > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1210411344 (LWP 21559)] > 0xb7e19d4a in ?? () from /lib/tls/i686/cmov/libc.so.6 > (gdb) bt > #0 0xb7e19d4a in ?? () from /lib/tls/i686/cmov/libc.so.6 > #1 0xb7adf282 in ?? () from /usr/lib/libgcrypt.so.11 > #2 0x082ee2b0 in ?? () > #3 0x00000001 in ?? () > #4 0xbff2a638 in ?? () > #5 0xb7ae29b3 in ?? () from /usr/lib/libgcrypt.so.11 > #6 0xb7b1ea34 in ?? () from /usr/lib/libgcrypt.so.11 > #7 0xb7b1e700 in ?? () from /usr/lib/libgcrypt.so.11 > #8 0x0826f990 in ?? () > #9 0xb7b1d904 in ?? () from /usr/lib/libgcrypt.so.11 > #10 0x00000001 in ?? () > #11 0xb7efa170 in ?? () from /lib/tls/i686/cmov/libc.so.6 > #12 0xbff2a668 in ?? () > #13 0x00000018 in ?? () > #14 0x00000003 in ?? () > #15 0xb7efa170 in ?? () from /lib/tls/i686/cmov/libc.so.6 > #16 0xb7e19c81 in ?? () from /lib/tls/i686/cmov/libc.so.6 > #17 0x00000000 in ?? () > > BUT !! > > If I switch to qt (as opposed to "gui") the problem goes away and the code > works fine !!! > > ... I'm thinking this might be a Gambas/GTK problem ? > For sure, but I did my test with both gb.qt and gb.gtk and everything works fine... It would be cool if you could try the version in /branches/2.0. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gareth at ...1689... Mon Jan 21 17:09:36 2008 From: gareth at ...1689... (Gareth Bult) Date: Mon, 21 Jan 2008 16:09:36 +0000 (GMT) Subject: [Gambas-user] Gtk/Qt Differences In-Reply-To: <9948668.1491200931714832.JavaMail.root@...1834...> Message-ID: <25655206.1511200931776831.JavaMail.root@...1834...> Hi, Using the table widget I'm noticing; a. Qt has nice shaded headers, GTK has nasty / blank headers b. Qt headers are left justified, GTK headers are centered c. The two tables use different row spacings Is there any scope for allowing control over header alignment and header appearance? (i.e. it would be nice to make the GTK header the same as QT) ?? Gareth. From kannan62k at ...43... Mon Jan 21 17:30:26 2008 From: kannan62k at ...43... (Kannan) Date: Mon, 21 Jan 2008 10:30:26 -0600 Subject: [Gambas-user] Kannan sent you a friend request on Yaari... Message-ID: From hennie at ...1826... Mon Jan 21 17:32:27 2008 From: hennie at ...1826... (gaupe) Date: Mon, 21 Jan 2008 08:32:27 -0800 (PST) Subject: [Gambas-user] Problem making an installation package Message-ID: <15001008.post@...1379...> I am in the process of trying to make a distrubution package. The first thing i try is making an Ubuntu distribution package this goes wrong. (goes wrong also with example programs for which i try it) with the following message.. i use ubuntu 2.0 i do not know what info i should give more , please let me know what info to provide if needed. Creating package for Ubuntu. Making build directory. Creating desktop file... Sources are being debianizated. Creating package... dpkg-buildpackage: source package is gepit dpkg-buildpackage: source version is 0.0-15 dpkg-buildpackage: source changed by Hennie Harink dpkg-buildpackage: host architecture i386 dpkg-buildpackage: source version without epoch 0.0-15 dh_testdir debian/rules clean dh_testroot rm -Rf `find . -name ".gambas"` rm -Rf `find . -name "*.gambas"` rm -f build-stamp install-stamp dh_clean dh_clean: Compatibility levels before 4 are deprecated. dpkg-source -b gepit dpkg-source: error: source package name `GePiT' contains illegal character `G' The package build has failed. Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed. -- View this message in context: http://www.nabble.com/Problem-making-an--installation-package-tp15001008p15001008.html Sent from the gambas-user mailing list archive at Nabble.com. From gareth at ...1689... Mon Jan 21 17:39:39 2008 From: gareth at ...1689... (Gareth Bult) Date: Mon, 21 Jan 2008 16:39:39 +0000 (GMT) Subject: [Gambas-user] Re; In-Reply-To: <32440180.1571200933427793.JavaMail.root@...1834...> Message-ID: <14890957.1591200933579882.JavaMail.root@...1834...> GridView;; (2.0 branch) "Select" generates an event for QT but not for GTK "RowClick" does not generate an event for either "Click" works on both .. Indeed if you have click and select, you get two events on Qt but one on Gtk. From gambas at ...1... Mon Jan 21 17:40:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Jan 2008 17:40:16 +0100 Subject: [Gambas-user] Problem making an installation package In-Reply-To: <15001008.post@...1379...> References: <15001008.post@...1379...> Message-ID: <200801211740.16585.gambas@...1...> On lundi 21 janvier 2008, gaupe wrote: > I am in the process of trying to make a distrubution package. > The first thing i try is making an Ubuntu distribution package > this goes wrong. > (goes wrong also with example programs for which i try it) > > with the following message.. > i use ubuntu 2.0 2.0 ??? > i do not know what info i should give more , please let me know what info > to provide if needed. Tell which version of Gambas you use. Tell which version of Ubuntu you use (the right one :-)). And send your project to me so that I can debug, or to Jos? Luis Redrejo in the case of Ubuntu because I don't use a Debian-based system. Regards, -- Benoit Minisini From gambas at ...1... Mon Jan 21 17:44:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Jan 2008 17:44:05 +0100 Subject: [Gambas-user] Gtk/Qt Differences In-Reply-To: <25655206.1511200931776831.JavaMail.root@...1834...> References: <25655206.1511200931776831.JavaMail.root@...1834...> Message-ID: <200801211744.05414.gambas@...1...> On lundi 21 janvier 2008, Gareth Bult wrote: > Hi, > > Using the table widget I'm noticing; > > a. Qt has nice shaded headers, GTK has nasty / blank headers It may depend on the theme, because on my Mandriva the GTK+ headers are nicer than the QT ones. > b. Qt headers are left justified, GTK headers are centered I think the two toolkits do not use the same value. But I can make gb.gtk use the same default value as gb.qt. > c. The two tables use different row spacings I can't do anything, the qt default spacing is computed by qt, and the GTK+ one depends on the font height. But you can specified absolute values if you need. > > Is there any scope for allowing control over header alignment and header > appearance? (i.e. it would be nice to make the GTK header the same as QT) Well, the default alignment can be "standardized", and you can force the value if you need. As for the appearance, it depends on the theme used, so it can't be the same. Regards, -- Benoit Minisini From gareth at ...1689... Mon Jan 21 17:53:36 2008 From: gareth at ...1689... (Gareth Bult) Date: Mon, 21 Jan 2008 16:53:36 +0000 (GMT) Subject: [Gambas-user] Gtk/Qt Differences In-Reply-To: <200801211744.05414.gambas@...1...> Message-ID: <18821245.1631200934416614.JavaMail.root@...1834...> AhHa! So, we need a "Gambas theme" that will make stuff look the same on both toolkits ... (???) :) ----- Original Message ----- step 3.: "Benoit Minisini" To: "mailing list for gambas users" Sent: 21 January 2008 16:44:05 o'clock (GMT) Europe/London Subject: Re: [Gambas-user] Gtk/Qt Differences On lundi 21 janvier 2008, Gareth Bult wrote: > Hi, > > Using the table widget I'm noticing; > > a. Qt has nice shaded headers, GTK has nasty / blank headers It may depend on the theme, because on my Mandriva the GTK+ headers are nicer than the QT ones. > b. Qt headers are left justified, GTK headers are centered I think the two toolkits do not use the same value. But I can make gb.gtk use the same default value as gb.qt. > c. The two tables use different row spacings I can't do anything, the qt default spacing is computed by qt, and the GTK+ one depends on the font height. But you can specified absolute values if you need. > > Is there any scope for allowing control over header alignment and header > appearance? (i.e. it would be nice to make the GTK header the same as QT) Well, the default alignment can be "standardized", and you can force the value if you need. As for the appearance, it depends on the theme used, so it can't be the same. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Jan 21 17:59:14 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Jan 2008 17:59:14 +0100 Subject: [Gambas-user] Gtk/Qt Differences In-Reply-To: <18821245.1631200934416614.JavaMail.root@...1834...> References: <18821245.1631200934416614.JavaMail.root@...1834...> Message-ID: <200801211759.14354.gambas@...1...> On lundi 21 janvier 2008, Gareth Bult wrote: > AhHa! > > So, we need a "Gambas theme" that will make stuff look the same on both > toolkits ... (???) > > :) > Mandriva did it, RedHat too I think. They created themes that look the same on both toolkits. Regards, -- Benoit Minisini From gareth at ...1689... Mon Jan 21 18:03:11 2008 From: gareth at ...1689... (Gareth Bult) Date: Mon, 21 Jan 2008 17:03:11 +0000 (GMT) Subject: [Gambas-user] Re; VSplit Message-ID: <11276402.1661200934991195.JavaMail.root@...1834...> Hi, It would be nice if the "Layout" property was exposed to the IDE. (by default, you only see ONE panel) Also (!) it would be nice of the default for layout were "1,1" rather than "1". Gareth. From gareth at ...1689... Mon Jan 21 18:12:36 2008 From: gareth at ...1689... (Gareth Bult) Date: Mon, 21 Jan 2008 17:12:36 +0000 (GMT) Subject: [Gambas-user] Gtk/Qt Differences In-Reply-To: <8959985.1691200935066635.JavaMail.root@...1834...> Message-ID: <12941681.1711200935556335.JavaMail.root@...1834...> Mmm, apparently not on Ubuntu (!) ----- Original Message ----- step 3.: "Benoit Minisini" To: "mailing list for gambas users" Sent: 21 January 2008 16:59:14 o'clock (GMT) Europe/London Subject: Re: [Gambas-user] Gtk/Qt Differences On lundi 21 janvier 2008, Gareth Bult wrote: > AhHa! > > So, we need a "Gambas theme" that will make stuff look the same on both > toolkits ... (???) > > :) > Mandriva did it, RedHat too I think. They created themes that look the same on both toolkits. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jaap_cramer at ...67... Mon Jan 21 18:50:53 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Mon, 21 Jan 2008 18:50:53 +0100 Subject: [Gambas-user] Problem making an installation package In-Reply-To: <200801211740.16585.gambas@...1...> References: <15001008.post@...1379...> <200801211740.16585.gambas@...1...> Message-ID: I remember I had the same error. My workaround was not to use charackers like '%' in de Description text ubuntuu 7.10 gambas 2.0.0 ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Mon, 21 Jan 2008 17:40:16 +0100 > Subject: Re: [Gambas-user] Problem making an installation package > > On lundi 21 janvier 2008, gaupe wrote: >> I am in the process of trying to make a distrubution package. >> The first thing i try is making an Ubuntu distribution package >> this goes wrong. >> (goes wrong also with example programs for which i try it) >> >> with the following message.. >> i use ubuntu 2.0 > > 2.0 ??? > >> i do not know what info i should give more , please let me know what info >> to provide if needed. > > Tell which version of Gambas you use. Tell which version of Ubuntu you use > (the right one :-)). > > And send your project to me so that I can debug, or to Jos? Luis Redrejo in > the case of Ubuntu because I don't use a Debian-based system. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Bekijk Yes-R's real life soap op MSN Video! http://video.msn.com/video.aspx?mkt=nl-nl&tab=m1192527562294&vid=8aff5b76-b78d-4b55-8b64-ef7e1d73aab2&playlist=videoByUuids:uuids:50b732c2-c105-41e9-adf0-36bd627d4eaa,0813da8c-031b-423f-a79d-35d925aee805,5cce447e-948d-43af-9862-45bb6bb9d6d8,6a39138c-f562-4254-be70-9d93343650f8,f9b8d78f-05a4-4c74-8e4b-28d20a4037ab&from=NLNL_Yes-R From gareth at ...1689... Mon Jan 21 19:00:31 2008 From: gareth at ...1689... (Gareth Bult) Date: Mon, 21 Jan 2008 18:00:31 +0000 (GMT) Subject: [Gambas-user] GridView In-Reply-To: <560168.1861200938393984.JavaMail.root@...1834...> Message-ID: <5071588.1881200938431439.JavaMail.root@...1834...> Hi, If I take a form which contains a GridView, which has expand set, the gridview will expand / contract with the main window. Unfortunately, "sometimes" when resizing the main window, the GridView element won't correctly calculate it's width causing the horizontal scrollbar to appear and a small portion of the header to be chopped off. This happens with Qt and Gtk. To reproduce, create an empty form, add gridview, turn headers and expand on. Add to form open grid.Columns.Count = 4 grid.Columns[0].Text = "Col1" grid.Columns[1].Text = "Col2" grid.Columns[2].Text = "Col3" grid.Columns[3].Text = "Col4" grid.Rows.Count = 3 Graphics attached. -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-bugtest1.png Type: image/png Size: 6262 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-bugtest2.png Type: image/png Size: 5623 bytes Desc: not available URL: From tomas.eroles at ...277... Mon Jan 21 20:47:50 2008 From: tomas.eroles at ...277... (Tomas Eroles i Forner) Date: Mon, 21 Jan 2008 20:47:50 +0100 Subject: [Gambas-user] GridView In-Reply-To: <5071588.1881200938431439.JavaMail.root@...1834...> References: <5071588.1881200938431439.JavaMail.root@...1834...> Message-ID: <1200944870.4315.15.camel@...1787...> Where do you say are headers on? I tried to reproduce it but I can't do headers on. El lun, 21-01-2008 a las 18:00 +0000, Gareth Bult escribi?: > Hi, > > If I take a form which contains a GridView, which has expand set, the gridview will expand / contract with the main window. > > Unfortunately, "sometimes" when resizing the main window, the GridView element won't correctly calculate it's width causing the horizontal scrollbar to appear and a small portion of the header to be chopped off. > > This happens with Qt and Gtk. > > To reproduce, create an empty form, add gridview, turn headers and expand on. > > Add to form open > > grid.Columns.Count = 4 > grid.Columns[0].Text = "Col1" > grid.Columns[1].Text = "Col2" > grid.Columns[2].Text = "Col3" > grid.Columns[3].Text = "Col4" > grid.Rows.Count = 3 > > > Graphics attached. > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gareth at ...1689... Mon Jan 21 21:33:21 2008 From: gareth at ...1689... (Gareth Bult) Date: Mon, 21 Jan 2008 20:33:21 +0000 (GMT) Subject: [Gambas-user] GridView In-Reply-To: <1200944870.4315.15.camel@...1787...> Message-ID: <7213996.1911200947601621.JavaMail.root@...1834...> gridview -> properties -> header -> horizontal ----- Original Message ----- step 3.: "Tomas Eroles i Forner" To: "mailing list for gambas users" Sent: 21 January 2008 19:47:50 o'clock (GMT) Europe/London Subject: Re: [Gambas-user] GridView Where do you say are headers on? I tried to reproduce it but I can't do headers on. El lun, 21-01-2008 a las 18:00 +0000, Gareth Bult escribi?: > Hi, > > If I take a form which contains a GridView, which has expand set, the gridview will expand / contract with the main window. > > Unfortunately, "sometimes" when resizing the main window, the GridView element won't correctly calculate it's width causing the horizontal scrollbar to appear and a small portion of the header to be chopped off. > > This happens with Qt and Gtk. > > To reproduce, create an empty form, add gridview, turn headers and expand on. > > Add to form open > > grid.Columns.Count = 4 > grid.Columns[0].Text = "Col1" > grid.Columns[1].Text = "Col2" > grid.Columns[2].Text = "Col3" > grid.Columns[3].Text = "Col4" > grid.Rows.Count = 3 > > > Graphics attached. > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From easuter at ...626... Mon Jan 21 21:40:25 2008 From: easuter at ...626... (=?ISO-8859-1?Q?Eug=E9ne_Suter?=) Date: Mon, 21 Jan 2008 20:40:25 +0000 Subject: [Gambas-user] GTK component not a match for the Qt component? Message-ID: <6bb01940801211240n741d5d51lf7f68a7bdc1c0ffe@...627...> Hi there, Sorry if the message subject is inflammatory, but I'm experiencing trouble using the GTK component with a Gambas2 project that was originally only using Qt (before the GTK component had matured). However, when I switch to the GTK component, there is a loss of functionality in the interface of the program and some other quirks that I will show in screenshots below: The main window, when the installer starts, using the Qt component: http://vectorlinux.osuosl.org/easuter/gbx2_installer_probs/installer-QT.png Here is same window, using the GTK component: http://vectorlinux.osuosl.org/easuter/gbx2_installer_probs/installer-GTK.png Notice that the textlabels, buttons, panel and icons are gone when using the GTK component. Next is the partition selector: Using Qt: http://vectorlinux.osuosl.org/easuter/gbx2_installer_probs/partition-selector-QT.png Using GTK: http://vectorlinux.osuosl.org/easuter/gbx2_installer_probs/partition-selector-GTK.png With GTK, the gridview doesn't seem to do anything it should. And the text in the legend uses HTML, which with Qt renders fine, but with GTK the textlabel displays the raw HTML. To keep the ramdisk of the installer light, we really need to use only one toolkit. The GTK toolkit was chosen in order to achieve a small memory footprint, since we plan to use other GTK apps like Gparted with the gambas embedder. This project was started when Gambas2 was still very unstable (1.9.2xprobably), so is there anything that needs to be done to "update" it? What other debugging do you suggest? Cheers, Eug?ne From gambas at ...1... Mon Jan 21 21:48:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Jan 2008 21:48:16 +0100 Subject: [Gambas-user] GTK component not a match for the Qt component? In-Reply-To: <6bb01940801211240n741d5d51lf7f68a7bdc1c0ffe@...627...> References: <6bb01940801211240n741d5d51lf7f68a7bdc1c0ffe@...627...> Message-ID: <200801212148.16862.gambas@...1...> On lundi 21 janvier 2008, Eug?ne Suter wrote: > Hi there, > > Sorry if the message subject is inflammatory, but I'm experiencing trouble > using the GTK component with a Gambas2 project that was originally only > using Qt (before the GTK component had matured). > > However, when I switch to the GTK component, there is a loss of > functionality in the interface of the program and some other quirks that I > will show in screenshots below: > gb.gtk is younger than gb.qt, so sorry for the people that use it now and have troubles! > The main window, when the installer starts, using the Qt component: > http://vectorlinux.osuosl.org/easuter/gbx2_installer_probs/installer-QT.png > > Here is same window, using the GTK component: > http://vectorlinux.osuosl.org/easuter/gbx2_installer_probs/installer-GTK.pn >g > > Notice that the textlabels, buttons, panel and icons are gone when using > the GTK component. > Next is the partition selector: > > Using Qt: > http://vectorlinux.osuosl.org/easuter/gbx2_installer_probs/partition-select >or-QT.png > > Using GTK: > http://vectorlinux.osuosl.org/easuter/gbx2_installer_probs/partition-select >or-GTK.png > Sorry but I can't read the pictures (The requested URL /easuter/gbx2_installer_probs/installer-QT.png was not found on this server, and so on...) > With GTK, the gridview doesn't seem to do anything it should. Can you give details? > And the text > in the legend uses HTML, which with Qt renders fine, but with GTK the > textlabel displays the raw HTML. TextLabel does not use HTML, but a small subset of it. Qt may render more than this subset, it depends on what you are actually using. > > To keep the ramdisk of the installer light, we really need to use only one > toolkit. The GTK toolkit was chosen in order to achieve a small memory > footprint, since we plan to use other GTK apps like Gparted with the gambas > embedder. > > This project was started when Gambas2 was still very unstable > (1.9.2xprobably), so is there anything that needs to be done to > "update" it? What > other debugging do you suggest? Please specify which version of Gambas you use, give me more details (what does not work on GridView, which HTML do you put in the TextLabel...), and send me your project. > > Cheers, > > Eug?ne Regards, -- Benoit Minisini From dcamposf at ...626... Mon Jan 21 21:49:48 2008 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 21 Jan 2008 21:49:48 +0100 Subject: [Gambas-user] GTK component not a match for the Qt component? In-Reply-To: <6bb01940801211240n741d5d51lf7f68a7bdc1c0ffe@...627...> References: <6bb01940801211240n741d5d51lf7f68a7bdc1c0ffe@...627...> Message-ID: <7259b5ae0801211249t7672e854y2f673630cb0089b9@...627...> Hi: > > Sorry if the message subject is inflammatory, Not really, GTK+ component is not as stable as the QT ine yet, we spect that kind of things > However, when I switch to the GTK component, there is a loss of > functionality in the interface of the program and some other quirks that I > will show in screenshots below: > The screenshots seems not to be there (404 Error), anyway if you can provide code instead of shots It would be more productive :-) > > This project was started when Gambas2 was still very unstable > (1.9.2xprobably), so is there anything that needs to be done to > "update" it? What > other debugging do you suggest? Please try with 2.0.0 version, 1.9.2x series had a quite unstable GTK+ component > > Cheers, > > Eug?ne > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tomas.eroles at ...277... Mon Jan 21 22:09:19 2008 From: tomas.eroles at ...277... (Tomas Eroles i Forner) Date: Mon, 21 Jan 2008 22:09:19 +0100 Subject: [Gambas-user] GridView In-Reply-To: <7213996.1911200947601621.JavaMail.root@...1834...> References: <7213996.1911200947601621.JavaMail.root@...1834...> Message-ID: <1200949759.4315.18.camel@...1787...> >From wich version is possible to put headers in a GridView? Which version are you using? I'm using 1.9.33 and it does not works. Thanks in advance El lun, 21-01-2008 a las 20:33 +0000, Gareth Bult escribi?: > gridview -> properties -> header -> horizontal > > > ----- Original Message ----- > step 3.: "Tomas Eroles i Forner" > To: "mailing list for gambas users" > Sent: 21 January 2008 19:47:50 o'clock (GMT) Europe/London > Subject: Re: [Gambas-user] GridView > > Where do you say are headers on? > I tried to reproduce it but I can't do headers on. > > > El lun, 21-01-2008 a las 18:00 +0000, Gareth Bult escribi?: > > Hi, > > > > If I take a form which contains a GridView, which has expand set, the gridview will expand / contract with the main window. > > > > Unfortunately, "sometimes" when resizing the main window, the GridView element won't correctly calculate it's width causing the horizontal scrollbar to appear and a small portion of the header to be chopped off. > > > > This happens with Qt and Gtk. > > > > To reproduce, create an empty form, add gridview, turn headers and expand on. > > > > Add to form open > > > > grid.Columns.Count = 4 > > grid.Columns[0].Text = "Col1" > > grid.Columns[1].Text = "Col2" > > grid.Columns[2].Text = "Col3" > > grid.Columns[3].Text = "Col4" > > grid.Rows.Count = 3 > > > > > > Graphics attached. > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Jan 21 22:30:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Jan 2008 22:30:31 +0100 Subject: [Gambas-user] Rev 967 bug. Ballon In-Reply-To: <976ad9050801171756g3184b30lede4cf86a4822138@...627...> References: <976ad9050801140157o379fc74chf91227b700aa5f8@...627...> <200801171432.13711.gambas@...1...> <976ad9050801171756g3184b30lede4cf86a4822138@...627...> Message-ID: <200801212230.31180.gambas@...1...> On vendredi 18 janvier 2008, Arief Bayu Purwanto wrote: > Here's the test project. > Just press enter in TextBox and wait a moment and press enter again. The bug has been fixed in the last revision. Regards, -- Benoit Minisini From steven at ...1652... Mon Jan 21 23:00:25 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Mon, 21 Jan 2008 23:00:25 +0100 Subject: [Gambas-user] Arrays !, Sighhhhhh Message-ID: <200801212300.26281.steven@...1652...> Hi, In a form class i do : ColTable[20] AS String[] '21 times 6 strings to define a maximum of 20 columns for the grid The global variable is used in different ways in different modules in the class file. So far so good, all works as expected . I put, for exaple this in it : ColTable[0] = ["No", "No", "32", "Right", "", ""] ColTable[1] = ["Prenom", "Prenom", "96", "Left", "", ""] ColTable[2] = ["Nom", "Nom", "150", "Left", "", ""] ColTable[3] = ["Adresse", "Adresse", "160", "Left", "", ""] ColTable[4] = ["Ville", "Ville", "160", "Left", "", ""] ColTable[5] = ["Pays", "Pays", "150", "Left", "", ""] But, as soon as i activate a modal form to do some work, the first string of all string[]'s are erased! So, i get for instance in ColTable[1] : ["", "Prenom", "96", "Left", "", ""] The modal form does not manipulate ColTable in any way ! Any ideas ? Steven Suse 10.3, Gambas 1.9.91, Under Gnome 2 From gambas at ...1... Mon Jan 21 23:01:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Jan 2008 23:01:39 +0100 Subject: [Gambas-user] Weird Timer Problem In-Reply-To: <32361247.1461200930684357.JavaMail.root@...1834...> References: <32361247.1461200930684357.JavaMail.root@...1834...> Message-ID: <200801212301.39918.gambas@...1...> On lundi 21 janvier 2008, Gareth Bult wrote: > Hi, > > Same problem in the current 2.0 branch, works on Qt, dies with Gtk. > > Note !! > > If I enable the Stop/Start, the timer ceases to honor the DELAY property. > > i.e. set delay to 3000 and run without the timer stop/start and it runs as > expected. > > Insert the stop/start and it runs with <1s delay .. > Inserting an additional killer.delay=3000 makes no difference .. > > It looks like stop/start/delay are broken in the GTK Timer module. > > hth > > Gareth. > Can you try the latest revision (1026)? I fixed a potential crash in gb.gtk timer management. Regards, -- Benoit Minisini From gambas at ...1... Mon Jan 21 23:02:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Jan 2008 23:02:31 +0100 Subject: [Gambas-user] Arrays !, Sighhhhhh In-Reply-To: <200801212300.26281.steven@...1652...> References: <200801212300.26281.steven@...1652...> Message-ID: <200801212302.31404.gambas@...1...> On lundi 21 janvier 2008, Steven Lobbezoo wrote: > Hi, > > In a form class i do : > ColTable[20] AS String[] > '21 times 6 strings to define a maximum of 20 columns for the > grid No, 20 times 6 strings... > > The global variable is used in different ways in different modules in the > class file. > So far so good, all works as expected . > > I put, for exaple this in it : > ColTable[0] = ["No", "No", "32", "Right", "", ""] > ColTable[1] = ["Prenom", "Prenom", "96", "Left", "", ""] > ColTable[2] = ["Nom", "Nom", "150", "Left", "", ""] > ColTable[3] = ["Adresse", "Adresse", "160", "Left", "", ""] > ColTable[4] = ["Ville", "Ville", "160", "Left", "", ""] > ColTable[5] = ["Pays", "Pays", "150", "Left", "", ""] > > But, as soon as i activate a modal form to do some work, the first string > of all string[]'s are erased! > So, i get for instance in ColTable[1] : ["", "Prenom", "96", "Left", "", > ""] > > The modal form does not manipulate ColTable in any way ! > > Any ideas ? > > Steven > > Suse 10.3, Gambas 1.9.91, Under Gnome 2 > Please send your project, and try to use the latest version. Regards, -- Benoit Minisini From gambas at ...1... Tue Jan 22 00:00:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 00:00:01 +0100 Subject: [Gambas-user] Re; In-Reply-To: <14890957.1591200933579882.JavaMail.root@...1834...> References: <14890957.1591200933579882.JavaMail.root@...1834...> Message-ID: <200801220000.01800.gambas@...1...> On lundi 21 janvier 2008, Gareth Bult wrote: > GridView;; (2.0 branch) > > "Select" generates an event for QT but not for GTK > "RowClick" does not generate an event for either > "Click" works on both .. > > Indeed if you have click and select, you get two events on Qt but one on > Gtk. > The Select event was implemented in the last revision (1027). Regards, -- Benoit Minisini From gambas at ...1... Tue Jan 22 00:05:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 00:05:16 +0100 Subject: [Gambas-user] Re; In-Reply-To: <200801220000.01800.gambas@...1...> References: <14890957.1591200933579882.JavaMail.root@...1834...> <200801220000.01800.gambas@...1...> Message-ID: <200801220005.16934.gambas@...1...> On mardi 22 janvier 2008, Benoit Minisini wrote: > On lundi 21 janvier 2008, Gareth Bult wrote: > > GridView;; (2.0 branch) > > > > "Select" generates an event for QT but not for GTK > > "RowClick" does not generate an event for either > > "Click" works on both .. > > > > Indeed if you have click and select, you get two events on Qt but one on > > Gtk. > > The Select event was implemented in the last revision (1027). > > Regards, And the RowClick event works there... -- Benoit Minisini From gambas at ...1... Tue Jan 22 00:05:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 00:05:50 +0100 Subject: [Gambas-user] Re; VSplit In-Reply-To: <11276402.1661200934991195.JavaMail.root@...1834...> References: <11276402.1661200934991195.JavaMail.root@...1834...> Message-ID: <200801220005.50390.gambas@...1...> On lundi 21 janvier 2008, Gareth Bult wrote: > Hi, > > It would be nice if the "Layout" property was exposed to the IDE. > (by default, you only see ONE panel) > > Also (!) it would be nice of the default for layout were "1,1" rather than > "1". > > Gareth. Can you give more details? I'm not sure to clearly understand what you mean. -- Benoit Minisini From gambas at ...1... Tue Jan 22 00:29:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 00:29:21 +0100 Subject: [Gambas-user] The most annoying (lackof) feature of property editor In-Reply-To: <200801040922.53636.rterry@...1822...> References: <200801040922.53636.rterry@...1822...> Message-ID: <200801220029.21671.gambas@...1...> On jeudi 3 janvier 2008, richard terry wrote: > Observation: > ======= > Lack of heading on the property editor indicating which control it refers > to - see the piccies: > > Reason its a problem > ============ > When working with multiple controls on a form and jumping back and forth to > the property editor one 'loses sight' of which control one is working on. > > This wouldn't be so much of a problem if the properties in the property > editor were always those of the object you think you are working on but > there seems to be a little instabiltiy of the IDE e.g sometimes can be > difficult to 'unclick' and object which has focus, or one could have been > working with an object, move back to the property editor and it has been > reset to the properties of another control > > Check out the comparison between the vb editor pw (with it's heading) and > gambas > > Regards > > Richard Hi, Your request has finally been implemented in the last revision (1028) in /branches/2.0. Regards, -- Benoit Minisini From easuter at ...626... Tue Jan 22 00:40:00 2008 From: easuter at ...626... (easuter) Date: Mon, 21 Jan 2008 15:40:00 -0800 (PST) Subject: [Gambas-user] GTK component not a match for the Qt component? In-Reply-To: <200801212148.16862.gambas@...1...> References: <6bb01940801211240n741d5d51lf7f68a7bdc1c0ffe@...627...> <200801212148.16862.gambas@...1...> Message-ID: <15009341.post@...1379...> Sorry about the screenshots, I have put the screenshots on my ftp spce this time, you should be able to see them: Main window: http://clientes.netvisao.pt/alynnsut/installer-QT.png http://clientes.netvisao.pt/alynnsut/installer-GTK.png Partition selector: http://clientes.netvisao.pt/alynnsut/partition-selector-QT.png http://clientes.netvisao.pt/alynnsut/partition-selector-GTK.png > >Please try with 2.0.0 version, 1.9.2x series had a quite unstable GTK+ component > Oh yes, I am using the stable 2.0.0 version of Gambas2. What I meant was that this project was started when Gambas2 was at version 1.9.2x. I just wanted to know if that might have anything to do with the problems I'm having. >Please specify which version of Gambas you use, give me more details (what >does not work on GridView, which HTML do you put in the TextLabel...), and >send me your project. The project is here: http://code.google.com/p/vinstall-ng BTW, the code is *very* messy at this stage, you have been warned :P You will also need to have jfsutils and ntfsprogs installed to see the partition selector in all its glory. Also unpack this tarball into /tmp (its for debugging purposes in the installer): http://vectorlinux.osuosl.org/easuter/vinstall-testing/vinstall-source_package_debug.tar Thanks for the replies! -- View this message in context: http://www.nabble.com/GTK-component-not-a-match-for-the-Qt-component--tp15006027p15009341.html Sent from the gambas-user mailing list archive at Nabble.com. From nxgtrturbo at ...626... Tue Jan 22 00:50:32 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Mon, 21 Jan 2008 15:50:32 -0800 Subject: [Gambas-user] MULTIPLE ROW RESULT Message-ID: <688afe140801211550q5802d45cwb5f006917811ac7d@...627...> MULTIPLE ROW RESULT Hi, I got a trouble with the "Result" data type @ gambas, I have a function like this: PUBLIC myresult AS Result PUBLIC SUB search(lookingfor AS String, table AS String, reference AS String, value AS String) myresult = conexion.Exec("Select " & lookingfor & " from " & table & " where " & reference & " = '" & value & "'") END Everything works perfect when the query returns ONLY ONE ROW, but what about multiple row result?, I tried: PUBLIC myresult AS Result[X] and PUBLIC myresult[X] AS Result But that didn't work (the language doesn't allow that), Is there any possible way to catch all the rows? -- http://www.cardomain.com/ride/645756 http://nxgtrturbo.googlepages.com/ http://www.fotolog.com/nxgtrturbo/ http://tallerhuertas.googlepages.com/ From jaap_cramer at ...67... Tue Jan 22 01:16:55 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Tue, 22 Jan 2008 01:16:55 +0100 Subject: [Gambas-user] What are circular references, and how to avoid? Message-ID: Hi I have a question. I Got, after exiting a fine working project this message in console: WARNING: circular references detected FToolBar (3) FHistory (1) FBible (1) FOptions (1) FLoad (1) ToolPanelContainer (3) FExpander (1) ToolPanel (1) Expander (1) WARNING: 251 allocation(s) non freed. What is it how serious is this :-) and how do I avoid it? Jaap _________________________________________________________________ De mooiste afbeeldingen van Angelina Jolie vind je met Live Search http://search.live.com/images/results.aspx?q=angelina%20jolie&FORM=MIINTM From gareth at ...1689... Tue Jan 22 01:35:55 2008 From: gareth at ...1689... (Gareth Bult) Date: Tue, 22 Jan 2008 00:35:55 +0000 (GMT) Subject: [Gambas-user] Re; VSplit In-Reply-To: <200801220005.50390.gambas@...1...> Message-ID: <2558950.2191200962155795.JavaMail.root@...1834...> In my Form_Open, I use vsplit.layout="1,1" to start with two evenly sizes child objects in the vsplit. If "layout" was exposed to the ide, I could put this in at design time without having to add it into the code ... ----- Original Message ----- step 3.: "Benoit Minisini" To: "mailing list for gambas users" Sent: 21 January 2008 23:05:50 o'clock (GMT) Europe/London Subject: Re: [Gambas-user] Re; VSplit On lundi 21 janvier 2008, Gareth Bult wrote: > Hi, > > It would be nice if the "Layout" property was exposed to the IDE. > (by default, you only see ONE panel) > > Also (!) it would be nice of the default for layout were "1,1" rather than > "1". > > Gareth. Can you give more details? I'm not sure to clearly understand what you mean. -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From nxgtrturbo at ...626... Tue Jan 22 01:40:40 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Mon, 21 Jan 2008 16:40:40 -0800 Subject: [Gambas-user] MULTIPLE ROW RESULT In-Reply-To: <688afe140801211550q5802d45cwb5f006917811ac7d@...627...> References: <688afe140801211550q5802d45cwb5f006917811ac7d@...627...> Message-ID: <688afe140801211640u36e8835fl71635af3587ad9ae@...627...> Sorry, I made a Mistake with the procedure I write, the right one is: PUBLIC SUB tellmeposition(lookingfor AS String, table AS String, reference AS String, value AS String) myresult = conexion.Exec("SELECT count(*) AS position FROM " & table & " where " & lookingfor & " < (SELECT " & lookingfor & " FROM " & table & " where " & reference & " = '" & value & "')") END My program crash with the message: "Query failed: Subquery return more than 1 row" Did I make something wrong? On Jan 21, 2008 3:50 PM, Nx GT-R BOY wrote: > MULTIPLE ROW RESULT > > Hi, I got a trouble with the "Result" data type @ gambas, I have a > function like this: > > PUBLIC myresult AS Result > > PUBLIC SUB search(lookingfor AS String, table AS String, reference AS > String, value AS String) > myresult = conexion.Exec("Select " & lookingfor & " from " & table & " > where " & reference & " = '" & value & "'") > END > > Everything works perfect when the query returns ONLY ONE ROW, but what > about multiple row result?, I tried: > > PUBLIC myresult AS Result[X] > and > PUBLIC myresult[X] AS Result > > But that didn't work (the language doesn't allow that), Is there any > possible way to catch all the rows? > > > > > -- Nx GT-R From nxgtrturbo at ...626... Tue Jan 22 04:42:12 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Mon, 21 Jan 2008 19:42:12 -0800 Subject: [Gambas-user] DATABROWSER FAILS TO UPDATE Message-ID: <688afe140801211942k2a6f82b4n98079a0d67015ef4@...627...> DATABROWSER FAILS TO UPDATE Hi, I have a problem with the refresh of the databrowser, what I am doing is to ADD a value to a GIVEN record with a function, the function would look more complex, so I think is better to write here just the MySQL code: mysql> update some_table set some = some + 1 where code=1; I do that from a function that I call from a simple button from my GUI, but the DataBrowser doesnt update the value of field. What I need to do is close the form, and call it again, for the refresh takes effect, because the "refresh" button does nothing. Is there any suggestion to make the "update process" (from GUI) more nicely? -- Nx GT-R From ariefbayu at ...626... Tue Jan 22 08:32:59 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Tue, 22 Jan 2008 14:32:59 +0700 Subject: [Gambas-user] MULTIPLE ROW RESULT In-Reply-To: <688afe140801211640u36e8835fl71635af3587ad9ae@...627...> References: <688afe140801211550q5802d45cwb5f006917811ac7d@...627...> <688afe140801211640u36e8835fl71635af3587ad9ae@...627...> Message-ID: <976ad9050801212332n3ee018b5lcae37967b3cf6e13@...627...> Can you show us the SQL generated by your script? the actual query that is sent to mysql server. On 1/22/08, Nx GT-R BOY wrote: > > Sorry, I made a Mistake with the procedure I write, the right one is: > > PUBLIC SUB tellmeposition(lookingfor AS String, table AS String, reference > AS String, value AS String) > myresult = conexion.Exec("SELECT count(*) AS position FROM " & table & " > where " & lookingfor & " < (SELECT " & lookingfor & " FROM " & table & " > where " & reference & " = '" & value & "')") > END > > My program crash with the message: > "Query failed: Subquery return more than 1 row" > > Did I make something wrong? > > > On Jan 21, 2008 3:50 PM, Nx GT-R BOY wrote: > > > MULTIPLE ROW RESULT > > > > Hi, I got a trouble with the "Result" data type @ gambas, I have a > > function like this: > > > > PUBLIC myresult AS Result > > > > PUBLIC SUB search(lookingfor AS String, table AS String, reference AS > > String, value AS String) > > myresult = conexion.Exec("Select " & lookingfor & " from " & table & " > > where " & reference & " = '" & value & "'") > > END > > > > Everything works perfect when the query returns ONLY ONE ROW, but what > > about multiple row result?, I tried: > > > > PUBLIC myresult AS Result[X] > > and > > PUBLIC myresult[X] AS Result > > > > But that didn't work (the language doesn't allow that), Is there any > > possible way to catch all the rows? > > > > > > > > > > -- > > Nx GT-R > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From leonardo at ...1237... Tue Jan 22 08:34:52 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 22 Jan 2008 08:34:52 +0100 Subject: [Gambas-user] Problems with TrayIcon Message-ID: <20080122083452.j6pqg3utgk8k0s4s@...1848...> Some time ago I developed a little application that docked an icon in the systray and I called a popup menu just by clicking on it. I developed that app when I used SUSE with KDE. Now that I switched to Ubuntu/Gnome I'm having a problem with that app. When I run my app, I don't get the icon in the systray: I just get a vertical line of just 1 pixel width! My app uses gt.qt component: if I try to use the gb.gtk or the gb.gui I get my app freezed. Ciao. Leonardo. From ronstk at ...239... Tue Jan 22 09:22:33 2008 From: ronstk at ...239... (ron) Date: Tue, 22 Jan 2008 09:22:33 +0100 Subject: [Gambas-user] DATABROWSER FAILS TO UPDATE In-Reply-To: <688afe140801211942k2a6f82b4n98079a0d67015ef4@...627...> References: <688afe140801211942k2a6f82b4n98079a0d67015ef4@...627...> Message-ID: <200801220922.33509.ronstk@...239...> On Tuesday 22 January 2008 04:42, Nx GT-R BOY wrote: > DATABROWSER FAILS TO UPDATE > > Hi, I have a problem with the refresh of the databrowser, what I am doing is > to ADD a value to a GIVEN record with a function, the function would look > more complex, so I think is better to write here just the MySQL code: > > mysql> update some_table set some = some + 1 where code=1; > > I do that from a function that I call from a simple button from my GUI, but > the DataBrowser doesnt update the value of field. > > What I need to do is close the form, and call it again, for the refresh > takes effect, because the "refresh" button does nothing. > > Is there any suggestion to make the "update process" (from GUI) more nicely? > > Gambas uses the snapshot method on a sql request. The description geven by you is correct. Wich refresh button do you mean? If it is in the IDE then the button is for refreshing you gambas project editor and not your running program. You need to implement a refresh in your application program on the Result recordset after every update not done with the edit function into this same Result. Remeber everyone else _can_ update the same or other record without locking the table you are using a database. The only sgestion is do the increment of the field using the same Result or do not keep the Result open all the time. Open and Close in gambas is not strictly Open and Close the table in a database, and lock everyone else out, but more the connection to the database. Seperate handling the same table with different subroutines does not update a made Result in other subroutines automatic. Ron From admin at ...1080... Tue Jan 22 10:11:09 2008 From: admin at ...1080... (admin at ...1080...) Date: Tue, 22 Jan 2008 10:11:09 +0100 Subject: [Gambas-user] Subject: Re: MULTIPLE ROW RESULT In-Reply-To: References: Message-ID: <4795B32D.4070503@...1080...> Hi Nx GT-R BOY Your Subquery (SELECT " & lookingfor & " FROM " & table & " where " & reference & " = '" & value & "') return more then 1 row and that is not Okey for SQL (has nothing to do with Gambas). There are two possibility's to correct it: 1) You can try with "LIMIT 1" for MySQl or "TOP 1" for MSSql (other Sql don't know). 2) Change the where-clause of the Subquery to get one unique row. I can help more here only if you tell more about whats in the variable "reference" and how are data in the table. I would recommend the solution 2) Regards, Werner ------------------------------ Message: 8 Date: Mon, 21 Jan 2008 16:40:40 -0800 From: "Nx GT-R BOY" Subject: Re: [Gambas-user] MULTIPLE ROW RESULT To: gambas-user at lists.sourceforge.net Message-ID: <688afe140801211640u36e8835fl71635af3587ad9ae at ...627...> Content-Type: text/plain; charset=ISO-8859-1 Sorry, I made a Mistake with the procedure I write, the right one is: PUBLIC SUB tellmeposition(lookingfor AS String, table AS String, reference AS String, value AS String) myresult = conexion.Exec("SELECT count(*) AS position FROM " & table & " where " & lookingfor & " < (SELECT " & lookingfor & " FROM " & table & " where " & reference & " = '" & value & "')") END My program crash with the message: "Query failed: Subquery return more than 1 row" Did I make something wrong? On Jan 21, 2008 3:50 PM, Nx GT-R BOY wrote: MULTIPLE ROW RESULT > > Hi, I got a trouble with the "Result" data type @ gambas, I have a > function like this: > > PUBLIC myresult AS Result > > PUBLIC SUB search(lookingfor AS String, table AS String, reference AS > String, value AS String) > myresult = conexion.Exec("Select " & lookingfor & " from " & table & " > where " & reference & " = '" & value & "'") > END > > Everything works perfect when the query returns ONLY ONE ROW, but what > about multiple row result?, I tried: > > PUBLIC myresult AS Result[X] > and > PUBLIC myresult[X] AS Result > > But that didn't work (the language doesn't allow that), Is there any > possible way to catch all the rows? > > > > > -- From kannan62k at ...43... Tue Jan 22 11:24:17 2008 From: kannan62k at ...43... (Kannan) Date: Tue, 22 Jan 2008 04:24:17 -0600 Subject: [Gambas-user] Kannan sent you a friend request on Yaari... Message-ID: From gambas at ...1... Tue Jan 22 11:39:49 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 11:39:49 +0100 Subject: [Gambas-user] DATABROWSER FAILS TO UPDATE In-Reply-To: <688afe140801211942k2a6f82b4n98079a0d67015ef4@...627...> References: <688afe140801211942k2a6f82b4n98079a0d67015ef4@...627...> Message-ID: <200801221139.49702.gambas@...1...> On mardi 22 janvier 2008, Nx GT-R BOY wrote: > DATABROWSER FAILS TO UPDATE > > Hi, I have a problem with the refresh of the databrowser, what I am doing > is to ADD a value to a GIVEN record with a function, the function would > look more complex, so I think is better to write here just the MySQL code: > > mysql> update some_table set some = some + 1 where code=1; > > I do that from a function that I call from a simple button from my GUI, but > the DataBrowser doesnt update the value of field. > > What I need to do is close the form, and call it again, for the refresh > takes effect, because the "refresh" button does nothing. > > Is there any suggestion to make the "update process" (from GUI) more > nicely? You must call manually the DataSource.Refresh() method to reload the data from the database server. And you don't have to yell (i.e use upper case) in the subject of your posts. :-) Regards, -- Benoit Minisini From gambas at ...1... Tue Jan 22 11:42:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 11:42:53 +0100 Subject: [Gambas-user] What are circular references, and how to avoid? In-Reply-To: References: Message-ID: <200801221142.53983.gambas@...1...> On mardi 22 janvier 2008, Jaap Cramer wrote: > Hi > > I have a question. I Got, after exiting a fine working project this message > in console: > > WARNING: circular references detected > FToolBar (3) > FHistory (1) > FBible (1) > FOptions (1) > FLoad (1) > ToolPanelContainer (3) > FExpander (1) > ToolPanel (1) > Expander (1) > WARNING: 251 allocation(s) non freed. > > What is it > how serious is this :-) > and how do I avoid it? > > Jaap > Easy, you avoid it by not creating circular references. :-) A circular reference is when an object A has a variable that points at an object B, and that at the same time the object B has a variable that points at the object A. The interpreter is not clever enough to deal with that, and cannot free the two objects. It just can print a warning at the end of the program, and write the list of classes having objects non freed. Regards, -- Benoit Minisini From eilert-sprachen at ...221... Tue Jan 22 12:18:24 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 22 Jan 2008 12:18:24 +0100 Subject: [Gambas-user] What are circular references, and how to avoid? In-Reply-To: References: Message-ID: <4795D100.7040303@...221...> Jaap Cramer schrieb: > Hi > > I have a question. I Got, after exiting a fine working project this message in console: > > WARNING: circular references detected > FToolBar (3) > FHistory (1) > FBible (1) > FOptions (1) > FLoad (1) > ToolPanelContainer (3) > FExpander (1) > ToolPanel (1) > Expander (1) > WARNING: 251 allocation(s) non freed. > > What is it > how serious is this :-) > and how do I avoid it? > > Jaap > When you've got two SUBs with events which call each other, i. e. event SUB A calls SUB B which triggers an event that calls SUB A and so on. Or if you've got two SUBs with variables that influence each other, i. e. variable A affects variable B which affects variable A which affects variable B.... Take a look at your program code if there's something of this kind. Sometimes it's pretty difficult to find because you just don't expect the thing to live at that place... I often do not know that changing a certain property in an object will call a certain event, and sometimes I forgot I already added some code to this event (to do something completely else) which in turn now changes the property ;-) Sometimes it helps to watch the program step by step, a real eye-opener! Rolf From jaap_cramer at ...67... Tue Jan 22 12:23:39 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Tue, 22 Jan 2008 12:23:39 +0100 Subject: [Gambas-user] What are circular references, and how to avoid? In-Reply-To: <200801221142.53983.gambas@...1...> References: <200801221142.53983.gambas@...1...> Message-ID: Haha Looks easy :-) Here is then my case I use a Module to load a Form. I have a Form, and I want to read the controls of that form. But when If I declared two Forms, say Module.mF1 and Module.mF2 as NEW FMain. How can I read data from mF1 to mF2? If in the Form.Class Or is that not possible? I am not having this problem; its just hypothetical. But I wonder, what else would be the use of declaring a Form, if you cant use it twice of more? Jaap ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Tue, 22 Jan 2008 11:42:53 +0100 > Subject: Re: [Gambas-user] What are circular references, and how to avoid? > > On mardi 22 janvier 2008, Jaap Cramer wrote: >> Hi >> >> I have a question. I Got, after exiting a fine working project this message >> in console: >> >> WARNING: circular references detected >> FToolBar (3) >> FHistory (1) >> FBible (1) >> FOptions (1) >> FLoad (1) >> ToolPanelContainer (3) >> FExpander (1) >> ToolPanel (1) >> Expander (1) >> WARNING: 251 allocation(s) non freed. >> >> What is it >> how serious is this :-) >> and how do I avoid it? >> >> Jaap >> > > Easy, you avoid it by not creating circular references. :-) > > A circular reference is when an object A has a variable that points at an > object B, and that at the same time the object B has a variable that points > at the object A. > > The interpreter is not clever enough to deal with that, and cannot free the > two objects. It just can print a warning at the end of the program, and write > the list of classes having objects non freed. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ De mooiste afbeeldingen van Angelina Jolie vind je met Live Search http://search.live.com/images/results.aspx?q=angelina%20jolie&FORM=MIINTM From steven at ...1652... Tue Jan 22 12:27:43 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Tue, 22 Jan 2008 12:27:43 +0100 Subject: [Gambas-user] Arrays !, Sighhhhhh In-Reply-To: <200801212302.31404.gambas@...1...> References: <200801212300.26281.steven@...1652...> <200801212302.31404.gambas@...1...> Message-ID: <200801221227.43517.steven@...1652...> Le Monday 21 January 2008 23:02:31 Benoit Minisini, vous avez ?crit?: > On lundi 21 janvier 2008, Steven Lobbezoo wrote: > > Hi, > > > > In a form class i do : > > ColTable[20] AS String[] > > '21 times 6 strings to define a maximum of 20 columns for the > > grid > > No, 20 times 6 strings... Of course, ...... > > > The global variable is used in different ways in different modules in the > > class file. > > So far so good, all works as expected . > > > > I put, for exaple this in it : > > ColTable[0] = ["No", "No", "32", "Right", "", ""] > > ColTable[1] = ["Prenom", "Prenom", "96", "Left", "", ""] > > ColTable[2] = ["Nom", "Nom", "150", "Left", "", ""] > > ColTable[3] = ["Adresse", "Adresse", "160", "Left", "", ""] > > ColTable[4] = ["Ville", "Ville", "160", "Left", "", ""] > > ColTable[5] = ["Pays", "Pays", "150", "Left", "", ""] > > > > But, as soon as i activate a modal form to do some work, the first string > > of all string[]'s are erased! > > So, i get for instance in ColTable[1] : ["", "Prenom", "96", "Left", "", > > ""] > > > > The modal form does not manipulate ColTable in any way ! > > > > Any ideas ? > > > > Steven > > > > Suse 10.3, Gambas 1.9.91, Under Gnome 2 > > Please send your project, and try to use the latest version. As you know, I cannot send you the project because your mailbox will not accept it's filesize. However,..... I tried the latest trunk : svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0/ And reconf-all and ./configure are ok , but make ends with : Making all in gbx make[4]: entrant dans le r?pertoire ? /home/steven/2.0/main/gbx ? gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unus ed-value -fvisibility=hidden -g -Os -MT gbx2-gbx_extern.o -MD -MP -MF .deps/gbx2-gbx_extern.Tpo -c -o gbx2-gbx_ext ern.o `test -f 'gbx_extern.c' || echo './'`gbx_extern.c gbx_extern.c:30:17: error: ffi.h: Aucun fichier ou r?pertoire de ce type gbx_extern.c:61: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token gbx_extern.c: In function ?EXTERN_call?: gbx_extern.c:244: error: ?ffi_cif? undeclared (first use in this function)gbx_extern.c:244: error: (Each undeclared identifier is reported only oncegbx_extern.c:244: error: for each function it appears in.)gbx_extern.c:244: error: expected ?;? before ?cif?gbx_extern.c:245: error: ?ffi_type? undeclared (first use in this function)gbx_extern.c:245: error: ?types? undeclared (first use in this function)gbx_extern.c:246: error: ?rtype? undeclared (first use in this function)gbx_extern.c:282: error: ?_to_ffi_type? undeclared (first use in this function)gbx_extern.c:338: warning: implicit declaration of function ?ffi_prep_cif?gbx_extern.c:338: error: ?cif? undeclared (first use in this function)gbx_extern.c:338: error: ?FFI_DEFAULT_ABI? undeclared (first use in this function)gbx_extern.c:338: error: ?FFI_OK? undeclared (first use in this function)gbx_extern.c:341: warning: implicit declaration of function ?ffi_call?make[4]: *** [gbx2-gbx_extern.o] Erreur 1make[4]: quittant le r?pertoire ? /home/steven/2.0/main/gbx ?make[3]: *** [all-recursive] Erreur 1make[3]: quittant le r?pertoire ? /home/steven/2.0/main ?make[2]: *** [all] Erreur 2make[2]: quittant le r?pertoire ? /home/steven/2.0/main ?make[1]: *** [all-recursive] Erreur 1make[1]: quittant le r?pertoire ? /home/steven/2.0 ?make: *** [all] Erreur 2 I'll keep searching, but maybe it's a known problem ? Regards, Steven > > Regards, From gambas at ...1... Tue Jan 22 12:30:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 12:30:33 +0100 Subject: [Gambas-user] Arrays !, Sighhhhhh In-Reply-To: <200801221227.43517.steven@...1652...> References: <200801212300.26281.steven@...1652...> <200801212302.31404.gambas@...1...> <200801221227.43517.steven@...1652...> Message-ID: <200801221230.33478.gambas@...1...> On mardi 22 janvier 2008, Steven Lobbezoo wrote: > As you know, I cannot send you the project because your mailbox will not > accept it's filesize. Just trim it, by removing too big data files. > > However,..... > I tried the latest trunk : > svn checkout > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0/ > > And reconf-all and ./configure are ok , but make ends with : > > Making all in gbx > make[4]: entrant dans le r?pertoire ? /home/steven/2.0/main/gbx ? > gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unus ed-value > -fvisibility=hidden -g -Os -MT > gbx2-gbx_extern.o -MD -MP -MF .deps/gbx2-gbx_extern.Tpo -c -o gbx2-gbx_ext > ern.o `test -f 'gbx_extern.c' || echo './'`gbx_extern.c > gbx_extern.c:30:17: error: ffi.h: Aucun fichier ou r?pertoire de ce type > gbx_extern.c:61: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? > before ?*? token > gbx_extern.c: In function ?EXTERN_call?: > gbx_extern.c:244: error: ?ffi_cif? undeclared (first use in this > function)gbx_extern.c:244: error: (Each undeclared identifier is reported > only oncegbx_extern.c:244: error: for each function it appears > in.)gbx_extern.c:244: error: expected ?;? before ?cif?gbx_extern.c:245: > error: ?ffi_type? undeclared (first use in this function)gbx_extern.c:245: > error: ?types? undeclared (first use in this function)gbx_extern.c:246: > error: ?rtype? undeclared (first use in this function)gbx_extern.c:282: > error: ?_to_ffi_type? undeclared (first use in this > function)gbx_extern.c:338: warning: implicit declaration of > function ?ffi_prep_cif?gbx_extern.c:338: error: ?cif? undeclared (first use > in this function)gbx_extern.c:338: error: ?FFI_DEFAULT_ABI? undeclared > (first use in this function)gbx_extern.c:338: error: ?FFI_OK? undeclared > (first use in this function)gbx_extern.c:341: warning: implicit declaration > of function ?ffi_call?make[4]: *** [gbx2-gbx_extern.o] Erreur 1make[4]: > quittant le r?pertoire ? /home/steven/2.0/main/gbx ?make[3]: *** > [all-recursive] Erreur 1make[3]: quittant le r?pertoire ? > /home/steven/2.0/main ?make[2]: *** [all] Erreur 2make[2]: quittant le > r?pertoire ? /home/steven/2.0/main ?make[1]: *** [all-recursive] Erreur > 1make[1]: quittant le r?pertoire ? /home/steven/2.0 ?make: *** [all] Erreur > 2 > > I'll keep searching, but maybe it's a known problem ? > > Regards, > Steven > > > Regards, > You must install the libffi development package. Regards, -- Benoit Minisini From jaap_cramer at ...67... Tue Jan 22 12:42:01 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Tue, 22 Jan 2008 12:42:01 +0100 Subject: [Gambas-user] What are circular references, and how to avoid? In-Reply-To: <4795D100.7040303@...221...> References: <4795D100.7040303@...221...> Message-ID: Hi I discovered some. But when I search for ToolPanelContainer, FExpander, ToolPanel, Expander, I cant find them. I never use those words, so how can I have made a circular reference? And FExpander isn't even the name of a control I made... BTW, how bad is a circular reference? tnx in advance :-) Jaap ---------------------------------------- > Date: Tue, 22 Jan 2008 12:18:24 +0100 > From: eilert-sprachen at ...221... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] What are circular references, and how to avoid? > > Jaap Cramer schrieb: >> Hi >> >> I have a question. I Got, after exiting a fine working project this message in console: >> >> WARNING: circular references detected >> FToolBar (3) >> FHistory (1) >> FBible (1) >> FOptions (1) >> FLoad (1) >> ToolPanelContainer (3) >> FExpander (1) >> ToolPanel (1) >> Expander (1) >> WARNING: 251 allocation(s) non freed. >> >> What is it >> how serious is this :-) >> and how do I avoid it? >> >> Jaap >> > > > When you've got two SUBs with events which call each other, i. e. event > SUB A calls SUB B which triggers an event that calls SUB A and so on. > > Or if you've got two SUBs with variables that influence each other, i. > e. variable A affects variable B which affects variable A which affects > variable B.... > > Take a look at your program code if there's something of this kind. > Sometimes it's pretty difficult to find because you just don't expect > the thing to live at that place... I often do not know that changing a > certain property in an object will call a certain event, and sometimes I > forgot I already added some code to this event (to do something > completely else) which in turn now changes the property ;-) Sometimes it > helps to watch the program step by step, a real eye-opener! > > Rolf > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ De mooiste afbeeldingen van Angelina Jolie vind je met Live Search http://search.live.com/images/results.aspx?q=angelina%20jolie&FORM=MIINTM From steven at ...1652... Tue Jan 22 13:50:37 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Tue, 22 Jan 2008 13:50:37 +0100 Subject: [Gambas-user] Arrays !, Sighhhhhh In-Reply-To: <200801221230.33478.gambas@...1...> References: <200801212300.26281.steven@...1652...> <200801221227.43517.steven@...1652...> <200801221230.33478.gambas@...1...> Message-ID: <200801221350.38032.steven@...1652...> Le Tuesday 22 January 2008 12:30:33 Benoit Minisini, vous avez ?crit?: > On mardi 22 janvier 2008, Steven Lobbezoo wrote: > > As you know, I cannot send you the project because your mailbox will not > > accept it's filesize. > > Just trim it, by removing too big data files. > > > However,..... > > I tried the latest trunk : > > svn checkout > > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0/ > > > > And reconf-all and ./configure are ok , but make ends with : > > > > Making all in gbx > > make[4]: entrant dans le r?pertoire ? /home/steven/2.0/main/gbx ? > > gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl > > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unus ed-value > > -fvisibility=hidden -g -Os -MT > > gbx2-gbx_extern.o -MD -MP -MF .deps/gbx2-gbx_extern.Tpo -c -o > > gbx2-gbx_ext ern.o `test -f 'gbx_extern.c' || echo './'`gbx_extern.c > > gbx_extern.c:30:17: error: ffi.h: Aucun fichier ou r?pertoire de ce type > > gbx_extern.c:61: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? > > before ?*? token > > gbx_extern.c: In function ?EXTERN_call?: > > gbx_extern.c:244: error: ?ffi_cif? undeclared (first use in this > > function)gbx_extern.c:244: error: (Each undeclared identifier is reported > > only oncegbx_extern.c:244: error: for each function it appears > > in.)gbx_extern.c:244: error: expected ?;? before ?cif?gbx_extern.c:245: > > error: ?ffi_type? undeclared (first use in this > > function)gbx_extern.c:245: error: ?types? undeclared (first use in this > > function)gbx_extern.c:246: error: ?rtype? undeclared (first use in this > > function)gbx_extern.c:282: error: ?_to_ffi_type? undeclared (first use in > > this > > function)gbx_extern.c:338: warning: implicit declaration of > > function ?ffi_prep_cif?gbx_extern.c:338: error: ?cif? undeclared (first > > use in this function)gbx_extern.c:338: error: ?FFI_DEFAULT_ABI? > > undeclared (first use in this function)gbx_extern.c:338: error: ?FFI_OK? > > undeclared (first use in this function)gbx_extern.c:341: warning: > > implicit declaration of function ?ffi_call?make[4]: *** > > [gbx2-gbx_extern.o] Erreur 1make[4]: quittant le r?pertoire ? > > /home/steven/2.0/main/gbx ?make[3]: *** [all-recursive] Erreur 1make[3]: > > quittant le r?pertoire ? > > /home/steven/2.0/main ?make[2]: *** [all] Erreur 2make[2]: quittant le > > r?pertoire ? /home/steven/2.0/main ?make[1]: *** [all-recursive] Erreur > > 1make[1]: quittant le r?pertoire ? /home/steven/2.0 ?make: *** [all] > > Erreur 2 > > > > I'll keep searching, but maybe it's a known problem ? > > > > Regards, > > Steven > > > > > Regards, > > You must install the libffi development package. > > Regards, Ok, did that, now install is ok (2.1.0), but problem stays. I'l send the project to you directly. Thanks, Steven From hennie at ...1826... Tue Jan 22 13:55:09 2008 From: hennie at ...1826... (gaupe) Date: Tue, 22 Jan 2008 04:55:09 -0800 (PST) Subject: [Gambas-user] Problem making an installation package In-Reply-To: References: <15001008.post@...1379...> <200801211740.16585.gambas@...1...> Message-ID: <15018159.post@...1379...> ubuntuu 7.10 gambas 2.0.0 i use the distribution from gutsy http://azores.linex.org/gambas-other/ (something fell out in between sorry) I am afraid sending the project will not help as i have the same problem with all projects including the example programs. fex blights. i select only ubuntu when making a packages and nothing else. see below what i get. same error but now with the B of blights ... notice the ` <----- i dont know if that has something to do with the problem i tried a fresh install by removing all the gambas packages rm -rf ~/.comfig/gambas and install all the packages. `Blights' contains illegal character `B' Creating package for Ubuntu. Making build directory. Creating desktop file... Sources are being debianizated. Creating package... dpkg-buildpackage: source package is blights dpkg-buildpackage: source version is 0-0 dpkg-buildpackage: source changed by benoit dpkg-buildpackage: host architecture i386 dpkg-buildpackage: source version without epoch 0-0 dh_testdir debian/rules clean dh_testroot rm -Rf `find . -name ".gambas"` rm -Rf `find . -name "*.gambas"` rm -f build-stamp install-stamp dh_clean dh_clean: Compatibility levels before 4 are deprecated. dpkg-source -b blights dpkg-source: error: source package name `Blights' contains illegal character `B' The package build has failed. Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed. Jaap Cramer wrote: > > > I remember I had the same error. My workaround was not to use charackers > like '%' in de Description text > ubuntuu 7.10 > gambas 2.0.0 > > > ---------------------------------------- >> From: gambas at ...1... >> To: gambas-user at lists.sourceforge.net >> Date: Mon, 21 Jan 2008 17:40:16 +0100 >> Subject: Re: [Gambas-user] Problem making an installation package >> >> On lundi 21 janvier 2008, gaupe wrote: >>> I am in the process of trying to make a distrubution package. >>> The first thing i try is making an Ubuntu distribution package >>> this goes wrong. >>> (goes wrong also with example programs for which i try it) >>> >>> with the following message.. >>> i use ubuntu 2.0 >> >> 2.0 ??? >> >>> i do not know what info i should give more , please let me know what >>> info >>> to provide if needed. >> >> Tell which version of Gambas you use. Tell which version of Ubuntu you >> use >> (the right one :-)). >> >> And send your project to me so that I can debug, or to Jos? Luis Redrejo >> in >> the case of Ubuntu because I don't use a Debian-based system. >> >> Regards, >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > _________________________________________________________________ > Bekijk Yes-R's real life soap op MSN Video! > http://video.msn.com/video.aspx?mkt=nl-nl&tab=m1192527562294&vid=8aff5b76-b78d-4b55-8b64-ef7e1d73aab2&playlist=videoByUuids:uuids:50b732c2-c105-41e9-adf0-36bd627d4eaa,0813da8c-031b-423f-a79d-35d925aee805,5cce447e-948d-43af-9862-45bb6bb9d6d8,6a39138c-f562-4254-be70-9d93343650f8,f9b8d78f-05a4-4c74-8e4b-28d20a4037ab&from=NLNL_Yes-R > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Problem-making-an--installation-package-tp15001008p15018159.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Jan 22 14:00:42 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 14:00:42 +0100 Subject: [Gambas-user] Problem making an installation package In-Reply-To: <15018159.post@...1379...> References: <15001008.post@...1379...> <15018159.post@...1379...> Message-ID: <200801221400.42599.gambas@...1...> On mardi 22 janvier 2008, gaupe wrote: > ubuntuu 7.10 > gambas 2.0.0 > > i use the distribution from gutsy http://azores.linex.org/gambas-other/ > > > (something fell out in between sorry) > > I am afraid sending the project will not help as i have the same problem > with all projects including the example programs. > > fex blights. > i select only ubuntu when making a packages and nothing else. > see below what i get. same error but now with the B of blights ... > notice the ` <----- i dont know if that has something to do > with the problem > > i tried a fresh install by removing all the gambas packages > rm -rf ~/.comfig/gambas > and install all the packages. > > > > `Blights' contains illegal character `B' > > Creating package for Ubuntu. > Making build directory. > Creating desktop file... > Sources are being debianizated. > Creating package... > dpkg-buildpackage: source package is blights > dpkg-buildpackage: source version is 0-0 > dpkg-buildpackage: source changed by benoit > dpkg-buildpackage: host architecture i386 > dpkg-buildpackage: source version without epoch 0-0 > dh_testdir > debian/rules clean > dh_testroot > rm -Rf `find . -name ".gambas"` > rm -Rf `find . -name "*.gambas"` > rm -f build-stamp install-stamp > dh_clean > dh_clean: Compatibility levels before 4 are deprecated. > dpkg-source -b blights > dpkg-source: error: source package name `Blights' contains illegal > character `B' > The package build has failed. > Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed. > Maybe dpkg-source does not like upper case characters in package names? -- Benoit Minisini From gambas at ...1... Tue Jan 22 14:09:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 14:09:50 +0100 Subject: [Gambas-user] Re; VSplit In-Reply-To: <2558950.2191200962155795.JavaMail.root@...1834...> References: <2558950.2191200962155795.JavaMail.root@...1834...> Message-ID: <200801221409.50760.gambas@...1...> On mardi 22 janvier 2008, Gareth Bult wrote: > In my Form_Open, I use vsplit.layout="1,1" to start with two evenly sizes > child objects in the vsplit. > > If "layout" was exposed to the ide, I could put this in at design time > without having to add it into the code ... > Do you use gb.qt or gb.gtk in that case? In gb.qt, the HSplit children are laid out proportionally to their initial width (or height for a VSplit). But in gb.gtk, apparently (I have no real control on that), they are always get an equal dimension. -- Benoit Minisini From jredrejo at ...626... Tue Jan 22 14:28:28 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Tue, 22 Jan 2008 14:28:28 +0100 Subject: [Gambas-user] Problem making an installation package In-Reply-To: <200801221400.42599.gambas@...1...> References: <15001008.post@...1379...> <15018159.post@...1379...> <200801221400.42599.gambas@...1...> Message-ID: <8eb28a500801220528q574ae1cdn521ea462946a6ea9@...627...> upper case characters are not allowed in Debian package names. That's why the Debian package always convert the name to lowercase. There have been quite a lot of people who reported me that was working, so he must have some other problem. I don't have any Ubuntu machine to test it, in Debian machines it works perfectly with those examples so I can not say more. If some other user of the same Ubuntu version can test it and say if he can reproduce the problem and give more data it would be great. Regards. Jos? L. 2008/1/22, Benoit Minisini : > > On mardi 22 janvier 2008, gaupe wrote: > > ubuntuu 7.10 > > gambas 2.0.0 > > > > i use the distribution from gutsy http://azores.linex.org/gambas-other/ > > > > > > (something fell out in between sorry) > > > > I am afraid sending the project will not help as i have the same problem > > with all projects including the example programs. > > > > fex blights. > > i select only ubuntu when making a packages and nothing else. > > see below what i get. same error but now with the B of blights ... > > notice the ` <----- i dont know if that has something to > do > > with the problem > > > > i tried a fresh install by removing all the gambas packages > > rm -rf ~/.comfig/gambas > > and install all the packages. > > > > > > > > `Blights' contains illegal character `B' > > > > Creating package for Ubuntu. > > Making build directory. > > Creating desktop file... > > Sources are being debianizated. > > Creating package... > > dpkg-buildpackage: source package is blights > > dpkg-buildpackage: source version is 0-0 > > dpkg-buildpackage: source changed by benoit > > dpkg-buildpackage: host architecture i386 > > dpkg-buildpackage: source version without epoch 0-0 > > dh_testdir > > debian/rules clean > > dh_testroot > > rm -Rf `find . -name ".gambas"` > > rm -Rf `find . -name "*.gambas"` > > rm -f build-stamp install-stamp > > dh_clean > > dh_clean: Compatibility levels before 4 are deprecated. > > dpkg-source -b blights > > dpkg-source: error: source package name `Blights' contains illegal > > character `B' > > The package build has failed. > > Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed. > > > > Maybe dpkg-source does not like upper case characters in package names? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gareth at ...1689... Tue Jan 22 14:34:57 2008 From: gareth at ...1689... (Gareth Bult) Date: Tue, 22 Jan 2008 13:34:57 +0000 (GMT) Subject: [Gambas-user] Re; VSplit In-Reply-To: <200801221409.50760.gambas@...1...> Message-ID: <10436673.3011201008897650.JavaMail.root@...1834...> On my GTK version, the first child takes 100%, the second is hidden by default .. hence it would be nice to have layout specify the dimensions... ----- Original Message ----- step 3.: "Benoit Minisini" To: "mailing list for gambas users" Sent: 22 January 2008 13:09:50 o'clock (GMT) Europe/London Subject: Re: [Gambas-user] Re; VSplit On mardi 22 janvier 2008, Gareth Bult wrote: > In my Form_Open, I use vsplit.layout="1,1" to start with two evenly sizes > child objects in the vsplit. > > If "layout" was exposed to the ide, I could put this in at design time > without having to add it into the code ... > Do you use gb.qt or gb.gtk in that case? In gb.qt, the HSplit children are laid out proportionally to their initial width (or height for a VSplit). But in gb.gtk, apparently (I have no real control on that), they are always get an equal dimension. -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Jan 22 14:40:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 14:40:10 +0100 Subject: [Gambas-user] Problem making an installation package In-Reply-To: <8eb28a500801220528q574ae1cdn521ea462946a6ea9@...627...> References: <15001008.post@...1379...> <200801221400.42599.gambas@...1...> <8eb28a500801220528q574ae1cdn521ea462946a6ea9@...627...> Message-ID: <200801221440.10341.gambas@...1...> On mardi 22 janvier 2008, Jos? Luis Redrejo wrote: > upper case characters are not allowed in Debian package names. That's why > the Debian package always convert the name to lowercase. There have been > quite a lot of people who reported me that was working, so he must have > some other problem. > > I don't have any Ubuntu machine to test it, in Debian machines it works > perfectly with those examples so I can not say more. If some other user of > the same Ubuntu version can test it and say if he can reproduce the problem > and give more data it would be great. > > Regards. > Jos? L. > Making ubuntu packages or debian package use exactly the same code in the IDE. The only place where the original project name (with eventually some upper case characters) is used are: * In executable name. * In the icon file name. * In the 'Source:' tag in the /debian/control file. I don't know Debian nor Ubuntu, but I don't see any reason why the same code will work on Debian and not on Ubuntu, unless dpkg-buildpackage does not work exactly the same way in both distributions... Regards, -- Benoit Minisini From cjro99 at ...67... Tue Jan 22 14:43:44 2008 From: cjro99 at ...67... (javier romero) Date: Tue, 22 Jan 2008 13:43:44 +0000 Subject: [Gambas-user] Problem making an installation package In-Reply-To: <200801221400.42599.gambas@...1...> References: <15001008.post@...1379...> <15018159.post@...1379...> <200801221400.42599.gambas@...1...> Message-ID: I have The same version Ubuntu gutsy 7.10 and Gambas 2.0.0 and have the same issue when i used the distribution from gutsy http://azores.linex.org/gambas-other/, when i try to make a installation package two kinds of errors is reported: 1) Only can make the instalation package into the home folder, when i try to make in other folder an error occurs (something about permissions) and 2) the name of the installation package can not contain Upper-case I desinstall complety the distribution and compiled my self gambas and have the same issues. Now i can create installation packages only in my home folder and only with lower-case name. Javier ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Tue, 22 Jan 2008 14:00:42 +0100 > Subject: Re: [Gambas-user] Problem making an installation package > > On mardi 22 janvier 2008, gaupe wrote: >> ubuntuu 7.10 >> gambas 2.0.0 >> >> i use the distribution from gutsy http://azores.linex.org/gambas-other/ >> >> >> (something fell out in between sorry) >> >> I am afraid sending the project will not help as i have the same problem >> with all projects including the example programs. >> >> fex blights. >> i select only ubuntu when making a packages and nothing else. >> see below what i get. same error but now with the B of blights ... >> notice the ` <----- i dont know if that has something to do >> with the problem >> >> i tried a fresh install by removing all the gambas packages >> rm -rf ~/.comfig/gambas >> and install all the packages. >> >> >> >> `Blights' contains illegal character `B' >> >> Creating package for Ubuntu. >> Making build directory. >> Creating desktop file... >> Sources are being debianizated. >> Creating package... >> dpkg-buildpackage: source package is blights >> dpkg-buildpackage: source version is 0-0 >> dpkg-buildpackage: source changed by benoit >> dpkg-buildpackage: host architecture i386 >> dpkg-buildpackage: source version without epoch 0-0 >> dh_testdir >> debian/rules clean >> dh_testroot >> rm -Rf `find . -name ".gambas"` >> rm -Rf `find . -name "*.gambas"` >> rm -f build-stamp install-stamp >> dh_clean >> dh_clean: Compatibility levels before 4 are deprecated. >> dpkg-source -b blights >> dpkg-source: error: source package name `Blights' contains illegal >> character `B' >> The package build has failed. >> Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed. >> > > Maybe dpkg-source does not like upper case characters in package names? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Tecnolog?a, moda, motor, viajes,?suscr?bete a nuestros boletines para estar siempre a la ?ltima http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com From gambas at ...1... Tue Jan 22 15:07:38 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 15:07:38 +0100 Subject: [Gambas-user] Re; VSplit In-Reply-To: <10436673.3011201008897650.JavaMail.root@...1834...> References: <10436673.3011201008897650.JavaMail.root@...1834...> Message-ID: <200801221507.38661.gambas@...1...> On mardi 22 janvier 2008, Gareth Bult wrote: > On my GTK version, the first child takes 100%, the second is hidden by > default .. hence it would be nice to have layout specify the dimensions... > I have never seen that... Can you send me a project with this behaviour ? -- Benoit Minisini From gambas at ...1... Tue Jan 22 15:09:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 15:09:55 +0100 Subject: [Gambas-user] GridView In-Reply-To: <1200949759.4315.18.camel@...1787...> References: <7213996.1911200947601621.JavaMail.root@...1834...> <1200949759.4315.18.camel@...1787...> Message-ID: <200801221509.55401.gambas@...1...> On lundi 21 janvier 2008, Tomas Eroles i Forner wrote: > >From wich version is possible to put headers in a GridView? > > Which version are you using? > I'm using 1.9.33 and it does not works. > > Thanks in advance > You are using a six months old development version. I think you should upgrade... Regards, -- Benoit Minisini From leonardo at ...1237... Tue Jan 22 16:22:43 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 22 Jan 2008 16:22:43 +0100 Subject: [Gambas-user] Gtk/Qt Differences In-Reply-To: <12941681.1711200935556335.JavaMail.root@...1834...> References: <12941681.1711200935556335.JavaMail.root@...1834...> Message-ID: <47960A43.5050409@...1237...> Gareth Bult ha scritto: > Mmm, apparently not on Ubuntu (!) If I remember correctly, there should be the Gtk-Qt-Engine that tries to have the same set of widgets for both. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From jedsoftware at ...626... Tue Jan 22 17:06:01 2008 From: jedsoftware at ...626... (John Dizaro) Date: Tue, 22 Jan 2008 14:06:01 -0200 Subject: [Gambas-user] "no keyboard event data" in gridview Message-ID: <11c2d5210801220806y5fd6f1eby35f383d721860873@...627...> I am having problema in gridview the "key.code" is given me the message "no keyboard event data" i am using debian testing gambas 2.0.0-1 Thank for all -- John Evan Dizaro JED Desensolvimento de Software - Windows e Linux O software do jeito que voc? precisa Fone: (41) 3334-3001 Fone: (41) 9244-4603 Rua: Chile, 2211 Bebou?as Curitiba - PR - Brasil From jedsoftware at ...626... Tue Jan 22 17:10:52 2008 From: jedsoftware at ...626... (John Dizaro) Date: Tue, 22 Jan 2008 14:10:52 -0200 Subject: [Gambas-user] event keypress In-Reply-To: <976ad9050801101904m5a744d90w88f2b56f84f1051a@...627...> References: <200801110951.38925.gunartha.nyoman@...1817...> <976ad9050801101904m5a744d90w88f2b56f84f1051a@...627...> Message-ID: <11c2d5210801220810g6457dc90g8e101b02a8a915af@...627...> FUNCTION TRAZ_CARROS() AS Boolean DIM S_SQL AS String DIM LINHA AS Integer LINHA = 0 M01BANCO.ABRIR_CONECXAO() GV_t07_carro.Clear GV_t07_carro.Refresh S_SQL = "SELECT t07_ano_fabricacao, t07_placa_detran, t07_conceccao, " & " t07_num_seq_carro, t17_desc_carro " & " FROM t07_carro, t17_marca " & " WHERE upper(t07_placa_detran) LIKE '%" & UCase(TB_t07_placa_detran.Text) & "%'" & " AND t17_cd_marca = t07_cd_marca " & " ORDER BY t07_ano_fabricacao, t07_placa_detran, t07_conceccao;" PRINT S_SQL RES_t07 = M01BANCO.Gl_Conn.Exec(S_SQL) GV_t07_carro.Columns.Count = 5 'GridView1.Rows.Count = 3 'GV_t07_carro.Columns.Width = 52 'GridView1.Rows[1].Height = 20 'GV_t07_carro.Columns.Resizable GV_t07_carro.Columns[0].Width = 40 GV_t07_carro.Columns[1].Width = 70 GV_t07_carro.Columns[2].Width = 70 GV_t07_carro.Columns[3].Width = 0 GV_t07_carro.Columns[4].Width = 10 GV_t07_carro.Columns[0].Title = "Ano" GV_t07_carro.Columns[1].Title = "Placa" GV_t07_carro.Columns[2].Title = "Conc" 'GV_t07_carro.Columns[3].Title = "N? Reg" GV_t07_carro.Columns[4].Title = "Marca" IF RES_t07.Count > 0 THEN GV_t07_carro.Rows.Count = RES_t07.Count LINHA = 0 FOR EACH RES_t07 GV_t07_carro[LINHA, 0].Text = RES_t07!t07_ano_fabricacao GV_t07_carro[LINHA, 1].Text = RES_t07!t07_placa_detran GV_t07_carro[LINHA, 2].Text = RES_t07!t07_conceccao GV_t07_carro[LINHA, 3].Text = RES_t07!t07_num_seq_carro GV_t07_carro[LINHA, 4].Text = RES_t07!t17_desc_carro LINHA = LINHA + 1 RES_t07.MoveNext NEXT ENDIF IF RES_t07.Available = TRUE THEN RES_t07.Connection.Close ENDIF RETURN TRUE CATCH IF RES_t07.Available = TRUE THEN RES_t07.Connection.Close ENDIF Message.Error("ERRO:" & Error.Code & " DESCRI??O:" & Error.Text) RETURN FALSE END 2008/1/11, Arief Bayu Purwanto : > > On 1/11/08, gunartha.nyoman wrote: > > > > hi all, > > > > I am trying to use gambas. Please help me about code to resolve my > problem > > 1. How to move cursor when I press key enter on keyboard ? > > > Did you mean change focus to another object? if so, set it to > .SetFocus(). > > in your _KyePress() > > IF Key.Code = key.Return THEN > .SetFocus() > END IF > > 2. How to fill data from database (as a postgres database server) to > > gridview > > or table view. ? > > > > Regards > > Gunartha > > > Greeting from Indonesia too :D. > > -- > Daiguren Hy?rinmaru< > http://en.wikipedia.org/wiki/Toshiro_Hitsugaya#Hy.C5.8Drinmaru> > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- John Evan Dizaro JED Desensolvimento de Software - Windows e Linux O software do jeito que voc? precisa Fone: (41) 3334-3001 Fone: (41) 9244-4603 Rua: Chile, 2211 Bebou?as Curitiba - PR - Brasil From nxgtrturbo at ...626... Tue Jan 22 17:15:13 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Tue, 22 Jan 2008 08:15:13 -0800 Subject: [Gambas-user] DATABROWSER FAILS TO UPDATE Message-ID: <688afe140801220815u32c85d7j19218fa7bed0d17f@...627...> DATABROWSER FAILS TO UPDATE Hi, I have a problem with the refresh of the databrowser, what I am doing is to ADD a value to a GIVEN record with a function, the function would look more complex, so I think is better to write here just the MySQL code: mysql> update some_table set some = some + 1 where code=1; I do that from a function that I call from a simple button from my GUI, but the DataBrowser doesn't update the value of field. What I need to do is close the form, and call it again, for the refresh takes effect, because the "refresh" button does nothing. Is there any suggestion to make the "update process" (from GUI) more nicely? -- http://www.cardomain.com/ride/645756 http://nxgtrturbo.googlepages.com/ http://www.fotolog.com/nxgtrturbo/ http://tallerhuertas.googlepages.com/ From nxgtrturbo at ...626... Tue Jan 22 17:16:28 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Tue, 22 Jan 2008 08:16:28 -0800 Subject: [Gambas-user] MULTIPLE ROW RESULT Message-ID: <688afe140801220816j6f37ba15ha9f85c1d5ba68ed0@...627...> MULTIPLE ROW RESULT Hi, I got a trouble with the "Result" data type @ gambas, I have a function like this: PUBLIC myresult AS Result PUBLIC SUB tellmeposition(lookingfor AS String, table AS String, reference AS String, value AS String) myresult = conexion.Exec("SELECT count(*) AS position FROM " & table & " where " & lookingfor & " < (SELECT " & lookingfor & " FROM " & table & " where " & reference & " = '" & value & "')") END Everything works perfect when the query returns ONLY ONE ROW, but what about multiple row result?, I tried: PUBLIC myresult AS Result[X] and PUBLIC myresult[X] AS Result But that didn't work (the language doesn't allow that), Is there any possible way to catch all the rows? My program crash with the message: "Query failed: Subquery return more than 1 row" Did I make something wrong? -- http://www.cardomain.com/ride/645756 http://nxgtrturbo.googlepages.com/ http://www.fotolog.com/nxgtrturbo/ http://tallerhuertas.googlepages.com/ From ronstk at ...239... Tue Jan 22 17:24:46 2008 From: ronstk at ...239... (ron) Date: Tue, 22 Jan 2008 17:24:46 +0100 Subject: [Gambas-user] Problem making an installation package In-Reply-To: References: <15001008.post@...1379...> <200801221400.42599.gambas@...1...> Message-ID: <200801221724.47176.ronstk@...239...> On Tuesday 22 January 2008 14:43, javier romero wrote: > > I have The same version Ubuntu gutsy 7.10 and Gambas 2.0.0 and have the same issue when i used the distribution from gutsy http://azores.linex.org/gambas-other/, when i try to make a installation package two kinds of errors is reported: > > 1) Only can make the instalation package into the home folder, when i try to make in other folder an error occurs (something about permissions) > > and > 2) the name of the installation package can not contain Upper-case > > I desinstall complety the distribution and compiled my self gambas and have the same issues. > > Now i can create installation packages only in my home folder and only with lower-case name. > > Javier > ---------------------------------------- Just my 2 cents I see both complains are salsa country based. (i do not know simple other name) One of the problems _can_ (not must) be the character-set in use for the filesystem. UTF-8 or ASCII. Similar problen occurs to FAT filesystem with upper/lowercase and UTF-8 instead iso8159 This links to the uppercase in the debian package names. Second posible is (k)ubuntu creates folders for user xyz as user:xyz and gruop:xyz SuSE does it as user:xyz and group:users. This links to the _permissions_ suggested as problem. Ron From piramix at ...178... Tue Jan 22 17:31:45 2008 From: piramix at ...178... (=?iso-8859-1?B?UGlyYW1peCBUZWNub2xvZ+1hcw==?=) Date: Tue, 22 Jan 2008 11:31:45 -0500 Subject: [Gambas-user] Little problem compiling 2.0.0 version (Bug or not?) Message-ID: <20080122163145.27AA21158DF@...1849...> Yesterday I tried to start using stable version 2.0.0 (I've been using 1.9.46 until that moment). I had no problem at all but I decided to upgrade. During the compilation happened that the gb.desktop component was disabled (I don't know what is it really since it was not there before). Compilation and installation ran good BUT when I tried to run gambas2 I got the following message: "ERROR: #27: Cannot load component 'gb.desktop': cannot find library file". It's obviously a problem related to some X11 library (libXtst.so is present at /usr/X11R6/lib). Anyway, messing a little with the configuration script at the gb.desktop folder I disabled the part where it checks for XTestQueryExtension in -lXtst (still don't know what's about). After that gb.desktop component was enabled and I cuold finally compile passing the -i option to make. Finally, gambas2 is running like a charm but I'd still like to know what happened here. I'm using slackware-11.0 with kernel 2.6.20.11 and 2.6.19rc6, gcc versi?n 3.4.6 & Make version 3.81. I'm just learning C code so, my knowledge is very limited. I'll appreciate some help here. Thanks. -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! From gambas at ...1... Tue Jan 22 17:44:26 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 17:44:26 +0100 Subject: [Gambas-user] Little problem compiling 2.0.0 version (Bug or not?) In-Reply-To: <20080122163145.27AA21158DF@...1849...> References: <20080122163145.27AA21158DF@...1849...> Message-ID: <200801221744.26340.gambas@...1...> On mardi 22 janvier 2008, Piramix Tecnolog?as wrote: > Yesterday I tried to start using stable version 2.0.0 (I've been using > 1.9.46 until that moment). I had no problem at all but I decided to > upgrade. During the compilation happened that the gb.desktop component was > disabled (I don't know what is it really since it was not there before). > Compilation and installation ran good BUT when I tried to run gambas2 I got > the following message: "ERROR: #27: Cannot load component 'gb.desktop': > cannot find library file". It's obviously a problem related to some X11 > library (libXtst.so is present at /usr/X11R6/lib). Anyway, messing a little > with the configuration script at the gb.desktop folder I disabled the part > where it checks for XTestQueryExtension in -lXtst (still don't know what's > about). After that gb.desktop component was enabled and I cuold finally > compile passing the -i option to make. Finally, gambas2 is running like a > charm but I'd still like to know what happened here. I'm using > slackware-11.0 with kernel 2.6.20.11 and 2.6.19rc6, gcc versi?n 3.4.6 & > Make version 3.81. I'm just learning C code so, my knowledge is very > limited. I'll appreciate some help here. Thanks. Please send the output of the configure process. The component was disabled because it couldn't succeed in finding the include files of the libXtst library. But if it works after removing the test, that means that these includes are there but that configure didn't find them. If you could tell me where the libXtst includes are located on Slackware so that I can fix the search, it would be cool. :-) Regards, -- Benoit Minisini From gambas at ...1... Tue Jan 22 17:46:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 17:46:16 +0100 Subject: [Gambas-user] Problems with TrayIcon In-Reply-To: <20080122083452.j6pqg3utgk8k0s4s@...1848...> References: <20080122083452.j6pqg3utgk8k0s4s@...1848...> Message-ID: <200801221746.16626.gambas@...1...> On mardi 22 janvier 2008, Leonardo Miliani wrote: > Some time ago I developed a little application that docked an icon in > the systray and I called a popup menu just by clicking on it. > I developed that app when I used SUSE with KDE. > > Now that I switched to Ubuntu/Gnome I'm having a problem with that app. > > When I run my app, I don't get the icon in the systray: I just get a > vertical line of just 1 pixel width! > My app uses gt.qt component: if I try to use the gb.gtk or the gb.gui > I get my app freezed. > > Ciao. > Leonardo. > Please send the project on the mailing-list if it is small. This way other Gnome users could tell me if they have the same behaviour. Regards, -- Benoit Minisini From ronstk at ...239... Tue Jan 22 17:49:37 2008 From: ronstk at ...239... (ron) Date: Tue, 22 Jan 2008 17:49:37 +0100 Subject: [Gambas-user] What are circular references, and how to avoid? In-Reply-To: References: <4795D100.7040303@...221...> Message-ID: <200801221749.37588.ronstk@...239...> On Tuesday 22 January 2008 12:42, Jaap Cramer wrote: > > Hi > > I discovered some. But when I search for ToolPanelContainer, FExpander, ToolPanel, Expander, I cant find them. I never use those words, so how can I have made a circular reference? And FExpander isn't even the name of a control I made... > > BTW, how bad is a circular reference? > > tnx in advance :-) > Jaap >> What is it >> how serious is this :-) >> and how do I avoid it? >> >> Jaap >> The explanation of Benoit is correct but I do also not understand it 100% for following reason. I had same finding in the past, and if you search in the complete source code you can find those "ToolPanelContainer, FExpander, ToolPanel, Expander" in components written in gambas. And that is exactly what I do not understand. > Easy, you avoid it by not creating circular references. :-) > > A circular reference is when an object A has a variable that points at an > object B, and that at the same time the object B has a variable that points > at the object A. For me it was stopping to use some of those components. Ron From steven at ...1652... Tue Jan 22 17:58:14 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Tue, 22 Jan 2008 17:58:14 +0100 Subject: [Gambas-user] Arrays !, Sighhhhhh In-Reply-To: <200801221230.33478.gambas@...1...> References: <200801212300.26281.steven@...1652...> <200801221227.43517.steven@...1652...> <200801221230.33478.gambas@...1...> Message-ID: <200801221758.15199.steven@...1652...> Strange things happen here ! I'm writing some code (and changing) in the called modal Form that has nothing to do with the variables posing problems. I donnot touch them in anyway. But, sometimes the reported problem dissapears ;-) A bit later it's back again. Suspission : it has something to do with memory allocation ? Regards, Steven From gambas at ...1... Tue Jan 22 18:02:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 18:02:45 +0100 Subject: [Gambas-user] What are circular references, and how to avoid? In-Reply-To: <200801221749.37588.ronstk@...239...> References: <200801221749.37588.ronstk@...239...> Message-ID: <200801221802.45634.gambas@...1...> On mardi 22 janvier 2008, ron wrote: > On Tuesday 22 January 2008 12:42, Jaap Cramer wrote: > > Hi > > > > I discovered some. But when I search for ToolPanelContainer, FExpander, > > ToolPanel, Expander, I cant find them. I never use those words, so how > > can I have made a circular reference? And FExpander isn't even the name > > of a control I made... > > > > BTW, how bad is a circular reference? > > > > tnx in advance :-) > > Jaap > > > >> What is it > >> how serious is this :-) > >> and how do I avoid it? > >> > >> Jaap > > The explanation of Benoit is correct but I do also not understand it 100% > for following reason. > > I had same finding in the past, and if you search in the complete source > code you can find those "ToolPanelContainer, FExpander, ToolPanel, > Expander" in components written in gambas. And that is exactly what I do > not understand. > > > Easy, you avoid it by not creating circular references. :-) > > > > A circular reference is when an object A has a variable that points at an > > object B, and that at the same time the object B has a variable that > > points at the object A. > > For me it was stopping to use some of those components. > > Ron > If you prevent a form from being freed because of a circular reference, then all form contents are not freed too. For example, if you have a Toolbar inside this form, then you will see internal classes used for implementing this Toolbar in the warning messages. Nothing terrible in that... If I see the project, I will tell where the circular references come from. Regards, -- Benoit Minisini From gambas at ...1... Tue Jan 22 18:07:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 18:07:53 +0100 Subject: [Gambas-user] Making components in Gambas Message-ID: <200801221807.53961.gambas@...1...> Hi, In the latest /branches/2.0 (r?v. 1029), the IDE now can create packages for component projects. It means that you can now create components in Gambas and distribute them freely, without having to integrate them in the main Gambas source tree. The only constraint is in the name of the package. "Official" Gambas components starts with "gambas2-gb-XXX", whereas your component must be named "gambas2--XXX" where is your name, or the name of your company. I don't want to be blamed for components outside of the main tree! :-) At the moment, all package types are supported, except Ubuntu and Debian (I need Jos? for that). This is experimental, so you are gladly welcome to test, especially if you do not use Mandriva, as I could only test with it. When the 2.1 will be out, all these IDE changes will be merged in the 3.0 development trunk. Regards, -- Benoit Minisini From gareth at ...1689... Tue Jan 22 18:45:31 2008 From: gareth at ...1689... (Gareth Bult) Date: Tue, 22 Jan 2008 17:45:31 +0000 (GMT) Subject: [Gambas-user] Making components in Gambas In-Reply-To: <200801221807.53961.gambas@...1...> Message-ID: <28050990.3331201023931759.JavaMail.root@...1834...> Mmm, Any documentation ? ----- Original Message ----- step 3.: "Benoit Minisini" To: gambas-user at lists.sourceforge.net Sent: 22 January 2008 17:07:53 o'clock (GMT) Europe/London Subject: [Gambas-user] Making components in Gambas Hi, In the latest /branches/2.0 (r?v. 1029), the IDE now can create packages for component projects. It means that you can now create components in Gambas and distribute them freely, without having to integrate them in the main Gambas source tree. The only constraint is in the name of the package. "Official" Gambas components starts with "gambas2-gb-XXX", whereas your component must be named "gambas2--XXX" where is your name, or the name of your company. I don't want to be blamed for components outside of the main tree! :-) At the moment, all package types are supported, except Ubuntu and Debian (I need Jos? for that). This is experimental, so you are gladly welcome to test, especially if you do not use Mandriva, as I could only test with it. When the 2.1 will be out, all these IDE changes will be merged in the 3.0 development trunk. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From ronstk at ...239... Tue Jan 22 18:54:17 2008 From: ronstk at ...239... (ron) Date: Tue, 22 Jan 2008 18:54:17 +0100 Subject: [Gambas-user] What are circular references, and how to avoid? In-Reply-To: <200801221802.45634.gambas@...1...> References: <200801221749.37588.ronstk@...239...> <200801221802.45634.gambas@...1...> Message-ID: <200801221854.17401.ronstk@...239...> On Tuesday 22 January 2008 18:02, Benoit Minisini wrote: > On mardi 22 janvier 2008, ron wrote: ----8<--------- > > > Easy, you avoid it by not creating circular references. :-) > > > > > > A circular reference is when an object A has a variable that points at an > > > object B, and that at the same time the object B has a variable that > > > points at the object A. > > > > For me it was stopping to use some of those components. > > > > Ron > > > > If you prevent a form from being freed because of a circular reference, then > all form contents are not freed too. I do understand this. > For example, if you have a Toolbar inside this form, then you will see > internal classes used for implementing this Toolbar in the warning messages. > Nothing terrible in that... True, but it was a big puzzle to follow my mistakes because code I wrote myself does never fails :-) We all know better this is false but... You know the how the world is. Mostly after reading the code again and again you overlook something simple or miss the logic mistake used in the code. > > If I see the project, I will tell where the circular references come from. > > Regards, > For my own hobby projects it is not so importand but if you try to make a program at work for handling the stuff at the workplace it sometimes irritate to much. Special if it is something like I did make in the past with good results. At the workplace I'm the only one with acknowledge of computers and programming. No fall back to ask someone to peek into the code for mistake or bad logic. ATM I'm back to my old job of repairs with the solder iron and multimeter. Gives me more fun now than anything with computers. Except gambas that still attracks me how development is going on and on. Dispite some problems it is the top one I had with a lot of hours fun with it. Ron the solder boy :-) From gambas at ...1... Tue Jan 22 20:26:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 20:26:48 +0100 Subject: [Gambas-user] Making components in Gambas In-Reply-To: <28050990.3331201023931759.JavaMail.root@...1834...> References: <28050990.3331201023931759.JavaMail.root@...1834...> Message-ID: <200801222026.48536.gambas@...1...> On mardi 22 janvier 2008, Gareth Bult wrote: > Mmm, > > Any documentation ? > > There is no centralized documentation about components. You can use the components located in the Gambas sources as examples. And making a package from a component project is exactly the same process as making a package from an application project. If you have more precise questions, I will answer. Regards, -- Benoit Minisini From rospolosco at ...152... Tue Jan 22 21:49:25 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 22 Jan 2008 21:49:25 +0100 Subject: [Gambas-user] Little problem compiling 2.0.0 version (Bug or not?) In-Reply-To: <200801221744.26340.gambas@...1...> References: <20080122163145.27AA21158DF@...1849...> <200801221744.26340.gambas@...1...> Message-ID: <200801222149.25859.rospolosco@...152...> Alle 17:44, marted? 22 gennaio 2008, Benoit Minisini ha scritto: > On mardi 22 janvier 2008, Piramix Tecnolog?as wrote: > > Yesterday I tried to start using stable version 2.0.0 (I've been using > > 1.9.46 until that moment). I had no problem at all but I decided to > > upgrade. During the compilation happened that the gb.desktop component > > was disabled (I don't know what is it really since it was not there > > before). Compilation and installation ran good BUT when I tried to run > > gambas2 I got the following message: "ERROR: #27: Cannot load component > > 'gb.desktop': cannot find library file". It's obviously a problem related > > to some X11 library (libXtst.so is present at /usr/X11R6/lib). Anyway, > > messing a little with the configuration script at the gb.desktop folder I > > disabled the part where it checks for XTestQueryExtension in -lXtst > > (still don't know what's about). After that gb.desktop component was > > enabled and I cuold finally compile passing the -i option to make. > > Finally, gambas2 is running like a charm but I'd still like to know what > > happened here. I'm using > > slackware-11.0 with kernel 2.6.20.11 and 2.6.19rc6, gcc versi?n 3.4.6 & > > Make version 3.81. I'm just learning C code so, my knowledge is very > > limited. I'll appreciate some help here. Thanks. > > Please send the output of the configure process. > > The component was disabled because it couldn't succeed in finding the > include files of the libXtst library. But if it works after removing the > test, that means that these includes are there but that configure didn't > find them. If you could tell me where the libXtst includes are located on > Slackware so that I can fix the search, it would be cool. :-) > > Regards, We discussed this problem a couple (look for mails of 7 january) of weeks ago, because I had the same problem with Slackware 11. You send me a new configure.ac for gb.desktop to test and that solved the problem. Anyway the other solution is: export LDFLAGS="-L/usr/X11R6/lib" before ./configure I've attached the configure.ac. Best regards, Stefano Palmeri -------------- next part -------------- dnl ---- configure.ac for gb.desktop AC_INIT(configure.ac) GB_INIT(gb.desktop) AC_PROG_LIBTOOL GB_CHECK_XWINDOW AC_CHECK_LIB(Xtst, XTestQueryExtension, [X_LIBS="$X_LIBS -lXtst"], [touch DISABLED], [$X_LIBS]) GB_COMPONENT( desktop, DESKTOP, [Desktop-neutral routines], [src], [], [], [$C_LIB $THREAD_LIB $X_LIBS], [$THREAD_INC ]) AC_OUTPUT( Makefile src/Makefile ) From gambas at ...1... Tue Jan 22 21:57:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 21:57:32 +0100 Subject: [Gambas-user] Little problem compiling 2.0.0 version (Bug or not?) In-Reply-To: <200801222149.25859.rospolosco@...152...> References: <20080122163145.27AA21158DF@...1849...> <200801221744.26340.gambas@...1...> <200801222149.25859.rospolosco@...152...> Message-ID: <200801222157.32657.gambas@...1...> On mardi 22 janvier 2008, Stefano Palmeri wrote: > Alle 17:44, marted? 22 gennaio 2008, Benoit Minisini ha scritto: > > On mardi 22 janvier 2008, Piramix Tecnolog?as wrote: > > > Yesterday I tried to start using stable version 2.0.0 (I've been using > > > 1.9.46 until that moment). I had no problem at all but I decided to > > > upgrade. During the compilation happened that the gb.desktop component > > > was disabled (I don't know what is it really since it was not there > > > before). Compilation and installation ran good BUT when I tried to run > > > gambas2 I got the following message: "ERROR: #27: Cannot load component > > > 'gb.desktop': cannot find library file". It's obviously a problem > > > related to some X11 library (libXtst.so is present at /usr/X11R6/lib). > > > Anyway, messing a little with the configuration script at the > > > gb.desktop folder I disabled the part where it checks for > > > XTestQueryExtension in -lXtst (still don't know what's about). After > > > that gb.desktop component was enabled and I cuold finally compile > > > passing the -i option to make. Finally, gambas2 is running like a charm > > > but I'd still like to know what happened here. I'm using > > > slackware-11.0 with kernel 2.6.20.11 and 2.6.19rc6, gcc versi?n 3.4.6 & > > > Make version 3.81. I'm just learning C code so, my knowledge is very > > > limited. I'll appreciate some help here. Thanks. > > > > Please send the output of the configure process. > > > > The component was disabled because it couldn't succeed in finding the > > include files of the libXtst library. But if it works after removing the > > test, that means that these includes are there but that configure didn't > > find them. If you could tell me where the libXtst includes are located on > > Slackware so that I can fix the search, it would be cool. :-) > > > > Regards, > > We discussed this problem a couple (look for mails of 7 january) of weeks > ago, because I had the same problem with Slackware 11. You send me a new > configure.ac for gb.desktop to test and that solved the problem. Anyway the > other solution is: > > export LDFLAGS="-L/usr/X11R6/lib" > > before ./configure > > I've attached the configure.ac. > > Best regards, > > Stefano Palmeri OK, I remember now. The fix is in the svn repository, at /branches/2.0. You will get it with the 2.1 release! Regards, -- Benoit Minisini From jaap_cramer at ...67... Tue Jan 22 22:00:49 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Tue, 22 Jan 2008 22:00:49 +0100 Subject: [Gambas-user] What are circular references, and how to avoid? Message-ID: Thanks for the offer I sent my project with. I deleted the hebr3.gambas file (23MB) from tar, because it was to big. (BTW is this the compilation-file?) I think you cannot use the program because the needed files are not available. You may not understand some comments, they are in dutch; I hope you are still able to read the code :-) Jaap ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Tue, 22 Jan 2008 18:02:45 +0100 > Subject: Re: [Gambas-user] What are circular references, and how to avoid? > > On mardi 22 janvier 2008, ron wrote: >> On Tuesday 22 January 2008 12:42, Jaap Cramer wrote: >>> Hi >>> >>> I discovered some. But when I search for ToolPanelContainer, FExpander, >>> ToolPanel, Expander, I cant find them. I never use those words, so how >>> can I have made a circular reference? And FExpander isn't even the name >>> of a control I made... >>> >>> BTW, how bad is a circular reference? >>> >>> tnx in advance :-) >>> Jaap >>> >>>> What is it >>>> how serious is this :-) >>>> and how do I avoid it? >>>> >>>> Jaap >> >> The explanation of Benoit is correct but I do also not understand it 100% >> for following reason. >> >> I had same finding in the past, and if you search in the complete source >> code you can find those "ToolPanelContainer, FExpander, ToolPanel, >> Expander" in components written in gambas. And that is exactly what I do >> not understand. >> >>> Easy, you avoid it by not creating circular references. :-) >>> >>> A circular reference is when an object A has a variable that points at an >>> object B, and that at the same time the object B has a variable that >>> points at the object A. >> >> For me it was stopping to use some of those components. >> >> Ron >> > > If you prevent a form from being freed because of a circular reference, then > all form contents are not freed too. For example, if you have a Toolbar > inside this form, then you will see internal classes used for implementing > this Toolbar in the warning messages. Nothing terrible in that... > > If I see the project, I will tell where the circular references come from. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Nieuw: Windows Live Messenger 2008! Gratis downloaden http://get.live.com/messenger -------------- next part -------------- A non-text attachment was scrubbed... Name: hebr3-0.3.3.tar.gz Type: application/x-gzip Size: 46631 bytes Desc: not available URL: From gareth at ...1689... Tue Jan 22 22:08:56 2008 From: gareth at ...1689... (Gareth Bult) Date: Tue, 22 Jan 2008 21:08:56 +0000 (GMT) Subject: [Gambas-user] Making components in Gambas In-Reply-To: <200801222026.48536.gambas@...1...> Message-ID: <5901653.3481201036136654.JavaMail.root@...1834...> Mmm, I'm afraid I spent more time trying to figure out how to integrate GridEditor into Gambas than actually writing GridEditor .. and didn't make any substantial progress. I'm afraid I just link it in manually and set properties by hand. I do have time to write components, but unfortunately not to try to work out the innards of Gambas .. :( Gareth. ----- Original Message ----- step 3.: "Benoit Minisini" To: "mailing list for gambas users" Sent: 22 January 2008 19:26:48 o'clock (GMT) Europe/London Subject: Re: [Gambas-user] Making components in Gambas On mardi 22 janvier 2008, Gareth Bult wrote: > Mmm, > > Any documentation ? > > There is no centralized documentation about components. You can use the components located in the Gambas sources as examples. And making a package from a component project is exactly the same process as making a package from an application project. If you have more precise questions, I will answer. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1822... Tue Jan 22 22:12:34 2008 From: rterry at ...1822... (richard terry) Date: Wed, 23 Jan 2008 08:12:34 +1100 Subject: [Gambas-user] IDE - tiny fonts on tabs. Message-ID: <200801230812.34126.rterry@...1822...> Compiled successfully for my system using a PKGBUILD the latest branch/2.0 so have the popup font thingy fixed and the name on the top of the properites tab. Thanks a million benoit, ............. boy does that help me. Next comment/request is for some sort of configuration on the tabs on the top of the editor which are unreadable on my system. See the piccie -------------- next part -------------- A non-text attachment was scrubbed... Name: benoit_dump_tiny_tab_fonts.png Type: image/png Size: 24296 bytes Desc: not available URL: From leonardo at ...1237... Tue Jan 22 22:16:44 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 22 Jan 2008 22:16:44 +0100 Subject: [Gambas-user] Problems with TrayIcon In-Reply-To: <200801221746.16626.gambas@...1...> References: <20080122083452.j6pqg3utgk8k0s4s@...1848...> <200801221746.16626.gambas@...1...> Message-ID: <47965D3C.9030105@...1237...> Benoit Minisini ha scritto: > On mardi 22 janvier 2008, Leonardo Miliani wrote: >> Some time ago I developed a little application that docked an icon in >> the systray and I called a popup menu just by clicking on it. >> I developed that app when I used SUSE with KDE. >> >> Now that I switched to Ubuntu/Gnome I'm having a problem with that app. >> >> When I run my app, I don't get the icon in the systray: I just get a >> vertical line of just 1 pixel width! >> My app uses gt.qt component: if I try to use the gb.gtk or the gb.gui >> I get my app freezed. >> >> Ciao. >> Leonardo. >> > > Please send the project on the mailing-list if it is small. This way other > Gnome users could tell me if they have the same behaviour. > > Regards, > The applications is downloadable from here: http://www.gambas-it.org/gmbs/modules/PDdownloads/singlefile.php?cid=1&lid=5 -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From gambas at ...1... Tue Jan 22 22:16:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 22:16:53 +0100 Subject: [Gambas-user] Making components in Gambas In-Reply-To: <5901653.3481201036136654.JavaMail.root@...1834...> References: <5901653.3481201036136654.JavaMail.root@...1834...> Message-ID: <200801222216.53096.gambas@...1...> On mardi 22 janvier 2008, Gareth Bult wrote: > Mmm, > > I'm afraid I spent more time trying to figure out how to integrate > GridEditor into Gambas than actually writing GridEditor .. and didn't make > any substantial progress. > > I'm afraid I just link it in manually and set properties by hand. > > I do have time to write components, but unfortunately not to try to work > out the innards of Gambas .. :( > > Gareth. > Now you don't have to anything special. Just make a package of your component project from the IDE, and install it globally. Or install it locally in your home directory in the 'make executable' dialog. Moreover, you can create a 'control' directory in your project, and put all control icons in it. The control icon must have the name of the control class in lowercase and must be a 'png' file. If you install your component project locally, the IDE will refresh automatically and you will be able to use the controls in your forms immediately. Regards, -- Benoit Minisini From gambas at ...1... Tue Jan 22 22:20:40 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 22:20:40 +0100 Subject: [Gambas-user] IDE - tiny fonts on tabs. In-Reply-To: <200801230812.34126.rterry@...1822...> References: <200801230812.34126.rterry@...1822...> Message-ID: <200801222220.40953.gambas@...1...> On mardi 22 janvier 2008, richard terry wrote: > Compiled successfully for my system using a PKGBUILD the latest branch/2.0 > so have the popup font thingy fixed and the name on the top of the > properites tab. > > Thanks a million benoit, ............. boy does that help me. > > Next comment/request is for some sort of configuration on the tabs on the > top of the editor which are unreadable on my system. > > See the piccie Actually the problem is on your X11 configuration: check the DPI of your screen (with the xdpyinfo command), the default font used by the qt library. Regards, -- Benoit Minisini From rterry at ...1822... Tue Jan 22 22:27:18 2008 From: rterry at ...1822... (richard terry) Date: Wed, 23 Jan 2008 08:27:18 +1100 Subject: [Gambas-user] IDE - features for better productivity Message-ID: <200801230827.18108.rterry@...1822...> The more I use gambas the more I like it, but am increasingly finding that my productivity is being held back by the editor functioning, so I thought as I go along I'll throw in m 2 cents worth of ideas/wish list, a couple of which I've mentioned before, some I havn't, Most of these are features of all the editors I've used before 1) Splitable editor with independant scrolling - lets one view 2 subroutines side/side when developing/debugging/copying 2) A back/forward button the tool bar. - nothing like scrolling/jumping down to one routine to see what one has done, and then having to find it again 3) Context sensitive help - ie press F1 over a keyword > jumps to the spot in the help file (probably at this stage I suspect impossible because of the nature of the help generation? 4) Function key link to allow jumping to the subroutine under the cursor. 5) Auto-refresh project tree - Some sort of process running under the hood to refresh the project tree list for when one has added a file from 'outside of the project' 6) Icon preview at real size - A 'this is what it looks like preview' of the icon you draw in the icon editor at the real size. 7) A 'Clean up the project' feature - which removes all unused subroutines To mention a few. Sounds like a selfish 'All I want for Xmas' wish list dosn't it. Fabulous environment to program in and thanks again for all the hard work/the product/ the support, much appreciated. Regards Richard From rospolosco at ...152... Tue Jan 22 22:39:21 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 22 Jan 2008 22:39:21 +0100 Subject: [Gambas-user] IDE - features for better productivity In-Reply-To: <200801230827.18108.rterry@...1822...> References: <200801230827.18108.rterry@...1822...> Message-ID: <200801222239.21514.rospolosco@...152...> Alle 22:27, marted? 22 gennaio 2008, richard terry ha scritto: > The more I use gambas the more I like it, but am increasingly finding that > my productivity is being held back by the editor functioning, so I thought > as I go along I'll throw in m 2 cents worth of ideas/wish list, a couple > of which I've mentioned before, some I havn't, Most of these are features > of all the editors I've used before > > 1) Splitable editor with independant scrolling > - lets one view 2 subroutines side/side when developing/debugging/copying > > 2) A back/forward button the tool bar. > - nothing like scrolling/jumping down to one routine to see what one has > done, and then having to find it again > > 3) Context sensitive help > - ie press F1 over a keyword > jumps to the spot in the help file > (probably at this stage I suspect impossible because of the nature of the > help generation? F2 already does it (if I understood what you mean :-) ) > > 4) Function key link to allow jumping to the subroutine under the cursor. > > 5) Auto-refresh project tree > - Some sort of process running under the hood to refresh the project tree > list for when one has added a file from 'outside of the project' > > 6) Icon preview at real size > - A 'this is what it looks like preview' of the icon you draw in the icon > editor at the real size. > > 7) A 'Clean up the project' feature > - which removes all unused subroutines > > > To mention a few. Sounds like a selfish 'All I want for Xmas' wish list > dosn't it. > > Fabulous environment to program in and thanks again for all the hard > work/the product/ the support, much appreciated. > > Regards > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1822... Tue Jan 22 22:45:31 2008 From: rterry at ...1822... (richard terry) Date: Wed, 23 Jan 2008 08:45:31 +1100 Subject: [Gambas-user] IDE - tiny fonts on tabs. In-Reply-To: <200801222220.40953.gambas@...1...> References: <200801230812.34126.rterry@...1822...> <200801222220.40953.gambas@...1...> Message-ID: <200801230845.31999.rterry@...1822...> perhaps someone on the list more knowledgable than me could interpret the result. Anway, why would the fonts in the editor and properites be ok, but the tabs tiny. Enclosed is the result of the command. Richard. On Wed, 23 Jan 2008 08:20:40 am Benoit Minisini wrote: > On mardi 22 janvier 2008, richard terry wrote: > > Compiled successfully for my system using a PKGBUILD the latest > > branch/2.0 so have the popup font thingy fixed and the name on the top of > > the properites tab. > > > > Thanks a million benoit, ............. boy does that help me. > > > > Next comment/request is for some sort of configuration on the tabs on the > > top of the editor which are unreadable on my system. > > > > See the piccie > > Actually the problem is on your X11 configuration: check the DPI of your > screen (with the xdpyinfo command), the default font used by the qt > library. > > Regards, -------------- next part -------------- xdpyinfo From gareth at ...1689... Tue Jan 22 22:56:17 2008 From: gareth at ...1689... (Gareth Bult) Date: Tue, 22 Jan 2008 21:56:17 +0000 (GMT) Subject: [Gambas-user] Making components in Gambas In-Reply-To: <200801222216.53096.gambas@...1...> Message-ID: <2935603.3511201038977716.JavaMail.root@...1834...> Mmm, Ok, that's certainly an improvement :) I think from memory my issue was access to the IDE's property controls ... i.e. being able to write code for the property editor .. Gareth. ----- Original Message ----- step 3.: "Benoit Minisini" To: "mailing list for gambas users" Sent: 22 January 2008 21:16:53 o'clock (GMT) Europe/London Subject: Re: [Gambas-user] Making components in Gambas On mardi 22 janvier 2008, Gareth Bult wrote: > Mmm, > > I'm afraid I spent more time trying to figure out how to integrate > GridEditor into Gambas than actually writing GridEditor .. and didn't make > any substantial progress. > > I'm afraid I just link it in manually and set properties by hand. > > I do have time to write components, but unfortunately not to try to work > out the innards of Gambas .. :( > > Gareth. > Now you don't have to anything special. Just make a package of your component project from the IDE, and install it globally. Or install it locally in your home directory in the 'make executable' dialog. Moreover, you can create a 'control' directory in your project, and put all control icons in it. The control icon must have the name of the control class in lowercase and must be a 'png' file. If you install your component project locally, the IDE will refresh automatically and you will be able to use the controls in your forms immediately. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1822... Tue Jan 22 22:56:36 2008 From: rterry at ...1822... (richard terry) Date: Wed, 23 Jan 2008 08:56:36 +1100 Subject: [Gambas-user] IDE - tiny fonts on tabs. - sorry here is the file In-Reply-To: <200801222248.35798.gambas@...1...> References: <200801230812.34126.rterry@...1822...> <200801230836.00174.rterry@...1823...> <200801222248.35798.gambas@...1...> Message-ID: <200801230856.37091.rterry@...1822...> Sorry, slipped up at the terminal This has stuff in it On Wed, 23 Jan 2008 08:48:35 am you wrote: > On mardi 22 janvier 2008, richard terry wrote: > > On Wed, 23 Jan 2008 08:20:40 am you wrote: > > > On mardi 22 janvier 2008, richard terry wrote: > > > > Compiled successfully for my system using a PKGBUILD the latest > > > > branch/2.0 so have the popup font thingy fixed and the name on the > > > > top of the properites tab. > > > > > > > > Thanks a million benoit, ............. boy does that help me. > > > > > > > > Next comment/request is for some sort of configuration on the tabs on > > > > the top of the editor which are unreadable on my system. > > > > > > > > See the piccie > > > > > > Actually the problem is on your X11 configuration: check the DPI of > > > your screen (with the xdpyinfo command), the default font used by the > > > qt library. > > > > > > Regards, > > > > Not sure how to interpret the result, know you probably don't have time, > > but if a quick perusal gives you a clue, I'd appreciate it. > > > > I think I'll install gambas on another office machine this week and see > > what it looks like. > > > > Richard > > There is nothing in your file. If you use KDE, you can get the output of > xdpyinfo from the control center. Otherwise, you need to check > that 'xdpyinfo' is installed on your system. > > The font problem is obvious because there is a terrible difference between > the small font used in the tab title and the default font used. If you > don't use KDE, you must check the configuration of the qt library with a > program named "qtconfig". > > Please send me the output of 'Desktop.Scale' got from the IDE console, and > the point size of your default font. > > Regards, -------------- next part -------------- name of display: :0.0 version number: 11.0 vendor string: The X.Org Foundation vendor release number: 10400090 X.Org version: 1.4.0.90 maximum request size: 16777212 bytes motion buffer size: 256 bitmap unit, bit order, padding: 32, LSBFirst, 32 image byte order: LSBFirst number of supported pixmap formats: 7 supported pixmap formats: depth 1, bits_per_pixel 1, scanline_pad 32 depth 4, bits_per_pixel 8, scanline_pad 32 depth 8, bits_per_pixel 8, scanline_pad 32 depth 15, bits_per_pixel 16, scanline_pad 32 depth 16, bits_per_pixel 16, scanline_pad 32 depth 24, bits_per_pixel 32, scanline_pad 32 depth 32, bits_per_pixel 32, scanline_pad 32 keycode range: minimum 8, maximum 255 focus: window 0x2800006, revert to PointerRoot number of extensions: 35 ATIFGLEXTENSION ATIFGLRXDRI ATITVOUT BIG-REQUESTS Composite DAMAGE DOUBLE-BUFFER DPMS Extended-Visual-Information GLX MIT-SCREEN-SAVER MIT-SHM MIT-SUNDRY-NONSTANDARD RANDR RECORD RENDER SECURITY SGI-GLX SHAPE SYNC TOG-CUP X-Resource XAccessControlExtension XC-APPGROUP XC-MISC XFIXES XFree86-Bigfont XFree86-DGA XFree86-Misc XFree86-VidModeExtension XINERAMA XInputExtension XKEYBOARD XTEST XVideo default screen number: 0 number of screens: 1 screen #0: print screen: no dimensions: 1280x800 pixels (401x303 millimeters) resolution: 81x67 dots per inch depths (7): 24, 1, 4, 8, 15, 16, 32 root window id: 0x3f depth of root window: 24 planes number of colormaps: minimum 1, maximum 1 default colormap: 0x20 default number of colormap cells: 256 preallocated pixels: black 0, white 16777215 options: backing-store NO, save-unders NO largest cursor: 64x64 current input event mask: 0xfa4031 KeyPressMask EnterWindowMask LeaveWindowMask KeymapStateMask StructureNotifyMask SubstructureNotifyMask SubstructureRedirectMask FocusChangeMask PropertyChangeMask ColormapChangeMask number of visuals: 9 default visual id: 0x23 visual: visual id: 0x23 class: TrueColor depth: 24 planes available colormap entries: 256 per subfield red, green, blue masks: 0xff0000, 0xff00, 0xff significant bits in color specification: 8 bits visual: visual id: 0x24 class: TrueColor depth: 24 planes available colormap entries: 256 per subfield red, green, blue masks: 0xff0000, 0xff00, 0xff significant bits in color specification: 8 bits visual: visual id: 0x25 class: TrueColor depth: 24 planes available colormap entries: 256 per subfield red, green, blue masks: 0xff0000, 0xff00, 0xff significant bits in color specification: 8 bits visual: visual id: 0x26 class: TrueColor depth: 24 planes available colormap entries: 256 per subfield red, green, blue masks: 0xff0000, 0xff00, 0xff significant bits in color specification: 8 bits visual: visual id: 0x27 class: DirectColor depth: 24 planes available colormap entries: 256 per subfield red, green, blue masks: 0xff0000, 0xff00, 0xff significant bits in color specification: 8 bits visual: visual id: 0x28 class: DirectColor depth: 24 planes available colormap entries: 256 per subfield red, green, blue masks: 0xff0000, 0xff00, 0xff significant bits in color specification: 8 bits visual: visual id: 0x29 class: DirectColor depth: 24 planes available colormap entries: 256 per subfield red, green, blue masks: 0xff0000, 0xff00, 0xff significant bits in color specification: 8 bits visual: visual id: 0x2a class: DirectColor depth: 24 planes available colormap entries: 256 per subfield red, green, blue masks: 0xff0000, 0xff00, 0xff significant bits in color specification: 8 bits visual: visual id: 0x3d class: TrueColor depth: 32 planes available colormap entries: 256 per subfield red, green, blue masks: 0xff0000, 0xff00, 0xff significant bits in color specification: 8 bits From paolo.fagni at ...626... Tue Jan 22 23:27:11 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Tue, 22 Jan 2008 23:27:11 +0100 Subject: [Gambas-user] IDE - features for better productivity In-Reply-To: <200801230827.18108.rterry@...1822...> References: <200801230827.18108.rterry@...1822...> Message-ID: <560cf1ab0801221427m51f638d8oee22349f59e5ed7a@...627...> On Jan 22, 2008 10:27 PM, richard terry wrote: > The more I use gambas the more I like it, but am increasingly finding that > my > productivity is being held back by the editor functioning, so I thought as > I > go along I'll throw in m 2 cents worth of ideas/wish list, a couple of > which I've mentioned before, some I havn't, Most of these are features of > all > the editors I've used before > > 1) Splitable editor with independant scrolling > - lets one view 2 subroutines side/side when > developing/debugging/copying That would be _great_! This, with code folding, are the two most important IDE related improvements IMHO > > > 2) A back/forward button the tool bar. > - nothing like scrolling/jumping down to one routine to see what > one has > done, and then having to find it again I wouldn't use those buttons that much, but they could be helpful. > > > 3) Context sensitive help > - ie press F1 over a keyword > jumps to the spot in the help file > (probably > at this stage I suspect impossible because of the nature of the help > generation? As Stefano said, F2 already does this. > > > 4) Function key link to allow jumping to the subroutine under the cursor. Don't understand :( > > > 5) Auto-refresh project tree > - Some sort of process running under the hood to refresh the > project tree > list for when one has added a file from 'outside of the project' > > 6) Icon preview at real size > - A 'this is what it looks like preview' of the icon you draw in > the icon > editor at the real size. 4,5,6) Nothing special but ok to me :) > > > 7) A 'Clean up the project' feature > - which removes all unused subroutines Don't like automation in these sort of things. > > > > To mention a few. Sounds like a selfish 'All I want for Xmas' wish list > dosn't > it. > > Fabulous environment to program in and thanks again for all the hard > work/the > product/ the support, much appreciated. > > Regards > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Paolo Fagni From gambas at ...1... Tue Jan 22 23:33:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 23:33:58 +0100 Subject: [Gambas-user] IDE - features for better productivity In-Reply-To: <200801230827.18108.rterry@...1822...> References: <200801230827.18108.rterry@...1822...> Message-ID: <200801222333.58652.gambas@...1...> On mardi 22 janvier 2008, richard terry wrote: > The more I use gambas the more I like it, but am increasingly finding that > my productivity is being held back by the editor functioning, so I thought > as I go along I'll throw in m 2 cents worth of ideas/wish list, a couple > of which I've mentioned before, some I havn't, Most of these are features > of all the editors I've used before > > 1) Splitable editor with independant scrolling > - lets one view 2 subroutines side/side when developing/debugging/copying Several editor controls can already share the same text, so it should be possible. See the HighlightEditor example which can split its editor. > > 2) A back/forward button the tool bar. > - nothing like scrolling/jumping down to one routine to see what one has > done, and then having to find it again Please explain. > > 3) Context sensitive help > - ie press F1 over a keyword > jumps to the spot in the help file > (probably at this stage I suspect impossible because of the nature of the > help generation? F2 does that. > > 4) Function key link to allow jumping to the subroutine under the cursor. F2 (find symbol) and SHIFT+F2 (go backward) do that. > > 5) Auto-refresh project tree > - Some sort of process running under the hood to refresh the project tree > list for when one has added a file from 'outside of the project' Maybe. :-) > > 6) Icon preview at real size > - A 'this is what it looks like preview' of the icon you draw in the icon > editor at the real size. Please explain. > > 7) A 'Clean up the project' feature > - which removes all unused subroutines Dangerous, and not really useful. > > > To mention a few. Sounds like a selfish 'All I want for Xmas' wish list > dosn't it. > > Fabulous environment to program in and thanks again for all the hard > work/the product/ the support, much appreciated. > > Regards > > Richard > Regards, -- Benoit Minisini From paolo.fagni at ...626... Tue Jan 22 23:39:50 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Tue, 22 Jan 2008 23:39:50 +0100 Subject: [Gambas-user] Rename a file in filesystem Message-ID: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> Hello, I'm trying to simply rename a sqlite database file from "namedb" to "name.db" . I have to do this because it seems like I cannot create directly "name.db", The following code tmpDB = "name.db" dbConnection.Host = tmpPath dbConnection.Type = "sqlite3" dbConnection.Open() IF NOT dbConnection.Databases.Exist(tmpDB) THEN dbConnection.Databases.Add(tmpDB) ENDIF Doesn't work. The "." in "name.db" seems to be the problem. Could that be possible? Anyway, if I can't create a "xxx.yyy" sqlite file for some reason, I would like to know how to simpy rename a file without edit it. I tried the hFile.Save() method but it creates a new empy file. Should I manually copy the content of the old file in a new one and then remove the old one? Thank you. -- Paolo Fagni From gambas at ...1... Tue Jan 22 23:46:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 23:46:50 +0100 Subject: [Gambas-user] Rename a file in filesystem In-Reply-To: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> References: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> Message-ID: <200801222346.50532.gambas@...1...> On mardi 22 janvier 2008, Paolo Fagni wrote: > Hello, > > I'm trying to simply rename a sqlite database file from "namedb" to > "name.db" . I have to do this because it seems like I cannot create > directly "name.db", The following code > > tmpDB = "name.db" > > dbConnection.Host = tmpPath > dbConnection.Type = "sqlite3" > > dbConnection.Open() > > IF NOT dbConnection.Databases.Exist(tmpDB) THEN > dbConnection.Databases.Add(tmpDB) > ENDIF > > Doesn't work. More precisely? -- Benoit Minisini From jaap_cramer at ...67... Tue Jan 22 23:47:01 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Tue, 22 Jan 2008 23:47:01 +0100 Subject: [Gambas-user] IDE - features for better productivity In-Reply-To: <200801222333.58652.gambas@...1...> References: <200801230827.18108.rterry@...1822...> <200801222333.58652.gambas@...1...> Message-ID: >> 7) A 'Clean up the project' feature >> - which removes all unused subroutines > > Dangerous, and not really useful. > I think it's dangerous indeed. However, could it be possible to list all functions/subs that aren't called in the entire project. People can than manually delete those unused Routines. Events of controll should be excluded, obviously :-D Jaap _________________________________________________________________ De mooiste afbeeldingen van Angelina Jolie vind je met Live Search http://search.live.com/images/results.aspx?q=angelina%20jolie&FORM=MIINTM From gambas at ...1... Tue Jan 22 23:48:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Jan 2008 23:48:06 +0100 Subject: [Gambas-user] Arrays !, Sighhhhhh In-Reply-To: <200801221758.15199.steven@...1652...> References: <200801212300.26281.steven@...1652...> <200801221230.33478.gambas@...1...> <200801221758.15199.steven@...1652...> Message-ID: <200801222348.06653.gambas@...1...> On mardi 22 janvier 2008, Steven Lobbezoo wrote: > Strange things happen here ! > I'm writing some code (and changing) in the called modal Form that has > nothing to do with the variables posing problems. I donnot touch them in > anyway. But, sometimes the reported problem dissapears ;-) > A bit later it's back again. > Suspission : it has something to do with memory allocation ? > > Regards, > Steven > The problem with static arrays should be fixed with the rev. 1031. Try to avoid them in your projects, use "normal" arrays instead. Regards, -- Benoit Minisini From paolo.fagni at ...626... Tue Jan 22 23:58:17 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Tue, 22 Jan 2008 23:58:17 +0100 Subject: [Gambas-user] Rename a file in filesystem In-Reply-To: <200801222346.50532.gambas@...1...> References: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> <200801222346.50532.gambas@...1...> Message-ID: <560cf1ab0801221458p691595dcj93a61bee9e5358ac@...627...> On Jan 22, 2008 11:46 PM, Benoit Minisini wrote: > On mardi 22 janvier 2008, Paolo Fagni wrote: > > > Doesn't work. > > More precisely? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > When I do x.database.Add("xxx.db") gambas tells me "Bad database name xxx.db". If I omit the point everything went fine. -- Paolo Fagni From gambas at ...1... Wed Jan 23 00:02:35 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Jan 2008 00:02:35 +0100 Subject: [Gambas-user] number format In-Reply-To: <1200926858.3902.7.camel@...1835...> References: <200801211719.06045.gunartha.nyoman@...1817...> <1200926858.3902.7.camel@...1835...> Message-ID: <200801230002.35405.gambas@...1...> On lundi 21 janvier 2008, Che wrote: > There are no bad questions... although there are some bad answers out > there... > > I've been programming for 30 years (starting with the infamous card > readers) and only recently came upon Gambas. This week people more > knowledgeable about Gambas helped me out with a simple question that > saved me a lot of grief and hopefully in the next few months I can > return the favour!! > > What would be nice though would be more tutorials, especially as they > pertain to Gambas2. GambasDoc and GambasForge are coming along but there > are still major gaps that when filled would certainly cut down on the > questions from newbs like myself (gee, it has been years since I have > been a newb...lol). Is there a formal Gambas documentation project or is > it ad hoc at the present time? > > I would be willing to volunteer to help out with documentation - perhaps > Jaap might want to volunteer as well? > > Cheers! > Mark > gambasdoc.org is a wiki, so you can use it to write documentation, tutorials, whatever you like. Just tell me what you want to do and how you want to do it. Regards, -- Benoit Minisini From Karl.Reinl at ...9... Wed Jan 23 01:16:34 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 23 Jan 2008 01:16:34 +0100 Subject: [Gambas-user] IDE - features for better productivity In-Reply-To: <560cf1ab0801221427m51f638d8oee22349f59e5ed7a@...627...> References: <200801230827.18108.rterry@...1822...> <560cf1ab0801221427m51f638d8oee22349f59e5ed7a@...627...> Message-ID: <1201047394.5776.4.camel@...40...> Am Dienstag, den 22.01.2008, 23:27 +0100 schrieb Paolo Fagni: > On Jan 22, 2008 10:27 PM, richard terry wrote: > > > The more I use gambas the more I like it, but am increasingly finding that > > my > > productivity is being held back by the editor functioning, so I thought as > > I > > go along I'll throw in m 2 cents worth of ideas/wish list, a couple of > > which I've mentioned before, some I havn't, Most of these are features of > > all > > the editors I've used before > > Salut, the gambas IDE is a gambas project written in gambas. So for what are you waiting for ? ideas and wish lists ??? Why ?? just do it ! Amicalment Charlie From rterry at ...1822... Wed Jan 23 01:46:04 2008 From: rterry at ...1822... (richard terry) Date: Wed, 23 Jan 2008 11:46:04 +1100 Subject: [Gambas-user] IDE - features for better productivity In-Reply-To: <1201047394.5776.4.camel@...40...> References: <200801230827.18108.rterry@...1822...> <560cf1ab0801221427m51f638d8oee22349f59e5ed7a@...627...> <1201047394.5776.4.camel@...40...> Message-ID: <200801231146.04967.rterry@...1822...> On Wed, 23 Jan 2008 11:16:34 am Charlie Reinl wrote: > Am Dienstag, den 22.01.2008, 23:27 +0100 schrieb Paolo Fagni: > > On Jan 22, 2008 10:27 PM, richard terry wrote: > > > The more I use gambas the more I like it, but am increasingly finding > > > that my > > > productivity is being held back by the editor functioning, so I thought > > > as I > > > go along I'll throw in m 2 cents worth of ideas/wish list, a couple > > > of which I've mentioned before, some I havn't, Most of these are > > > features of all > > > the editors I've used before > > Salut, > > the gambas IDE is a gambas project written in gambas. > > So for what are you waiting for ? > > ideas and wish lists ??? Why ?? just do it ! It's called, not being so arrogant as to think I know enough to be able to!!!! Unfortunately what comes easily to the young, dosn't come so easily to the older members of our community. I've not programmed in basic since 1998 so I'm trying to get up to speed, though in latter years done some stuff in wxPython/Python. Besides, seeing 45 patients a day and working in the office from 7:30 am till 6:30pm, and not having broadband at home (dead spot for both wireless and landline ADSL according to Telco will never ever be made available) dosn't help. I'm also trying to learn enough html + manipulate hl7 to decode the messages I can get at work. My legacy medical records system has 10+years of data in it and can't be converted to current programs, because my data structure is way to detailed and complex for their puny database structures, so I'm looking at adapting what I've got so I can struggle on for a few years with minor upgrading until I retire. Besides, I'm such a slow learner when it comes to programming, I'd be better to write some tutorials like 'An idiots guide to gambas' for the wiki, where I can explain what I've learnt to those like me who are not quick enough to do what guys like you can!!!! Regards Richard > > Amicalment > Charlie > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From kannan62k at ...43... Wed Jan 23 11:29:33 2008 From: kannan62k at ...43... (Kannan) Date: Wed, 23 Jan 2008 04:29:33 -0600 Subject: [Gambas-user] Kannan sent you a friend request on Yaari... Message-ID: From hennie at ...1826... Wed Jan 23 13:09:34 2008 From: hennie at ...1826... (gaupe) Date: Wed, 23 Jan 2008 04:09:34 -0800 (PST) Subject: [Gambas-user] Problem making an installation package In-Reply-To: <8eb28a500801220528q574ae1cdn521ea462946a6ea9@...627...> References: <15001008.post@...1379...> <200801211740.16585.gambas@...1...> <15018159.post@...1379...> <200801221400.42599.gambas@...1...> <8eb28a500801220528q574ae1cdn521ea462946a6ea9@...627...> Message-ID: <15040344.post@...1379...> I can confirm that it works when the example Bling is renamed in bling i can create a package anywhere on my system with it so also outside of my homedir Jos? Luis Redrejo wrote: > > upper case characters are not allowed in Debian package names. That's why > the Debian package always convert the name to lowercase. There have been > quite a lot of people who reported me that was working, so he must have > some > other problem. > > I don't have any Ubuntu machine to test it, in Debian machines it works > perfectly with those examples so I can not say more. If some other user of > the same Ubuntu version can test it and say if he can reproduce the > problem > and give more data it would be great. > > Regards. > Jos? L. > > 2008/1/22, Benoit Minisini : >> >> On mardi 22 janvier 2008, gaupe wrote: >> > ubuntuu 7.10 >> > gambas 2.0.0 >> > >> > i use the distribution from gutsy >> http://azores.linex.org/gambas-other/ >> > >> > >> > (something fell out in between sorry) >> > >> > I am afraid sending the project will not help as i have the same >> problem >> > with all projects including the example programs. >> > >> > fex blights. >> > i select only ubuntu when making a packages and nothing else. >> > see below what i get. same error but now with the B of blights ... >> > notice the ` <----- i dont know if that has something >> to >> do >> > with the problem >> > >> > i tried a fresh install by removing all the gambas packages >> > rm -rf ~/.comfig/gambas >> > and install all the packages. >> > >> > >> > >> > `Blights' contains illegal character `B' >> > >> > Creating package for Ubuntu. >> > Making build directory. >> > Creating desktop file... >> > Sources are being debianizated. >> > Creating package... >> > dpkg-buildpackage: source package is blights >> > dpkg-buildpackage: source version is 0-0 >> > dpkg-buildpackage: source changed by benoit >> > dpkg-buildpackage: host architecture i386 >> > dpkg-buildpackage: source version without epoch 0-0 >> > dh_testdir >> > debian/rules clean >> > dh_testroot >> > rm -Rf `find . -name ".gambas"` >> > rm -Rf `find . -name "*.gambas"` >> > rm -f build-stamp install-stamp >> > dh_clean >> > dh_clean: Compatibility levels before 4 are deprecated. >> > dpkg-source -b blights >> > dpkg-source: error: source package name `Blights' contains illegal >> > character `B' >> > The package build has failed. >> > Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed. >> > >> >> Maybe dpkg-source does not like upper case characters in package names? >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Problem-making-an--installation-package-tp15001008p15040344.html Sent from the gambas-user mailing list archive at Nabble.com. From hennie at ...1826... Wed Jan 23 13:17:50 2008 From: hennie at ...1826... (gaupe) Date: Wed, 23 Jan 2008 04:17:50 -0800 (PST) Subject: [Gambas-user] Problem making an installation package In-Reply-To: <15040344.post@...1379...> References: <15001008.post@...1379...> <200801211740.16585.gambas@...1...> <15018159.post@...1379...> <200801221400.42599.gambas@...1...> <8eb28a500801220528q574ae1cdn521ea462946a6ea9@...627...> <15040344.post@...1379...> Message-ID: <15040390.post@...1379...> I am quit new to linux and cannot give much info i can provide the following though. if needed more please explain what and how and i can maybe provide it if it has to do something with language support i have a norwegian keyboard language is in english language support installed for norwegian english and dutch default language english (united states) gaupe wrote: > > I can confirm that > it works when the example Bling is renamed in bling > > i can create a package anywhere on my system with it so also outside of my > homedir > > > > > Jos? Luis Redrejo wrote: >> >> upper case characters are not allowed in Debian package names. That's why >> the Debian package always convert the name to lowercase. There have been >> quite a lot of people who reported me that was working, so he must have >> some >> other problem. >> >> I don't have any Ubuntu machine to test it, in Debian machines it works >> perfectly with those examples so I can not say more. If some other user >> of >> the same Ubuntu version can test it and say if he can reproduce the >> problem >> and give more data it would be great. >> >> Regards. >> Jos? L. >> >> 2008/1/22, Benoit Minisini : >>> >>> On mardi 22 janvier 2008, gaupe wrote: >>> > ubuntuu 7.10 >>> > gambas 2.0.0 >>> > >>> > i use the distribution from gutsy >>> http://azores.linex.org/gambas-other/ >>> > >>> > >>> > (something fell out in between sorry) >>> > >>> > I am afraid sending the project will not help as i have the same >>> problem >>> > with all projects including the example programs. >>> > >>> > fex blights. >>> > i select only ubuntu when making a packages and nothing else. >>> > see below what i get. same error but now with the B of blights ... >>> > notice the ` <----- i dont know if that has something >>> to >>> do >>> > with the problem >>> > >>> > i tried a fresh install by removing all the gambas packages >>> > rm -rf ~/.comfig/gambas >>> > and install all the packages. >>> > >>> > >>> > >>> > `Blights' contains illegal character `B' >>> > >>> > Creating package for Ubuntu. >>> > Making build directory. >>> > Creating desktop file... >>> > Sources are being debianizated. >>> > Creating package... >>> > dpkg-buildpackage: source package is blights >>> > dpkg-buildpackage: source version is 0-0 >>> > dpkg-buildpackage: source changed by benoit >>> > dpkg-buildpackage: host architecture i386 >>> > dpkg-buildpackage: source version without epoch 0-0 >>> > dh_testdir >>> > debian/rules clean >>> > dh_testroot >>> > rm -Rf `find . -name ".gambas"` >>> > rm -Rf `find . -name "*.gambas"` >>> > rm -f build-stamp install-stamp >>> > dh_clean >>> > dh_clean: Compatibility levels before 4 are deprecated. >>> > dpkg-source -b blights >>> > dpkg-source: error: source package name `Blights' contains illegal >>> > character `B' >>> > The package build has failed. >>> > Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed. >>> > >>> >>> Maybe dpkg-source does not like upper case characters in package names? >>> >>> -- >>> Benoit Minisini >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > -- View this message in context: http://www.nabble.com/Problem-making-an--installation-package-tp15001008p15040390.html Sent from the gambas-user mailing list archive at Nabble.com. From bezdzik at ...988... Wed Jan 23 14:00:09 2008 From: bezdzik at ...988... (bezdzik) Date: Wed, 23 Jan 2008 05:00:09 -0800 (PST) Subject: [Gambas-user] Gambas2 doesn't see form elements in code Message-ID: <15041121.post@...1379...> Hi! I'm quite new in gambas programming. I created an application that worked just fine, but after some minor improvements (textbox resize or similar) i've got such a problem: while trying to run the app an error shows up "Unknown identifier 'control_name' in row xxx in FMain.class", where FMain.class is my main form class. Additionally gambas ide doesn't complete the syntax of the form elements. The app is quite advanced in developement now and i'm sure i didn't change something important in it. Does anyone have any suggestions how to fix the problem? I tried to fix it by adding 'Me.' in fronts of components names in source code but after that new error appeared: "Unexpected INHERITS in form definition". I have no idea how to deal with it. -- View this message in context: http://www.nabble.com/Gambas2-doesn%27t-see-form-elements-in-code-tp15041121p15041121.html Sent from the gambas-user mailing list archive at Nabble.com. From jaap_cramer at ...67... Wed Jan 23 14:12:20 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Wed, 23 Jan 2008 14:12:20 +0100 Subject: [Gambas-user] Gambas2 doesn't see form elements in code In-Reply-To: <15041121.post@...1379...> References: <15041121.post@...1379...> Message-ID: Hi! To solve your problem, people would like to know the Gambas-version you are using, and the system you are running. If you send your project along, people could take a look :-) Jaap ---------------------------------------- > Date: Wed, 23 Jan 2008 05:00:09 -0800 > From: bezdzik at ...988... > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Gambas2 doesn't see form elements in code > > > Hi! > I'm quite new in gambas programming. I created an application that worked > just fine, but after some minor improvements (textbox resize or similar) > i've got such a problem: while trying to run the app an error shows up > "Unknown identifier 'control_name' in row xxx in FMain.class", where > FMain.class is my main form class. Additionally gambas ide doesn't complete > the syntax of the form elements. The app is quite advanced in developement > now and i'm sure i didn't change something important in it. Does anyone have > any suggestions how to fix the problem? I tried to fix it by adding 'Me.' in > fronts of components names in source code but after that new error appeared: > "Unexpected INHERITS in form definition". I have no idea how to deal with > it. > > -- > View this message in context: http://www.nabble.com/Gambas2-doesn%27t-see-form-elements-in-code-tp15041121p15041121.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Probeer Live Search: de zoekmachine van de makers van MSN! http://www.live.com/?searchOnly=true From paolo.fagni at ...626... Wed Jan 23 14:51:37 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Wed, 23 Jan 2008 14:51:37 +0100 Subject: [Gambas-user] Insert thext with " ' " in sqlite database Message-ID: <560cf1ab0801230551r5fc05ec4k98853563c592fb11@...627...> Hello, I have to insert data in a sqlite database that has this particular form : dell'orto I tried to use DB.Quote(string) but the result is 'dell'orto' When I would like to obtain : 'dell''orto' Do I have to change it manually with Replace$() ? Thank you for you help. -- Paolo Fagni From gambas at ...1... Wed Jan 23 14:58:22 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Jan 2008 14:58:22 +0100 Subject: [Gambas-user] Insert thext with " ' " in sqlite database In-Reply-To: <560cf1ab0801230551r5fc05ec4k98853563c592fb11@...627...> References: <560cf1ab0801230551r5fc05ec4k98853563c592fb11@...627...> Message-ID: <200801231458.22309.gambas@...1...> On mercredi 23 janvier 2008, Paolo Fagni wrote: > Hello, > > I have to insert data in a sqlite database that has this particular form : > > dell'orto > > I tried to use DB.Quote(string) but the result is > > 'dell'orto' > > When I would like to obtain : > > 'dell''orto' > > Do I have to change it manually with Replace$() ? Thank you for you help. DB.Quote() should do the job. Which version of Gambas do you use? Which database do you access? I should make a keyboard shortcut for these questions... Regards, -- Benoit Minisini From paolo.fagni at ...626... Wed Jan 23 15:12:25 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Wed, 23 Jan 2008 15:12:25 +0100 Subject: [Gambas-user] Insert thext with " ' " in sqlite database In-Reply-To: <200801231458.22309.gambas@...1...> References: <560cf1ab0801230551r5fc05ec4k98853563c592fb11@...627...> <200801231458.22309.gambas@...1...> Message-ID: <560cf1ab0801230612i15a227fcp7e7ee97b2a5bf4dc@...627...> On Jan 23, 2008 2:58 PM, Benoit Minisini wrote: > On mercredi 23 janvier 2008, Paolo Fagni wrote: > > Hello, > > > > I have to insert data in a sqlite database that has this particular form > : > > > > dell'orto > > > > I tried to use DB.Quote(string) but the result is > > > > 'dell'orto' > > > > When I would like to obtain : > > > > 'dell''orto' > > > > Do I have to change it manually with Replace$() ? Thank you for you > help. > > DB.Quote() should do the job. Which version of Gambas do you use? Which > database do you access? > > I should make a keyboard shortcut for these questions... > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > As I specified in my first message is a sqlite database, and I'm using stable 2.0.0 version from arch linux repositories. IF txtEditorName.Text <> "" THEN x = RTrim$(txtEditorName.Text) y = RTrim$(txtEditorWeb.Text) Message.Info(MDb.getConnection().Quote(x)) ... This is the real code. Thank you :) -- Paolo Fagni From gambas at ...1... Wed Jan 23 15:31:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Jan 2008 15:31:43 +0100 Subject: [Gambas-user] Insert thext with " ' " in sqlite database In-Reply-To: <560cf1ab0801230551r5fc05ec4k98853563c592fb11@...627...> References: <560cf1ab0801230551r5fc05ec4k98853563c592fb11@...627...> Message-ID: <200801231531.43917.gambas@...1...> On mercredi 23 janvier 2008, Paolo Fagni wrote: > Hello, > > I have to insert data in a sqlite database that has this particular form : > > dell'orto > > I tried to use DB.Quote(string) but the result is > > 'dell'orto' > > When I would like to obtain : > > 'dell''orto' > > Do I have to change it manually with Replace$() ? Thank you for you help. Actually DB.Quote is not for quoting strings that will be inserted into the database, but for quoting database identifiers. Anyway I'm not sure it should not return 'dell''orto'... To quote database values, you must use the Connection.Subst method, or one of the following: Edit, Find, Delete, Exec. Regards, -- Benoit Minisini From jredrejo at ...626... Wed Jan 23 16:03:43 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Wed, 23 Jan 2008 16:03:43 +0100 Subject: [Gambas-user] Problem making an installation package In-Reply-To: <15040344.post@...1379...> References: <15001008.post@...1379...> <200801211740.16585.gambas@...1...> <15018159.post@...1379...> <200801221400.42599.gambas@...1...> <8eb28a500801220528q574ae1cdn521ea462946a6ea9@...627...> <15040344.post@...1379...> Message-ID: <8eb28a500801230703u737f1984v4470b6b1c5325358@...627...> 2008/1/23, gaupe : > > > I can confirm that > it works when the example Bling is renamed in bling > > i can create a package anywhere on my system with it so also outside of my > homedir > > I forgot to tell it to the list: I commited a fix to this problem to the svn last night, so it's fixed since revision 1030 in the 2.0 branch. Now capital letters in the project name can be used again. Regards. From paolo.fagni at ...626... Wed Jan 23 16:06:17 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Wed, 23 Jan 2008 16:06:17 +0100 Subject: [Gambas-user] Insert thext with " ' " in sqlite database In-Reply-To: <200801231531.43917.gambas@...1...> References: <560cf1ab0801230551r5fc05ec4k98853563c592fb11@...627...> <200801231531.43917.gambas@...1...> Message-ID: <560cf1ab0801230706g6df08276q26bc096992a11649@...627...> On Jan 23, 2008 3:31 PM, Benoit Minisini wrote: > On mercredi 23 janvier 2008, Paolo Fagni wrote: > > Hello, > > > > I have to insert data in a sqlite database that has this particular form > : > > > > dell'orto > > > > I tried to use DB.Quote(string) but the result is > > > > 'dell'orto' > > > > When I would like to obtain : > > > > 'dell''orto' > > > > Do I have to change it manually with Replace$() ? Thank you for you > help. > > Actually DB.Quote is not for quoting strings that will be inserted into > the > database, but for quoting database identifiers. Anyway I'm not sure it > should > not return 'dell''orto'... > > To quote database values, you must use the Connection.Subst method, or one > of > the following: Edit, Find, Delete, Exec. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Thank you very much, since I have a String and I use DB.Exec("INSERT INTO ...") to execute my SQL insertion, I'd go for a Replace$(). Thank you again. -- Paolo Fagni From gambas at ...1... Wed Jan 23 16:21:29 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Jan 2008 16:21:29 +0100 Subject: [Gambas-user] Insert thext with " ' " in sqlite database In-Reply-To: <560cf1ab0801230706g6df08276q26bc096992a11649@...627...> References: <560cf1ab0801230551r5fc05ec4k98853563c592fb11@...627...> <200801231531.43917.gambas@...1...> <560cf1ab0801230706g6df08276q26bc096992a11649@...627...> Message-ID: <200801231621.29447.gambas@...1...> On mercredi 23 janvier 2008, Paolo Fagni wrote: > > Thank you very much, since I have a String and I use DB.Exec("INSERT INTO > ...") to execute my SQL insertion, I'd go for a Replace$(). > > Thank you again. Mmm, you didn't see the point. You must use the substitute arguments of these methods, so that they will correctly quote the values while making the request. I mean, you should never do: DB.Exec("INSERT INTO MyTable VALUES(" & CStr(Id) & ", '" & Replace(Name, "'", "''") & "')") even if it could be correct, but: DB.Exec("INSERT INTO MyTable VALUES(&1, &2)", Id, Name). You should read the documentation on the wiki about these methods. Regards, -- Benoit Minisini From bezdzik at ...988... Wed Jan 23 16:42:10 2008 From: bezdzik at ...988... (bezdzik) Date: Wed, 23 Jan 2008 07:42:10 -0800 (PST) Subject: [Gambas-user] Gambas2 doesn't see form elements in code In-Reply-To: References: <15041121.post@...1379...> Message-ID: <15044668.post@...1379...> Jaap Cramer wrote: > > > Hi! > > To solve your problem, people would like to know the Gambas-version you > are using, and the system you are running. > If you send your project along, people could take a look :-) > > > Gambas2 2.0.0 -- View this message in context: http://www.nabble.com/Gambas2-doesn%27t-see-form-elements-in-code-tp15041121p15044668.html Sent from the gambas-user mailing list archive at Nabble.com. From paolo.fagni at ...626... Wed Jan 23 16:48:42 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Wed, 23 Jan 2008 16:48:42 +0100 Subject: [Gambas-user] Insert thext with " ' " in sqlite database In-Reply-To: <200801231621.29447.gambas@...1...> References: <560cf1ab0801230551r5fc05ec4k98853563c592fb11@...627...> <200801231531.43917.gambas@...1...> <560cf1ab0801230706g6df08276q26bc096992a11649@...627...> <200801231621.29447.gambas@...1...> Message-ID: <560cf1ab0801230748h26635067x1bb8a0d5657c0252@...627...> On Jan 23, 2008 4:21 PM, Benoit Minisini wrote: > On mercredi 23 janvier 2008, Paolo Fagni wrote: > > > > Thank you very much, since I have a String and I use DB.Exec("INSERT > INTO > > ...") to execute my SQL insertion, I'd go for a Replace$(). > > > > Thank you again. > > Mmm, you didn't see the point. > > You must use the substitute arguments of these methods, so that they will > correctly quote the values while making the request. > > I mean, you should never do: > > DB.Exec("INSERT INTO MyTable VALUES(" & CStr(Id) & ", '" & > Replace(Name, "'", "''") & "')") > > even if it could be correct, but: > > DB.Exec("INSERT INTO MyTable VALUES(&1, &2)", Id, Name). > > You should read the documentation on the wiki about these methods. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Ok, got it :) sorry for the confusion and thank you. -- Paolo Fagni From piramix at ...178... Wed Jan 23 16:55:58 2008 From: piramix at ...178... (=?iso-8859-15?B?UGlyYW1peCBUZWNub2xvZ+1hcw==?=) Date: Wed, 23 Jan 2008 10:55:58 -0500 Subject: [Gambas-user] Little problem compiling 2.0.0 version (Bug or not?) Message-ID: <20080123155559.7CD53478088@...1850...> Good evening people. Sorry 4 the delay answering. Thanks 4 your help. Appreciated. I will try to recompile today and see what happens. Anyway, remember, Gambas' working fine. I'm just stubborn (the only way to learn). :) Greetings, Pablo. > ----- Original Message ----- > From: "Benoit Minisini" > To: "mailing list for gambas users" > Subject: Re: [Gambas-user] Little problem compiling 2.0.0 version (Bug or not?) > Date: Tue, 22 Jan 2008 21:57:32 +0100 > > > On mardi 22 janvier 2008, Stefano Palmeri wrote: > > Alle 17:44, marted? 22 gennaio 2008, Benoit Minisini ha scritto: > > > On mardi 22 janvier 2008, Piramix Tecnolog?as wrote: > > > > Yesterday I tried to start using stable version 2.0.0 (I've been using > > > > 1.9.46 until that moment). I had no problem at all but I decided to > > > > upgrade. During the compilation happened that the gb.desktop component > > > > was disabled (I don't know what is it really since it was not there > > > > before). Compilation and installation ran good BUT when I tried to run > > > > gambas2 I got the following message: "ERROR: #27: Cannot load component > > > > 'gb.desktop': cannot find library file". It's obviously a problem > > > > related to some X11 library (libXtst.so is present at /usr/X11R6/lib). > > > > Anyway, messing a little with the configuration script at the > > > > gb.desktop folder I disabled the part where it checks for > > > > XTestQueryExtension in -lXtst (still don't know what's about). After > > > > that gb.desktop component was enabled and I cuold finally compile > > > > passing the -i option to make. Finally, gambas2 is running like a charm > > > > but I'd still like to know what happened here. I'm using > > > > slackware-11.0 with kernel 2.6.20.11 and 2.6.19rc6, gcc versi?n 3.4.6 & > > > > Make version 3.81. I'm just learning C code so, my knowledge is very > > > > limited. I'll appreciate some help here. Thanks. > > > > > > Please send the output of the configure process. > > > > > > The component was disabled because it couldn't succeed in finding the > > > include files of the libXtst library. But if it works after removing the > > > test, that means that these includes are there but that configure didn't > > > find them. If you could tell me where the libXtst includes are located on > > > Slackware so that I can fix the search, it would be cool. :-) > > > > > > Regards, > > > > We discussed this problem a couple (look for mails of 7 january) of weeks > > ago, because I had the same problem with Slackware 11. You send me a new > > configure.ac for gb.desktop to test and that solved the problem. Anyway the > > other solution is: > > > > export LDFLAGS="-L/usr/X11R6/lib" > > > > before ./configure > > > > I've attached the configure.ac. > > > > Best regards, > > > > Stefano Palmeri > > OK, I remember now. The fix is in the svn repository, at /branches/2.0. You > will get it with the 2.1 release! > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! From nxgtrturbo at ...626... Wed Jan 23 17:38:33 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Wed, 23 Jan 2008 08:38:33 -0800 Subject: [Gambas-user] MAIL LIST PROBLEMS Message-ID: <688afe140801230838h5904a0dcq5ec437ac4d91dfff@...627...> MAIL LIST PROBLEMS Hi, sorry, but, Can someone read my message? I am having problems with the mailing list, I can't see any message after January 21, I see the messages that people post, because I got the mailing-list mails, but I cant watch nothing and the web page, I tried: http://sourceforge.net/mailarchive/forum.php?forum_name=gambas-user&max_rows=25&style=ultimate&viewmonth=200801&viewday=22 And other days after 21, but nothing? -- http://www.cardomain.com/ride/645756 http://nxgtrturbo.googlepages.com/ http://www.fotolog.com/nxgtrturbo/ http://tallerhuertas.googlepages.com/ From leonardo at ...1237... Wed Jan 23 17:47:48 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 23 Jan 2008 17:47:48 +0100 Subject: [Gambas-user] MAIL LIST PROBLEMS In-Reply-To: <688afe140801230838h5904a0dcq5ec437ac4d91dfff@...627...> References: <688afe140801230838h5904a0dcq5ec437ac4d91dfff@...627...> Message-ID: <47976FB4.1060108@...1237...> Nx GT-R BOY ha scritto: > MAIL LIST PROBLEMS > > Hi, sorry, but, Can someone read my message? I am having problems with the > mailing list, I can't see any message after January 21, I see the messages > that people post, because I got the mailing-list mails, but I cant watch > nothing and the web page, I tried: > > http://sourceforge.net/mailarchive/forum.php?forum_name=gambas-user&max_rows=25&style=ultimate&viewmonth=200801&viewday=22 > > And other days after 21, but nothing? > > In the past I experienced some problems concerning the mailing-list. My messages were rejected by the mailer daemon for "spamming" or something similar... After a couple of weeks all was fixed by itself... Now I'm able to read your message. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From steven at ...1652... Wed Jan 23 18:18:36 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Wed, 23 Jan 2008 18:18:36 +0100 Subject: [Gambas-user] Arrays !, Sighhhhhh In-Reply-To: <200801222348.06653.gambas@...1...> References: <200801212300.26281.steven@...1652...> <200801221758.15199.steven@...1652...> <200801222348.06653.gambas@...1...> Message-ID: <200801231818.37202.steven@...1652...> Le Tuesday 22 January 2008 23:48:06 Benoit Minisini, vous avez ?crit?: > On mardi 22 janvier 2008, Steven Lobbezoo wrote: > > Strange things happen here ! > > I'm writing some code (and changing) in the called modal Form that has > > nothing to do with the variables posing problems. I donnot touch them in > > anyway. But, sometimes the reported problem dissapears ;-) > > A bit later it's back again. > > Suspission : it has something to do with memory allocation ? > > > > Regards, > > Steven > > The problem with static arrays should be fixed with the rev. 1031. Try to > avoid them in your projects, use "normal" arrays instead. > > Regards, Ok, i made a work-around that works ;-) Is there any place I can read a bit about static / normal arrays. I donnot know what you call a normal array. Thanks Steven From gambas at ...1... Wed Jan 23 18:50:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Jan 2008 18:50:03 +0100 Subject: [Gambas-user] Arrays !, Sighhhhhh In-Reply-To: <200801231818.37202.steven@...1652...> References: <200801212300.26281.steven@...1652...> <200801222348.06653.gambas@...1...> <200801231818.37202.steven@...1652...> Message-ID: <200801231850.03615.gambas@...1...> On mercredi 23 janvier 2008, Steven Lobbezoo wrote: > Le Tuesday 22 January 2008 23:48:06 Benoit Minisini, vous avez ?crit?: > > On mardi 22 janvier 2008, Steven Lobbezoo wrote: > > > Strange things happen here ! > > > I'm writing some code (and changing) in the called modal Form that has > > > nothing to do with the variables posing problems. I donnot touch them > > > in anyway. But, sometimes the reported problem dissapears ;-) > > > A bit later it's back again. > > > Suspission : it has something to do with memory allocation ? > > > > > > Regards, > > > Steven > > > > The problem with static arrays should be fixed with the rev. 1031. Try to > > avoid them in your projects, use "normal" arrays instead. > > > > Regards, > > Ok, i made a work-around that works ;-) > Is there any place I can read a bit about static / normal arrays. > I donnot know what you call a normal array. > > Thanks > > Steven > In the wiki: "Language index" -> "Array declaration". Regards, -- Benoit Minisini From gambas at ...1... Wed Jan 23 19:36:14 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Jan 2008 19:36:14 +0100 Subject: [Gambas-user] New 64 bits incompatible change for the 2.1 Message-ID: <200801231936.14727.gambas@...1...> Hi, Why XWindow use 'long' datatype for their window handle, nobody knows. Because of that, window handles are 32 bits on 32 bits OS, and 64 bits on 64 bits OS. As if we were going to create 2^64 windows or pixmaps... Well, I had to create a new type of array, Pointer[], and had to modify all method that deal with window handle: the Control class, the Embedder class, the Desktop.Find() method which now returns a Pointer array and not an Integer array anymore, and so on. The good news: these methods now work indifferently on 32 bits OS and 64 bits OS. The bad news: this change is not compatible with 2.0, as the Pointer[] class does not exist at all in 2.0. But I think that a Gambas 2 that works on 64 bits OS is worth this little incompatibility. Ahem, no, I don't change my mind... -- Benoit Minisini From kim.hoskin at ...1073... Wed Jan 23 19:43:10 2008 From: kim.hoskin at ...1073... (Khos) Date: Wed, 23 Jan 2008 10:43:10 -0800 (PST) Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <200801202057.22187.gambas@...1...> References: <14931902.post@...1379...> <14981935.post@...1379...> <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> <14983556.post@...1379...> <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> <200801201939.59120.gambas@...1...> <14985624.post@...1379...> <200801202057.22187.gambas@...1...> Message-ID: <15048795.post@...1379...> Hi again, I am still struggling to do this, I have started searching for shell/terminal commands I could try use because e.g. using shell xwininfo will allow me to hover the mouse over a window, then I click and it will give some info of that window I clicked on...but how can I do this without having to click on the window? I just want to be able to hover over any window and it should give me the windows info (size, is it he active win etc etc). Any ideas? desktop,find won't so this I think.. could you lok into this for me and provide some guidance? Thanks Kim Benoit Minisini wrote: > > On dimanche 20 janvier 2008, Khos wrote: >> Thanks Jose and Oh master of Gambas :) >> >> I will have a look at Jose's info but Benoit.. I have tried to use >> Desktop.Find() but the documentation was not so understandable for me. It >> would seem like a much simpler way with this. Does this function get all >> the windows titles and put it into an array? if so how would you know >> which >> one is the active window? there are no sample codes on how to use this >> function, unless you could point to some, I would appreciate your efforts >> very much :) >> >> Many thanks for the help so far folks! >> Kind regards >> Kim >> > > I don't know if it is possible to know the active window with X Window. > Maybe > the desktop manager stores a property about it in the root window? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p15048795.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Jan 23 19:49:14 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Jan 2008 19:49:14 +0100 Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <15048795.post@...1379...> References: <14931902.post@...1379...> <200801202057.22187.gambas@...1...> <15048795.post@...1379...> Message-ID: <200801231949.14683.gambas@...1...> On mercredi 23 janvier 2008, Khos wrote: > Hi again, > I am still struggling to do this, I have started searching for > shell/terminal commands I could try use because e.g. using shell xwininfo > will allow me to hover the mouse over a window, then I click and it will > give some info of that window I clicked on...but how can I do this without > having to click on the window? I just want to be able to hover over any > window and it should give me the windows info (size, is it he active win > etc etc). Any ideas? desktop,find won't so this I think.. could you lok > into this for me and provide some guidance? > > Thanks > Kim > This is not possible directly in Gambas. Having information on top-level windows is done with low-level X11 libraries call and with the NET protocol as specified on freedesktop.org web site. xwininfo will gives you all X11 information about a specified window, but you won't get the information of the NET protocol. I plan to implement the NET protocol in a component by using the corresponding class of the KDE libraries. This component will depend on QT, and will allow you to get a lot of information from the window manager. But I won't do it now! Regards, -- Benoit Minisini From jredrejo at ...626... Wed Jan 23 20:16:25 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Wed, 23 Jan 2008 20:16:25 +0100 Subject: [Gambas-user] New 64 bits incompatible change for the 2.1 In-Reply-To: <200801231936.14727.gambas@...1...> References: <200801231936.14727.gambas@...1...> Message-ID: <8eb28a500801231116k3d3688a9pe7ecf6382c7e76ae@...627...> 2008/1/23, Benoit Minisini : > > Hi, > > Why XWindow use 'long' datatype for their window handle, nobody knows. > Because > of that, window handles are 32 bits on 32 bits OS, and 64 bits on 64 bits > OS. > As if we were going to create 2^64 windows or pixmaps... > > Well, I had to create a new type of array, Pointer[], and had to modify > all > method that deal with window handle: the Control class, the Embedder > class, > the Desktop.Find() method which now returns a Pointer array and not an > Integer array anymore, and so on. > > The good news: these methods now work indifferently on 32 bits OS and 64 > bits > OS. > > The bad news: this change is not compatible with 2.0, as the Pointer[] > class > does not exist at all in 2.0. > > But I think that a Gambas 2 that works on 64 bits OS is worth this little > incompatibility. Ahem, no, I don't change my mind... > > - Well, we all would have prefered avoid this problem, but the 64 bits are more needed than our preferences. Anyway, what are your plans for 2.1 release? release it just after finishing 64 bits work or add more features before doing it? do you have any roadmap or dates? Regards. From gambas at ...1... Wed Jan 23 20:21:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Jan 2008 20:21:46 +0100 Subject: [Gambas-user] New 64 bits incompatible change for the 2.1 In-Reply-To: <8eb28a500801231116k3d3688a9pe7ecf6382c7e76ae@...627...> References: <200801231936.14727.gambas@...1...> <8eb28a500801231116k3d3688a9pe7ecf6382c7e76ae@...627...> Message-ID: <200801232021.46320.gambas@...1...> On mercredi 23 janvier 2008, Jos? Luis Redrejo wrote: > 2008/1/23, Benoit Minisini : > > Hi, > > > > Why XWindow use 'long' datatype for their window handle, nobody knows. > > Because > > of that, window handles are 32 bits on 32 bits OS, and 64 bits on 64 bits > > OS. > > As if we were going to create 2^64 windows or pixmaps... > > > > Well, I had to create a new type of array, Pointer[], and had to modify > > all > > method that deal with window handle: the Control class, the Embedder > > class, > > the Desktop.Find() method which now returns a Pointer array and not an > > Integer array anymore, and so on. > > > > The good news: these methods now work indifferently on 32 bits OS and 64 > > bits > > OS. > > > > The bad news: this change is not compatible with 2.0, as the Pointer[] > > class > > does not exist at all in 2.0. > > > > But I think that a Gambas 2 that works on 64 bits OS is worth this little > > incompatibility. Ahem, no, I don't change my mind... > > > > - > > Well, we all would have prefered avoid this problem, but the 64 bits are > more needed than our preferences. > Anyway, what are your plans for 2.1 release? release it just after > finishing 64 bits work or add more features before doing it? do you have > any roadmap or dates? > Regards. I want to finish the 64 bits work and to be able to create component packages with the IDE. At the moment, I can't really test the 64 bits version. While my new 64 bits machine is not there (it does not depend on me), I will be able to think about a release date. Regards, -- Benoit Minisini From jredrejo at ...626... Wed Jan 23 20:34:59 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Wed, 23 Jan 2008 20:34:59 +0100 Subject: [Gambas-user] New 64 bits incompatible change for the 2.1 In-Reply-To: <200801232021.46320.gambas@...1...> References: <200801231936.14727.gambas@...1...> <8eb28a500801231116k3d3688a9pe7ecf6382c7e76ae@...627...> <200801232021.46320.gambas@...1...> Message-ID: <8eb28a500801231134t274e9c54r5ce9fe3554d24be9@...627...> 2008/1/23, Benoit Minisini : > > On mercredi 23 janvier 2008, Jos? Luis Redrejo wrote: > > 2008/1/23, Benoit Minisini : > > > Hi, > > > > > > Why XWindow use 'long' datatype for their window handle, nobody knows. > > > Because > > > of that, window handles are 32 bits on 32 bits OS, and 64 bits on 64 > bits > > > OS. > > > As if we were going to create 2^64 windows or pixmaps... > > > > > > Well, I had to create a new type of array, Pointer[], and had to > modify > > > all > > > method that deal with window handle: the Control class, the Embedder > > > class, > > > the Desktop.Find() method which now returns a Pointer array and not an > > > Integer array anymore, and so on. > > > > > > The good news: these methods now work indifferently on 32 bits OS and > 64 > > > bits > > > OS. > > > > > > The bad news: this change is not compatible with 2.0, as the Pointer[] > > > class > > > does not exist at all in 2.0. > > > > > > But I think that a Gambas 2 that works on 64 bits OS is worth this > little > > > incompatibility. Ahem, no, I don't change my mind... > > > > > > - > > > > Well, we all would have prefered avoid this problem, but the 64 bits are > > more needed than our preferences. > > Anyway, what are your plans for 2.1 release? release it just after > > finishing 64 bits work or add more features before doing it? do you have > > any roadmap or dates? > > Regards. > > I want to finish the 64 bits work and to be able to create component > packages > with the IDE. > > At the moment, I can't really test the 64 bits version. While my new 64 > bits > machine is not there (it does not depend on me), I will be able to think > about a release date. Ok, then I have two questions about the packages for Debian: - Taking a look at gambas.sourceforge.net it seems that gambas 1.0 is not maintained anymore, if you confirm me that's true I will ask Debian archive to remove those packages. - I would like to upload to Debian experimental packages made from the svn for the users to test the 64 bits version. As they'll be in the experimental repository they can not damage anyone. I have only one worry for this: if I upload packages that can be built in more platforms than i386, reverting it to i386 again will have some bureocracy and would take a time. So, as soon as you can assure me that the 64 bits development on 2.x can not step back I will prepare the packages (unless you think I should wait a little more for these tests). I don't have a 64 bits machine, so I will depend on other users' tests to know if the packages work. Regards. From steven at ...1652... Wed Jan 23 22:03:37 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Wed, 23 Jan 2008 22:03:37 +0100 Subject: [Gambas-user] Gambasforge.net In-Reply-To: <200801231850.03615.gambas@...1...> References: <200801212300.26281.steven@...1652...> <200801231818.37202.steven@...1652...> <200801231850.03615.gambas@...1...> Message-ID: <200801232203.37299.steven@...1652...> Hi, I tried to download some samples from the gambasforge.net site. However, all samples are unreadable archives. The output from fileroller (gnome) on the archives is : bzip2: Compressed file ends unexpectedly; perhaps it is corrupted? *Possible* reason follows. bzip2: Inappropriate ioctl for device Input file = (stdin), output file = (stdout) It is possible that the compressed file(s) have become corrupted. You can use the -tvv option to test integrity of such files. You can use the `bzip2recover' program to attempt to recover data from undamaged sections of corrupted files. tar: Child returned status 2 tar: Statut d'erreur report? d'erreurs pr?c?dentes. If I try bzip2recover, it reports that it cannot find a recovrable block. Whats going on ? Steven From sourceforge-raindog2 at ...94... Wed Jan 23 22:17:19 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 23 Jan 2008 16:17:19 -0500 Subject: [Gambas-user] Gambasforge.net In-Reply-To: <200801232203.37299.steven@...1652...> References: <200801212300.26281.steven@...1652...> <200801231850.03615.gambas@...1...> <200801232203.37299.steven@...1652...> Message-ID: <200801231617.19150.sourceforge-raindog2@...94...> On Wednesday 23 January 2008 16:03, Steven Lobbezoo wrote: > If I try bzip2recover, it reports that it cannot find a recovrable > block. > Whats going on ? I tried downloading a couple, and while they came down as .gz files instead of .bz2 files, they came down with zero bytes. So it looks like the download script on gambasforge is broken. Rob From steven at ...1652... Wed Jan 23 22:53:18 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Wed, 23 Jan 2008 22:53:18 +0100 Subject: [Gambas-user] PDF files and gb.pdf In-Reply-To: <200801231617.19150.sourceforge-raindog2@...94...> References: <200801212300.26281.steven@...1652...> <200801232203.37299.steven@...1652...> <200801231617.19150.sourceforge-raindog2@...94...> Message-ID: <200801232253.18924.steven@...1652...> It must be me again ;-) but....... I do the following : DIM dd AS NEW PdfDocument dd.Open("~/request/models/hulp.pdf") That go's allright, but how do I show it in a window ??? Plus, is their a way to go to a bookmark (or if not, pagenumber) ? Thanks, Steven From rospolosco at ...152... Wed Jan 23 23:55:57 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 23 Jan 2008 23:55:57 +0100 Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <15048795.post@...1379...> References: <14931902.post@...1379...> <200801202057.22187.gambas@...1...> <15048795.post@...1379...> Message-ID: <200801232355.57774.rospolosco@...152...> Alle 19:43, mercoled? 23 gennaio 2008, Khos ha scritto: > Hi again, > I am still struggling to do this, I have started searching for > shell/terminal commands I could try use because e.g. using shell xwininfo > will allow me to hover the mouse over a window, then I click and it will > give some info of that window I clicked on...but how can I do this without > having to click on the window? I just want to be able to hover over any > window and it should give me the windows info (size, is it he active win > etc etc). Any ideas? desktop,find won't so this I think.. could you lok > into this for me and provide some guidance? > > Thanks > Kim > Hi, Kim. All you need is this little utility: http://freshmeat.net/projects/wmctrl/ after compiling and installing, simply open a lot of windows and the run wmctrl -l it will list all windows on your desktop. The little program has a lot of options that will help you. See man page or "wmctrl --help" Regards, Stefano > Benoit Minisini wrote: > > On dimanche 20 janvier 2008, Khos wrote: > >> Thanks Jose and Oh master of Gambas :) > >> > >> I will have a look at Jose's info but Benoit.. I have tried to use > >> Desktop.Find() but the documentation was not so understandable for me. > >> It would seem like a much simpler way with this. Does this function get > >> all the windows titles and put it into an array? if so how would you > >> know which > >> one is the active window? there are no sample codes on how to use this > >> function, unless you could point to some, I would appreciate your > >> efforts very much :) > >> > >> Many thanks for the help so far folks! > >> Kind regards > >> Kim > > > > I don't know if it is possible to know the active window with X Window. > > Maybe > > the desktop manager stores a property about it in the root window? > > > > -- > > Benoit Minisini > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From bezdzik at ...988... Thu Jan 24 01:02:51 2008 From: bezdzik at ...988... (bezdzik) Date: Wed, 23 Jan 2008 16:02:51 -0800 (PST) Subject: [Gambas-user] Gambas2 doesn't see form elements in code In-Reply-To: References: <15041121.post@...1379...> Message-ID: <15055883.post@...1379...> Jaap Cramer wrote: > > Hi! > > To solve your problem, people would like to know the Gambas-version you > are using, and the system you are running. > If you send your project along, people could take a look :-) > My current gambas version is 2.0.0 on linux Mint (Ubuntu 7.10 Gutsy Gibbon) but the program I develop was created in 1.9.46 (worked just fine) and ported by gambas to new version. -- View this message in context: http://www.nabble.com/Gambas2-doesn%27t-see-form-elements-in-code-tp15041121p15055883.html Sent from the gambas-user mailing list archive at Nabble.com. From dcamposf at ...626... Thu Jan 24 02:36:50 2008 From: dcamposf at ...626... (Daniel Campos) Date: Thu, 24 Jan 2008 02:36:50 +0100 Subject: [Gambas-user] PDF files and gb.pdf In-Reply-To: <200801232253.18924.steven@...1652...> References: <200801212300.26281.steven@...1652...> <200801232203.37299.steven@...1652...> <200801231617.19150.sourceforge-raindog2@...94...> <200801232253.18924.steven@...1652...> Message-ID: <7259b5ae0801231736w2f6f2676y30edf88b6ce6aa8c@...627...> There's a simple PDF viewer in the examples, look at the code inside, it is easy :-) 2008/1/23, Steven Lobbezoo : > It must be me again ;-) > but....... > I do the following : > DIM dd AS NEW PdfDocument > dd.Open("~/request/models/hulp.pdf") > > That go's allright, but how do I show it in a window ??? > Plus, is their a way to go to a bookmark (or if not, pagenumber) ? > > Thanks, > Steven > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1822... Thu Jan 24 03:09:35 2008 From: rterry at ...1822... (richard terry) Date: Thu, 24 Jan 2008 13:09:35 +1100 Subject: [Gambas-user] ?bug in 2.1 scripting example Message-ID: <200801241309.35827.rterry@...1822...> Not sure, but tried to run the example and got the error message shown in the piccie enclosed. -------------- next part -------------- A non-text attachment was scrubbed... Name: benoit_bug_2.1_scripting_example.png Type: image/png Size: 31771 bytes Desc: not available URL: From rterry at ...1822... Thu Jan 24 04:26:15 2008 From: rterry at ...1822... (rterry at ...1822...) Date: Thu, 24 Jan 2008 14:26:15 +1100 Subject: [Gambas-user] Concept needed for shell + transforming files > postges Message-ID: <200801241426.15966.rterry@...1822...> Some of this I can do already, but I'm not sure how to combine the flow. I want to be able to update quite a large reference database in postgres from downloaded files and import into postgres. I can do this already manually ie, download, unzip, run a script file in the terminal, delete existing tables, import, run functions in postgres via terminal script to modify the data etc. In gambas I can: 1) design form (wizard) and start with file window to locate and select file 2) Next step would be to take the file and unzip say using: unzip -P "password" file.zip I guess I would use the shell command, but can't understand the docs on how to say see the output in a control within my gambas program. 3)Next step using psql etc I should be able to do if someone could help me with the syntax/directions for step 2). Thanks in anticipation Richard From jscops at ...11... Thu Jan 24 06:43:21 2008 From: jscops at ...11... (Jacky) Date: Thu, 24 Jan 2008 06:43:21 +0100 Subject: [Gambas-user] Concept needed for shell + transforming files > postges In-Reply-To: <200801241426.15966.rterry@...1822...> References: <200801241426.15966.rterry@...1822...> Message-ID: <200801240643.21666.jscops@...11...> Le Thursday 24 January 2008 04:26:15 rterry at ...1822..., vous avez ?crit?: > Some of this I can do already, but I'm not sure how to combine the flow. > > I want to be able to update quite a large reference database in postgres > from downloaded files and import into postgres. > > I can do this already manually ie, download, unzip, run a script file in > the terminal, delete existing tables, import, run functions in postgres via > terminal script to modify the data etc. > > In gambas I can: > > 1) design form (wizard) and start with file window to locate and select > file > > 2) Next step would be to take the file and unzip say using: > unzip -P "password" file.zip > > I guess I would use the shell command, but can't understand the docs on how > to say see the output in a control within my gambas program. > > 3)Next step using psql etc I should be able to do if someone could help me > with the syntax/directions for step 2). > > Thanks in anticipation > > Richard Salut Richard Try this. shell "unzip" & " " & "-P" & "Password" & " " & "file.zip" No test but i think that work. Jacky From gambas at ...1... Thu Jan 24 10:36:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 24 Jan 2008 10:36:12 +0100 Subject: [Gambas-user] ?bug in 2.1 scripting example In-Reply-To: <200801241309.35827.rterry@...1822...> References: <200801241309.35827.rterry@...1822...> Message-ID: <200801241036.13075.gambas@...1...> On jeudi 24 janvier 2008, richard terry wrote: > Not sure, but tried to run the example and got the error message shown in > the piccie enclosed. This is a property that has been removed, but I forgot to update the example. This will be fixed in a next commit. Regards -- Benoit Minisini From paolo.fagni at ...626... Thu Jan 24 15:44:52 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Thu, 24 Jan 2008 15:44:52 +0100 Subject: [Gambas-user] Rename a file in filesystem In-Reply-To: <560cf1ab0801221458p691595dcj93a61bee9e5358ac@...627...> References: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> <200801222346.50532.gambas@...1...> <560cf1ab0801221458p691595dcj93a61bee9e5358ac@...627...> Message-ID: <560cf1ab0801240644y28c43edaqd91fb3392dc9b80a@...627...> This is kind of an annoying problem. I post here the sub that I would like to use to create a new sqlite file: It doesn't work if, in the dialog, I chosse a neme with a point in it ("xxx.db for example") ' Creates a new, empty, database. PUBLIC SUB CreateNew() AS Boolean TRY dbConnection.Close() Dialog.Path = Application.Path Dialog.Title = ("Please choose a filename") IF Dialog.SaveFile() THEN RETURN DbPath = Dialog.Path IF Exist(DbPath) THEN ' Check if the file exists Message.Error(("File already exists!")) RETURN FALSE ENDIF dbConnection.Name = DbPath dbConnection.Type = "sqlite3" dbConnection.Open() dbConnection.Close() END Gambas fails with "Unable to locate database : /path/to/xxx.db Gambas version 2.0.0 on an arch linux box. Any help would be appreciated, Thank you! :D -- Paolo Fagni From cheguebeara at ...626... Thu Jan 24 17:03:16 2008 From: cheguebeara at ...626... (Che) Date: Thu, 24 Jan 2008 11:03:16 -0500 Subject: [Gambas-user] Menu Properties In-Reply-To: <560cf1ab0801240644y28c43edaqd91fb3392dc9b80a@...627...> References: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> <200801222346.50532.gambas@...1...> <560cf1ab0801221458p691595dcj93a61bee9e5358ac@...627...> <560cf1ab0801240644y28c43edaqd91fb3392dc9b80a@...627...> Message-ID: <1201190596.22136.10.camel@...1835...> A couple questions prolly answered a bazillion times but... Is there a way to set some of the Menu properties such as .Font and .Background? I tried in code and the app *barfed* and changing my theme settings appears to have little effect. Is this because I am running in Gnome vs. KDE (I have the system setup for both...)? Also I have been using an Enter event to trigger resizing a component when the parent form resizes... e.g.: PUBLIC SUB texteditor1_Enter() texteditor1.width = MyForm.width - 2 texteditor1.height = MyForm.height - 60 END ...and it works slick when resizing up, maximizing and resizing down... The problem comes when i clone the form as a new window (MyForm1 As New MyForm) Everything else clones fine (menu, open, save, edit, right mouse context menu etc.) except I lose the resize on Enter event... Is this a naming issue or... ??? Thanks, Mark From ronstk at ...239... Thu Jan 24 17:13:58 2008 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 24 Jan 2008 17:13:58 +0100 Subject: [Gambas-user] Rename a file in filesystem In-Reply-To: <560cf1ab0801240644y28c43edaqd91fb3392dc9b80a@...627...> References: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> <560cf1ab0801221458p691595dcj93a61bee9e5358ac@...627...> <560cf1ab0801240644y28c43edaqd91fb3392dc9b80a@...627...> Message-ID: <200801241713.58242.ronstk@...239...> On Thursday 24 January 2008 15:44, Paolo Fagni wrote: > This is kind of an annoying problem. I post here the sub that I would like > to use to create a new sqlite file: It doesn't work if, in the dialog, I > chosse a neme with a point in it ("xxx.db for example") > > ' Creates a new, empty, database. > PUBLIC SUB CreateNew() AS Boolean > > TRY dbConnection.Close() > > Dialog.Path = Application.Path > Dialog.Title = ("Please choose a filename") > IF Dialog.SaveFile() THEN RETURN > DbPath = Dialog.Path > > IF Exist(DbPath) THEN ' Check if the file exists > Message.Error(("File already exists!")) > RETURN FALSE > ENDIF > > dbConnection.Name = DbPath > dbConnection.Type = "sqlite3" > dbConnection.Open() > > dbConnection.Close() > END > > > Gambas fails with "Unable to locate database : /path/to/xxx.db Your database name is here 'xxx' and sqlite stores the data into the file 'xxx.db' Not strange sqlite does not accept a name of 'xxx.db' here and tells gambas it cant handle. I'm afraid gambas is not in error but sqlite or even better the user is using wrong filename. It is not imposible sqlite does not accept a dot in the database name for 3 reasons. 1) it is used between the tablename and fieldname (i.e. tablename.fieldname) 2) it is used between the database and table name (i.e. databasename.tablename) 3) it is used as extention for the file name in the filesystem. > > Gambas version 2.0.0 on an arch linux box. > > Any help would be appreciated, Thank you! :D > > Just try if you can create a database with the name xyx.abc and use the commandline util for sqlite to do this (if exists) If both, the .abc and .db, works than it may a problem with gambas. But remember the database part of gambas must be able to work on many database systems and not all allow a dot in the database, table and/or field name. Greets, Ron Onstenk From paolo.fagni at ...626... Thu Jan 24 18:52:11 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Thu, 24 Jan 2008 18:52:11 +0100 Subject: [Gambas-user] Rename a file in filesystem In-Reply-To: <200801241713.58242.ronstk@...239...> References: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> <560cf1ab0801221458p691595dcj93a61bee9e5358ac@...627...> <560cf1ab0801240644y28c43edaqd91fb3392dc9b80a@...627...> <200801241713.58242.ronstk@...239...> Message-ID: <560cf1ab0801240952l70cfd7dbi7de789274efd0795@...627...> On Jan 24, 2008 5:13 PM, Ron Onstenk wrote: > On Thursday 24 January 2008 15:44, Paolo Fagni wrote: > > This is kind of an annoying problem. I post here the sub that I would > like > > to use to create a new sqlite file: It doesn't work if, in the dialog, > I > > chosse a neme with a point in it ("xxx.db for example") > > > > ' Creates a new, empty, database. > > PUBLIC SUB CreateNew() AS Boolean > > > > TRY dbConnection.Close() > > > > Dialog.Path = Application.Path > > Dialog.Title = ("Please choose a filename") > > IF Dialog.SaveFile() THEN RETURN > > DbPath = Dialog.Path > > > > IF Exist(DbPath) THEN ' Check if the file exists > > Message.Error(("File already exists!")) > > RETURN FALSE > > ENDIF > > > > dbConnection.Name = DbPath > > dbConnection.Type = "sqlite3" > > dbConnection.Open() > > > > dbConnection.Close() > > END > > > > > > Gambas fails with "Unable to locate database : /path/to/xxx.db > > Your database name is here 'xxx' and sqlite stores the data into the file > 'xxx.db' > Not strange sqlite does not accept a name of 'xxx.db' here and tells > gambas it > cant handle. I'm afraid gambas is not in error but sqlite or even better > the user > is using wrong filename. I forgot to mention that in the Dialog I chose xxx.db for the filename, not xxx, because I want my file to be called xxx.db and not xxx or xxx.db. I can rename the file after the creation and everythiong work fine. I'm simply unable to create it directly from gambas > It is not imposible sqlite does not accept a dot in the database name for > 3 reasons. > 1) it is used between the tablename and fieldname (i.e. > tablename.fieldname) > 2) it is used between the database and table name (i.e. > databasename.tablename) > 3) it is used as extention for the file name in the filesystem. > > > > > Gambas version 2.0.0 on an arch linux box. > > > > Any help would be appreciated, Thank you! :D > > > > > > Just try if you can create a database with the name xyx.abc > and use the commandline util for sqlite to do this (if exists) > If both, the .abc and .db, works than it may a problem with gambas. > But remember the database part of gambas must be able to work on many > database > systems and not all allow a dot in the database, table and/or field name. > > Greets, > > Ron Onstenk > > Sqlite works very well with database files named with a point. Thank you Ron for your answer :) If someone else has something to clarify this strange behaviour , it'd be great , thanks. -- Paolo Fagni From rospolosco at ...152... Thu Jan 24 19:06:58 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 24 Jan 2008 19:06:58 +0100 Subject: [Gambas-user] active window howto and little example program Message-ID: <200801241906.58886.rospolosco@...152...> Hi, all. Hi, Benoit We discussed about the current active window on desktop and how to get it. I wrote a little project that returns the ID and the title of the current active window. Also returns all current windows. The project uses xprop and xwininfo, which should be installed on any system running the X server. No need for other external programs. I tested it under KDE, but should work under other desktop managers. Hope this helps Kim and other users. Benoit, is it possible to put it under examples, because many times in the mailing list people asked for a way to get the active window? Best regards, Stefano Palmeri -------------- next part -------------- A non-text attachment was scrubbed... Name: activewindow-0.0.6.tar.gz Type: application/x-tgz Size: 8158 bytes Desc: not available URL: From kim.hoskin at ...1073... Thu Jan 24 20:30:25 2008 From: kim.hoskin at ...1073... (Khos) Date: Thu, 24 Jan 2008 11:30:25 -0800 (PST) Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <200801232355.57774.rospolosco@...152...> References: <14931902.post@...1379...> <14981935.post@...1379...> <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> <14983556.post@...1379...> <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> <200801201939.59120.gambas@...1...> <14985624.post@...1379...> <200801202057.22187.gambas@...1...> <15048795.post@...1379...> <200801232355.57774.rospolosco@...152...> Message-ID: <15072507.post@...1379...> Thanks Stefano, Appreciate your input, I wonder if there is a way to include this wmctrl util when I compile my Gambas application? any ideas? Bye for now, Kim Stefano Palmeri wrote: > > Alle 19:43, mercoled? 23 gennaio 2008, Khos ha scritto: >> Hi again, >> I am still struggling to do this, I have started searching for >> shell/terminal commands I could try use because e.g. using shell >> xwininfo >> will allow me to hover the mouse over a window, then I click and it will >> give some info of that window I clicked on...but how can I do this >> without >> having to click on the window? I just want to be able to hover over any >> window and it should give me the windows info (size, is it he active win >> etc etc). Any ideas? desktop,find won't so this I think.. could you lok >> into this for me and provide some guidance? >> >> Thanks >> Kim >> > > Hi, Kim. > > All you need is this little utility: > > http://freshmeat.net/projects/wmctrl/ > > after compiling and installing, simply open a lot of windows > and the run > > wmctrl -l > > it will list all windows on your desktop. The little program has a lot > of options that will help you. See man page or "wmctrl --help" > > Regards, > > Stefano > >> Benoit Minisini wrote: >> > On dimanche 20 janvier 2008, Khos wrote: >> >> Thanks Jose and Oh master of Gambas :) >> >> >> >> I will have a look at Jose's info but Benoit.. I have tried to use >> >> Desktop.Find() but the documentation was not so understandable for me. >> >> It would seem like a much simpler way with this. Does this function >> get >> >> all the windows titles and put it into an array? if so how would you >> >> know which >> >> one is the active window? there are no sample codes on how to use this >> >> function, unless you could point to some, I would appreciate your >> >> efforts very much :) >> >> >> >> Many thanks for the help so far folks! >> >> Kind regards >> >> Kim >> > >> > I don't know if it is possible to know the active window with X Window. >> > Maybe >> > the desktop manager stores a property about it in the root window? >> > >> > -- >> > Benoit Minisini >> > >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Microsoft >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p15072507.html Sent from the gambas-user mailing list archive at Nabble.com. From kim.hoskin at ...1073... Thu Jan 24 20:42:11 2008 From: kim.hoskin at ...1073... (Khos) Date: Thu, 24 Jan 2008 11:42:11 -0800 (PST) Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <200801231949.14683.gambas@...1...> References: <14931902.post@...1379...> <14981935.post@...1379...> <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> <14983556.post@...1379...> <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> <200801201939.59120.gambas@...1...> <14985624.post@...1379...> <200801202057.22187.gambas@...1...> <15048795.post@...1379...> <200801231949.14683.gambas@...1...> Message-ID: <15072518.post@...1379...> Thanks Benoit, Pity you won't do it now :) , how can I persuade you to do it faster? I have an idea but cannot seem to do it with gambas. any ideas how I can use xwininfo in gambas and extract or collect the information that this xwinutil util displays? does the util write info to a text file maybe to the clipboard? there must be a way of getting the active window info from X or xwininfo through gambas currently.. can you think of a low-level X11 libraries call/command that I can use with Shell in Gambas to do what I want? if so I would really be thankful :) or how could I install the wmctrl util Stefano was advising of and package it together with my application so when people install it installs both programs? is that possible? Thanks Kim Benoit Minisini wrote: > > On mercredi 23 janvier 2008, Khos wrote: >> Hi again, >> I am still struggling to do this, I have started searching for >> shell/terminal commands I could try use because e.g. using shell >> xwininfo >> will allow me to hover the mouse over a window, then I click and it will >> give some info of that window I clicked on...but how can I do this >> without >> having to click on the window? I just want to be able to hover over any >> window and it should give me the windows info (size, is it he active win >> etc etc). Any ideas? desktop,find won't so this I think.. could you lok >> into this for me and provide some guidance? >> >> Thanks >> Kim >> > > This is not possible directly in Gambas. Having information on top-level > windows is done with low-level X11 libraries call and with the NET > protocol > as specified on freedesktop.org web site. > > xwininfo will gives you all X11 information about a specified window, but > you > won't get the information of the NET protocol. > > I plan to implement the NET protocol in a component by using the > corresponding > class of the KDE libraries. This component will depend on QT, and will > allow > you to get a lot of information from the window manager. But I won't do it > now! > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p15072518.html Sent from the gambas-user mailing list archive at Nabble.com. From rospolosco at ...152... Thu Jan 24 21:15:18 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 24 Jan 2008 21:15:18 +0100 Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <15072507.post@...1379...> References: <14931902.post@...1379...> <200801232355.57774.rospolosco@...152...> <15072507.post@...1379...> Message-ID: <200801242115.18255.rospolosco@...152...> Alle 20:30, gioved? 24 gennaio 2008, Khos ha scritto: > Thanks Stefano, > Appreciate your input, I wonder if there is a way to include this wmctrl > util when I compile my Gambas application? any ideas? > > Bye for now, > Kim Look for the project I sent today. You don't need anymore wmctrl. Stefano > > Stefano Palmeri wrote: > > Alle 19:43, mercoled? 23 gennaio 2008, Khos ha scritto: > >> Hi again, > >> I am still struggling to do this, I have started searching for > >> shell/terminal commands I could try use because e.g. using shell > >> xwininfo > >> will allow me to hover the mouse over a window, then I click and it will > >> give some info of that window I clicked on...but how can I do this > >> without > >> having to click on the window? I just want to be able to hover over any > >> window and it should give me the windows info (size, is it he active win > >> etc etc). Any ideas? desktop,find won't so this I think.. could you lok > >> into this for me and provide some guidance? > >> > >> Thanks > >> Kim > > > > Hi, Kim. > > > > All you need is this little utility: > > > > http://freshmeat.net/projects/wmctrl/ > > > > after compiling and installing, simply open a lot of windows > > and the run > > > > wmctrl -l > > > > it will list all windows on your desktop. The little program has a lot > > of options that will help you. See man page or "wmctrl --help" > > > > Regards, > > > > Stefano > > > >> Benoit Minisini wrote: > >> > On dimanche 20 janvier 2008, Khos wrote: > >> >> Thanks Jose and Oh master of Gambas :) > >> >> > >> >> I will have a look at Jose's info but Benoit.. I have tried to use > >> >> Desktop.Find() but the documentation was not so understandable for > >> >> me. It would seem like a much simpler way with this. Does this > >> >> function > >> > >> get > >> > >> >> all the windows titles and put it into an array? if so how would you > >> >> know which > >> >> one is the active window? there are no sample codes on how to use > >> >> this function, unless you could point to some, I would appreciate > >> >> your efforts very much :) > >> >> > >> >> Many thanks for the help so far folks! > >> >> Kind regards > >> >> Kim > >> > > >> > I don't know if it is possible to know the active window with X > >> > Window. Maybe > >> > the desktop manager stores a property about it in the root window? > >> > > >> > -- > >> > Benoit Minisini > >> > >> ------------------------------------------------------------------------ > >>- > >> > >> > This SF.net email is sponsored by: Microsoft > >> > Defy all challenges. Microsoft(R) Visual Studio 2008. > >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From jaap_cramer at ...67... Thu Jan 24 21:17:14 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 24 Jan 2008 21:17:14 +0100 Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 de In-Reply-To: <15072518.post@...1379...> References: <14931902.post@...1379...> <14981935.post@...1379...> <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> <14983556.post@...1379...> <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> <200801201939.59120.gambas@...1...> <14985624.post@...1379...> <200801202057.22187.gambas@...1...> <15048795.post@...1379...> <200801231949.14683.gambas@...1...> <15072518.post@...1379...> Message-ID: Hi Kim If you want to use xwininfo (and any other program for that matter), you can with gambas. use SHELL DIM s AS String SHELL "xwininfo" TO s message(s) These three lines store the consloe output to variable s. I chose to output S in a message. You can ofcoarse change that, and get your needed information out of s by the usual stringcommands goodluck! Jaap ---------------------------------------- > Date: Thu, 24 Jan 2008 11:42:11 -0800 > From: kim.hoskin at ...1073... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop > > > Thanks Benoit, > > Pity you won't do it now :) , how can I persuade you to do it faster? I have > an idea but cannot seem to do it with gambas. any ideas how I can use > xwininfo in gambas and extract or collect the information that this xwinutil > util displays? does the util write info to a text file maybe to the > clipboard? there must be a way of getting the active window info from X or > xwininfo through gambas currently.. can you think of a low-level X11 > libraries call/command that I can use with Shell in Gambas to do what I > want? if so I would really be thankful :) > > or how could I install the wmctrl util Stefano was advising of and package > it together with my application so when people install it installs both > programs? is that possible? > > Thanks > Kim > > > Benoit Minisini wrote: >> >> On mercredi 23 janvier 2008, Khos wrote: >>> Hi again, >>> I am still struggling to do this, I have started searching for >>> shell/terminal commands I could try use because e.g. using shell >>> xwininfo >>> will allow me to hover the mouse over a window, then I click and it will >>> give some info of that window I clicked on...but how can I do this >>> without >>> having to click on the window? I just want to be able to hover over any >>> window and it should give me the windows info (size, is it he active win >>> etc etc). Any ideas? desktop,find won't so this I think.. could you lok >>> into this for me and provide some guidance? >>> >>> Thanks >>> Kim >>> >> >> This is not possible directly in Gambas. Having information on top-level >> windows is done with low-level X11 libraries call and with the NET >> protocol >> as specified on freedesktop.org web site. >> >> xwininfo will gives you all X11 information about a specified window, but >> you >> won't get the information of the NET protocol. >> >> I plan to implement the NET protocol in a component by using the >> corresponding >> class of the KDE libraries. This component will depend on QT, and will >> allow >> you to get a lot of information from the window manager. But I won't do it >> now! >> >> Regards, >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > -- > View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p15072518.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Nieuw: Windows Live Messenger 2008! Gratis downloaden http://get.live.com/messenger From m0e.lnx at ...626... Thu Jan 24 21:57:17 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 24 Jan 2008 14:57:17 -0600 Subject: [Gambas-user] How to address a text label created by code? Message-ID: <1f1e8c1b0801241257p57ed3040pe389e447f2fe7b24@...627...> I've been designing forms for a while now, and this is my second gambas application. In all other forms, I've always drawn the controls into the form, assign the properties, and handle events... all from the GUI. I decided to try to create a function to dynamically create components. The idea is to allow this application to be more expandable without modifying much of the code, so here is what I did. I have a form, in ther form there is a scrollview and an IconView I place some text labels on the scrollview. This gets triggered in the forms' Load event This function creates a Tex label for every directory in my $HOME dir. Each resulting text label enherit's it's own directory name. kinda like this PUBLIC SUB Form_Open() dim sDir as string dim tDirTL as TextLabel dim iY as integer FOR EACH sDir in RDir("/home/vluser") IF ISDIR("/home/vluser" &/ sDir) then tDirTL = new TextLabel(ME.Scrollview1) as "tDirLabel" WITH tDirTL .text = sDir .heigh = 32 .width = 100 .X = Me.Scrollview1.X + 4 .Y = iY + 32 END WITH end if iY = iY + 32 NEXT END I can handle the events using LAST PUBLIC SUB tDirTL_Mousedown() Message.Info(LAST.Text & " was clicked") END Now, I want the label I click to turn it's label into Bold Lettering. I can do that using the font.bold = true property in the above SUB And here is my dilemma. I need every other label's Text to remain in plain lettering, and the Font.Bold to be applied only to the last label I click on. I've tried to set the font.bold = false but I can't find a way to address the other text labels... Using Gambas2-2.0.0. Any help is appreciated. From rterry at ...1822... Thu Jan 24 22:03:57 2008 From: rterry at ...1822... (richard terry) Date: Fri, 25 Jan 2008 08:03:57 +1100 Subject: [Gambas-user] Border or no border on combo box Message-ID: <200801250803.58087.rterry@...1822...> There seem no sborder property on this control, which is a pity if one has a stack of textboxes sans border and then an incongruent combobox with a border. Is it possible to expose/create this property in Gambas. Similarly another of the major controls (I think it was either the textedit or textarea, can't remember which off the top of my head) didn't have this ability. Any comments? Richard From rterry at ...1822... Thu Jan 24 22:14:30 2008 From: rterry at ...1822... (richard terry) Date: Fri, 25 Jan 2008 08:14:30 +1100 Subject: [Gambas-user] Hours of strugglin with EXEC and SHELL Message-ID: <200801250814.30482.rterry@...1822...> Spent several hours struggling to no avail to understand the exec and shell commands including trying to dissect the console program supplied with gambas. Total frustration. I've selected a file/directory from a file box and that seems to work ok PRINT FileChooser1.Dir PRINT FileChooser1.Value The file is a zip file, and i want to unzip it in the same directory I selected i the box but, if and when (seems erratic) I can unzip it using this command: SHELL "unzip" & " " & "-P" & "password" & " " & FileChooser1.Value the unzipped files get deposited in my home directory. Also I want to be able to show them inside my terminal. (I tried the READ WRITE combinations at the end of that line). Then I tried things like SHELL "cd /home/richard/coding" WAIT SHELL "ls -al" WAIT and gambas just stops executin, or I tried copying from the console programs concepts. ' $hProcess = EXEC ["ls"] FOR READ ' $hProcess = EXEC ["cd", "/home/richard/temp"] WAIT Everything to no avail. I gave up after several hours, but to ease my frustration read 130 pages of the Gambas for Beginners pdf which I stumbled across at work today. Though based on version 1 it is very useful for me and to contribute to the Author I've ordered a paid copy. Regards and hopeful someone will be able to help me. Richard From jaap_cramer at ...67... Thu Jan 24 22:18:14 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 24 Jan 2008 22:18:14 +0100 Subject: [Gambas-user] How to address a text label created by code? In-Reply-To: <1f1e8c1b0801241257p57ed3040pe389e447f2fe7b24@...627...> References: <1f1e8c1b0801241257p57ed3040pe389e447f2fe7b24@...627...> Message-ID: Answer: PUBLIC o AS Object[] ' public object to store your labels in PUBLIC SUB Form_Open() DIM sDir AS String DIM tDirTL AS TextLabel DIM iY AS Integer o = NEW Object[] FOR EACH sDir IN RDir("/home/yourplace/") IF IsDir("/home/yourplace" &/ sDir) THEN tDirTL = NEW TextLabel(ME.Scrollview1) AS "tDirLabel" WITH tDirTL .text = sDir .height = 32 .width = 100 .X = ME.Scrollview1.X + 4 .Y = iY + 32 END WITH o.Add(tDirTL) 'store all controls in a public object iY = iY + 32 ' I moved this before the 'END IF', else, in my home, the space between would be to big :) END IF NEXT END PUBLIC SUB tDirLabel_Mousedown() ' you had the wrong mane here. tDirTL is just a local. you should use the name you gave it AS "NameOfControl" DIM tDirTL AS TextLabel FOR EACH tDirTL IN o ' check all labels in object O, and set label to NOT-BOLD tDirTL.Font.Bold = FALSE NEXT LAST.font.bold = TRUE 'except for the last END This is maybe a quick-and-dirty method. you could also store the id (in object o[]) of the previous button. Now many buttons are set to NOT-BOLD, but they were already normal... Well. I hope this helped you out! Jaap ---------------------------------------- > Date: Thu, 24 Jan 2008 14:57:17 -0600 > From: m0e.lnx at ...626... > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] How to address a text label created by code? > > I've been designing forms for a while now, and this is my second > gambas application. In all other forms, I've always drawn the controls > into the form, assign the properties, and handle events... all from > the GUI. > I decided to try to create a function to dynamically create > components. The idea is to allow this application to be more > expandable without modifying much of the code, so here is what I did. > > I have a form, in ther form there is a scrollview and an IconView > I place some text labels on the scrollview. This gets triggered in the > forms' Load event > > This function creates a Tex label for every directory in my $HOME dir. > Each resulting text label enherit's it's own directory name. > > kinda like this > > PUBLIC SUB Form_Open() > dim sDir as string > dim tDirTL as TextLabel > dim iY as integer > > FOR EACH sDir in RDir("/home/vluser") > IF ISDIR("/home/vluser" &/ sDir) then > tDirTL = new TextLabel(ME.Scrollview1) as "tDirLabel" > > WITH tDirTL > .text = sDir > .heigh = 32 > .width = 100 > .X = Me.Scrollview1.X + 4 > .Y = iY + 32 > END WITH > end if > iY = iY + 32 > NEXT > END > > I can handle the events using LAST > > PUBLIC SUB tDirTL_Mousedown() > Message.Info(LAST.Text & " was clicked") > END > > Now, I want the label I click to turn it's label into Bold Lettering. > I can do that using the font.bold = true property in the above SUB > > And here is my dilemma. > I need every other label's Text to remain in plain lettering, and the > Font.Bold to be applied only to the last label I click on. > > I've tried to set the font.bold = false but I can't find a way to > address the other text labels... > > Using Gambas2-2.0.0. Any help is appreciated. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Bekijk Yes-R's real life soap op MSN Video! http://video.msn.com/video.aspx?mkt=nl-nl&tab=m1192527562294&vid=8aff5b76-b78d-4b55-8b64-ef7e1d73aab2&playlist=videoByUuids:uuids:50b732c2-c105-41e9-adf0-36bd627d4eaa,0813da8c-031b-423f-a79d-35d925aee805,5cce447e-948d-43af-9862-45bb6bb9d6d8,6a39138c-f562-4254-be70-9d93343650f8,f9b8d78f-05a4-4c74-8e4b-28d20a4037ab&from=NLNL_Yes-R From sourceforge-raindog2 at ...94... Thu Jan 24 22:21:39 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 24 Jan 2008 16:21:39 -0500 Subject: [Gambas-user] How to address a text label created by code? In-Reply-To: <1f1e8c1b0801241257p57ed3040pe389e447f2fe7b24@...627...> References: <1f1e8c1b0801241257p57ed3040pe389e447f2fe7b24@...627...> Message-ID: <200801241621.39835.sourceforge-raindog2@...94...> On Thursday 24 January 2008 15:57, M0E Lnx wrote: > I've tried to set the font.bold = false but I can't find a way to > address the other text labels... I was about to reply to your thread again on linuxbasic.net, but I guess I'll put it here for posterity. There are a couple ways to do this. Probably the easiest way is to create an array of Object at startup and add each label to it as you create the label. Then you can just go, for example, FOR EACH l IN myLabels and turn bold off that way. If you'd rather not create an array, you need to loop through the form's controls and turn bold off for each of them. If you don't want to be turning bold off on all the other controls besides your labels, you'll need to set the Tag property on each label that you add, and check that property when looping through the controls to determine if you should turn bold off or not. Rob From m0e.lnx at ...626... Thu Jan 24 22:33:04 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 24 Jan 2008 15:33:04 -0600 Subject: [Gambas-user] How to address a text label created by code? In-Reply-To: <200801241621.39835.sourceforge-raindog2@...94...> References: <1f1e8c1b0801241257p57ed3040pe389e447f2fe7b24@...627...> <200801241621.39835.sourceforge-raindog2@...94...> Message-ID: <1f1e8c1b0801241333m63d6d673w4a0e9bea481c03b9@...627...> WoW.... Works like a charm... Thanks guys..... BTW, if anyone is interested.... This is the application I'm working on http://vasmcc.googlecode.com Thanks for the help. On Jan 24, 2008 3:21 PM, Rob wrote: > On Thursday 24 January 2008 15:57, M0E Lnx wrote: > > I've tried to set the font.bold = false but I can't find a way to > > address the other text labels... > > I was about to reply to your thread again on linuxbasic.net, but I > guess I'll put it here for posterity. There are a couple ways to do > this. > > Probably the easiest way is to create an array of Object at startup > and add each label to it as you create the label. Then you can just > go, for example, FOR EACH l IN myLabels and turn bold off that way. > > If you'd rather not create an array, you need to loop through the > form's controls and turn bold off for each of them. If you don't > want to be turning bold off on all the other controls besides your > labels, you'll need to set the Tag property on each label that you > add, and check that property when looping through the controls to > determine if you should turn bold off or not. > > Rob > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rospolosco at ...152... Thu Jan 24 23:43:07 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 24 Jan 2008 23:43:07 +0100 Subject: [Gambas-user] Hours of strugglin with EXEC and SHELL In-Reply-To: <200801250814.30482.rterry@...1822...> References: <200801250814.30482.rterry@...1822...> Message-ID: <200801242343.07840.rospolosco@...152...> Alle 22:14, gioved? 24 gennaio 2008, richard terry ha scritto: > Spent several hours struggling to no avail to understand the exec and shell > commands including trying to dissect the console program supplied with > gambas. > > Total frustration. > > I've selected a file/directory from a file box and that seems to work ok > > PRINT FileChooser1.Dir > PRINT FileChooser1.Value > > The file is a zip file, and i want to unzip it in the same directory I > selected i the box but, if and when (seems erratic) I can unzip it using > this command: > > SHELL "unzip" & " " & "-P" & "password" & " " & FileChooser1.Value > > the unzipped files get deposited in my home directory. Also I want to be > able to show them inside my terminal. (I tried the READ WRITE combinations > at the end of that line). > > Then I tried things like > > > SHELL "cd /home/richard/coding" WAIT > SHELL "ls -al" WAIT > Hi. You have to do: SHELL "cd /home/richard/coding; ls -al" WAIT or SHELL "ls -al /home/richard/coding" WAIT Bye, Stefano > and gambas just stops executin, or I tried copying from the console > programs concepts. > > > ' $hProcess = EXEC ["ls"] FOR READ > ' $hProcess = EXEC ["cd", "/home/richard/temp"] WAIT > > Everything to no avail. > > I gave up after several hours, but to ease my frustration read 130 pages of > the Gambas for Beginners pdf which I stumbled across at work today. Though > based on version 1 it is very useful for me and to contribute to the Author > I've ordered a paid copy. > > Regards and hopeful someone will be able to help me. > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Jan 25 00:40:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 25 Jan 2008 00:40:44 +0100 Subject: [Gambas-user] Rename a file in filesystem In-Reply-To: <560cf1ab0801240952l70cfd7dbi7de789274efd0795@...627...> References: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> <200801241713.58242.ronstk@...239...> <560cf1ab0801240952l70cfd7dbi7de789274efd0795@...627...> Message-ID: <200801250040.44356.gambas@...1...> On jeudi 24 janvier 2008, Paolo Fagni wrote: > On Jan 24, 2008 5:13 PM, Ron Onstenk wrote: > > On Thursday 24 January 2008 15:44, Paolo Fagni wrote: > > > This is kind of an annoying problem. I post here the sub that I would > > > > like > > > > > to use to create a new sqlite file: It doesn't work if, in the dialog, > > > > I > > > > > chosse a neme with a point in it ("xxx.db for example") > > > > > > ' Creates a new, empty, database. > > > PUBLIC SUB CreateNew() AS Boolean > > > > > > TRY dbConnection.Close() > > > > > > Dialog.Path = Application.Path > > > Dialog.Title = ("Please choose a filename") > > > IF Dialog.SaveFile() THEN RETURN > > > DbPath = Dialog.Path > > > > > > IF Exist(DbPath) THEN ' Check if the file exists > > > Message.Error(("File already exists!")) > > > RETURN FALSE > > > ENDIF > > > > > > dbConnection.Name = DbPath > > > dbConnection.Type = "sqlite3" > > > dbConnection.Open() > > > > > > dbConnection.Close() > > > END > > > > > > > > > Gambas fails with "Unable to locate database : /path/to/xxx.db > > > > Your database name is here 'xxx' and sqlite stores the data into the file > > 'xxx.db' > > Not strange sqlite does not accept a name of 'xxx.db' here and tells > > gambas it > > cant handle. I'm afraid gambas is not in error but sqlite or even better > > the user > > is using wrong filename. > > I forgot to mention that in the Dialog I chose xxx.db for the filename, not > xxx, because I want my file to be called xxx.db and not xxx or xxx.db. I > can rename the file after the creation and everythiong work fine. I'm > simply unable to create it directly from gambas > > > It is not imposible sqlite does not accept a dot in the database name for > > 3 reasons. > > 1) it is used between the tablename and fieldname (i.e. > > tablename.fieldname) > > 2) it is used between the database and table name (i.e. > > databasename.tablename) > > 3) it is used as extention for the file name in the filesystem. > > > > > Gambas version 2.0.0 on an arch linux box. > > > > > > Any help would be appreciated, Thank you! :D > > > > Just try if you can create a database with the name xyx.abc > > and use the commandline util for sqlite to do this (if exists) > > If both, the .abc and .db, works than it may a problem with gambas. > > But remember the database part of gambas must be able to work on many > > database > > systems and not all allow a dot in the database, table and/or field name. > > > > Greets, > > > > Ron Onstenk > > Sqlite works very well with database files named with a point. > > Thank you Ron for your answer :) If someone else has something to clarify > this strange behaviour , it'd be great , thanks. It's just that '.' is a character forbidden by the database component. I admit that this is a bit stupid in the sqlite case. I will see what I can do for the 2.1. Regards, -- Benoit Minisini From gambas at ...1... Fri Jan 25 00:45:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 25 Jan 2008 00:45:56 +0100 Subject: [Gambas-user] active window howto and little example program In-Reply-To: <200801241906.58886.rospolosco@...152...> References: <200801241906.58886.rospolosco@...152...> Message-ID: <200801250045.56487.gambas@...1...> On jeudi 24 janvier 2008, Stefano Palmeri wrote: > Hi, all. Hi, Benoit > > We discussed about the current active window on desktop > and how to get it. > > I wrote a little project that returns the ID and the title > of the current active window. Also returns all current windows. > The project uses xprop and xwininfo, which should be installed > on any system running the X server. No need for other external programs. > > I tested it under KDE, but should work > under other desktop managers. > Hope this helps Kim and other users. > > Benoit, is it possible to put it under examples, because > many times in the mailing list people asked for a way to get the active > window? > > Best regards, > > Stefano Palmeri Only one person asked for having the active window. :-) But I can put that program in the examples, to show how to use the SHELL instruction. The good way is enhancing the desktop component with functions to get and set windows properties. Regards, -- Benoit Minisini From gambas at ...1... Fri Jan 25 00:50:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 25 Jan 2008 00:50:01 +0100 Subject: [Gambas-user] Border or no border on combo box In-Reply-To: <200801250803.58087.rterry@...1822...> References: <200801250803.58087.rterry@...1822...> Message-ID: <200801250050.01249.gambas@...1...> On jeudi 24 janvier 2008, richard terry wrote: > There seem no sborder property on this control, which is a pity if one has > a stack of textboxes sans border and then an incongruent combobox with a > border. > > Is it possible to expose/create this property in Gambas. Similarly another > of the major controls (I think it was either the textedit or textarea, > can't remember which off the top of my head) didn't have this ability. > > Any comments? > > Richard > Alas in Qt, ComboBox cannot have no border. But TextEdit and TextArea border can be removed. Regards, -- Benoit Minisini From gambas at ...1... Fri Jan 25 01:08:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 25 Jan 2008 01:08:09 +0100 Subject: [Gambas-user] Rename a file in filesystem In-Reply-To: <200801250040.44356.gambas@...1...> References: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> <560cf1ab0801240952l70cfd7dbi7de789274efd0795@...627...> <200801250040.44356.gambas@...1...> Message-ID: <200801250108.09714.gambas@...1...> On vendredi 25 janvier 2008, Benoit Minisini wrote: > > It's just that '.' is a character forbidden by the database component. I > admit that this is a bit stupid in the sqlite case. I will see what I can > do for the 2.1. > > Regards, Fixed in the last commit (1037)! You can put points in sqlite database names. Regards, -- Benoit Minisini From paolo.fagni at ...626... Fri Jan 25 01:52:02 2008 From: paolo.fagni at ...626... (Paolo Fagni) Date: Fri, 25 Jan 2008 01:52:02 +0100 Subject: [Gambas-user] Rename a file in filesystem In-Reply-To: <200801250108.09714.gambas@...1...> References: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> <560cf1ab0801240952l70cfd7dbi7de789274efd0795@...627...> <200801250040.44356.gambas@...1...> <200801250108.09714.gambas@...1...> Message-ID: <560cf1ab0801241652l2c3af210mebb3deda1169601@...627...> Thank you so much! This helps me a lot :) On Jan 25, 2008 1:08 AM, Benoit Minisini wrote: > On vendredi 25 janvier 2008, Benoit Minisini wrote: > > > > It's just that '.' is a character forbidden by the database component. I > > admit that this is a bit stupid in the sqlite case. I will see what I > can > > do for the 2.1. > > > > Regards, > > Fixed in the last commit (1037)! You can put points in sqlite database > names. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Paolo Fagni From cheguebeara at ...626... Fri Jan 25 02:43:23 2008 From: cheguebeara at ...626... (Che) Date: Thu, 24 Jan 2008 20:43:23 -0500 Subject: [Gambas-user] Editor Flag ShowModifiedLines In-Reply-To: <200801250108.09714.gambas@...1...> References: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> <560cf1ab0801240952l70cfd7dbi7de789274efd0795@...627...> <200801250040.44356.gambas@...1...> <200801250108.09714.gambas@...1...> Message-ID: <1201225403.26309.3.camel@...1835...> I have been working through the html editor sample and trying to figure out how to reset the showmodifiedlines flag once I save the changed data in the editor. Is there a tutorial about anywhere dealing with this? I have been going round and round for several hours with the Editor component and Highlight and sofar it is making about as much sense to me as watching a Maple Leafs game (ok... if you are not Canadian or a Vancouver Canucks fan this might not seem like a big deal...). Thanks in advance for any help... Mark From gambas at ...1... Fri Jan 25 02:46:54 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 25 Jan 2008 02:46:54 +0100 Subject: [Gambas-user] Editor Flag ShowModifiedLines In-Reply-To: <1201225403.26309.3.camel@...1835...> References: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> <200801250108.09714.gambas@...1...> <1201225403.26309.3.camel@...1835...> Message-ID: <200801250246.54699.gambas@...1...> On vendredi 25 janvier 2008, Che wrote: > I have been working through the html editor sample and trying to figure > out how to reset the showmodifiedlines flag once I save the changed data > in the editor. Is there a tutorial about anywhere dealing with this? I > have been going round and round for several hours with the Editor > component and Highlight and sofar it is making about as much sense to me > as watching a Maple Leafs game (ok... if you are not Canadian or a > Vancouver Canucks fan this might not seem like a big deal...). > > Thanks in advance for any help... > > Mark > There is a Reset method for that in the Editor class. Regards, -- Benoit Minisini From sylvain.marleau at ...647... Fri Jan 25 02:54:13 2008 From: sylvain.marleau at ...647... (2020) Date: Thu, 24 Jan 2008 17:54:13 -0800 (PST) Subject: [Gambas-user] active window howto and little example program In-Reply-To: <200801241906.58886.rospolosco@...152...> References: <200801241906.58886.rospolosco@...152...> Message-ID: <15079550.post@...1379...> Hi Stefano, I test your module with Gambas2 on xubuntu 7.10 and got the script error "Out of Bounds". Sylvain Marleau Stefano Palmeri wrote: > > Hi, all. Hi, Benoit > > We discussed about the current active window on desktop > and how to get it. > > I wrote a little project that returns the ID and the title > of the current active window. Also returns all current windows. > The project uses xprop and xwininfo, which should be installed > on any system running the X server. No need for other external programs. > > I tested it under KDE, but should work > under other desktop managers. > Hope this helps Kim and other users. > > Benoit, is it possible to put it under examples, because > many times in the mailing list people asked for a way to get the active > window? > > Best regards, > > Stefano Palmeri > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > http://www.nabble.com/file/p15079550/OutOfBounds.png -- View this message in context: http://www.nabble.com/active-window-howto-and-little-example-program-tp15071256p15079550.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Fri Jan 25 03:23:49 2008 From: rterry at ...1822... (richard terry) Date: Fri, 25 Jan 2008 13:23:49 +1100 Subject: [Gambas-user] Hours of strugglin with EXEC and SHELL In-Reply-To: <200801242343.07840.rospolosco@...152...> References: <200801250814.30482.rterry@...1822...> <200801242343.07840.rospolosco@...152...> Message-ID: <200801251323.49398.rterry@...1822...> Thanks for your suggestions, I think maybe I didn't make myself entirely clear. Yes the SHELL Commands did work as per your suggestion (as did mine), but even if the output of cd ...... etc ls -al prints the listing of the directory, the cd command dosn't change the working directory of the unzip command, ie the unzipped files are deposited in my home directory, not the directory I shelled to. Obviously I am missing something. Maybe another suggestion? Richard On Fri, 25 Jan 2008 09:43:07 am Stefano Palmeri wrote: > Alle 22:14, gioved? 24 gennaio 2008, richard terry ha scritto: > > Spent several hours struggling to no avail to understand the exec and > > shell commands including trying to dissect the console program supplied > > with gambas. > > > > Total frustration. > > > > I've selected a file/directory from a file box and that seems to work ok > > > > PRINT FileChooser1.Dir > > PRINT FileChooser1.Value > > > > The file is a zip file, and i want to unzip it in the same directory I > > selected i the box but, if and when (seems erratic) I can unzip it using > > this command: > > > > SHELL "unzip" & " " & "-P" & "password" & " " & FileChooser1.Value > > > > the unzipped files get deposited in my home directory. Also I want to be > > able to show them inside my terminal. (I tried the READ WRITE > > combinations at the end of that line). > > > > Then I tried things like > > > > > > SHELL "cd /home/richard/coding" WAIT > > SHELL "ls -al" WAIT > > Hi. > > You have to do: > > SHELL "cd /home/richard/coding; ls -al" WAIT > > or > > SHELL "ls -al /home/richard/coding" WAIT > > Bye, > > Stefano > > > and gambas just stops executin, or I tried copying from the console > > programs concepts. > > > > > > ' $hProcess = EXEC ["ls"] FOR READ > > ' $hProcess = EXEC ["cd", "/home/richard/temp"] WAIT > > > > Everything to no avail. > > > > I gave up after several hours, but to ease my frustration read 130 pages > > of the Gambas for Beginners pdf which I stumbled across at work today. > > Though based on version 1 it is very useful for me and to contribute to > > the Author I've ordered a paid copy. > > > > Regards and hopeful someone will be able to help me. > > > > Richard > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1822... Fri Jan 25 04:13:08 2008 From: rterry at ...1822... (richard terry) Date: Fri, 25 Jan 2008 14:13:08 +1100 Subject: [Gambas-user] Hours of strugglin with EXEC and SHELL (Solved -sort of) In-Reply-To: <200801251323.49398.rterry@...1822...> References: <200801250814.30482.rterry@...1822...> <200801242343.07840.rospolosco@...152...> <200801251323.49398.rterry@...1822...> Message-ID: <200801251413.08799.rterry@...1822...> Probably not the way one should do it but RTFM came in handy again: At the end of the day I re-read the zip command again and realised I can add a "-d /dir_where_I_want_to_put_my_files" to the end of the command and this works ok, so I'll continue down my odyssey. Regards Richard On Fri, 25 Jan 2008 01:23:49 pm richard terry wrote: > Thanks for your suggestions, I think maybe I didn't make myself entirely > clear. > Yes the SHELL Commands did work as per your suggestion (as did mine), but > even if the output of cd ...... etc ls -al prints the listing of the > directory, the cd command dosn't change the working directory of the unzip > command, ie the unzipped files are deposited in my home directory, not the > directory I shelled to. > > Obviously I am missing something. > > Maybe another suggestion? > > Richard > > On Fri, 25 Jan 2008 09:43:07 am Stefano Palmeri wrote: > > Alle 22:14, gioved? 24 gennaio 2008, richard terry ha scritto: > > > Spent several hours struggling to no avail to understand the exec and > > > shell commands including trying to dissect the console program supplied > > > with gambas. > > > > > > Total frustration. > > > > > > I've selected a file/directory from a file box and that seems to work > > > ok > > > > > > PRINT FileChooser1.Dir > > > PRINT FileChooser1.Value > > > > > > The file is a zip file, and i want to unzip it in the same directory I > > > selected i the box but, if and when (seems erratic) I can unzip it > > > using this command: > > > > > > SHELL "unzip" & " " & "-P" & "password" & " " & FileChooser1.Value > > > > > > the unzipped files get deposited in my home directory. Also I want to > > > be able to show them inside my terminal. (I tried the READ WRITE > > > combinations at the end of that line). > > > > > > Then I tried things like > > > > > > > > > SHELL "cd /home/richard/coding" WAIT > > > SHELL "ls -al" WAIT > > > > Hi. > > > > You have to do: > > > > SHELL "cd /home/richard/coding; ls -al" WAIT > > > > or > > > > SHELL "ls -al /home/richard/coding" WAIT > > > > Bye, > > > > Stefano > > > > > and gambas just stops executin, or I tried copying from the console > > > programs concepts. > > > > > > > > > ' $hProcess = EXEC ["ls"] FOR READ > > > ' $hProcess = EXEC ["cd", "/home/richard/temp"] WAIT > > > > > > Everything to no avail. > > > > > > I gave up after several hours, but to ease my frustration read 130 > > > pages of the Gambas for Beginners pdf which I stumbled across at work > > > today. Though based on version 1 it is very useful for me and to > > > contribute to the Author I've ordered a paid copy. > > > > > > Regards and hopeful someone will be able to help me. > > > > > > Richard > > > > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Jan 25 04:38:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 25 Jan 2008 04:38:02 +0100 Subject: [Gambas-user] New 64 bits incompatible change for the 2.1 In-Reply-To: <8eb28a500801231134t274e9c54r5ce9fe3554d24be9@...627...> References: <200801231936.14727.gambas@...1...> <200801232021.46320.gambas@...1...> <8eb28a500801231134t274e9c54r5ce9fe3554d24be9@...627...> Message-ID: <200801250438.02732.gambas@...1...> On mercredi 23 janvier 2008, Jos? Luis Redrejo wrote: > 2008/1/23, Benoit Minisini : > > On mercredi 23 janvier 2008, Jos? Luis Redrejo wrote: > > > 2008/1/23, Benoit Minisini : > > > > Hi, > > > > > > > > Why XWindow use 'long' datatype for their window handle, nobody > > > > knows. Because > > > > of that, window handles are 32 bits on 32 bits OS, and 64 bits on 64 > > > > bits > > > > > > OS. > > > > As if we were going to create 2^64 windows or pixmaps... > > > > > > > > Well, I had to create a new type of array, Pointer[], and had to > > > > modify > > > > > > all > > > > method that deal with window handle: the Control class, the Embedder > > > > class, > > > > the Desktop.Find() method which now returns a Pointer array and not > > > > an Integer array anymore, and so on. > > > > > > > > The good news: these methods now work indifferently on 32 bits OS and > > > > 64 > > > > > > bits > > > > OS. > > > > > > > > The bad news: this change is not compatible with 2.0, as the > > > > Pointer[] class > > > > does not exist at all in 2.0. > > > > > > > > But I think that a Gambas 2 that works on 64 bits OS is worth this > > > > little > > > > > > incompatibility. Ahem, no, I don't change my mind... > > > > > > > > - > > > > > > Well, we all would have prefered avoid this problem, but the 64 bits > > > are more needed than our preferences. > > > Anyway, what are your plans for 2.1 release? release it just after > > > finishing 64 bits work or add more features before doing it? do you > > > have any roadmap or dates? > > > Regards. > > > > I want to finish the 64 bits work and to be able to create component > > packages > > with the IDE. > > > > At the moment, I can't really test the 64 bits version. While my new 64 > > bits > > machine is not there (it does not depend on me), I will be able to think > > about a release date. > > Ok, then I have two questions about the packages for Debian: > - Taking a look at gambas.sourceforge.net it seems that gambas 1.0 is not > maintained anymore, if you confirm me that's true I will ask Debian archive > to remove those packages. But how will you do if someone needs to run a Gambas 1.0 program? > - I would like to upload to Debian experimental packages made from the svn > for the users to test the 64 bits version. As they'll be in the > experimental repository they can not damage anyone. I have only one worry > for this: if I upload packages that can be built in more platforms than > i386, reverting it to i386 again will have some bureocracy and would take a > time. So, as soon as you can assure me that the 64 bits development on 2.x > can not step back I will prepare the packages (unless you think I should > wait a little more for these tests). I don't have a 64 bits machine, so I > will depend on other users' tests to know if the packages work. > > Regards. I don't see what you mean exactly by "the 2.1 cannot step back". As for the testd, I just need some testing on all Gambas examples to check that they all work correctly. I cannot do that because my 64 bits DELL machine is not there (it can take 15 days to arrive yet), and the 64 bits Ubuntu system of Rob Kudla through ssh is too slow for X11 program, even with a fast connection. I don't know if it is possible to install a NX server on Ubuntu 64 bits. If anybody could tell me... Regards, -- Benoit Minisini From cheguebeara at ...626... Fri Jan 25 04:46:39 2008 From: cheguebeara at ...626... (Che) Date: Thu, 24 Jan 2008 22:46:39 -0500 Subject: [Gambas-user] Editor Flag ShowModifiedLines In-Reply-To: <200801250246.54699.gambas@...1...> References: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> <200801250108.09714.gambas@...1...> <1201225403.26309.3.camel@...1835...> <200801250246.54699.gambas@...1...> Message-ID: <1201232799.26309.10.camel@...1835...> Obviously the universe is based entirely on the simplicity principle... I was guilty of trying to pass too many args to the Reset method... *sigh* Screenshot of my endeavour is at: http://mark.indigoblues.ca/images/ssobeditor.jpg After I have cleaned up some of the commented debug lines and spaghetti code I can make the source or Ubuntu installer available if anyone is interested in playing with it. Cheers! and MANY Thanks!! Mark p.s. After all these years of coding I think this Gambas has some SERIOUS potential! On Fri, 2008-01-25 at 02:46 +0100, Benoit Minisini wrote: > On vendredi 25 janvier 2008, Che wrote: > > I have been working through the html editor sample and trying to figure > > out how to reset the showmodifiedlines flag once I save the changed data > > in the editor. Is there a tutorial about anywhere dealing with this? I > > have been going round and round for several hours with the Editor > > component and Highlight and sofar it is making about as much sense to me > > as watching a Maple Leafs game (ok... if you are not Canadian or a > > Vancouver Canucks fan this might not seem like a big deal...). > > > > Thanks in advance for any help... > > > > Mark > > > > There is a Reset method for that in the Editor class. > > Regards, > From ariefbayu at ...626... Fri Jan 25 05:30:05 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Fri, 25 Jan 2008 11:30:05 +0700 Subject: [Gambas-user] Editor Flag ShowModifiedLines In-Reply-To: <1201232799.26309.10.camel@...1835...> References: <560cf1ab0801221439r6d8c44c2k9438e1caf8c30efb@...627...> <200801250108.09714.gambas@...1...> <1201225403.26309.3.camel@...1835...> <200801250246.54699.gambas@...1...> <1201232799.26309.10.camel@...1835...> Message-ID: <976ad9050801242030h29ed7e57ud35db0bb95099155@...627...> On 1/25/08, Che wrote: > > Obviously the universe is based entirely on the simplicity principle... > I was guilty of trying to pass too many args to the Reset method... > *sigh* > > Screenshot of my endeavour is at: > http://mark.indigoblues.ca/images/ssobeditor.jpg > > After I have cleaned up some of the commented debug lines and spaghetti > code I can make the source or Ubuntu installer available if anyone is > interested in playing with it. That would be interesting if you upload both source and compiled package. -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From nxgtrturbo at ...626... Fri Jan 25 06:12:18 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Thu, 24 Jan 2008 21:12:18 -0800 Subject: [Gambas-user] FIELDS LIMIT? Message-ID: <688afe140801242112l52837068u99d449c8ccde9828@...627...> FIELDS LIMIT? (by the way, how do I send code?, just attach it to this mail?) Hi, I am having troubles with a table, my table has 54 fields (53 INT and 1 YEAR), I am trying just to write to it values like 1,2,3,4,5... to each field, theres no manual-code, just a form, drag a datasource, databrowser and datacontrols, the reason I need that amount of fields is because I am going to manage a value per week, so, I need a lot of space. Thinking about there was a lot of data to write, I delete every datacontrol, and just try to write the first INT and the YEAR, but that "brick" my table, and I wasn't able to read that table again (from my program, because from console works perfect), every time I tried to open the form that calls that table, the program crash saying I have an error at my SQL query near: 'FROM weeks LIMIT 64' at line 1. (to solve that, I drooped the database and create it again, then everything goes ok, until I try to write it again, then comes the same story) I have not idea why the "64", I check the local variables and notice iLimit is 64, and my NULL variables are: aVal, rData, $aCol, $rData. The stack backtrace says; DataTable.LoadUnit.77 DataTable._get.127 (native code) DataView.GridView_Data.187 My table structure is this: CREATE TABLE asistencia ( empleados_numero INTEGER UNSIGNED NOT NULL, semana1 INTEGER UNSIGNED NULL DEFAULT '0', semana2 INTEGER UNSIGNED NULL DEFAULT '0', semana3 INTEGER UNSIGNED NULL DEFAULT '0', semana4 INTEGER UNSIGNED NULL DEFAULT '0', semana5 INTEGER UNSIGNED NULL DEFAULT '0', semana6 INTEGER UNSIGNED NULL DEFAULT '0', semana7 INTEGER UNSIGNED NULL DEFAULT '0', semana8 INTEGER UNSIGNED NULL DEFAULT '0', semana9 INTEGER UNSIGNED NULL DEFAULT '0', semana10 INTEGER UNSIGNED NULL DEFAULT '0', semana11 INTEGER UNSIGNED NULL DEFAULT '0', semana12 INTEGER UNSIGNED NULL DEFAULT '0', semana13 INTEGER UNSIGNED NULL DEFAULT '0', semana14 INTEGER UNSIGNED NULL DEFAULT '0', semana15 INTEGER UNSIGNED NULL DEFAULT '0', semana16 INTEGER UNSIGNED NULL DEFAULT '0', semana17 INTEGER UNSIGNED NULL DEFAULT '0', semana18 INTEGER UNSIGNED NULL DEFAULT '0', semana19 INTEGER UNSIGNED NULL DEFAULT '0', semana20 INTEGER UNSIGNED NULL DEFAULT '0', semana21 INTEGER UNSIGNED NULL DEFAULT '0', semana22 INTEGER UNSIGNED NULL DEFAULT '0', semana23 INTEGER UNSIGNED NULL DEFAULT '0', semana24 INTEGER UNSIGNED NULL DEFAULT '0', semana25 INTEGER UNSIGNED NULL DEFAULT '0', semana26 INTEGER UNSIGNED NULL DEFAULT '0', semana27 INTEGER UNSIGNED NULL DEFAULT '0', semana28 INTEGER UNSIGNED NULL DEFAULT '0', semana29 INTEGER UNSIGNED NULL DEFAULT '0', semana30 INTEGER UNSIGNED NULL DEFAULT '0', semana31 INTEGER UNSIGNED NULL DEFAULT '0', semana32 INTEGER UNSIGNED NULL DEFAULT '0', semana33 INTEGER UNSIGNED NULL DEFAULT '0', semana34 INTEGER UNSIGNED NULL DEFAULT '0', semana35 INTEGER UNSIGNED NULL DEFAULT '0', semana36 INTEGER UNSIGNED NULL DEFAULT '0', semana37 INTEGER UNSIGNED NULL DEFAULT '0', semana38 INTEGER UNSIGNED NULL DEFAULT '0', semana39 INTEGER UNSIGNED NULL DEFAULT '0', semana40 INTEGER UNSIGNED NULL DEFAULT '0', semana41 INTEGER UNSIGNED NULL DEFAULT '0', semana42 INTEGER UNSIGNED NULL DEFAULT '0', semana43 INTEGER UNSIGNED NULL DEFAULT '0', semana44 INTEGER UNSIGNED NULL DEFAULT '0', semana45 INTEGER UNSIGNED NULL DEFAULT '0', semana46 INTEGER UNSIGNED NULL DEFAULT '0', semana47 INTEGER UNSIGNED NULL DEFAULT '0', semana48 INTEGER UNSIGNED NULL DEFAULT '0', semana49 INTEGER UNSIGNED NULL DEFAULT '0', semana50 INTEGER UNSIGNED NULL DEFAULT '0', semana51 INTEGER UNSIGNED NULL DEFAULT '0', semana52 INTEGER UNSIGNED NULL DEFAULT '0', periodo YEAR NULL, INDEX asistencia_FKIndex1(empleados_numero), FOREIGN KEY(empleados_numero) REFERENCES empleados(numero) ON DELETE NO ACTION ON UPDATE NO ACTION ); -- Nx GT-R From ronstk at ...239... Fri Jan 25 08:36:21 2008 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 25 Jan 2008 08:36:21 +0100 Subject: [Gambas-user] Hours of strugglin with EXEC and SHELL (Solved -sort of) In-Reply-To: <200801251413.08799.rterry@...1822...> References: <200801250814.30482.rterry@...1822...> <200801251323.49398.rterry@...1822...> <200801251413.08799.rterry@...1822...> Message-ID: <200801250836.22186.ronstk@...239...> On Friday 25 January 2008 04:13, richard terry wrote: > 2008-01-25 04:13 > ? > Probably not the way one should do it but RTFM came in handy again: > > At the end of the day I re-read the zip command again and realised I can add a > ?"-d /dir_where_I_want_to_put_my_files" to the end of the command and this > works ok, so I'll continue down my odyssey. > > Regards > > Richard > That is the easy way. Every SHELL command runs in a fresh shell. If you need all commands to run in a defenied directory you need to prefix all those commandd with the CD ; as in: > > SHELL "cd ?/home/richard/coding; ls -al" WAIT i.e. SHELL "cd " & executepath & "; " & your_final_command" WAIT Ron From ronstk at ...239... Fri Jan 25 08:43:23 2008 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 25 Jan 2008 08:43:23 +0100 Subject: [Gambas-user] FIELDS LIMIT? In-Reply-To: <688afe140801242112l52837068u99d449c8ccde9828@...627...> References: <688afe140801242112l52837068u99d449c8ccde9828@...627...> Message-ID: <200801250843.24100.ronstk@...239...> On Friday 25 January 2008 06:12, Nx GT-R BOY wrote: > FIELDS LIMIT? > (by the way, how do I send code?, just attach it to this mail?) > > Hi, I am having troubles with a table, my table has 54 fields (53 INT and 1 > YEAR), I am trying just to write to it values like 1,2,3,4,5... to each > field, theres no manual-code, just a form, drag a datasource, databrowser > and datacontrols, the reason I need that amount of fields is because I am > going to manage a value per week, so, I need a lot of space. > > Thinking about there was a lot of data to write, I delete every datacontrol, > and just try to write the first INT and the YEAR, but that "brick" my table, > and I wasn't able to read that table again (from my program, because from > console works perfect), every time I tried to open the form that calls that > table, the program crash saying I have an error at my SQL query near: 'FROM > weeks LIMIT 64' at line 1. (to solve that, I drooped the database and create > it again, then everything goes ok, until I try to write it again, then comes > the same story) > > I have not idea why the "64", I check the local variables and notice iLimit > is 64, and my NULL variables are: aVal, rData, $aCol, $rData. > > The stack backtrace says; > DataTable.LoadUnit.77 > DataTable._get.127 > (native code) > DataView.GridView_Data.187 > > My table structure is this: > CREATE TABLE asistencia ( > empleados_numero INTEGER UNSIGNED NOT NULL, > semana1 INTEGER UNSIGNED NULL DEFAULT '0', > semana2 INTEGER UNSIGNED NULL DEFAULT '0', > semana3 INTEGER UNSIGNED NULL DEFAULT '0', ----8<---- > semana51 INTEGER UNSIGNED NULL DEFAULT '0', > semana52 INTEGER UNSIGNED NULL DEFAULT '0', > periodo YEAR NULL, > INDEX asistencia_FKIndex1(empleados_numero), > FOREIGN KEY(empleados_numero) > REFERENCES empleados(numero) > ON DELETE NO ACTION > ON UPDATE NO ACTION > ); > > Be carefull with the fieldnames. Once in time you want to sort the fieldnames. Use 2 digit numbers for the first 9 weeks as 01,02 etc I had lot of trouble because I got such declared table in the past. (sorting those names are done for alfabet and not nummeric) Ron From rospolosco at ...152... Fri Jan 25 09:48:14 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 25 Jan 2008 09:48:14 +0100 Subject: [Gambas-user] active window howto and little example program In-Reply-To: <15079550.post@...1379...> References: <200801241906.58886.rospolosco@...152...> <15079550.post@...1379...> Message-ID: <200801250948.14531.rospolosco@...152...> Alle 02:54, venerd? 25 gennaio 2008, 2020 ha scritto: > Hi Stefano, I test your module with Gambas2 on xubuntu 7.10 and got the > script error "Out of Bounds". > Sylvain Marleau > OK. Thanks Sylvain for testing and reporting the bug (I still can't catch it). Benoit, I think it's not a good idea to put my buggy project under examples :-) Ciao, Stefano > Stefano Palmeri wrote: > > Hi, all. Hi, Benoit > > > > We discussed about the current active window on desktop > > and how to get it. > > > > I wrote a little project that returns the ID and the title > > of the current active window. Also returns all current windows. > > The project uses xprop and xwininfo, which should be installed > > on any system running the X server. No need for other external programs. > > > > I tested it under KDE, but should work > > under other desktop managers. > > Hope this helps Kim and other users. > > > > Benoit, is it possible to put it under examples, because > > many times in the mailing list people asked for a way to get the active > > window? > > > > Best regards, > > > > Stefano Palmeri > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > http://www.nabble.com/file/p15079550/OutOfBounds.png From gambas.fr at ...626... Fri Jan 25 14:24:23 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 25 Jan 2008 14:24:23 +0100 Subject: [Gambas-user] Hours of strugglin with EXEC and SHELL (Solved -sort of) In-Reply-To: <200801250836.22186.ronstk@...239...> References: <200801250814.30482.rterry@...1822...> <200801251413.08799.rterry@...1822...> <200801250836.22186.ronstk@...239...> Message-ID: <200801251424.23346.gambas.fr@...626...> Le Friday 25 January 2008 08:36:21 Ron Onstenk, vous avez ?crit?: > On Friday 25 January 2008 04:13, richard terry wrote: > > 2008-01-25 04:13 > > ? > > Probably not the way one should do it but RTFM came in handy again: > > > > At the end of the day I re-read the zip command again and realised I can > > add a "-d /dir_where_I_want_to_put_my_files" to the end of the command > > and this works ok, so I'll continue down my odyssey. > > > > Regards > > > > Richard > > That is the easy way. > Every SHELL command runs in a fresh shell. > If you need all commands to run in a defenied directory you need > > to prefix all those commandd with the CD ; as in: > > > SHELL "cd ?/home/richard/coding; ls -al" WAIT > > i.e. SHELL "cd " & executepath & "; " & your_final_command" WAIT > > Ron > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listihnfo/gambas-user the better is to include.. in hard the path... in your case, the cd command is not usefull : Dim sMyBasePath, sResult as String sMyBasePath = "/home/richard/coding" Shell "ls al " & sMyBasePath AS sResult Print sResult or EXEC ["ls", "al", sMyBasePath] as sResult Print sResult No need of process too... You have this too... (in gambas keywords) Print Dir(sMyBasePath).Join("\n") From gambas at ...1... Fri Jan 25 14:24:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 25 Jan 2008 14:24:45 +0100 Subject: [Gambas-user] FIELDS LIMIT? In-Reply-To: <688afe140801242112l52837068u99d449c8ccde9828@...627...> References: <688afe140801242112l52837068u99d449c8ccde9828@...627...> Message-ID: <200801251424.45254.gambas@...1...> On vendredi 25 janvier 2008, Nx GT-R BOY wrote: > FIELDS LIMIT? > (by the way, how do I send code?, just attach it to this mail?) > > Hi, I am having troubles with a table, my table has 54 fields (53 INT and 1 > YEAR), I am trying just to write to it values like 1,2,3,4,5... to each > field, theres no manual-code, just a form, drag a datasource, databrowser > and datacontrols, the reason I need that amount of fields is because I am > going to manage a value per week, so, I need a lot of space. > > Thinking about there was a lot of data to write, I delete every > datacontrol, and just try to write the first INT and the YEAR, but that > "brick" my table, and I wasn't able to read that table again (from my > program, because from console works perfect), every time I tried to open > the form that calls that table, the program crash saying I have an error at > my SQL query near: 'FROM weeks LIMIT 64' at line 1. (to solve that, I > drooped the database and create it again, then everything goes ok, until I > try to write it again, then comes the same story) > > I have not idea why the "64", I check the local variables and notice iLimit > is 64, and my NULL variables are: aVal, rData, $aCol, $rData. > > The stack backtrace says; > DataTable.LoadUnit.77 > DataTable._get.127 > (native code) > DataView.GridView_Data.187 > > My table structure is this: > CREATE TABLE asistencia ( > empleados_numero INTEGER UNSIGNED NOT NULL, > semana1 INTEGER UNSIGNED NULL DEFAULT '0', > semana2 INTEGER UNSIGNED NULL DEFAULT '0', > semana3 INTEGER UNSIGNED NULL DEFAULT '0', > semana4 INTEGER UNSIGNED NULL DEFAULT '0', > semana5 INTEGER UNSIGNED NULL DEFAULT '0', > semana6 INTEGER UNSIGNED NULL DEFAULT '0', > semana7 INTEGER UNSIGNED NULL DEFAULT '0', > semana8 INTEGER UNSIGNED NULL DEFAULT '0', > semana9 INTEGER UNSIGNED NULL DEFAULT '0', > semana10 INTEGER UNSIGNED NULL DEFAULT '0', > semana11 INTEGER UNSIGNED NULL DEFAULT '0', > semana12 INTEGER UNSIGNED NULL DEFAULT '0', > semana13 INTEGER UNSIGNED NULL DEFAULT '0', > semana14 INTEGER UNSIGNED NULL DEFAULT '0', > semana15 INTEGER UNSIGNED NULL DEFAULT '0', > semana16 INTEGER UNSIGNED NULL DEFAULT '0', > semana17 INTEGER UNSIGNED NULL DEFAULT '0', > semana18 INTEGER UNSIGNED NULL DEFAULT '0', > semana19 INTEGER UNSIGNED NULL DEFAULT '0', > semana20 INTEGER UNSIGNED NULL DEFAULT '0', > semana21 INTEGER UNSIGNED NULL DEFAULT '0', > semana22 INTEGER UNSIGNED NULL DEFAULT '0', > semana23 INTEGER UNSIGNED NULL DEFAULT '0', > semana24 INTEGER UNSIGNED NULL DEFAULT '0', > semana25 INTEGER UNSIGNED NULL DEFAULT '0', > semana26 INTEGER UNSIGNED NULL DEFAULT '0', > semana27 INTEGER UNSIGNED NULL DEFAULT '0', > semana28 INTEGER UNSIGNED NULL DEFAULT '0', > semana29 INTEGER UNSIGNED NULL DEFAULT '0', > semana30 INTEGER UNSIGNED NULL DEFAULT '0', > semana31 INTEGER UNSIGNED NULL DEFAULT '0', > semana32 INTEGER UNSIGNED NULL DEFAULT '0', > semana33 INTEGER UNSIGNED NULL DEFAULT '0', > semana34 INTEGER UNSIGNED NULL DEFAULT '0', > semana35 INTEGER UNSIGNED NULL DEFAULT '0', > semana36 INTEGER UNSIGNED NULL DEFAULT '0', > semana37 INTEGER UNSIGNED NULL DEFAULT '0', > semana38 INTEGER UNSIGNED NULL DEFAULT '0', > semana39 INTEGER UNSIGNED NULL DEFAULT '0', > semana40 INTEGER UNSIGNED NULL DEFAULT '0', > semana41 INTEGER UNSIGNED NULL DEFAULT '0', > semana42 INTEGER UNSIGNED NULL DEFAULT '0', > semana43 INTEGER UNSIGNED NULL DEFAULT '0', > semana44 INTEGER UNSIGNED NULL DEFAULT '0', > semana45 INTEGER UNSIGNED NULL DEFAULT '0', > semana46 INTEGER UNSIGNED NULL DEFAULT '0', > semana47 INTEGER UNSIGNED NULL DEFAULT '0', > semana48 INTEGER UNSIGNED NULL DEFAULT '0', > semana49 INTEGER UNSIGNED NULL DEFAULT '0', > semana50 INTEGER UNSIGNED NULL DEFAULT '0', > semana51 INTEGER UNSIGNED NULL DEFAULT '0', > semana52 INTEGER UNSIGNED NULL DEFAULT '0', > periodo YEAR NULL, > INDEX asistencia_FKIndex1(empleados_numero), > FOREIGN KEY(empleados_numero) > REFERENCES empleados(numero) > ON DELETE NO ACTION > ON UPDATE NO ACTION > ); 1) Don't write your mail subjects in upper case. I am maniac. 2) Please tell which database backend you use. 3) At the startup of your program, do a 'DB.Debug = TRUE'. This way, all requests sent to the database driver are written to the console. Copy the output and send it me. 4) Some years have more then 52 weeks! Regards, -- Benoit Minisini From m0e.lnx at ...626... Fri Jan 25 15:29:34 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 25 Jan 2008 08:29:34 -0600 Subject: [Gambas-user] Hours of strugglin with EXEC and SHELL In-Reply-To: <200801251323.49398.rterry@...1822...> References: <200801250814.30482.rterry@...1822...> <200801242343.07840.rospolosco@...152...> <200801251323.49398.rterry@...1822...> Message-ID: <1f1e8c1b0801250629r185a931ehfe7802b81a5508cd@...627...> The first gambas application that I wrote uses SHELL a lot... and I came to find out that in gambas, the cd command wont do anything... Say for instance, you need to first cd to /tmp and then run ls -al. This WILL NOT WORK PUBLIC SUB cdTEST() SHELL "cd /tmp" SHELL "ls -al" END In this case, when gambas executes the second command, it will return the output of "ls" IN THE PROJECT'S DIRECTORY... not in "/tmp" as you told it to in the first line so, to accomplish this, you can use the bash concatenators (is that a word)?? and write one-liners PUBLIC SUB cdTEST() SHELL "cd /tmp && ls -al" FOR READ END That should work On Jan 24, 2008 8:23 PM, richard terry wrote: > Thanks for your suggestions, I think maybe I didn't make myself entirely > clear. > Yes the SHELL Commands did work as per your suggestion (as did mine), but even > if the output of cd ...... etc ls -al prints the listing of the directory, > the cd command dosn't change the working directory of the unzip command, ie > the unzipped files are deposited in my home directory, not the directory I > shelled to. > > Obviously I am missing something. > > Maybe another suggestion? > > Richard > > > On Fri, 25 Jan 2008 09:43:07 am Stefano Palmeri wrote: > > Alle 22:14, gioved? 24 gennaio 2008, richard terry ha scritto: > > > Spent several hours struggling to no avail to understand the exec and > > > shell commands including trying to dissect the console program supplied > > > with gambas. > > > > > > Total frustration. > > > > > > I've selected a file/directory from a file box and that seems to work ok > > > > > > PRINT FileChooser1.Dir > > > PRINT FileChooser1.Value > > > > > > The file is a zip file, and i want to unzip it in the same directory I > > > selected i the box but, if and when (seems erratic) I can unzip it using > > > this command: > > > > > > SHELL "unzip" & " " & "-P" & "password" & " " & FileChooser1.Value > > > > > > the unzipped files get deposited in my home directory. Also I want to be > > > able to show them inside my terminal. (I tried the READ WRITE > > > combinations at the end of that line). > > > > > > Then I tried things like > > > > > > > > > SHELL "cd /home/richard/coding" WAIT > > > SHELL "ls -al" WAIT > > > > Hi. > > > > You have to do: > > > > SHELL "cd /home/richard/coding; ls -al" WAIT > > > > or > > > > SHELL "ls -al /home/richard/coding" WAIT > > > > Bye, > > > > Stefano > > > > > and gambas just stops executin, or I tried copying from the console > > > programs concepts. > > > > > > > > > ' $hProcess = EXEC ["ls"] FOR READ > > > ' $hProcess = EXEC ["cd", "/home/richard/temp"] WAIT > > > > > > Everything to no avail. > > > > > > I gave up after several hours, but to ease my frustration read 130 pages > > > of the Gambas for Beginners pdf which I stumbled across at work today. > > > Though based on version 1 it is very useful for me and to contribute to > > > the Author I've ordered a paid copy. > > > > > > Regards and hopeful someone will be able to help me. > > > > > > Richard > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jaap_cramer at ...67... Fri Jan 25 15:34:30 2008 From: jaap_cramer at ...67... (Jaap Cramer) Date: Fri, 25 Jan 2008 15:34:30 +0100 Subject: [Gambas-user] Hours of strugglin with EXEC and SHELL In-Reply-To: <1f1e8c1b0801250629r185a931ehfe7802b81a5508cd@...627...> References: <200801250814.30482.rterry@...1822...> <200801242343.07840.rospolosco@...152...> <200801251323.49398.rterry@...1822...> <1f1e8c1b0801250629r185a931ehfe7802b81a5508cd@...627...> Message-ID: in stead of using 2 command you can alsdo do $ ls /tmp The output can be stored in a variable using the TO operant SHELL "ls /tmp" TO sOutput PRINT sOutput jaap PS Yesterday I send two mails, but it seams nobody got them. mailinglist error? Fortunately other people gave the same advise, so the people in question were helped. Please confirm this mail is recieved... ---------------------------------------- > Date: Fri, 25 Jan 2008 08:29:34 -0600 > From: m0e.lnx at ...626... > To: rterry at ...1823...; gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Hours of strugglin with EXEC and SHELL > > The first gambas application that I wrote uses SHELL a lot... and I > came to find out that in gambas, the cd command wont do anything... > Say for instance, you need to first cd to /tmp and then run ls -al. > This WILL NOT WORK > > PUBLIC SUB cdTEST() > SHELL "cd /tmp" > SHELL "ls -al" > END > In this case, when gambas executes the second command, it will return > the output of "ls" IN THE PROJECT'S DIRECTORY... not in "/tmp" as you > told it to in the first line > > so, to accomplish this, you can use the bash concatenators (is that a > word)?? and write one-liners > > PUBLIC SUB cdTEST() > SHELL "cd /tmp && ls -al" FOR READ > END > That should work > > On Jan 24, 2008 8:23 PM, richard terry wrote: >> Thanks for your suggestions, I think maybe I didn't make myself entirely >> clear. >> Yes the SHELL Commands did work as per your suggestion (as did mine), but even >> if the output of cd ...... etc ls -al prints the listing of the directory, >> the cd command dosn't change the working directory of the unzip command, ie >> the unzipped files are deposited in my home directory, not the directory I >> shelled to. >> >> Obviously I am missing something. >> >> Maybe another suggestion? >> >> Richard >> >> >> On Fri, 25 Jan 2008 09:43:07 am Stefano Palmeri wrote: >>> Alle 22:14, gioved? 24 gennaio 2008, richard terry ha scritto: >>>> Spent several hours struggling to no avail to understand the exec and >>>> shell commands including trying to dissect the console program supplied >>>> with gambas. >>>> >>>> Total frustration. >>>> >>>> I've selected a file/directory from a file box and that seems to work ok >>>> >>>> PRINT FileChooser1.Dir >>>> PRINT FileChooser1.Value >>>> >>>> The file is a zip file, and i want to unzip it in the same directory I >>>> selected i the box but, if and when (seems erratic) I can unzip it using >>>> this command: >>>> >>>> SHELL "unzip" & " " & "-P" & "password" & " " & FileChooser1.Value >>>> >>>> the unzipped files get deposited in my home directory. Also I want to be >>>> able to show them inside my terminal. (I tried the READ WRITE >>>> combinations at the end of that line). >>>> >>>> Then I tried things like >>>> >>>> >>>> SHELL "cd /home/richard/coding" WAIT >>>> SHELL "ls -al" WAIT >>> >>> Hi. >>> >>> You have to do: >>> >>> SHELL "cd /home/richard/coding; ls -al" WAIT >>> >>> or >>> >>> SHELL "ls -al /home/richard/coding" WAIT >>> >>> Bye, >>> >>> Stefano >>> >>>> and gambas just stops executin, or I tried copying from the console >>>> programs concepts. >>>> >>>> >>>> ' $hProcess = EXEC ["ls"] FOR READ >>>> ' $hProcess = EXEC ["cd", "/home/richard/temp"] WAIT >>>> >>>> Everything to no avail. >>>> >>>> I gave up after several hours, but to ease my frustration read 130 pages >>>> of the Gambas for Beginners pdf which I stumbled across at work today. >>>> Though based on version 1 it is very useful for me and to contribute to >>>> the Author I've ordered a paid copy. >>>> >>>> Regards and hopeful someone will be able to help me. >>>> >>>> Richard >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Bekijk Yes-R's real life soap op MSN Video! http://video.msn.com/video.aspx?mkt=nl-nl&tab=m1192527562294&vid=8aff5b76-b78d-4b55-8b64-ef7e1d73aab2&playlist=videoByUuids:uuids:50b732c2-c105-41e9-adf0-36bd627d4eaa,0813da8c-031b-423f-a79d-35d925aee805,5cce447e-948d-43af-9862-45bb6bb9d6d8,6a39138c-f562-4254-be70-9d93343650f8,f9b8d78f-05a4-4c74-8e4b-28d20a4037ab&from=NLNL_Yes-R From gambas at ...1... Fri Jan 25 15:37:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 25 Jan 2008 15:37:21 +0100 Subject: [Gambas-user] Hours of strugglin with EXEC and SHELL In-Reply-To: <1f1e8c1b0801250629r185a931ehfe7802b81a5508cd@...627...> References: <200801250814.30482.rterry@...1822...> <200801251323.49398.rterry@...1822...> <1f1e8c1b0801250629r185a931ehfe7802b81a5508cd@...627...> Message-ID: <200801251537.21707.gambas@...1...> On vendredi 25 janvier 2008, M0E Lnx wrote: > The first gambas application that I wrote uses SHELL a lot... and I > came to find out that in gambas, the cd command wont do anything... > Say for instance, you need to first cd to /tmp and then run ls -al. > This WILL NOT WORK > > PUBLIC SUB cdTEST() > SHELL "cd /tmp" > SHELL "ls -al" > END and THIS IS NORMAL! The SHELL instruction runs its argument in a external shell, so two successive SHELL calls are completely independant. Regards, -- Benoit Minisini From cheguebeara at ...626... Fri Jan 25 16:30:21 2008 From: cheguebeara at ...626... (Che) Date: Fri, 25 Jan 2008 10:30:21 -0500 Subject: [Gambas-user] FIELDS LIMIT? In-Reply-To: <200801251424.45254.gambas@...1...> References: <688afe140801242112l52837068u99d449c8ccde9828@...627...> <200801251424.45254.gambas@...1...> Message-ID: <1201275022.30411.7.camel@...1835...> Wouldn't it be easier to just add a single Julian Date field and then have your sql bring it back with filtering by 7's? That would eliminate a lot of extra fields and allow you to modify your reporting period down the road (single day, 7 day, fortnight, 30 day, etc etc). My experience in the past has been if you cut down on the number of fields and let program bring back the data algorithmically you end up with a way more efficient program... My 2 cents worth... Mark On Fri, 2008-01-25 at 14:24 +0100, Benoit Minisini wrote: > On vendredi 25 janvier 2008, Nx GT-R BOY wrote: > > FIELDS LIMIT? > > (by the way, how do I send code?, just attach it to this mail?) > > > > Hi, I am having troubles with a table, my table has 54 fields (53 INT and 1 > > YEAR), I am trying just to write to it values like 1,2,3,4,5... to each > > field, theres no manual-code, just a form, drag a datasource, databrowser > > and datacontrols, the reason I need that amount of fields is because I am > > going to manage a value per week, so, I need a lot of space. > > > > Thinking about there was a lot of data to write, I delete every > > datacontrol, and just try to write the first INT and the YEAR, but that > > "brick" my table, and I wasn't able to read that table again (from my > > program, because from console works perfect), every time I tried to open > > the form that calls that table, the program crash saying I have an error at > > my SQL query near: 'FROM weeks LIMIT 64' at line 1. (to solve that, I > > drooped the database and create it again, then everything goes ok, until I > > try to write it again, then comes the same story) > > > > I have not idea why the "64", I check the local variables and notice iLimit > > is 64, and my NULL variables are: aVal, rData, $aCol, $rData. > > > > The stack backtrace says; > > DataTable.LoadUnit.77 > > DataTable._get.127 > > (native code) > > DataView.GridView_Data.187 > > > > My table structure is this: > > CREATE TABLE asistencia ( > > empleados_numero INTEGER UNSIGNED NOT NULL, > > semana1 INTEGER UNSIGNED NULL DEFAULT '0', > > semana2 INTEGER UNSIGNED NULL DEFAULT '0', > > semana3 INTEGER UNSIGNED NULL DEFAULT '0', > > semana4 INTEGER UNSIGNED NULL DEFAULT '0', > > semana5 INTEGER UNSIGNED NULL DEFAULT '0', > > semana6 INTEGER UNSIGNED NULL DEFAULT '0', > > semana7 INTEGER UNSIGNED NULL DEFAULT '0', > > semana8 INTEGER UNSIGNED NULL DEFAULT '0', > > semana9 INTEGER UNSIGNED NULL DEFAULT '0', > > semana10 INTEGER UNSIGNED NULL DEFAULT '0', > > semana11 INTEGER UNSIGNED NULL DEFAULT '0', > > semana12 INTEGER UNSIGNED NULL DEFAULT '0', > > semana13 INTEGER UNSIGNED NULL DEFAULT '0', > > semana14 INTEGER UNSIGNED NULL DEFAULT '0', > > semana15 INTEGER UNSIGNED NULL DEFAULT '0', > > semana16 INTEGER UNSIGNED NULL DEFAULT '0', > > semana17 INTEGER UNSIGNED NULL DEFAULT '0', > > semana18 INTEGER UNSIGNED NULL DEFAULT '0', > > semana19 INTEGER UNSIGNED NULL DEFAULT '0', > > semana20 INTEGER UNSIGNED NULL DEFAULT '0', > > semana21 INTEGER UNSIGNED NULL DEFAULT '0', > > semana22 INTEGER UNSIGNED NULL DEFAULT '0', > > semana23 INTEGER UNSIGNED NULL DEFAULT '0', > > semana24 INTEGER UNSIGNED NULL DEFAULT '0', > > semana25 INTEGER UNSIGNED NULL DEFAULT '0', > > semana26 INTEGER UNSIGNED NULL DEFAULT '0', > > semana27 INTEGER UNSIGNED NULL DEFAULT '0', > > semana28 INTEGER UNSIGNED NULL DEFAULT '0', > > semana29 INTEGER UNSIGNED NULL DEFAULT '0', > > semana30 INTEGER UNSIGNED NULL DEFAULT '0', > > semana31 INTEGER UNSIGNED NULL DEFAULT '0', > > semana32 INTEGER UNSIGNED NULL DEFAULT '0', > > semana33 INTEGER UNSIGNED NULL DEFAULT '0', > > semana34 INTEGER UNSIGNED NULL DEFAULT '0', > > semana35 INTEGER UNSIGNED NULL DEFAULT '0', > > semana36 INTEGER UNSIGNED NULL DEFAULT '0', > > semana37 INTEGER UNSIGNED NULL DEFAULT '0', > > semana38 INTEGER UNSIGNED NULL DEFAULT '0', > > semana39 INTEGER UNSIGNED NULL DEFAULT '0', > > semana40 INTEGER UNSIGNED NULL DEFAULT '0', > > semana41 INTEGER UNSIGNED NULL DEFAULT '0', > > semana42 INTEGER UNSIGNED NULL DEFAULT '0', > > semana43 INTEGER UNSIGNED NULL DEFAULT '0', > > semana44 INTEGER UNSIGNED NULL DEFAULT '0', > > semana45 INTEGER UNSIGNED NULL DEFAULT '0', > > semana46 INTEGER UNSIGNED NULL DEFAULT '0', > > semana47 INTEGER UNSIGNED NULL DEFAULT '0', > > semana48 INTEGER UNSIGNED NULL DEFAULT '0', > > semana49 INTEGER UNSIGNED NULL DEFAULT '0', > > semana50 INTEGER UNSIGNED NULL DEFAULT '0', > > semana51 INTEGER UNSIGNED NULL DEFAULT '0', > > semana52 INTEGER UNSIGNED NULL DEFAULT '0', > > periodo YEAR NULL, > > INDEX asistencia_FKIndex1(empleados_numero), > > FOREIGN KEY(empleados_numero) > > REFERENCES empleados(numero) > > ON DELETE NO ACTION > > ON UPDATE NO ACTION > > ); > > 1) Don't write your mail subjects in upper case. I am maniac. > > 2) Please tell which database backend you use. > > 3) At the startup of your program, do a 'DB.Debug = TRUE'. This way, all > requests sent to the database driver are written to the console. Copy the > output and send it me. > > 4) Some years have more then 52 weeks! > > Regards, > From nxgtrturbo at ...626... Fri Jan 25 16:31:32 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Fri, 25 Jan 2008 07:31:32 -0800 Subject: [Gambas-user] Rex2: fields limit? (console outputs) Message-ID: <688afe140801250731u5a5a60dbofe892fc4c1f4e7a7@...627...> Ok, wont happen the upper case issue My db server is MySQL 5.0.38 By the way, in Mexico (at least) in a business environment, theres no 53 week-year, because you cant have 371 days (53x7), if you start a week at 2008 but ends at 2009, that would be a 2009-week, since they are going to pay you at 2009, its like 52-paycheck-days. After adding the gb.debug component (I didn't have it enable), I was able to do what you said, this are the outputs: 1. First, with a "fresh" database, everything goes perfect, the form opens and I cant write my values (and they are ok, since I check my database from console), but my program "crash" Output #1 (with a cleared console): mysql: 0x81488f8: show columns from `asistencia` like 'empleados_numero' mysql: 0x81488f8: show columns from `asistencia` like 'semana1' mysql: 0x81488f8: show columns from `asistencia` like 'semana2' mysql: 0x81488f8: show columns from `asistencia` like 'semana3' mysql: 0x81488f8: show columns from `asistencia` like 'semana4' mysql: 0x81488f8: show columns from `asistencia` like 'semana5' mysql: 0x81488f8: show columns from `asistencia` like 'semana6' mysql: 0x81488f8: show columns from `asistencia` like 'semana7' mysql: 0x81488f8: show columns from `asistencia` like 'semana8' mysql: 0x81488f8: show columns from `asistencia` like 'semana9' mysql: 0x81488f8: show columns from `asistencia` like 'semana10' mysql: 0x81488f8: show columns from `asistencia` like 'semana11' mysql: 0x81488f8: show columns from `asistencia` like 'semana12' mysql: 0x81488f8: show columns from `asistencia` like 'semana13' mysql: 0x81488f8: show columns from `asistencia` like 'semana14' mysql: 0x81488f8: show columns from `asistencia` like 'semana15' mysql: 0x81488f8: show columns from `asistencia` like 'semana16' mysql: 0x81488f8: show columns from `asistencia` like 'semana17' mysql: 0x81488f8: show columns from `asistencia` like 'semana18' mysql: 0x81488f8: show columns from `asistencia` like 'semana19' mysql: 0x81488f8: show columns from `asistencia` like 'semana20' mysql: 0x81488f8: show columns from `asistencia` like 'semana21' mysql: 0x81488f8: show columns from `asistencia` like 'semana22' mysql: 0x81488f8: show columns from `asistencia` like 'semana23' mysql: 0x81488f8: show columns from `asistencia` like 'semana24' mysql: 0x81488f8: show columns from `asistencia` like 'semana25' mysql: 0x81488f8: show columns from `asistencia` like 'semana26' mysql: 0x81488f8: show columns from `asistencia` like 'semana27' mysql: 0x81488f8: show columns from `asistencia` like 'semana28' mysql: 0x81488f8: show columns from `asistencia` like 'semana29' mysql: 0x81488f8: show columns from `asistencia` like 'semana30' mysql: 0x81488f8: show columns from `asistencia` like 'semana31' mysql: 0x81488f8: show columns from `asistencia` like 'semana32' mysql: 0x81488f8: show columns from `asistencia` like 'semana33' mysql: 0x81488f8: show columns from `asistencia` like 'semana34' mysql: 0x81488f8: show columns from `asistencia` like 'semana35' mysql: 0x81488f8: show columns from `asistencia` like 'semana36' mysql: 0x81488f8: show columns from `asistencia` like 'semana37' mysql: 0x81488f8: show columns from `asistencia` like 'semana38' mysql: 0x81488f8: show columns from `asistencia` like 'semana39' mysql: 0x81488f8: show columns from `asistencia` like 'semana40' mysql: 0x81488f8: show columns from `asistencia` like 'semana41' mysql: 0x81488f8: show columns from `asistencia` like 'semana42' mysql: 0x81488f8: show columns from `asistencia` like 'semana43' mysql: 0x81488f8: show columns from `asistencia` like 'semana44' mysql: 0x81488f8: show columns from `asistencia` like 'semana45' mysql: 0x81488f8: show columns from `asistencia` like 'semana46' mysql: 0x81488f8: show columns from `asistencia` like 'semana47' mysql: 0x81488f8: show columns from `asistencia` like 'semana48' mysql: 0x81488f8: show columns from `asistencia` like 'semana49' mysql: 0x81488f8: show columns from `asistencia` like 'semana50' mysql: 0x81488f8: show columns from `asistencia` like 'semana51' mysql: 0x81488f8: show columns from `asistencia` like 'semana52' mysql: 0x81488f8: show columns from `asistencia` like 'periodo' mysql: 0x81488f8: INSERT INTO `asistencia` ( `empleados_numero`, `periodo` ) VALUES ( 1, 2008 ) mysql: 0x81488f8: SELECT COUNT(*) AS nRecord FROM asistencia mysql: 0x81488f8: SELECT FROM asistencia LIMIT 64 mysql: 0x81488f8: SELECT FROM asistencia LIMIT 64 1. After step #1, now the form wont work (it opens, give me the LIMIT 64 error, and close), the console (after a clean up) output is this: Output #2: mysql: 0x8148920: SELECT FROM asistencia LIMIT 64 So, It looks like the form keeps doing the "SELECT FROM asistencia LIMIT 64" statement Ntimes, since the first time did it twice then only do that..... Thanks a lot Nx GT-R -- http://www.cardomain.com/ride/645756 http://nxgtrturbo.googlepages.com/ http://www.fotolog.com/nxgtrturbo/ http://tallerhuertas.googlepages.com/ From gambas at ...1... Fri Jan 25 16:47:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 25 Jan 2008 16:47:06 +0100 Subject: [Gambas-user] Rex2: fields limit? (console outputs) In-Reply-To: <688afe140801250731u5a5a60dbofe892fc4c1f4e7a7@...627...> References: <688afe140801250731u5a5a60dbofe892fc4c1f4e7a7@...627...> Message-ID: <200801251647.06202.gambas@...1...> On vendredi 25 janvier 2008, Nx GT-R BOY wrote: > Ok, wont happen the upper case issue > > My db server is MySQL 5.0.38 > > By the way, in Mexico (at least) in a business environment, theres no 53 > week-year, because you cant have 371 days (53x7), if you start a week at > 2008 but ends at 2009, that would be a 2009-week, since they are going to > pay you at 2009, its like 52-paycheck-days. > > After adding the gb.debug component (I didn't have it enable), You don't have to add this component, it is not related to database. It is only used by the IDE for talking with the internal debugger of a running Gambas program. > I was able > to do what you said, this are the outputs: > > 1. > > First, with a "fresh" database, everything goes perfect, the form > opens and I cant write my values (and they are ok, since I check my > database from console), but my program "crash" > > Output #1 (with a cleared console): > > mysql: 0x81488f8: show columns from `asistencia` like 'empleados_numero' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana1' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana2' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana3' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana4' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana5' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana6' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana7' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana8' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana9' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana10' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana11' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana12' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana13' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana14' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana15' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana16' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana17' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana18' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana19' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana20' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana21' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana22' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana23' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana24' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana25' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana26' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana27' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana28' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana29' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana30' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana31' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana32' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana33' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana34' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana35' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana36' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana37' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana38' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana39' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana40' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana41' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana42' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana43' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana44' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana45' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana46' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana47' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana48' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana49' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana50' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana51' > > mysql: 0x81488f8: show columns from `asistencia` like 'semana52' > > mysql: 0x81488f8: show columns from `asistencia` like 'periodo' > > mysql: 0x81488f8: INSERT INTO `asistencia` ( `empleados_numero`, `periodo` > ) VALUES ( 1, 2008 ) > > mysql: 0x81488f8: SELECT COUNT(*) AS nRecord FROM asistencia > > mysql: 0x81488f8: SELECT FROM asistencia LIMIT 64 It seems that this sql statement is incorrect. There should be something between SELECT and FROM, shouldn't it? > > mysql: 0x81488f8: SELECT FROM asistencia LIMIT 64 > > 1. > > After step #1, now the form wont work (it opens, give me the LIMIT 64 > error, and close), the console (after a clean up) output is this: > > Output #2: > > mysql: 0x8148920: SELECT FROM asistencia LIMIT 64 > > So, It looks like the form keeps doing the "SELECT FROM asistencia LIMIT > 64" statement Ntimes, since the first time did it twice then only do > that..... > > > Thanks a lot > > Nx GT-R Did you add a primary key to your table? This is mandatory in most part of the Gambas database things. As for the 'LIMIT 64': The Data* controls do not get the full result of the SQL requests it sends to the database driver, but only a small part (64) at once. This way, you can put Internet between your application and your database, and things are yet usable! Regards, -- Benoit Minisini From kim.hoskin at ...1073... Fri Jan 25 18:51:48 2008 From: kim.hoskin at ...1073... (Khos) Date: Fri, 25 Jan 2008 09:51:48 -0800 (PST) Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <200801242115.18255.rospolosco@...152...> References: <14931902.post@...1379...> <14981935.post@...1379...> <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> <14983556.post@...1379...> <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> <200801201939.59120.gambas@...1...> <14985624.post@...1379...> <200801202057.22187.gambas@...1...> <15048795.post@...1379...> <200801232355.57774.rospolosco@...152...> <15072507.post@...1379...> <200801242115.18255.rospolosco@...152...> Message-ID: <15093258.post@...1379...> Hi, Where could I find the project, is it on http://freshmeat.net/projects/wmctrl/ ? Thanks Kim Stefano Palmeri wrote: > > Alle 20:30, gioved? 24 gennaio 2008, Khos ha scritto: >> Thanks Stefano, >> Appreciate your input, I wonder if there is a way to include this wmctrl >> util when I compile my Gambas application? any ideas? >> >> Bye for now, >> Kim > > Look for the project I sent today. You don't need anymore wmctrl. > > Stefano >> >> Stefano Palmeri wrote: >> > Alle 19:43, mercoled? 23 gennaio 2008, Khos ha scritto: >> >> Hi again, >> >> I am still struggling to do this, I have started searching for >> >> shell/terminal commands I could try use because e.g. using shell >> >> xwininfo >> >> will allow me to hover the mouse over a window, then I click and it >> will >> >> give some info of that window I clicked on...but how can I do this >> >> without >> >> having to click on the window? I just want to be able to hover over >> any >> >> window and it should give me the windows info (size, is it he active >> win >> >> etc etc). Any ideas? desktop,find won't so this I think.. could you >> lok >> >> into this for me and provide some guidance? >> >> >> >> Thanks >> >> Kim >> > >> > Hi, Kim. >> > >> > All you need is this little utility: >> > >> > http://freshmeat.net/projects/wmctrl/ >> > >> > after compiling and installing, simply open a lot of windows >> > and the run >> > >> > wmctrl -l >> > >> > it will list all windows on your desktop. The little program has a lot >> > of options that will help you. See man page or "wmctrl --help" >> > >> > Regards, >> > >> > Stefano >> > >> >> Benoit Minisini wrote: >> >> > On dimanche 20 janvier 2008, Khos wrote: >> >> >> Thanks Jose and Oh master of Gambas :) >> >> >> >> >> >> I will have a look at Jose's info but Benoit.. I have tried to use >> >> >> Desktop.Find() but the documentation was not so understandable for >> >> >> me. It would seem like a much simpler way with this. Does this >> >> >> function >> >> >> >> get >> >> >> >> >> all the windows titles and put it into an array? if so how would >> you >> >> >> know which >> >> >> one is the active window? there are no sample codes on how to use >> >> >> this function, unless you could point to some, I would appreciate >> >> >> your efforts very much :) >> >> >> >> >> >> Many thanks for the help so far folks! >> >> >> Kind regards >> >> >> Kim >> >> > >> >> > I don't know if it is possible to know the active window with X >> >> > Window. Maybe >> >> > the desktop manager stores a property about it in the root window? >> >> > >> >> > -- >> >> > Benoit Minisini >> >> >> >> >> ------------------------------------------------------------------------ >> >>- >> >> >> >> > This SF.net email is sponsored by: Microsoft >> >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Microsoft >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p15093258.html Sent from the gambas-user mailing list archive at Nabble.com. From kim.hoskin at ...1073... Fri Jan 25 18:54:52 2008 From: kim.hoskin at ...1073... (Khos) Date: Fri, 25 Jan 2008 09:54:52 -0800 (PST) Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 de In-Reply-To: References: <14931902.post@...1379...> <14981935.post@...1379...> <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> <14983556.post@...1379...> <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> <200801201939.59120.gambas@...1...> <14985624.post@...1379...> <200801202057.22187.gambas@...1...> <15048795.post@...1379...> <200801231949.14683.gambas@...1...> <15072518.post@...1379...> Message-ID: <15093309.post@...1379...> Hi Jaap, That works :), one little remaining thing would be that when you use the xwininfo command it wants you to click on a window...then it gives you the info. Do you know if there might be a way to automatically get the info from the command as soon as the mouse hovers over the window (so I don't have to click it).. that would solve all my probs :) , hope you wouldn't mind having another look. Thank you kindly Kim Jaap Cramer wrote: > > > Hi Kim > > If you want to use xwininfo (and any other program for that matter), you > can with gambas. use SHELL > > DIM s AS String > SHELL "xwininfo" TO s > message(s) > > These three lines store the consloe output to variable s. I chose to > output S in a message. You can ofcoarse change that, and get your needed > information out of s by the usual stringcommands > > goodluck! > > Jaap > > > ---------------------------------------- >> Date: Thu, 24 Jan 2008 11:42:11 -0800 >> From: kim.hoskin at ...1073... >> To: gambas-user at lists.sourceforge.net >> Subject: Re: [Gambas-user] New to Gambas - coding question how to find >> the active window on an Ubuntu 7.10 desktop >> >> >> Thanks Benoit, >> >> Pity you won't do it now :) , how can I persuade you to do it faster? I >> have >> an idea but cannot seem to do it with gambas. any ideas how I can use >> xwininfo in gambas and extract or collect the information that this >> xwinutil >> util displays? does the util write info to a text file maybe to the >> clipboard? there must be a way of getting the active window info from X >> or >> xwininfo through gambas currently.. can you think of a low-level X11 >> libraries call/command that I can use with Shell in Gambas to do what I >> want? if so I would really be thankful :) >> >> or how could I install the wmctrl util Stefano was advising of and >> package >> it together with my application so when people install it installs both >> programs? is that possible? >> >> Thanks >> Kim >> >> >> Benoit Minisini wrote: >>> >>> On mercredi 23 janvier 2008, Khos wrote: >>>> Hi again, >>>> I am still struggling to do this, I have started searching for >>>> shell/terminal commands I could try use because e.g. using shell >>>> xwininfo >>>> will allow me to hover the mouse over a window, then I click and it >>>> will >>>> give some info of that window I clicked on...but how can I do this >>>> without >>>> having to click on the window? I just want to be able to hover over any >>>> window and it should give me the windows info (size, is it he active >>>> win >>>> etc etc). Any ideas? desktop,find won't so this I think.. could you lok >>>> into this for me and provide some guidance? >>>> >>>> Thanks >>>> Kim >>>> >>> >>> This is not possible directly in Gambas. Having information on top-level >>> windows is done with low-level X11 libraries call and with the NET >>> protocol >>> as specified on freedesktop.org web site. >>> >>> xwininfo will gives you all X11 information about a specified window, >>> but >>> you >>> won't get the information of the NET protocol. >>> >>> I plan to implement the NET protocol in a component by using the >>> corresponding >>> class of the KDE libraries. This component will depend on QT, and will >>> allow >>> you to get a lot of information from the window manager. But I won't do >>> it >>> now! >>> >>> Regards, >>> >>> -- >>> Benoit Minisini >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p15072518.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > _________________________________________________________________ > Nieuw: Windows Live Messenger 2008! Gratis downloaden > http://get.live.com/messenger > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p15093309.html Sent from the gambas-user mailing list archive at Nabble.com. From rospolosco at ...152... Fri Jan 25 19:15:35 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 25 Jan 2008 19:15:35 +0100 Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <15093258.post@...1379...> References: <14931902.post@...1379...> <200801242115.18255.rospolosco@...152...> <15093258.post@...1379...> Message-ID: <200801251915.35394.rospolosco@...152...> Alle 18:51, venerd? 25 gennaio 2008, Khos ha scritto: > Hi, > > Where could I find the project, is it on > http://freshmeat.net/projects/wmctrl/ ? > Thanks > Kim It's the attached file. It's a Gambas project. Stefano > > Stefano Palmeri wrote: > > Alle 20:30, gioved? 24 gennaio 2008, Khos ha scritto: > >> Thanks Stefano, > >> Appreciate your input, I wonder if there is a way to include this wmctrl > >> util when I compile my Gambas application? any ideas? > >> > >> Bye for now, > >> Kim > > > > Look for the project I sent today. You don't need anymore wmctrl. > > > > Stefano > > > >> Stefano Palmeri wrote: > >> > Alle 19:43, mercoled? 23 gennaio 2008, Khos ha scritto: > >> >> Hi again, > >> >> I am still struggling to do this, I have started searching for > >> >> shell/terminal commands I could try use because e.g. using shell > >> >> xwininfo > >> >> will allow me to hover the mouse over a window, then I click and it > >> > >> will > >> > >> >> give some info of that window I clicked on...but how can I do this > >> >> without > >> >> having to click on the window? I just want to be able to hover over > >> > >> any > >> > >> >> window and it should give me the windows info (size, is it he active > >> > >> win > >> > >> >> etc etc). Any ideas? desktop,find won't so this I think.. could you > >> > >> lok > >> > >> >> into this for me and provide some guidance? > >> >> > >> >> Thanks > >> >> Kim > >> > > >> > Hi, Kim. > >> > > >> > All you need is this little utility: > >> > > >> > http://freshmeat.net/projects/wmctrl/ > >> > > >> > after compiling and installing, simply open a lot of windows > >> > and the run > >> > > >> > wmctrl -l > >> > > >> > it will list all windows on your desktop. The little program has a lot > >> > of options that will help you. See man page or "wmctrl --help" > >> > > >> > Regards, > >> > > >> > Stefano > >> > > >> >> Benoit Minisini wrote: > >> >> > On dimanche 20 janvier 2008, Khos wrote: > >> >> >> Thanks Jose and Oh master of Gambas :) > >> >> >> > >> >> >> I will have a look at Jose's info but Benoit.. I have tried to use > >> >> >> Desktop.Find() but the documentation was not so understandable for > >> >> >> me. It would seem like a much simpler way with this. Does this > >> >> >> function > >> >> > >> >> get > >> >> > >> >> >> all the windows titles and put it into an array? if so how would > >> > >> you > >> > >> >> >> know which > >> >> >> one is the active window? there are no sample codes on how to use > >> >> >> this function, unless you could point to some, I would appreciate > >> >> >> your efforts very much :) > >> >> >> > >> >> >> Many thanks for the help so far folks! > >> >> >> Kind regards > >> >> >> Kim > >> >> > > >> >> > I don't know if it is possible to know the active window with X > >> >> > Window. Maybe > >> >> > the desktop manager stores a property about it in the root window? > >> >> > > >> >> > -- > >> >> > Benoit Minisini > >> > >> ------------------------------------------------------------------------ > >> > >> >>- > >> >> > >> >> > This SF.net email is sponsored by: Microsoft > >> >> > Defy all challenges. Microsoft(R) Visual Studio 2008. > >> >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> >> > _______________________________________________ > >> >> > Gambas-user mailing list > >> >> > Gambas-user at lists.sourceforge.net > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> ------------------------------------------------------------------------ > >>- > >> > >> > This SF.net email is sponsored by: Microsoft > >> > Defy all challenges. Microsoft(R) Visual Studio 2008. > >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: activewindow-0.0.6.tar.gz Type: application/x-tgz Size: 8158 bytes Desc: not available URL: From nxgtrturbo at ...626... Fri Jan 25 19:52:45 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Fri, 25 Jan 2008 10:52:45 -0800 Subject: [Gambas-user] Re(x3): fields limit? (primary key) Message-ID: <688afe140801251052g3e93ce5cyb5f5ea03a5373a0b@...627...> >It seems that this sql statement is incorrect. There should be something >between SELECT and FROM, shouldn't it? Yes, of course, there's a problem at SELECT FROM asistencia LIMIT 64. (Any known reason?) >Did you add a primary key to your table? This is mandatory in most part of the >Gambas database things. Yes, of course, I have added a primary key (I designed everything with DBDesigner4.x, that helps a lot), but the primary key is FOREIGN My table structure is: CREATE TABLE asistencia ( empleados_numero INTEGER UNSIGNED NOT NULL, semana1 INTEGER UNSIGNED NULL DEFAULT '0', ... semana52 INTEGER UNSIGNED NULL DEFAULT '0', periodo YEAR NULL, INDEX asistencia_FKIndex1(empleados_numero), FOREIGN KEY(empleados_numero) REFERENCES empleados(numero) ON DELETE NO ACTION ON UPDATE NO ACTION ); But thinking about the primary key, this is the only problem (this kind) I have had, and this is the only table that hasn't (own) primary key (only a foreign one) But technically speaking is there something wrong with a table with only foreign key? Must I add "something" just to have a (not foreign) primary key? (Should try, I loose nothing) By the way, a (own) primary key is mandatory IN MOST PARTS or IN ALL PARTS? Really, thanks a lot. -- Nx GT-R From gambas at ...1... Fri Jan 25 20:04:15 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 25 Jan 2008 20:04:15 +0100 Subject: [Gambas-user] Re(x3): fields limit? (primary key) In-Reply-To: <688afe140801251052g3e93ce5cyb5f5ea03a5373a0b@...627...> References: <688afe140801251052g3e93ce5cyb5f5ea03a5373a0b@...627...> Message-ID: <200801252004.15511.gambas@...1...> On vendredi 25 janvier 2008, Nx GT-R BOY wrote: > >It seems that this sql statement is incorrect. There should be something > >between SELECT and FROM, shouldn't it? > > Yes, of course, there's a problem at SELECT FROM asistencia > LIMIT 64. (Any known reason?) > > >Did you add a primary key to your table? This is mandatory in most part of > > the > > >Gambas database things. > > Yes, of course, I have added a primary key (I designed everything with > DBDesigner4.x, that helps a lot), but the primary key is FOREIGN > > My table structure is: > CREATE TABLE asistencia ( > empleados_numero INTEGER UNSIGNED NOT NULL, > semana1 INTEGER UNSIGNED NULL DEFAULT '0', > ... > > semana52 INTEGER UNSIGNED NULL DEFAULT '0', > periodo YEAR NULL, > INDEX asistencia_FKIndex1(empleados_numero), > FOREIGN KEY(empleados_numero) > REFERENCES empleados(numero) > ON DELETE NO ACTION > ON UPDATE NO ACTION > ); > > But thinking about the primary key, this is the only problem (this kind) I > have had, and this is the only table that hasn't (own) primary key (only a > foreign one) > > But technically speaking is there something wrong with a table with only > foreign key? > > Must I add "something" just to have a (not foreign) primary key? (Should > try, I loose nothing) > > By the way, a (own) primary key is mandatory IN MOST PARTS or IN ALL PARTS? > > Really, thanks a lot. Yeah. Gambas database component needs a primary key, especially the gb.db.form component. By "in most parts" I mean that some method can work without primary keys (Exec for example), but Edit() needs it. To be sure there won't be any problem, use the database manager to create your tables. Regards, -- Benoit Minisini From kim.hoskin at ...1073... Fri Jan 25 21:16:16 2008 From: kim.hoskin at ...1073... (Khos) Date: Fri, 25 Jan 2008 12:16:16 -0800 (PST) Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <200801251915.35394.rospolosco@...152...> References: <14931902.post@...1379...> <14981935.post@...1379...> <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> <14983556.post@...1379...> <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> <200801201939.59120.gambas@...1...> <14985624.post@...1379...> <200801202057.22187.gambas@...1...> <15048795.post@...1379...> <200801232355.57774.rospolosco@...152...> <15072507.post@...1379...> <200801242115.18255.rospolosco@...152...> <15093258.post@...1379...> <200801251915.35394.rospolosco@...152...> Message-ID: <15095134.post@...1379...> Hi there, thanks I see the link, download it but cannot open it.. activewindow-0.0.6.tar.gz is not being recognised? In the meantime I have found a command that might just do what I need: sleep 5; xprop -id `xprop -root |nawk '/_NET_ACTIVE_WINDOW/ {print $5; exit;}'` |nawk -F = '/WM_CLASS/ {N=split($2, A, ", "); gsub(/\"/,"",A[2]); print A[2]; exit;}' I can use this with the shell command.. and I will need to change WM_CLASS to WM_ICON_NAME and change the splitting of the result.. what do you think? or can you send me your file in another way? Thank you so much! Kim Stefano Palmeri wrote: > > Alle 18:51, venerd? 25 gennaio 2008, Khos ha scritto: >> Hi, >> >> Where could I find the project, is it on >> http://freshmeat.net/projects/wmctrl/ ? >> Thanks >> Kim > > It's the attached file. It's a Gambas project. > > Stefano > > > > >> >> Stefano Palmeri wrote: >> > Alle 20:30, gioved? 24 gennaio 2008, Khos ha scritto: >> >> Thanks Stefano, >> >> Appreciate your input, I wonder if there is a way to include this >> wmctrl >> >> util when I compile my Gambas application? any ideas? >> >> >> >> Bye for now, >> >> Kim >> > >> > Look for the project I sent today. You don't need anymore wmctrl. >> > >> > Stefano >> > >> >> Stefano Palmeri wrote: >> >> > Alle 19:43, mercoled? 23 gennaio 2008, Khos ha scritto: >> >> >> Hi again, >> >> >> I am still struggling to do this, I have started searching for >> >> >> shell/terminal commands I could try use because e.g. using shell >> >> >> xwininfo >> >> >> will allow me to hover the mouse over a window, then I click and it >> >> >> >> will >> >> >> >> >> give some info of that window I clicked on...but how can I do this >> >> >> without >> >> >> having to click on the window? I just want to be able to hover over >> >> >> >> any >> >> >> >> >> window and it should give me the windows info (size, is it he >> active >> >> >> >> win >> >> >> >> >> etc etc). Any ideas? desktop,find won't so this I think.. could you >> >> >> >> lok >> >> >> >> >> into this for me and provide some guidance? >> >> >> >> >> >> Thanks >> >> >> Kim >> >> > >> >> > Hi, Kim. >> >> > >> >> > All you need is this little utility: >> >> > >> >> > http://freshmeat.net/projects/wmctrl/ >> >> > >> >> > after compiling and installing, simply open a lot of windows >> >> > and the run >> >> > >> >> > wmctrl -l >> >> > >> >> > it will list all windows on your desktop. The little program has a >> lot >> >> > of options that will help you. See man page or "wmctrl --help" >> >> > >> >> > Regards, >> >> > >> >> > Stefano >> >> > >> >> >> Benoit Minisini wrote: >> >> >> > On dimanche 20 janvier 2008, Khos wrote: >> >> >> >> Thanks Jose and Oh master of Gambas :) >> >> >> >> >> >> >> >> I will have a look at Jose's info but Benoit.. I have tried to >> use >> >> >> >> Desktop.Find() but the documentation was not so understandable >> for >> >> >> >> me. It would seem like a much simpler way with this. Does this >> >> >> >> function >> >> >> >> >> >> get >> >> >> >> >> >> >> all the windows titles and put it into an array? if so how would >> >> >> >> you >> >> >> >> >> >> know which >> >> >> >> one is the active window? there are no sample codes on how to >> use >> >> >> >> this function, unless you could point to some, I would >> appreciate >> >> >> >> your efforts very much :) >> >> >> >> >> >> >> >> Many thanks for the help so far folks! >> >> >> >> Kind regards >> >> >> >> Kim >> >> >> > >> >> >> > I don't know if it is possible to know the active window with X >> >> >> > Window. Maybe >> >> >> > the desktop manager stores a property about it in the root >> window? >> >> >> > >> >> >> > -- >> >> >> > Benoit Minisini >> >> >> >> >> ------------------------------------------------------------------------ >> >> >> >> >>- >> >> >> >> >> >> > This SF.net email is sponsored by: Microsoft >> >> >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> >> >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> >> >> > _______________________________________________ >> >> >> > Gambas-user mailing list >> >> >> > Gambas-user at lists.sourceforge.net >> >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> ------------------------------------------------------------------------ >> >>- >> >> >> >> > This SF.net email is sponsored by: Microsoft >> >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Microsoft >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p15095134.html Sent from the gambas-user mailing list archive at Nabble.com. From kim.hoskin at ...1073... Fri Jan 25 21:19:11 2008 From: kim.hoskin at ...1073... (Khos) Date: Fri, 25 Jan 2008 12:19:11 -0800 (PST) Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop In-Reply-To: <200801231949.14683.gambas@...1...> References: <14931902.post@...1379...> <14981935.post@...1379...> <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> <14983556.post@...1379...> <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> <200801201939.59120.gambas@...1...> <14985624.post@...1379...> <200801202057.22187.gambas@...1...> <15048795.post@...1379...> <200801231949.14683.gambas@...1...> Message-ID: <15095137.post@...1379...> Hi there, In the meantime I have found a command that might just do what I need: sleep 5; xprop -id `xprop -root |nawk '/_NET_ACTIVE_WINDOW/ {print $5; exit;}'` |nawk -F = '/WM_CLASS/ {N=split($2, A, ", "); gsub(/\"/,"",A[2]); print A[2]; exit;}' I can use this with the shell command.. and I will need to change WM_CLASS to WM_ICON_NAME and change the splitting of the result.. what do you think? can you maybe try see if you can change this command a bit..looks so complicated. in the terminal it works but in gambas it does not show the result in a textbox..why is that? Thank you so much! Kim Benoit Minisini wrote: > > On mercredi 23 janvier 2008, Khos wrote: >> Hi again, >> I am still struggling to do this, I have started searching for >> shell/terminal commands I could try use because e.g. using shell >> xwininfo >> will allow me to hover the mouse over a window, then I click and it will >> give some info of that window I clicked on...but how can I do this >> without >> having to click on the window? I just want to be able to hover over any >> window and it should give me the windows info (size, is it he active win >> etc etc). Any ideas? desktop,find won't so this I think.. could you lok >> into this for me and provide some guidance? >> >> Thanks >> Kim >> > > This is not possible directly in Gambas. Having information on top-level > windows is done with low-level X11 libraries call and with the NET > protocol > as specified on freedesktop.org web site. > > xwininfo will gives you all X11 information about a specified window, but > you > won't get the information of the NET protocol. > > I plan to implement the NET protocol in a component by using the > corresponding > class of the KDE libraries. This component will depend on QT, and will > allow > you to get a lot of information from the window manager. But I won't do it > now! > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p15095137.html Sent from the gambas-user mailing list archive at Nabble.com. From kim.hoskin at ...1073... Fri Jan 25 21:19:59 2008 From: kim.hoskin at ...1073... (Khos) Date: Fri, 25 Jan 2008 12:19:59 -0800 (PST) Subject: [Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 de In-Reply-To: References: <14931902.post@...1379...> <14981935.post@...1379...> <8eb28a500801200629t577db802s22cf30dd9b9dfeed@...627...> <14983556.post@...1379...> <8eb28a500801201032s1fb39b5ev1f465cc5e43fd797@...627...> <200801201939.59120.gambas@...1...> <14985624.post@...1379...> <200801202057.22187.gambas@...1...> <15048795.post@...1379...> <200801231949.14683.gambas@...1...> <15072518.post@...1379...> Message-ID: <15095138.post@...1379...> Hi there, In the meantime I have found a command that might just do what I need: sleep 5; xprop -id `xprop -root |nawk '/_NET_ACTIVE_WINDOW/ {print $5; exit;}'` |nawk -F = '/WM_CLASS/ {N=split($2, A, ", "); gsub(/\"/,"",A[2]); print A[2]; exit;}' I can use this with the shell command.. and I will need to change WM_CLASS to WM_ICON_NAME and change the splitting of the result.. what do you think? can you maybe try see if you can change this command a bit..looks so complicated. in the terminal it works but in gambas it does not show the result in a textbox..why is that? Thank you so much! Kim Jaap Cramer wrote: > > > Hi Kim > > If you want to use xwininfo (and any other program for that matter), you > can with gambas. use SHELL > > DIM s AS String > SHELL "xwininfo" TO s > message(s) > > These three lines store the consloe output to variable s. I chose to > output S in a message. You can ofcoarse change that, and get your needed > information out of s by the usual stringcommands > > goodluck! > > Jaap > > > ---------------------------------------- >> Date: Thu, 24 Jan 2008 11:42:11 -0800 >> From: kim.hoskin at ...1073... >> To: gambas-user at lists.sourceforge.net >> Subject: Re: [Gambas-user] New to Gambas - coding question how to find >> the active window on an Ubuntu 7.10 desktop >> >> >> Thanks Benoit, >> >> Pity you won't do it now :) , how can I persuade you to do it faster? I >> have >> an idea but cannot seem to do it with gambas. any ideas how I can use >> xwininfo in gambas and extract or collect the information that this >> xwinutil >> util displays? does the util write info to a text file maybe to the >> clipboard? there must be a way of getting the active window info from X >> or >> xwininfo through gambas currently.. can you think of a low-level X11 >> libraries call/command that I can use with Shell in Gambas to do what I >> want? if so I would really be thankful :) >> >> or how could I install the wmctrl util Stefano was advising of and >> package >> it together with my application so when people install it installs both >> programs? is that possible? >> >> Thanks >> Kim >> >> >> Benoit Minisini wrote: >>> >>> On mercredi 23 janvier 2008, Khos wrote: >>>> Hi again, >>>> I am still struggling to do this, I have started searching for >>>> shell/terminal commands I could try use because e.g. using shell >>>> xwininfo >>>> will allow me to hover the mouse over a window, then I click and it >>>> will >>>> give some info of that window I clicked on...but how can I do this >>>> without >>>> having to click on the window? I just want to be able to hover over any >>>> window and it should give me the windows info (size, is it he active >>>> win >>>> etc etc). Any ideas? desktop,find won't so this I think.. could you lok >>>> into this for me and provide some guidance? >>>> >>>> Thanks >>>> Kim >>>> >>> >>> This is not possible directly in Gambas. Having information on top-level >>> windows is done with low-level X11 libraries call and with the NET >>> protocol >>> as specified on freedesktop.org web site. >>> >>> xwininfo will gives you all X11 information about a specified window, >>> but >>> you >>> won't get the information of the NET protocol. >>> >>> I plan to implement the NET protocol in a component by using the >>> corresponding >>> class of the KDE libraries. This component will depend on QT, and will >>> allow >>> you to get a lot of information from the window manager. But I won't do >>> it >>> now! >>> >>> Regards, >>> >>> -- >>> Benoit Minisini >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p15072518.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > _________________________________________________________________ > Nieuw: Windows Live Messenger 2008! Gratis downloaden > http://get.live.com/messenger > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p15095138.html Sent from the gambas-user mailing list archive at Nabble.com. From leonardo at ...1237... Fri Jan 25 21:33:40 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 25 Jan 2008 21:33:40 +0100 Subject: [Gambas-user] Problems with TrayIcon In-Reply-To: <47965D3C.9030105@...1237...> References: <20080122083452.j6pqg3utgk8k0s4s@...1848...> <200801221746.16626.gambas@...1...> <47965D3C.9030105@...1237...> Message-ID: <479A47A4.7000108@...1237...> Leonardo Miliani ha scritto: > Benoit Minisini ha scritto: >> On mardi 22 janvier 2008, Leonardo Miliani wrote: >>> Some time ago I developed a little application that docked an icon in >>> the systray and I called a popup menu just by clicking on it. >>> I developed that app when I used SUSE with KDE. >>> >>> Now that I switched to Ubuntu/Gnome I'm having a problem with that app. >>> >>> When I run my app, I don't get the icon in the systray: I just get a >>> vertical line of just 1 pixel width! >>> My app uses gt.qt component: if I try to use the gb.gtk or the gb.gui >>> I get my app freezed. >>> >>> Ciao. >>> Leonardo. >>> >> Please send the project on the mailing-list if it is small. This way other >> Gnome users could tell me if they have the same behaviour. >> >> Regards, >> > > The applications is downloadable from here: > http://www.gambas-it.org/gmbs/modules/PDdownloads/singlefile.php?cid=1&lid=5 > Did anyone try my app on Gnome desktop? -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From epileg at ...626... Fri Jan 25 23:05:38 2008 From: epileg at ...626... (=?ISO-8859-1?Q?Ep=EDleg?=) Date: Fri, 25 Jan 2008 23:05:38 +0100 Subject: [Gambas-user] Problems with TrayIcon In-Reply-To: <200801221746.16626.gambas@...1...> References: <20080122083452.j6pqg3utgk8k0s4s@...1848...> <200801221746.16626.gambas@...1...> Message-ID: <479A5D32.30002@...626...> En/na Benoit Minisini ha escrit: > On mardi 22 janvier 2008, Leonardo Miliani wrote: >> Some time ago I developed a little application that docked an icon in >> the systray and I called a popup menu just by clicking on it. >> I developed that app when I used SUSE with KDE. >> >> Now that I switched to Ubuntu/Gnome I'm having a problem with that app. >> >> When I run my app, I don't get the icon in the systray: I just get a >> vertical line of just 1 pixel width! >> My app uses gt.qt component: if I try to use the gb.gtk or the gb.gui >> I get my app freezed. >> >> Ciao. >> Leonardo. >> > > Please send the project on the mailing-list if it is small. This way other > Gnome users could tell me if they have the same behaviour. > > Regards, > Same behavior in my Ubuntu 7.10 with Gnome. Regards, Ep?leg. From richard.j.walker at ...247... Sat Jan 26 00:30:00 2008 From: richard.j.walker at ...247... (Richard) Date: Fri, 25 Jan 2008 23:30:00 +0000 Subject: [Gambas-user] QT DateChooser displays blank calendar In-Reply-To: <200801252004.15511.gambas@...1...> References: <688afe140801251052g3e93ce5cyb5f5ea03a5373a0b@...627...> <200801252004.15511.gambas@...1...> Message-ID: <200801252330.00862.> I am using 2.0.0 freshly compiled. The only "missing" components are Firebird, MySQL, Postgres and qte. I have an old project which I have updated successfully(?) and it uses a DateChooser. The DateChooser displays all of its buttons and month/year selectors but does not display anything in the monthly calendar part of the widget. Otherwise it is fine:~) In a new test project the behaviour is the same but when I select GTK instead of QT components the DateSelector is correct. I tried svn Revision 1038, but it wouldn't link properly. Looks like there is a library missing on my system, though I do have the headers. Could be named libffi as the undefined symbols are all declared in ffi.h, but I am just guessing. Is there a simple fix for the DateChooser in v2.0.0? thanks Richard From gambas at ...1... Sat Jan 26 00:37:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 26 Jan 2008 00:37:16 +0100 Subject: [Gambas-user] QT DateChooser displays blank calendar In-Reply-To: <200801252330.00862.> References: <688afe140801251052g3e93ce5cyb5f5ea03a5373a0b@...627...> <200801252004.15511.gambas@...1...> <200801252330.00862.> Message-ID: <200801260037.16500.gambas@...1...> On samedi 26 janvier 2008, Richard wrote: > I am using 2.0.0 freshly compiled. The only "missing" components are > Firebird, MySQL, Postgres and qte. > > I have an old project which I have updated successfully(?) and it uses a > DateChooser. The DateChooser displays all of its buttons and month/year > selectors but does not display anything in the monthly calendar part of the > widget. Otherwise it is fine:~) > > In a new test project the behaviour is the same but when I select GTK > instead of QT components the DateSelector is correct. > > I tried svn Revision 1038, but it wouldn't link properly. Looks like there > is a library missing on my system, though I do have the headers. Could be > named libffi as the undefined symbols are all declared in ffi.h, but I am > just guessing. > > Is there a simple fix for the DateChooser in v2.0.0? > > thanks > > Richard > Can you try with different color themes? -- Benoit Minisini From richard.j.walker at ...247... Sat Jan 26 02:03:20 2008 From: richard.j.walker at ...247... (Richard) Date: Sat, 26 Jan 2008 01:03:20 +0000 Subject: [Gambas-user] QT DateChooser displays blank calendar Message-ID: <200801260103.21047.richard.j.walker@...247...> I have found out a bit more about the DateChooser problem by loading the DateChooser and FCalendar sources into the IDE (suitably renamed to avoid collision with the "built in" ones under investigation). When the drawing area used to display the month calendar has a border setting of "none" or "plain" then the calendar is correctly drawn. When the border setting is "etched", "raised" or "sunken" then the drawing area, as seen in the IDE while editing FCalendar, changes from white to black and, when run, it displays a blank calendar. Does this mean the problem actually lies in the QT DrawingArea widget? Regards, Richard From richard.j.walker at ...247... Sat Jan 26 02:16:27 2008 From: richard.j.walker at ...247... (Richard) Date: Sat, 26 Jan 2008 01:16:27 +0000 Subject: [Gambas-user] QT DateChooser displays blank calendar In-Reply-To: <200801260103.21047.richard.j.walker@...247...> References: <200801260103.21047.richard.j.walker@...247...> Message-ID: <200801260116.27671.richard.j.walker@...247...> Beno?t, I didn't see your reply until now. Are you suggesting I make some test changes to my KDE desktop theme or are you referring to a setting in the project or the IDE? regards Richard From gambas.fr at ...626... Sat Jan 26 08:05:11 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 26 Jan 2008 08:05:11 +0100 Subject: [Gambas-user] QT DateChooser displays blank calendar In-Reply-To: <200801260116.27671.richard.j.walker@...247...> References: <200801260103.21047.richard.j.walker@...247...> <200801260116.27671.richard.j.walker@...247...> Message-ID: <200801260805.11840.gambas.fr@...626...> Le Saturday 26 January 2008 02:16:27 Richard, vous avez ?crit?: > Beno?t, I didn't see your reply until now. Are you suggesting I make some > test chages to my KDE desktop theme or are you referring to a setting in > the project or the IDE? > kde desktop theme > regards > > Richard > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From richard.j.walker at ...247... Sat Jan 26 11:39:45 2008 From: richard.j.walker at ...247... (Richard) Date: Sat, 26 Jan 2008 10:39:45 +0000 Subject: [Gambas-user] QT DateChooser displays blank calendar In-Reply-To: <200801260805.11840.gambas.fr@...626...> References: <200801260103.21047.richard.j.walker@...247...> <200801260116.27671.richard.j.walker@...247...> <200801260805.11840.gambas.fr@...626...> Message-ID: <200801261039.45764.richard.j.walker@...247...> On Saturday 26 Jan 2008 07:05, Fabien Bodard wrote: > Le Saturday 26 January 2008 02:16:27 Richard, vous avez ?crit?: > > Beno?t, I didn't see your reply until now. Are you suggesting I make some > > test chages to my KDE desktop theme or are you referring to a setting in > > the project or the IDE? > > kde desktop theme Thanks Fabien, I have just tried KDE Classic and Keramic. I am installing Mandriva One theme now. OK, I have also tried Ia Ora yellow colour scheme and I have switched from Compiz Fusion to Kwin. Nothing changes the display of the calendar part of the DateChooser control. Here is a screenshot of the relevant part of the form. I suppose now would be a good time to thank you, Fabien, for the example Clock on which I based my timer display. regards, Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: snapshotQT.jpg Type: image/jpeg Size: 36748 bytes Desc: not available URL: From kim.hoskin at ...1073... Sat Jan 26 12:11:15 2008 From: kim.hoskin at ...1073... (Kim Hoskin) Date: Sat, 26 Jan 2008 11:11:15 +0000 Subject: [Gambas-user] active window howto and little example program In-Reply-To: <200801241906.58886.rospolosco@...152...> References: <200801241906.58886.rospolosco@...152...> Message-ID: <1201345875.5455.0.camel@...1852...> Hi Stefano, I just saw this, sorry for being so silly previously! I will try this and check it. Thank you very much for your time and help :) Thanks Kim On Thu, 2008-01-24 at 19:06 +0100, Stefano Palmeri wrote: > Hi, all. Hi, Benoit > > We discussed about the current active window on desktop > and how to get it. > > I wrote a little project that returns the ID and the title > of the current active window. Also returns all current windows. > The project uses xprop and xwininfo, which should be installed > on any system running the X server. No need for other external programs. > > I tested it under KDE, but should work > under other desktop managers. > Hope this helps Kim and other users. > > Benoit, is it possible to put it under examples, because > many times in the mailing list people asked for a way to get the active > window? > > Best regards, > > Stefano Palmeri > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Jan 26 13:47:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 26 Jan 2008 13:47:44 +0100 Subject: [Gambas-user] QT DateChooser displays blank calendar In-Reply-To: <200801261039.45764.richard.j.walker@...247...> References: <200801260103.21047.richard.j.walker@...247...> <200801260805.11840.gambas.fr@...626...> <200801261039.45764.richard.j.walker@...247...> Message-ID: <200801261347.44161.gambas@...1...> On samedi 26 janvier 2008, Richard wrote: > On Saturday 26 Jan 2008 07:05, Fabien Bodard wrote: > > Le Saturday 26 January 2008 02:16:27 Richard, vous avez ?crit?: > > > Beno?t, I didn't see your reply until now. Are you suggesting I make > > > some test chages to my KDE desktop theme or are you referring to a > > > setting in the project or the IDE? > > > > kde desktop theme > > Thanks Fabien, > I have just tried KDE Classic and Keramic. I am installing Mandriva One > theme now. > > OK, I have also tried Ia Ora yellow colour scheme and I have switched from > Compiz Fusion to Kwin. Nothing changes the display of the calendar part of > the DateChooser control. > > Here is a screenshot of the relevant part of the form. I suppose now would > be a good time to thank you, Fabien, for the example Clock on which I based > my timer display. > > regards, > > Richard I should have fixed this bug in the last revision (1039). It's strange that I don't see it, except when using an Etched border, what I never do of course... Regards, -- Benoit Minisini From gambas at ...1... Sat Jan 26 13:53:40 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 26 Jan 2008 13:53:40 +0100 Subject: [Gambas-user] QT DateChooser displays blank calendar In-Reply-To: <200801261347.44161.gambas@...1...> References: <200801260103.21047.richard.j.walker@...247...> <200801261039.45764.richard.j.walker@...247...> <200801261347.44161.gambas@...1...> Message-ID: <200801261353.40909.gambas@...1...> On samedi 26 janvier 2008, Benoit Minisini wrote: > On samedi 26 janvier 2008, Richard wrote: > > On Saturday 26 Jan 2008 07:05, Fabien Bodard wrote: > > > Le Saturday 26 January 2008 02:16:27 Richard, vous avez ?crit?: > > > > Beno?t, I didn't see your reply until now. Are you suggesting I make > > > > some test chages to my KDE desktop theme or are you referring to a > > > > setting in the project or the IDE? > > > > > > kde desktop theme > > > > Thanks Fabien, > > I have just tried KDE Classic and Keramic. I am installing Mandriva One > > theme now. > > > > OK, I have also tried Ia Ora yellow colour scheme and I have switched > > from Compiz Fusion to Kwin. Nothing changes the display of the calendar > > part of the DateChooser control. > > > > Here is a screenshot of the relevant part of the form. I suppose now > > would be a good time to thank you, Fabien, for the example Clock on which > > I based my timer display. > > > > regards, > > > > Richard > > I should have fixed this bug in the last revision (1039). It's strange that > I don't see it, except when using an Etched border, what I never do of > course... > > Regards, Mmm no, the revision 1040 is better. :-) -- Benoit Minisini From leonardo at ...1237... Sat Jan 26 17:50:12 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 26 Jan 2008 17:50:12 +0100 Subject: [Gambas-user] Problems with TrayIcon In-Reply-To: <479A5D32.30002@...626...> References: <20080122083452.j6pqg3utgk8k0s4s@...1848...> <200801221746.16626.gambas@...1...> <479A5D32.30002@...626...> Message-ID: <479B64C4.7030507@...1237...> Ep?leg ha scritto: > En/na Benoit Minisini ha escrit: >> On mardi 22 janvier 2008, Leonardo Miliani wrote: >>> Some time ago I developed a little application that docked an icon in >>> the systray and I called a popup menu just by clicking on it. >>> I developed that app when I used SUSE with KDE. >>> >>> Now that I switched to Ubuntu/Gnome I'm having a problem with that app. >>> >>> When I run my app, I don't get the icon in the systray: I just get a >>> vertical line of just 1 pixel width! >>> My app uses gt.qt component: if I try to use the gb.gtk or the gb.gui >>> I get my app freezed. >>> >>> Ciao. >>> Leonardo. >>> >> Please send the project on the mailing-list if it is small. This way other >> Gnome users could tell me if they have the same behaviour. >> >> Regards, >> > > Same behavior in my Ubuntu 7.10 with Gnome. > > Regards, > Ep?leg. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I think it is all related to the fact that the gb.gtk component has been developed for a shorter time than the gt.qt and some glitchies have not been solved yet. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From nxgtrturbo at ...626... Sat Jan 26 21:58:32 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Sat, 26 Jan 2008 12:58:32 -0800 Subject: [Gambas-user] DataControl write, but don't read Message-ID: <688afe140801261258m4c6299ffye81c7f9c79fd1882@...627...> Hi, I have a problem with datacontrol component, the problem is I can WRITE to my database (MySQL 5.0.38), but I cant read, I have another datacontrols in the same form and all of them works perfect, but the last ones cant read. When the form is opened all other datacontrols read the value of my database but the last 4, read nothing, I tried, delete them and add new ones, rename them, re-point them (change the field they see), but nothing. I have a 12 tabs container, Don't know if that could affect the results, but I even try to move the last datacontrols to other tab (actually they are at last one), but nothing, the rare part its that they WRITE perfectly to the database, but cant read from it. Is there a limit of the datacontrols for a single form? (I have a total of 61 datacontrols (11x5 + 4 + 2)) Not all the datacontrols are active (I mean in-active: field=), I "point" (change the field property) 4 or 5 per tab (I have a 12 tab container) according a criteria, so even when I have 61 datacontrols, only 54 are active. -- Thanks Nx GT-R From gambas at ...1... Sat Jan 26 22:02:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 26 Jan 2008 22:02:34 +0100 Subject: [Gambas-user] DataControl write, but don't read In-Reply-To: <688afe140801261258m4c6299ffye81c7f9c79fd1882@...627...> References: <688afe140801261258m4c6299ffye81c7f9c79fd1882@...627...> Message-ID: <200801262202.34480.gambas@...1...> On samedi 26 janvier 2008, Nx GT-R BOY wrote: > Hi, I have a problem with datacontrol component, the problem is I can > WRITE to my database (MySQL 5.0.38), but I cant read, I have another > datacontrols in the same form and all of them works perfect, but the last > ones cant read. > > > When the form is opened all other datacontrols read the value of my > database but the last 4, read nothing, I tried, delete them and add new > ones, rename them, re-point them (change the field they see), but nothing. > > I have a 12 tabs container, Don't know if that could affect the results, > but I even try to move the last datacontrols to other tab (actually they > are at last one), but nothing, the rare part its that they WRITE perfectly > to the database, but cant read from it. > > Is there a limit of the datacontrols for a single form? (I have a total of > 61 datacontrols (11x5 + 4 + 2)) > > Not all the datacontrols are active (I mean in-active: field=), I > "point" (change the field property) 4 or 5 per tab (I have a 12 tab > container) according a criteria, so even when I have 61 datacontrols, only > 54 are active. Yes, there is a limit 53 data controls hardcoded in the gb.db.form sources. :-) Seriously, you should send me your full project, with a database I can connect to, explain me which data controls don't work correctly, so that I can trace the component and fix the bug. Regards, -- Benoit Minisini From gambas at ...1... Sat Jan 26 22:03:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 26 Jan 2008 22:03:05 +0100 Subject: [Gambas-user] DataControl write, but don't read In-Reply-To: <200801262202.34480.gambas@...1...> References: <688afe140801261258m4c6299ffye81c7f9c79fd1882@...627...> <200801262202.34480.gambas@...1...> Message-ID: <200801262203.05249.gambas@...1...> On samedi 26 janvier 2008, Benoit Minisini wrote: > On samedi 26 janvier 2008, Nx GT-R BOY wrote: > > Hi, I have a problem with datacontrol component, the problem is I can > > WRITE to my database (MySQL 5.0.38), but I cant read, I have another > > datacontrols in the same form and all of them works perfect, but the last > > ones cant read. > > > > > > When the form is opened all other datacontrols read the value of my > > database but the last 4, read nothing, I tried, delete them and add new > > ones, rename them, re-point them (change the field they see), but > > nothing. > > > > I have a 12 tabs container, Don't know if that could affect the results, > > but I even try to move the last datacontrols to other tab (actually they > > are at last one), but nothing, the rare part its that they WRITE > > perfectly to the database, but cant read from it. > > > > Is there a limit of the datacontrols for a single form? (I have a total > > of 61 datacontrols (11x5 + 4 + 2)) > > > > Not all the datacontrols are active (I mean in-active: field=), > > I "point" (change the field property) 4 or 5 per tab (I have a 12 tab > > container) according a criteria, so even when I have 61 datacontrols, > > only 54 are active. > > Yes, there is a limit 53 data controls hardcoded in the gb.db.form > sources. :-) > > Seriously, you should send me your full project, with a database I can > connect to, explain me which data controls don't work correctly, so that I > can trace the component and fix the bug. > > Regards, Send the data to my private e-mail of course, not to the mailing-list. Regards, -- Benoit Minisini From maillists.gurulounge at ...626... Sun Jan 27 02:06:57 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Sat, 26 Jan 2008 17:06:57 -0800 Subject: [Gambas-user] Close a form Message-ID: <1201396017.5078.5.camel@...1853...> Hello... Been a couple years since I used gambas. Thought I'd give it a try again. I'm trying to close a form. Normally in everything else I do in gambas there's no problem. This time however I have a Main MODULE as a starup class rather than a form. And I open my from FROM the module. I've a hidden menu within my form that acts as a context menu and a "close" menuitem. These work fine but when I click the "Close" option my sub to close the form doesn't work. I've looked in the documentation and the mailing list archives but haven't seen anything relevant. My "close" sub below: PUBLIC SUB pnlClose_Click() PRINT ME.Name; " close" ME.Close() END Terribly complex here. I know the sub is being called per my "debug" statement. Any idea what I'm doing wrong? TIA -- Jeff From rterry at ...1822... Sat Jan 26 22:50:46 2008 From: rterry at ...1822... (richard terry) Date: Sun, 27 Jan 2008 08:50:46 +1100 Subject: [Gambas-user] How to get rid of & from radio button text Message-ID: <200801270850.46360.rterry@...1822...> I've noticed that if you give the radio button a label, when it appears on the screen the first character is underlined. Is there anyway to stop this behaviour? Regards Richard From rterry at ...1822... Sat Jan 26 22:52:49 2008 From: rterry at ...1822... (richard terry) Date: Sun, 27 Jan 2008 08:52:49 +1100 Subject: [Gambas-user] Doc Question: what does 'buffered' mean re file write Message-ID: <200801270852.49935.rterry@...1822...> The docs say: By default, streams are buffered. If you want to have an unbuffered stream, you must use the READ or WRITE keyword explicitely. Can someone explain the implications. Thanks in advance. Richard From rterry at ...1822... Sat Jan 26 23:03:11 2008 From: rterry at ...1822... (richard terry) Date: Sun, 27 Jan 2008 09:03:11 +1100 Subject: [Gambas-user] Instant help in the IDE tools panel Message-ID: <200801270903.11486.rterry@...1822...> Highlighting/clicking on a tool in the tools panel in design mode and hitting help (either F1 or F2) dosn't seem to work. [in fact it sends the key press to the last control hightlighted. Eg if you have just been working on the file tree, move the mouse over and click on a tool in the toolbox, F2 then puts you in file-rename mode back over in the file tree] I may be missing something, but if not, how hard would it be to allow F2 to jump you to the help file for the control you have selected in the toolbox? Regards Richard From rterry at ...1822... Sat Jan 26 22:38:26 2008 From: rterry at ...1822... (richard terry) Date: Sun, 27 Jan 2008 08:38:26 +1100 Subject: [Gambas-user] Is there a status bar control? Message-ID: <200801270838.26495.rterry@...1822...> Does such a thing exist? or does one have to roll-ones-own. Richard. From rterry at ...1822... Sat Jan 26 22:46:38 2008 From: rterry at ...1822... (richard terry) Date: Sun, 27 Jan 2008 08:46:38 +1100 Subject: [Gambas-user] Mystery characters added to start of html file Message-ID: <200801270846.38933.rterry@...1822...> I'm writing my drug browser which consists of a 50MB postgres backend of data and a simple gui to search/manipulate/display the data (see the screen dump). I've written something similar in basic 11 years ago, and a couple of years ago in wxPython, so its only taken a couple of hours to knock up, though I'm still struggling with the gambas syntax (shouldn't be as it is quite simple!!!) The drug product information retreived after quite complex multi-join queries is quite simple - fields such as $Result!composition, $Result!indications etc, and I've chosen to do a string substitute of the fields for a corresponding name in a hmtl template like this:

Composition

%(composition)s
(in my python version this %(composition)s structure meant I could substitute a whole dicitonary into the template in one call, don't know if that is possible in gambas basic so I've just done a section by section substitution. Anyhow, I hence end up with the html document as per the picture which is actually in a textedit control If I save it from the internal string generated (not from the textedit) using this code: DIM hfile AS File DIM sFilename AS String sFilename = "/home/richard/tmp/temp.html" hfile = OPEN sFilename FOR WRITE CREATE WRITE #hfile, st 'st is the html string I've created CLOSE #hfile I end up with a couple of extra bytes at the start of the file which then are displayed at the top if I re-display the file. ?? 1234567.89 In a Germany German locale: Val("1.234.567,89") => 1234567.89 But in a France French locale: Val("1 234 567,89") => 1 The thousands separator in all locales cases are correctly set: $ LANG=en_US.UTF-8 locale -k LC_NUMERIC decimal_point="." thousands_sep="," grouping=3;3 numeric-decimal-point-wc=46 numeric-thousands-sep-wc=44 numeric-codeset="UTF-8" a$ LANG=de_DE.UTF-8 locale -k LC_NUMERIC decimal_point="," thousands_sep="." grouping=3;3 numeric-decimal-point-wc=44 numeric-thousands-sep-wc=46 numeric-codeset="UTF-8" $ LANG=fr_FR.UTF-8 locale -k LC_NUMERIC decimal_point="," thousands_sep=" " grouping=3;3 numeric-decimal-point-wc=44 numeric-thousands-sep-wc=32 numeric-codeset="UTF-8" Thanks, Ep?leg. From maillists.gurulounge at ...626... Sun Jan 27 10:46:00 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Sun, 27 Jan 2008 01:46:00 -0800 Subject: [Gambas-user] Problem with executable Message-ID: <1201427160.10398.5.camel@...1853...> I get the following error when I try to run an executable I created in Gambas2 ERROR: #2: Cannot load class 'Global': Unable to load class file When I run the file as: $ gbx2 /home/jeff/bin/gdesk.gambas I get this error: ERROR: #49: Not a directory: /home/jeff/bin/gdesk.gambas/.project I can get the exec to run when I make an exec in the project directory and run it like so: /usr/bin/gbx2 gdesk.gambas Jeff From maillists.gurulounge at ...626... Sun Jan 27 11:02:50 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Sun, 27 Jan 2008 02:02:50 -0800 Subject: [Gambas-user] Problem with executable In-Reply-To: <1201427160.10398.5.camel@...1853...> References: <1201427160.10398.5.camel@...1853...> Message-ID: <1201428170.10810.1.camel@...1853...> I figured it out. Apparently Gambas2 doesn't like fat32 filesystems. I moved the project to my home folder and recompiled it. Everything works fine. Sorry about the hassle. Jeff On Sun, 2008-01-27 at 01:46 -0800, Jeffrey Cobb wrote: > I get the following error when I try to run an executable I created in > Gambas2 > > ERROR: #2: Cannot load class 'Global': Unable to load class file > > When I run the file as: > $ gbx2 /home/jeff/bin/gdesk.gambas > > I get this error: > > ERROR: #49: Not a directory: /home/jeff/bin/gdesk.gambas/.project > > I can get the exec to run when I make an exec in the project directory > and run it like so: > > /usr/bin/gbx2 gdesk.gambas > > Jeff > From maillists.gurulounge at ...626... Sun Jan 27 11:18:15 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Sun, 27 Jan 2008 02:18:15 -0800 Subject: [Gambas-user] Porting from Gambas1 to Gambas2 Message-ID: <1201429095.11042.4.camel@...1853...> I'm trying to port an old project from Gambas 1 to Gambas 2 and I've hit a snag. The IDE is saying that "procSystem" is an undefined symbol. I don't understand why as it's clearly defined. Here are the relevant parts of the code: ' Gambas class file PRIVATE procSystem AS Process PUBLIC SUB RefreshProperties() SHELL "free" FOR READ AS procSystem object.Attach(procSystem, ME, "procSystem") ProcessWait() ... ... END PUBLIC SUB procSystem_Read() DIM sData AS String DIM intInput AS Integer sData = "" LINE INPUT #procSystem, sData sData = Trim(sData) strExecArray.Add(sData) strExecArray[0] = Str(strExecArray.Count - 1) END PUBLIC SUB procSystem_Kill() procSystem = NULL END PUBLIC SUB ProcessWait() WHILE (procSystem <> NULL) WAIT 0.1 WEND END Any help's appreciated... Jeff From piramix at ...178... Sun Jan 27 12:03:31 2008 From: piramix at ...178... (=?iso-8859-1?B?UGlyYW1peCBUZWNub2xvZ+1hcw==?=) Date: Sun, 27 Jan 2008 06:03:31 -0500 Subject: [Gambas-user] Question about enabling a TextBox Message-ID: <20080127110331.EE0B31CE7A2@...1846...> Good morning people. I've got a little problem and here is it: I've got a Form with 3 TextBoxes on it (DISABLED by default) called BoxOne, BoxTwo and BoxThree. I need to enable or disable then depnding on the code. For that purpose I store the name of each one in a variable called BoxState wich is previously defined as String (obviously here's my mistake). When I try to do BoxState = "BoxOne" BoxState.Enabled = TRUE I got an error. How can I do that? I even tried to define a TextBox during execution and then destroy the control and other steps which I don't remember now but without any success. Help will be appreciated. Greetings. Pablo. -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! From gambas.fr at ...626... Sun Jan 27 12:32:49 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 27 Jan 2008 12:32:49 +0100 Subject: [Gambas-user] Question about enabling a TextBox In-Reply-To: <20080127110331.EE0B31CE7A2@...1846...> References: <20080127110331.EE0B31CE7A2@...1846...> Message-ID: <200801271232.50498.gambas.fr@...626...> On Sunday 27 January 2008 12:03:31 Piramix Tecnolog?as wrote: > Good morning people. I've got a little problem and here is it: > I've got a Form with 3 TextBoxes on it (DISABLED by default) called BoxOne, > BoxTwo and BoxThree. I need to enable or disable then depnding on the code. > For that purpose I store the name of each one in a variable called BoxState > wich is previously defined as String (obviously here's my mistake). When I > try to do > BoxState = "BoxOne" > BoxState.Enabled = TRUE > > I got an error. > How can I do that? > I even tried to define a TextBox during execution and then destroy the > control and other steps which I don't remember now but without any success. > Help will be appreciated. > Greetings. > Pablo. you need to store the object ... not the name ! If you have already named the box in the property windows... yu just have to use the control name ! TextBox1.Enabled = true You var is just a string ... so the error is normal From jredrejo at ...626... Sun Jan 27 13:35:31 2008 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Sun, 27 Jan 2008 13:35:31 +0100 Subject: [Gambas-user] New 64 bits incompatible change for the 2.1 In-Reply-To: <200801250438.02732.gambas@...1...> References: <200801231936.14727.gambas@...1...> <200801232021.46320.gambas@...1...> <8eb28a500801231134t274e9c54r5ce9fe3554d24be9@...627...> <200801250438.02732.gambas@...1...> Message-ID: <8eb28a500801270435x47c60505h5ca9b8c4440e6f3e@...627...> 2008/1/25, Benoit Minisini : > > On mercredi 23 janvier 2008, Jos? Luis Redrejo wrote: > > 2008/1/23, Benoit Minisini : > > > On mercredi 23 janvier 2008, Jos? Luis Redrejo wrote: > > > > 2008/1/23, Benoit Minisini : > > > > > Hi, > > > > > > > > > > Why XWindow use 'long' datatype for their window handle, nobody > > > > > knows. Because > > > > > of that, window handles are 32 bits on 32 bits OS, and 64 bits on > 64 > > > > > > bits > > > > > > > > OS. > > > > > As if we were going to create 2^64 windows or pixmaps... > > > > > > > > > > Well, I had to create a new type of array, Pointer[], and had to > > > > > > modify > > > > > > > > all > > > > > method that deal with window handle: the Control class, the > Embedder > > > > > class, > > > > > the Desktop.Find() method which now returns a Pointer array and > not > > > > > an Integer array anymore, and so on. > > > > > > > > > > The good news: these methods now work indifferently on 32 bits OS > and > > > > > > 64 > > > > > > > > bits > > > > > OS. > > > > > > > > > > The bad news: this change is not compatible with 2.0, as the > > > > > Pointer[] class > > > > > does not exist at all in 2.0. > > > > > > > > > > But I think that a Gambas 2 that works on 64 bits OS is worth this > > > > > > little > > > > > > > > incompatibility. Ahem, no, I don't change my mind... > > > > > > > > > > - > > > > > > > > Well, we all would have prefered avoid this problem, but the 64 bits > > > > are more needed than our preferences. > > > > Anyway, what are your plans for 2.1 release? release it just after > > > > finishing 64 bits work or add more features before doing it? do you > > > > have any roadmap or dates? > > > > Regards. > > > > > > I want to finish the 64 bits work and to be able to create component > > > packages > > > with the IDE. > > > > > > At the moment, I can't really test the 64 bits version. While my new > 64 > > > bits > > > machine is not there (it does not depend on me), I will be able to > think > > > about a release date. > > > > Ok, then I have two questions about the packages for Debian: > > - Taking a look at gambas.sourceforge.net it seems that gambas 1.0 is > not > > maintained anymore, if you confirm me that's true I will ask Debian > archive > > to remove those packages. > > But how will you do if someone needs to run a Gambas 1.0 program? gambas 1.0 will never be removed from the current Debian stable distribution (etch), so anybody using an old 1.0 program could continue using etch forever. For the next Debian stable (lenny) release it would not be available. > - I would like to upload to Debian experimental packages made from the svn > > for the users to test the 64 bits version. As they'll be in the > > experimental repository they can not damage anyone. I have only one > worry > > for this: if I upload packages that can be built in more platforms than > > i386, reverting it to i386 again will have some bureocracy and would > take a > > time. So, as soon as you can assure me that the 64 bits development on > 2.x > > can not step back I will prepare the packages (unless you think I should > > wait a little more for these tests). I don't have a 64 bits machine, so > I > > will depend on other users' tests to know if the packages work. > > > > Regards. > > I don't see what you mean exactly by "the 2.1 cannot step back". I mean that problems implementing 64 bits support would make you give up and stay only with 32 bits in the future. I guess that will not happen, but knowing if you have considered that idea would help . As for the testd, I just need some testing on all Gambas examples to check > that they all work correctly. > > I cannot do that because my 64 bits DELL machine is not there (it can take > 15 > days to arrive yet), and the 64 bits Ubuntu system of Rob Kudla through > ssh > is too slow for X11 program, even with a fast connection. > > I don't know if it is possible to install a NX server on Ubuntu 64 bits. > If > anybody could tell me... > I don't have any 64 bits computer available, so I can not help you with it. That's one of the reasons I want to send 64 bits gambas to Debian experimental: to put it availble to more people who could have such access. Regards. Jos? L. From steven at ...1652... Sun Jan 27 13:56:52 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Sun, 27 Jan 2008 13:56:52 +0100 Subject: [Gambas-user] enumerate forms Message-ID: <200801271356.52404.steven@...1652...> Hi, Is there a way to enumerate all formnames in an apllication ? (Active or not) Thanks, Steven From gambas at ...1... Sun Jan 27 14:02:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 27 Jan 2008 14:02:32 +0100 Subject: [Gambas-user] How to get rid of & from radio button text In-Reply-To: <200801270850.46360.rterry@...1822...> References: <200801270850.46360.rterry@...1822...> Message-ID: <200801271402.32653.gambas@...1...> On samedi 26 janvier 2008, richard terry wrote: > I've noticed that if you give the radio button a label, when it appears on > the screen the first character is underlined. > > Is there anyway to stop this behaviour? > > Regards > > Richard > I think this behaviour comes from your KDE theme, or a for a specific KDE option I am not aware of. Regards, -- Benoit Minisini From gambas at ...1... Sun Jan 27 14:01:59 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 27 Jan 2008 14:01:59 +0100 Subject: [Gambas-user] Mystery characters added to start of html file In-Reply-To: <200801270846.38933.rterry@...1822...> References: <200801270846.38933.rterry@...1822...> Message-ID: <200801271401.59700.gambas@...1...> On samedi 26 janvier 2008, richard terry wrote: > I'm writing my drug browser which consists of a 50MB postgres backend of > data and a simple gui to search/manipulate/display the data (see the screen > dump). I've written something similar in basic 11 years ago, and a couple > of years ago in wxPython, so its only taken a couple of hours to knock up, > though I'm still struggling with the gambas syntax (shouldn't be as it is > quite simple!!!) > > The drug product information retreived after quite complex multi-join > queries is quite simple - fields such as $Result!composition, > $Result!indications etc, and I've chosen to do a string substitute of the > fields for a corresponding name in a hmtl template like this: > >

Composition

> %(composition)s
> > (in my python version this %(composition)s structure meant I could > substitute a whole dicitonary into the template in one call, don't know if > that is possible in gambas basic so I've just done a section by section > substitution. > > Anyhow, I hence end up with the html document as per the picture which is > actually in a textedit control > > If I save it from the internal string generated (not from the textedit) > using this code: > > DIM hfile AS File > DIM sFilename AS String > sFilename = "/home/richard/tmp/temp.html" > hfile = OPEN sFilename FOR WRITE CREATE > WRITE #hfile, st 'st is the html string I've created > CLOSE #hfile > > I end up with a couple of extra bytes at the start of the file which then > are displayed at the top if I re-display the file. > > ?? Transitional//EN"> References: <200801271356.52404.steven@...1652...> <200801271422.58119.steven@...1652...> <200801271430.54882.gambas@...1...> Message-ID: <200801271452.48151.steven@...1652...> Le Sunday 27 January 2008 14:30:54 Benoit Minisini, vous avez ?crit?: > On dimanche 27 janvier 2008, Steven Lobbezoo wrote: > > Le Sunday 27 January 2008 13:56:52 Steven Lobbezoo, vous avez ?crit?: > > > Hi, > > > > > > Is there a way to enumerate all formnames in an apllication ? > > > (Active or not) > > > > > > Thanks, > > > Steven > > > > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Sorry, I forgot : > > I tried Info.Forms, but there is nothing there, just the word Forms > > > > Steven > > Please explain what you want to do exactly. What does the string > "formnames" means for you? I want to put the names of the forms (i.e. "FormClients") as they are shown in the IDE in an array. (And in a listbox) Steven From gambas at ...1... Sun Jan 27 14:56:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 27 Jan 2008 14:56:05 +0100 Subject: [Gambas-user] enumerate forms In-Reply-To: <200801271452.48151.steven@...1652...> References: <200801271356.52404.steven@...1652...> <200801271430.54882.gambas@...1...> <200801271452.48151.steven@...1652...> Message-ID: <200801271456.05753.gambas@...1...> On dimanche 27 janvier 2008, Steven Lobbezoo wrote: > Le Sunday 27 January 2008 14:30:54 Benoit Minisini, vous avez ?crit?: > > On dimanche 27 janvier 2008, Steven Lobbezoo wrote: > > > Le Sunday 27 January 2008 13:56:52 Steven Lobbezoo, vous avez ?crit?: > > > > Hi, > > > > > > > > Is there a way to enumerate all formnames in an apllication ? > > > > (Active or not) > > > > > > > > Thanks, > > > > Steven > > > > > > > > --------------------------------------------------------------------- > > > >-- -- This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > Sorry, I forgot : > > > I tried Info.Forms, but there is nothing there, just the word Forms > > > > > > Steven > > > > Please explain what you want to do exactly. What does the string > > "formnames" means for you? > > I want to put the names of the forms (i.e. "FormClients") as they are shown > in the IDE in an array. (And in a listbox) > > Steven I'm afraid you can't, as this information is not stored at all in the object files, nor in the project configuration file. Regards, -- Benoit Minisini From steven at ...1652... Sun Jan 27 15:04:50 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Sun, 27 Jan 2008 15:04:50 +0100 Subject: [Gambas-user] enumerate forms In-Reply-To: <200801271456.05753.gambas@...1...> References: <200801271356.52404.steven@...1652...> <200801271452.48151.steven@...1652...> <200801271456.05753.gambas@...1...> Message-ID: <200801271504.50365.steven@...1652...> Le Sunday 27 January 2008 14:56:05 Benoit Minisini, vous avez ?crit?: > On dimanche 27 janvier 2008, Steven Lobbezoo wrote: > > Le Sunday 27 January 2008 14:30:54 Benoit Minisini, vous avez ?crit?: > > > On dimanche 27 janvier 2008, Steven Lobbezoo wrote: > > > > Le Sunday 27 January 2008 13:56:52 Steven Lobbezoo, vous avez ?crit?: > > > > > Hi, > > > > > > > > > > Is there a way to enumerate all formnames in an apllication ? > > > > > (Active or not) > > > > > > > > > > Thanks, > > > > > Steven > > > > > > > > > > ------------------------------------------------------------------- > > > > >-- -- -- This SF.net email is sponsored by: Microsoft > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > Sorry, I forgot : > > > > I tried Info.Forms, but there is nothing there, just the word Forms > > > > > > > > Steven > > > > > > Please explain what you want to do exactly. What does the string > > > "formnames" means for you? > > > > I want to put the names of the forms (i.e. "FormClients") as they are > > shown in the IDE in an array. (And in a listbox) > > > > Steven > > I'm afraid you can't, as this information is not stored at all in the > object files, nor in the project configuration file. > > Regards, Ok, pity but thanks anyway, Regards, Steven From gambas at ...1... Sun Jan 27 15:03:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 27 Jan 2008 15:03:56 +0100 Subject: [Gambas-user] Porting from Gambas1 to Gambas2 In-Reply-To: <1201429095.11042.4.camel@...1853...> References: <1201429095.11042.4.camel@...1853...> Message-ID: <200801271503.57076.gambas@...1...> On dimanche 27 janvier 2008, Jeffrey Cobb wrote: > I'm trying to port an old project from Gambas 1 to Gambas 2 and I've hit > a snag. The IDE is saying that "procSystem" is an undefined symbol. I > don't understand why as it's clearly defined. Here are the relevant > parts of the code: > > ' Gambas class file > PRIVATE procSystem AS Process > > PUBLIC SUB RefreshProperties() > SHELL "free" FOR READ AS procSystem > object.Attach(procSystem, ME, "procSystem") > ProcessWait() > ... > ... > END > > PUBLIC SUB procSystem_Read() > DIM sData AS String > DIM intInput AS Integer > sData = "" > LINE INPUT #procSystem, sData > sData = Trim(sData) > strExecArray.Add(sData) > strExecArray[0] = Str(strExecArray.Count - 1) > END > > PUBLIC SUB procSystem_Kill() > procSystem = NULL > END > > PUBLIC SUB ProcessWait() > WHILE (procSystem <> NULL) > WAIT 0.1 > WEND > END > > Any help's appreciated... > Jeff > And more information will be appreciated too! What is the exact error message? On which line? It is not clear if it is an error at compilation or at execution. Anyway, there is a syntax change in process execution. Instead of > SHELL "free" FOR READ AS procSystem > object.Attach(procSystem, ME, "procSystem") You must write: procSystem = SHELL "free" FOR READ AS "procSystem" I think it should fix your erro. Moreover, you can run your process that way: procSystem = SHELL "free" FOR READ AS "procSystem" WAIT And get rid of your ProcessWait() function. Regards, -- Benoit Minisini From rospolosco at ...152... Sun Jan 27 15:14:09 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 27 Jan 2008 15:14:09 +0100 Subject: [Gambas-user] How to get rid of & from radio button text In-Reply-To: <200801271402.32653.gambas@...1...> References: <200801270850.46360.rterry@...1822...> <200801271402.32653.gambas@...1...> Message-ID: <200801271514.09847.rospolosco@...152...> Alle 14:02, domenica 27 gennaio 2008, Benoit Minisini ha scritto: > On samedi 26 janvier 2008, richard terry wrote: > > I've noticed that if you give the radio button a label, when it appears > > on the screen the first character is underlined. > > > > Is there anyway to stop this behaviour? > > > > Regards > > > > Richard > > I think this behaviour comes from your KDE theme, or a for a specific KDE > option I am not aware of. > > Regards, I have the same behaviour with Plastik and QtCurve KDE themes. Richard, if don't need those short keys (Alt+underlined), disable gb.qt.kde in your project components and use gb.qt. Be aware that you will loose KDE dialogs and other things and will have QT dialogs, but no more underlined labels on radiobuttons. It depends on your needs :-) Stefano From rospolosco at ...152... Sun Jan 27 15:36:18 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 27 Jan 2008 15:36:18 +0100 Subject: [Gambas-user] enumerate forms In-Reply-To: <200801271504.50365.steven@...1652...> References: <200801271356.52404.steven@...1652...> <200801271456.05753.gambas@...1...> <200801271504.50365.steven@...1652...> Message-ID: <200801271536.18728.rospolosco@...152...> Alle 15:04, domenica 27 gennaio 2008, Steven Lobbezoo ha scritto: > Le Sunday 27 January 2008 14:56:05 Benoit Minisini, vous avez ?crit?: > > On dimanche 27 janvier 2008, Steven Lobbezoo wrote: > > > Le Sunday 27 January 2008 14:30:54 Benoit Minisini, vous avez ?crit?: > > > > On dimanche 27 janvier 2008, Steven Lobbezoo wrote: > > > > > Le Sunday 27 January 2008 13:56:52 Steven Lobbezoo, vous avez ?crit?: > > > > > > Hi, > > > > > > > > > > > > Is there a way to enumerate all formnames in an apllication ? > > > > > > (Active or not) > > > > > > > > > > > > Thanks, > > > > > > Steven > > > > > > > > > > > > ----------------------------------------------------------------- > > > > > >-- -- -- -- This SF.net email is sponsored by: Microsoft > > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > Sorry, I forgot : > > > > > I tried Info.Forms, but there is nothing there, just the word Forms > > > > > > > > > > Steven > > > > > > > > Please explain what you want to do exactly. What does the string > > > > "formnames" means for you? > > > > > > I want to put the names of the forms (i.e. "FormClients") as they are > > > shown in the IDE in an array. (And in a listbox) > > > > > > Steven > > > > I'm afraid you can't, as this information is not stored at all in the > > object files, nor in the project configuration file. > > > > Regards, > > Ok, pity but thanks anyway, > Regards, > Steven > There's a very raw mode to do it (if I understood your needs): DIM sFormName AS String FOR EACH sFormName IN Dir(Application.Path, "*.form") PRINT sFormName NEXT but it doesn't work when compiled as an executable; but you can save those info in file and work with it. Stefano > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Sun Jan 27 15:41:36 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 27 Jan 2008 15:41:36 +0100 Subject: [Gambas-user] enumerate forms In-Reply-To: <200801271536.18728.rospolosco@...152...> References: <200801271356.52404.steven@...1652...> <200801271504.50365.steven@...1652...> <200801271536.18728.rospolosco@...152...> Message-ID: <200801271541.36194.rospolosco@...152...> or better: DIM sFormName AS String FOR EACH sFormName IN Dir(Application.Path, "*.form").Sort() PRINT file.BaseName(sFormName) NEXT Stefano From steven at ...1652... Sun Jan 27 15:56:18 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Sun, 27 Jan 2008 15:56:18 +0100 Subject: [Gambas-user] enumerate forms In-Reply-To: <200801271541.36194.rospolosco@...152...> References: <200801271356.52404.steven@...1652...> <200801271536.18728.rospolosco@...152...> <200801271541.36194.rospolosco@...152...> Message-ID: <200801271556.18783.steven@...1652...> Le Sunday 27 January 2008 15:41:36 Stefano Palmeri, vous avez ?crit?: > or better: > > DIM sFormName AS String > > FOR EACH sFormName IN Dir(Application.Path, "*.form").Sort() > PRINT file.BaseName(sFormName) > NEXT > > Stefano > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Thanks Stefano. I did the same, untill it came to me :-( that in the execution environment these files are not there. So, it can't be done like this. However, since I can call forms by name (open formname), the data must be available somewhere in the executable. I will continue playing detective. Thanks, Steven From rospolosco at ...152... Sun Jan 27 16:14:14 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 27 Jan 2008 16:14:14 +0100 Subject: [Gambas-user] Close a form In-Reply-To: <1201396017.5078.5.camel@...1853...> References: <1201396017.5078.5.camel@...1853...> Message-ID: <200801271614.14562.rospolosco@...152...> Alle 02:06, domenica 27 gennaio 2008, Jeffrey Cobb ha scritto: > Hello... Been a couple years since I used gambas. Thought I'd give it > a try again. > > I'm trying to close a form. Normally in everything else I do in gambas > there's no problem. This time however I have a Main MODULE as a starup > class rather than a form. And I open my from FROM the module. > > I've a hidden menu within my form that acts as a context menu and a > "close" menuitem. These work fine but when I click the "Close" option > my sub to close the form doesn't work. I've looked in the documentation > and the mailing list archives but haven't seen anything relevant. My > "close" sub below: > > PUBLIC SUB pnlClose_Click() > PRINT ME.Name; " close" > ME.Close() > END > > Terribly complex here. I know the sub is being called per my "debug" > statement. Any idea what I'm doing wrong? > > TIA -- Jeff > > Could you send a little project that reproduce the problem? Stefano > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From leonardo at ...1237... Sun Jan 27 16:43:36 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 27 Jan 2008 16:43:36 +0100 Subject: [Gambas-user] number format In-Reply-To: <479C5379.2010306@...626...> References: <200801211719.06045.gunartha.nyoman@...1817...> <200801210939.50669.jscops@...11...> <200801210941.51199.jscops@...11...> <6324a42a0801210405u51638459we44de55e277d8a11@...627...> <479C5379.2010306@...626...> Message-ID: <479CA6A8.8040302@...1237...> Ep?leg ha scritto: > But in a France French locale: > > Val("1 234 567,89") => 1 Same for me with Italian locale. I must first remove all the white spaces, then substitute the "," with "." and than get the value of the number. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From epileg at ...626... Sun Jan 27 17:19:45 2008 From: epileg at ...626... (=?ISO-8859-1?Q?Ep=EDleg?=) Date: Sun, 27 Jan 2008 17:19:45 +0100 Subject: [Gambas-user] number format In-Reply-To: <479CA6A8.8040302@...1237...> References: <200801211719.06045.gunartha.nyoman@...1817...> <200801210939.50669.jscops@...11...> <200801210941.51199.jscops@...11...> <6324a42a0801210405u51638459we44de55e277d8a11@...627...> <479C5379.2010306@...626...> <479CA6A8.8040302@...1237...> Message-ID: <479CAF21.8040907@...626...> En/na Leonardo Miliani ha escrit: > Ep?leg ha scritto: >> But in a France French locale: >> >> Val("1 234 567,89") => 1 > > Same for me with Italian locale. > I must first remove all the white spaces, then substitute the "," with > "." and than get the value of the number. > Well, Italian case is different because, as Catalan and Spanish (Spain and others), the locale are not properly set, at least in my Ubuntu 7.10. $ LANG=it_IT.UTF-8 locale -k LC_NUMERIC decimal_point="," thousands_sep="" grouping=-1;-1 numeric-decimal-point-wc=44 numeric-thousands-sep-wc=0 numeric-codeset="UTF-8" As You can see, there isn't set the thousands separator value. Regards, Ep?leg. From maillists.gurulounge at ...626... Sun Jan 27 17:22:27 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Sun, 27 Jan 2008 08:22:27 -0800 Subject: [Gambas-user] Close a form In-Reply-To: <200801271614.14562.rospolosco@...152...> References: <1201396017.5078.5.camel@...1853...> <200801271614.14562.rospolosco@...152...> Message-ID: <1201450947.14747.1.camel@...1853...> Actually, it fixed itself... I don't even know what I did. I just started writing despite it and it started to close as I added more code. Go figure. Thanks much, Jeff On Sun, 2008-01-27 at 16:14 +0100, Stefano Palmeri wrote: > Alle 02:06, domenica 27 gennaio 2008, Jeffrey Cobb ha scritto: > > Hello... Been a couple years since I used gambas. Thought I'd give it > > a try again. > > > > I'm trying to close a form. Normally in everything else I do in gambas > > there's no problem. This time however I have a Main MODULE as a starup > > class rather than a form. And I open my from FROM the module. > > > > I've a hidden menu within my form that acts as a context menu and a > > "close" menuitem. These work fine but when I click the "Close" option > > my sub to close the form doesn't work. I've looked in the documentation > > and the mailing list archives but haven't seen anything relevant. My > > "close" sub below: > > > > PUBLIC SUB pnlClose_Click() > > PRINT ME.Name; " close" > > ME.Close() > > END > > > > Terribly complex here. I know the sub is being called per my "debug" > > statement. Any idea what I'm doing wrong? > > > > TIA -- Jeff > > > > > > Could you send a little project that reproduce the problem? > > Stefano > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sun Jan 27 22:15:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 27 Jan 2008 22:15:39 +0100 Subject: [Gambas-user] enumerate forms In-Reply-To: <200801271556.18783.steven@...1652...> References: <200801271356.52404.steven@...1652...> <200801271541.36194.rospolosco@...152...> <200801271556.18783.steven@...1652...> Message-ID: <200801272215.39317.gambas@...1...> On dimanche 27 janvier 2008, Steven Lobbezoo wrote: > Le Sunday 27 January 2008 15:41:36 Stefano Palmeri, vous avez ?crit?: > > or better: > > > > DIM sFormName AS String > > > > FOR EACH sFormName IN Dir(Application.Path, "*.form").Sort() > > PRINT file.BaseName(sFormName) > > NEXT > > > > Stefano > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Thanks Stefano. > I did the same, untill it came to me :-( that in the execution environment > these files are not there. > So, it can't be done like this. > However, since I can call forms by name (open formname), the data must be > available somewhere in the executable. > I will continue playing detective. > > Thanks, > Steven > In the executable, you have only the object files, but you can't know anything about them before loading them. They are loaded the first time the class is used. Please explain why you need to know the forms of your projects at runtime, maybe another way of doing what you want exists. Regards, -- Benoit Minisini From piramix at ...178... Sun Jan 27 22:46:33 2008 From: piramix at ...178... (=?iso-8859-1?B?UGlyYW1peCBUZWNub2xvZ+1hcw==?=) Date: Sun, 27 Jan 2008 16:46:33 -0500 Subject: [Gambas-user] Question about enabling a TextBox Message-ID: <20080127214633.A3198103C3@...1854...> But I can't store the object in a table of a database. I just have the name of each object. How can I proceed in this case? > ----- Original Message ----- > From: "Fabien Bodard" > To: "mailing list for gambas users" > Subject: Re: [Gambas-user] Question about enabling a TextBox > Date: Sun, 27 Jan 2008 12:32:49 +0100 > > > On Sunday 27 January 2008 12:03:31 Piramix Tecnolog?as wrote: > > Good morning people. I've got a little problem and here is it: > > I've got a Form with 3 TextBoxes on it (DISABLED by default) called BoxOne, > > BoxTwo and BoxThree. I need to enable or disable then depnding on the code. > > For that purpose I store the name of each one in a variable called BoxState > > wich is previously defined as String (obviously here's my mistake). When I > > try to do > > BoxState = "BoxOne" > > BoxState.Enabled = TRUE > > > > I got an error. > > How can I do that? > > I even tried to define a TextBox during execution and then destroy the > > control and other steps which I don't remember now but without any success. > > Help will be appreciated. > > Greetings. > > Pablo. > > you need to store the object ... not the name ! > > If you have already named the box in the property windows... yu just have to > use the control name ! > > TextBox1.Enabled = true > > You var is just a string ... so the error is normal > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! From richard.j.walker at ...247... Sun Jan 27 23:20:32 2008 From: richard.j.walker at ...247... (Richard) Date: Sun, 27 Jan 2008 22:20:32 +0000 Subject: [Gambas-user] QT DateChooser displays blank calendar In-Reply-To: <200801261353.40909.gambas@...1...> References: <200801260103.21047.richard.j.walker@...247...> <200801261347.44161.gambas@...1...> <200801261353.40909.gambas@...1...> Message-ID: <200801272220.32210.richard.j.walker@...247...> On Saturday 26 January 2008 12:53:40 Benoit Minisini wrote: > On samedi 26 janvier 2008, Benoit Minisini wrote: > > On samedi 26 janvier 2008, Richard wrote: > > > On Saturday 26 Jan 2008 07:05, Fabien Bodard wrote: > > > > Le Saturday 26 January 2008 02:16:27 Richard, vous avez ?crit?: > > > > > Beno?t, I didn't see your reply until now. Are you suggesting I > > > > > make some test chages to my KDE desktop theme or are you referring > > > > > to a setting in the project or the IDE? > > > > > > > > kde desktop theme > > > > > > Thanks Fabien, > > > I have just tried KDE Classic and Keramic. I am installing Mandriva One > > > theme now. > > > > > > OK, I have also tried Ia Ora yellow colour scheme and I have switched > > > from Compiz Fusion to Kwin. Nothing changes the display of the calendar > > > part of the DateChooser control. > > > > > > Here is a screenshot of the relevant part of the form. I suppose now > > > would be a good time to thank you, Fabien, for the example Clock on > > > which I based my timer display. > > > > > > regards, > > > > > > Richard > > > > I should have fixed this bug in the last revision (1039). It's strange > > that I don't see it, except when using an Etched border, what I never do > > of course... > > > > Regards, > > Mmm no, the revision 1040 is better. :-) Benoit, Is there a way I can apply the fix to the 2.0.0 sources? I have not been able to get any of the svn versions to compile since the first I tried; 1038. Seems to be a problem with a library you are using which I don't have on any of my Mandriva 2007 or 2008 machines. I think it is the library associated with ffi.h in the gbx3 sources. regards Richard PS. I would rather repair/update my five existing v2.0.0 installations than set out on a new path through uncharted waters following the version 3 stuff. From leonardo at ...1237... Sun Jan 27 23:25:05 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 27 Jan 2008 23:25:05 +0100 Subject: [Gambas-user] number format In-Reply-To: <479CAF21.8040907@...626...> References: <200801211719.06045.gunartha.nyoman@...1817...> <200801210939.50669.jscops@...11...> <200801210941.51199.jscops@...11...> <6324a42a0801210405u51638459we44de55e277d8a11@...627...> <479C5379.2010306@...626...> <479CA6A8.8040302@...1237...> <479CAF21.8040907@...626...> Message-ID: <479D04C1.1090008@...1237...> Ep?leg ha scritto: > En/na Leonardo Miliani ha escrit: >> Ep?leg ha scritto: >>> But in a France French locale: >>> >>> Val("1 234 567,89") => 1 >> Same for me with Italian locale. >> I must first remove all the white spaces, then substitute the "," with >> "." and than get the value of the number. >> > > Well, Italian case is different because, as Catalan and Spanish (Spain and others), the locale are not properly set, at least in my Ubuntu 7.10. > > $ LANG=it_IT.UTF-8 locale -k LC_NUMERIC > decimal_point="," > thousands_sep="" > grouping=-1;-1 > numeric-decimal-point-wc=44 > numeric-thousands-sep-wc=0 > numeric-codeset="UTF-8" > > As You can see, there isn't set the thousands separator value. Uhm... I didn't know about those settings.... How can I check them? -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From gambas at ...1... Sun Jan 27 23:29:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 27 Jan 2008 23:29:34 +0100 Subject: [Gambas-user] QT DateChooser displays blank calendar In-Reply-To: <200801272220.32210.richard.j.walker@...247...> References: <200801260103.21047.richard.j.walker@...247...> <200801261353.40909.gambas@...1...> <200801272220.32210.richard.j.walker@...247...> Message-ID: <200801272329.34758.gambas@...1...> On dimanche 27 janvier 2008, Richard wrote: > On Saturday 26 January 2008 12:53:40 Benoit Minisini wrote: > > On samedi 26 janvier 2008, Benoit Minisini wrote: > > > On samedi 26 janvier 2008, Richard wrote: > > > > On Saturday 26 Jan 2008 07:05, Fabien Bodard wrote: > > > > > Le Saturday 26 January 2008 02:16:27 Richard, vous avez ?crit?: > > > > > > Beno?t, I didn't see your reply until now. Are you suggesting I > > > > > > make some test chages to my KDE desktop theme or are you > > > > > > referring to a setting in the project or the IDE? > > > > > > > > > > kde desktop theme > > > > > > > > Thanks Fabien, > > > > I have just tried KDE Classic and Keramic. I am installing Mandriva > > > > One theme now. > > > > > > > > OK, I have also tried Ia Ora yellow colour scheme and I have switched > > > > from Compiz Fusion to Kwin. Nothing changes the display of the > > > > calendar part of the DateChooser control. > > > > > > > > Here is a screenshot of the relevant part of the form. I suppose now > > > > would be a good time to thank you, Fabien, for the example Clock on > > > > which I based my timer display. > > > > > > > > regards, > > > > > > > > Richard > > > > > > I should have fixed this bug in the last revision (1039). It's strange > > > that I don't see it, except when using an Etched border, what I never > > > do of course... > > > > > > Regards, > > > > Mmm no, the revision 1040 is better. :-) > > Benoit, > Is there a way I can apply the fix to the 2.0.0 sources? I have not been > able to get any of the svn versions to compile since the first I tried; > 1038. Seems to be a problem with a library you are using which I don't have > on any of my Mandriva 2007 or 2008 machines. I think it is the library > associated with ffi.h in the gbx3 sources. > > regards > > Richard > > PS. I would rather repair/update my five existing v2.0.0 installations than > set out on a new path through uncharted waters following the version 3 > stuff. > 'urpmi libffi-devel' should do the trick. Rev. 1038 is not a 2.0.0 version, but a 3.0.0 one. You must checkout the /branches/2.0 part of the svn tree to get the 2.0 development version. Regards, -- Benoit Minisini From epileg at ...626... Sun Jan 27 23:38:42 2008 From: epileg at ...626... (=?ISO-8859-1?Q?Ep=EDleg?=) Date: Sun, 27 Jan 2008 23:38:42 +0100 Subject: [Gambas-user] number format In-Reply-To: <479D04C1.1090008@...1237...> References: <200801211719.06045.gunartha.nyoman@...1817...> <200801210939.50669.jscops@...11...> <200801210941.51199.jscops@...11...> <6324a42a0801210405u51638459we44de55e277d8a11@...627...> <479C5379.2010306@...626...> <479CA6A8.8040302@...1237...> <479CAF21.8040907@...626...> <479D04C1.1090008@...1237...> Message-ID: <479D07F2.5000902@...626...> En/na Leonardo Miliani ha escrit: > Ep?leg ha scritto: >> En/na Leonardo Miliani ha escrit: >>> Ep?leg ha scritto: >>>> But in a France French locale: >>>> >>>> Val("1 234 567,89") => 1 >>> Same for me with Italian locale. >>> I must first remove all the white spaces, then substitute the "," with >>> "." and than get the value of the number. >>> >> Well, Italian case is different because, as Catalan and Spanish (Spain and others), the locale are not properly set, at least in my Ubuntu 7.10. >> >> $ LANG=it_IT.UTF-8 locale -k LC_NUMERIC >> decimal_point="," >> thousands_sep="" >> grouping=-1;-1 >> numeric-decimal-point-wc=44 >> numeric-thousands-sep-wc=0 >> numeric-codeset="UTF-8" >> >> As You can see, there isn't set the thousands separator value. > > Uhm... I didn't know about those settings.... > How can I check them? > Just type "locale -k LC_NUMERIC" in a console. For more info, "man locale". Regards, Ep?leg. From richard.j.walker at ...247... Mon Jan 28 02:14:48 2008 From: richard.j.walker at ...247... (Richard) Date: Mon, 28 Jan 2008 01:14:48 +0000 Subject: [Gambas-user] QT DateChooser displays blank calendar In-Reply-To: <200801272329.34758.gambas@...1...> References: <200801260103.21047.richard.j.walker@...247...> <200801272220.32210.richard.j.walker@...247...> <200801272329.34758.gambas@...1...> Message-ID: <200801280114.48127.richard.j.walker@...247...> On Sunday 27 January 2008 22:29:34 Benoit Minisini wrote: > On dimanche 27 janvier 2008, Richard wrote: > > On Saturday 26 January 2008 12:53:40 Benoit Minisini wrote: > > > On samedi 26 janvier 2008, Benoit Minisini wrote: > > > > On samedi 26 janvier 2008, Richard wrote: > > > > > On Saturday 26 Jan 2008 07:05, Fabien Bodard wrote: > > > > > > Le Saturday 26 January 2008 02:16:27 Richard, vous avez ?crit?: > > > > > > > Beno?t, I didn't see your reply until now. Are you suggesting I > > > > > > > make some test chages to my KDE desktop theme or are you > > > > > > > referring to a setting in the project or the IDE? > > > > > > > > > > > > kde desktop theme > > > > > > > > > > Thanks Fabien, > > > > > I have just tried KDE Classic and Keramic. I am installing Mandriva > > > > > One theme now. > > > > > > > > > > OK, I have also tried Ia Ora yellow colour scheme and I have > > > > > switched from Compiz Fusion to Kwin. Nothing changes the display of > > > > > the calendar part of the DateChooser control. > > > > > > > > > > Here is a screenshot of the relevant part of the form. I suppose > > > > > now would be a good time to thank you, Fabien, for the example > > > > > Clock on which I based my timer display. > > > > > > > > > > regards, > > > > > > > > > > Richard > > > > > > > > I should have fixed this bug in the last revision (1039). It's > > > > strange that I don't see it, except when using an Etched border, what > > > > I never do of course... > > > > > > > > Regards, > > > > > > Mmm no, the revision 1040 is better. :-) > > > > Benoit, > > Is there a way I can apply the fix to the 2.0.0 sources? I have not been > > able to get any of the svn versions to compile since the first I tried; > > 1038. Seems to be a problem with a library you are using which I don't > > have on any of my Mandriva 2007 or 2008 machines. I think it is the > > library associated with ffi.h in the gbx3 sources. > > > > regards > > > > Richard > > > > PS. I would rather repair/update my five existing v2.0.0 installations > > than set out on a new path through uncharted waters following the version > > 3 stuff. > > 'urpmi libffi-devel' should do the trick. > > Rev. 1038 is not a 2.0.0 version, but a 3.0.0 one. You must checkout > the /branches/2.0 part of the svn tree to get the 2.0 development version. > > Regards, Thanks for the libffi info. I did go looking for it and I cannot imagine how I overlooked such an obvious method of fetching it. Ah well. I grabbed a copy of the 1041 revision and eventually tracked down your fix for the QT DateChooser problem. I am glad I don't have to use the v3 development series. I can easily copy the rebuilt gb.qt library to the other 2008.0 machines and it isn't too much trouble to rebuild it one more time for the two 2007.0 installations. You said I should "checkout the /branches/2.0 part of the svn tree to get the 2.0 development version". I am not sure how to find that, but I'll have a proper look tomorrow evening. Do I take it that your fix for the DrawingArea control is there too now? regards Richard From bezdzik at ...988... Mon Jan 28 12:04:12 2008 From: bezdzik at ...988... (bezdzik) Date: Mon, 28 Jan 2008 03:04:12 -0800 (PST) Subject: [Gambas-user] Gambas2 doesn't see form elements in code In-Reply-To: <15041121.post@...1379...> References: <15041121.post@...1379...> Message-ID: <15132944.post@...1379...> bezdzik wrote: > > Hi! > I'm quite new in gambas programming. I created an application that worked > just fine, but after some minor improvements (textbox resize or similar) > i've got such a problem: while trying to run the app an error shows up > "Unknown identifier 'control_name' in row xxx in FMain.class", where > FMain.class is my main form class. Additionally gambas ide doesn't > complete the syntax of the form elements. The app is quite advanced in > developement now and i'm sure i didn't change something important in it. > Does anyone have any suggestions how to fix the problem? I tried to fix it > by adding 'Me.' in fronts of components names in source code but after > that new error appeared: "Unexpected INHERITS in form definition". I have > no idea how to deal with it. > > Has anybody a suggestion concerning my problem? -- View this message in context: http://www.nabble.com/Gambas2-doesn%27t-see-form-elements-in-code-tp15041121p15132944.html Sent from the gambas-user mailing list archive at Nabble.com. From steven at ...1652... Mon Jan 28 13:37:39 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Mon, 28 Jan 2008 13:37:39 +0100 Subject: [Gambas-user] enumerate forms In-Reply-To: <200801272215.39317.gambas@...1...> References: <200801271356.52404.steven@...1652...> <200801271556.18783.steven@...1652...> <200801272215.39317.gambas@...1...> Message-ID: <200801281337.39575.steven@...1652...> Le Sunday 27 January 2008 22:15:39 Benoit Minisini, vous avez ?crit?: > On dimanche 27 janvier 2008, Steven Lobbezoo wrote: > > Le Sunday 27 January 2008 15:41:36 Stefano Palmeri, vous avez ?crit?: > > > or better: > > > > > > DIM sFormName AS String > > > > > > FOR EACH sFormName IN Dir(Application.Path, "*.form").Sort() > > > PRINT file.BaseName(sFormName) > > > NEXT > > > > > > Stefano > > > > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Thanks Stefano. > > I did the same, untill it came to me :-( that in the execution > > environment these files are not there. > > So, it can't be done like this. > > However, since I can call forms by name (open formname), the data must be > > available somewhere in the executable. > > I will continue playing detective. > > > > Thanks, > > Steven > > In the executable, you have only the object files, but you can't know > anything about them before loading them. They are loaded the first time the > class is used. > > Please explain why you need to know the forms of your projects at runtime, > maybe another way of doing what you want exists. > > Regards, I know, but a thought maybe I can scan the executable for a marker, and then get the names of the forms. However, I saw that they are mixed with other variables in the executable, so it's not possible either. What I try to do is implement a access rules system in my software. The big boss with the user can define (in a Mysql Table) rules for read/Update/Delete/Create acces THe rules depend on the table / search , the user (and it's level), the contents of the records and the form name. Of course, I can just make a formnames array by hand, but I thought it would be easy to do it automatically, specially since we're adding forms on a day to day basis. Regards, . From sourceforge-raindog2 at ...94... Mon Jan 28 15:29:02 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 28 Jan 2008 09:29:02 -0500 Subject: [Gambas-user] Gambas2 doesn't see form elements in code In-Reply-To: <15132944.post@...1379...> References: <15041121.post@...1379...> <15132944.post@...1379...> Message-ID: <200801280929.02626.sourceforge-raindog2@...94...> On Monday 28 January 2008 06:04, bezdzik wrote: > > after that new error appeared: "Unexpected INHERITS in form > > definition". I have no idea how to deal with it. > > Has anybody a suggestion concerning my problem? That "unexpected inherits" error is misleading. It happened to me last week when I had copied and pasted someone else's sub into one of my programs, and they'd left the END off of the sub. Maybe you should double check that all your subs/functions have ENDs? Rob From gambas at ...1... Mon Jan 28 15:32:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 28 Jan 2008 15:32:57 +0100 Subject: [Gambas-user] Gambas2 doesn't see form elements in code In-Reply-To: <15132944.post@...1379...> References: <15041121.post@...1379...> <15132944.post@...1379...> Message-ID: <200801281532.57893.gambas@...1...> On lundi 28 janvier 2008, bezdzik wrote: > bezdzik wrote: > > Hi! > > I'm quite new in gambas programming. I created an application that worked > > just fine, but after some minor improvements (textbox resize or similar) > > i've got such a problem: while trying to run the app an error shows up > > "Unknown identifier 'control_name' in row xxx in FMain.class", where > > FMain.class is my main form class. Additionally gambas ide doesn't > > complete the syntax of the form elements. The app is quite advanced in > > developement now and i'm sure i didn't change something important in it. > > Does anyone have any suggestions how to fix the problem? I tried to fix > > it by adding 'Me.' in fronts of components names in source code but after > > that new error appeared: "Unexpected INHERITS in form definition". I have > > no idea how to deal with it. > > Has anybody a suggestion concerning my problem? Can you send me the tar.gz of your project? -- Benoit Minisini From nxgtrturbo at ...626... Mon Jan 28 18:19:15 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Mon, 28 Jan 2008 09:19:15 -0800 Subject: [Gambas-user] Translate a Project Message-ID: <688afe140801280919n23d9cec6o1adbcf8d89c0b6d3@...627...> I, have a question about a Project translation. I have read of course the howto guide: http://www.gambasdoc.org/help/howto/translate But, what's next? I have my *.po in my .lang directory, so, how do I change my project language, I read something about environment variables (another site) must be set in a console but not sure, because the "howto" don't say nothing about this variables. Freespire 2.0 Gambas 2.0 Thanks, -- Nx GT-R From m0e.lnx at ...626... Mon Jan 28 18:35:37 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 28 Jan 2008 11:35:37 -0600 Subject: [Gambas-user] My Gambas2 is broken! Message-ID: <1f1e8c1b0801280935i79201f4cp9740a55ce790924f@...627...> I've installed Gambas2-2.0.0 and used it several times on this box (running Vector Linux 5.9 Gold). Suddenly I closed it, like always, and then when I tried to use it again I get this ugly error moe:$ gambas2 moe:$ Design.Init.37: Cannot create input fifo 0: Design.Init.37 1: FMain._new.25 2: Project.Main.157 WARNING: circular references detected FMain (1) FWorkspace (1) FToolBar (1) Workspace (1) ToolBar (1) FSidePanel (4) SidePanel (4) After that, the program exits. Anyone seen this? How do I fix this? From gambas at ...1... Mon Jan 28 18:41:51 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 28 Jan 2008 18:41:51 +0100 Subject: [Gambas-user] My Gambas2 is broken! In-Reply-To: <1f1e8c1b0801280935i79201f4cp9740a55ce790924f@...627...> References: <1f1e8c1b0801280935i79201f4cp9740a55ce790924f@...627...> Message-ID: <200801281841.52075.gambas@...1...> On lundi 28 janvier 2008, M0E Lnx wrote: > I've installed Gambas2-2.0.0 and used it several times on this box > (running Vector Linux 5.9 Gold). > Suddenly I closed it, like always, and then when I tried to use it > again I get this ugly error > > moe:$ gambas2 > moe:$ Design.Init.37: Cannot create input fifo > 0: Design.Init.37 > 1: FMain._new.25 > 2: Project.Main.157 > WARNING: circular references detected > FMain (1) > FWorkspace (1) > FToolBar (1) > Workspace (1) > ToolBar (1) > FSidePanel (4) > SidePanel (4) > > After that, the program exits. > Anyone seen this? How do I fix this? > That means that the interpreter couldn't create the fifo file /tmp/gambas.$(UID)/$(PID).in (or .out) I suggest you check the configuration and authorizations of your /tmp directory. Regards, -- Benoit Minisini From m0e.lnx at ...626... Mon Jan 28 18:44:28 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 28 Jan 2008 11:44:28 -0600 Subject: [Gambas-user] Hsplit gone crazy!!! Please help Message-ID: <1f1e8c1b0801280944m20d114e2hf753618bacb955c0@...627...> I'm in the process of writing this super kool application. Pretty basic stuff, one window with one hsplit (hsplit1) inside the hsplit, there is a scrollview and an iconview. Using the gb.gui component. On the window's close event, I am storing the window settings to a text file (window size, position on the screen, and the hsplit1 design (pane sizes)) On the window's load event, I'm retreiving these settings, and applying them to the window. All works fine, except for the hsplit1 settings. For some strange reason, every time I open the window, even if I do not change the position of the divider in the hsplit, it stores different values (lower) to the "PANES" setting. This cause the scrollview on the hsplit to get smaller and smaller every time the application loads. Here is a link to the code in case anyone wants to take a look and see if I'm doing something wrong here http://vasmcc.googlecode.com/svn/branches/1.0.10/FMain.class Thanks in advance... From m0e.lnx at ...626... Mon Jan 28 18:50:34 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 28 Jan 2008 11:50:34 -0600 Subject: [Gambas-user] My Gambas2 is broken! In-Reply-To: <200801281841.52075.gambas@...1...> References: <1f1e8c1b0801280935i79201f4cp9740a55ce790924f@...627...> <200801281841.52075.gambas@...1...> Message-ID: <1f1e8c1b0801280950y32ce5663u4cfb4c4453a2af2b@...627...> Wow... you're right... something weird has happened in my /tmp. I dunno how, but I definitely see something wrong.. That worked though... fixed the permisions. Thanks On Jan 28, 2008 11:41 AM, Benoit Minisini wrote: > > On lundi 28 janvier 2008, M0E Lnx wrote: > > I've installed Gambas2-2.0.0 and used it several times on this box > > (running Vector Linux 5.9 Gold). > > Suddenly I closed it, like always, and then when I tried to use it > > again I get this ugly error > > > > moe:$ gambas2 > > moe:$ Design.Init.37: Cannot create input fifo > > 0: Design.Init.37 > > 1: FMain._new.25 > > 2: Project.Main.157 > > WARNING: circular references detected > > FMain (1) > > FWorkspace (1) > > FToolBar (1) > > Workspace (1) > > ToolBar (1) > > FSidePanel (4) > > SidePanel (4) > > > > After that, the program exits. > > Anyone seen this? How do I fix this? > > > > That means that the interpreter couldn't create the fifo file > /tmp/gambas.$(UID)/$(PID).in (or .out) > > I suggest you check the configuration and authorizations of your /tmp > directory. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rospolosco at ...152... Mon Jan 28 18:57:08 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 28 Jan 2008 18:57:08 +0100 Subject: [Gambas-user] Translate a Project In-Reply-To: <688afe140801280919n23d9cec6o1adbcf8d89c0b6d3@...627...> References: <688afe140801280919n23d9cec6o1adbcf8d89c0b6d3@...627...> Message-ID: <200801281857.08375.rospolosco@...152...> Alle 18:19, luned? 28 gennaio 2008, Nx GT-R BOY ha scritto: > I, have a question about a Project translation. > > I have read of course the howto guide: > http://www.gambasdoc.org/help/howto/translate > > But, what's next? I have my *.po in my .lang directory, so, how do I change > my project language, I read something about environment variables (another > site) must be set in a console but not sure, because the "howto" don't say > nothing about this variables. > > Freespire 2.0 > Gambas 2.0 > > Thanks, Example: do you want to see Gambas IDE in french? Type on console: LANG=fr_FR gambas2 in spanish? LANG=es_ES gambas2 etc... do the same for your project. Stefano From gambas at ...1... Mon Jan 28 20:19:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 28 Jan 2008 20:19:44 +0100 Subject: [Gambas-user] Translate a Project In-Reply-To: <200801281857.08375.rospolosco@...152...> References: <688afe140801280919n23d9cec6o1adbcf8d89c0b6d3@...627...> <200801281857.08375.rospolosco@...152...> Message-ID: <200801282019.44465.gambas@...1...> On lundi 28 janvier 2008, Stefano Palmeri wrote: > Alle 18:19, luned? 28 gennaio 2008, Nx GT-R BOY ha scritto: > > I, have a question about a Project translation. > > > > I have read of course the howto guide: > > http://www.gambasdoc.org/help/howto/translate > > > > But, what's next? I have my *.po in my .lang directory, so, how do I > > change my project language, I read something about environment variables > > (another site) must be set in a console but not sure, because the "howto" > > don't say nothing about this variables. > > > > Freespire 2.0 > > Gambas 2.0 > > > > Thanks, > > Example: do you want to see Gambas IDE in french? > Type on console: > > LANG=fr_FR gambas2 > > in spanish? > > LANG=es_ES gambas2 > > etc... > > do the same for your project. > > Stefano > The actual algorithm is the following: 1) The contents of the LC_ALL environment variable is taken. 2) If LC_ALL is void, then the contents of the LANG environment variable is taken. 3) If LANG is void, then the language is set to "en_US". 4) The associated translation file is loaded. 5) If no associated file is found, and if the language has the "xx_YY" form, then the translation associated with the language "xx", without the country part "_YY", is loaded. 6) If no translation file can be found, then no string is translated. Note that the translation file cannot be loaded if the associated glibc locale files are not installed on the system. For example, on my french Mandriva, I have to install the "locale-es" package to be able to run the IDE in spanish. Regards, -- Benoit Minisini From richard.j.walker at ...247... Mon Jan 28 20:54:16 2008 From: richard.j.walker at ...247... (Richard) Date: Mon, 28 Jan 2008 19:54:16 +0000 Subject: [Gambas-user] enumerate forms In-Reply-To: <200801281337.39575.steven@...1652...> References: <200801271356.52404.steven@...1652...> <200801272215.39317.gambas@...1...> <200801281337.39575.steven@...1652...> Message-ID: <200801281954.16955.richard.j.walker@...247...> On Monday 28 January 2008 12:37:39 Steven Lobbezoo wrote: > Le Sunday 27 January 2008 22:15:39 Benoit Minisini, vous avez ?crit?: > > On dimanche 27 janvier 2008, Steven Lobbezoo wrote: > > > Le Sunday 27 January 2008 15:41:36 Stefano Palmeri, vous avez ?crit?: > > > > or better: > > > > > > > > DIM sFormName AS String > > > > > > > > FOR EACH sFormName IN Dir(Application.Path, "*.form").Sort() > > > > PRINT file.BaseName(sFormName) > > > > NEXT > > > > > > > > Stefano > > > > > > > > --------------------------------------------------------------------- > > > >-- -- This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > Thanks Stefano. > > > I did the same, untill it came to me :-( that in the execution > > > environment these files are not there. > > > So, it can't be done like this. > > > However, since I can call forms by name (open formname), the data must > > > be available somewhere in the executable. > > > I will continue playing detective. > > > > > > Thanks, > > > Steven > > > > In the executable, you have only the object files, but you can't know > > anything about them before loading them. They are loaded the first time > > the class is used. > > > > Please explain why you need to know the forms of your projects at > > runtime, maybe another way of doing what you want exists. > > > > Regards, > > I know, but a thought maybe I can scan the executable for a marker, and > then get the names of the forms. However, I saw that they are mixed with > other variables in the executable, so it's not possible either. > > What I try to do is implement a access rules system in my software. > The big boss with the user can define (in a Mysql Table) rules for > read/Update/Delete/Create acces THe rules depend on the table / search , > the user (and it's level), the contents of the records and the form name. > > Of course, I can just make a formnames array by hand, but I thought it > would be easy to do it automatically, specially since we're adding forms on > a day to day basis. > > Regards, > . > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Apologies if this sounds naive, but if I were implementing access controls at form level in an application I would probably create an access control mask property for each form and check it in the form's access methods against the user's access rights as obtained/derived from your MySQL table. I did something like this a few years ago for a college VB project:~( From rterry at ...1822... Mon Jan 28 09:01:48 2008 From: rterry at ...1822... (richard terry) Date: Mon, 28 Jan 2008 19:01:48 +1100 Subject: [Gambas-user] Tab order/tabbing when 1 control is an editor Message-ID: <200801281901.48398.rterry@...1822...> I have a form I designed on the weekend with multiple text controls and I needed a multi-line text control (also see subsequent posting re this), and it seemed only textedit would work. As one you tab to this control, and are 'in it', the tab event is used by the control itself, I wondered how to set things up so it was included in the tab order. Thanks in advance. Richard From rterry at ...1822... Mon Jan 28 09:03:16 2008 From: rterry at ...1822... (richard terry) Date: Mon, 28 Jan 2008 19:03:16 +1100 Subject: [Gambas-user] Multi-line text box Message-ID: <200801281903.16977.rterry@...1822...> I couldn't see a multi-line property on the ordinary textbox control, so had to use the texteditor which is annoying because I only need 2 lines, and I don't want the scroll bar's coming up. Any suggestions/thoughts. Richard From rterry at ...1822... Mon Jan 28 05:34:14 2008 From: rterry at ...1822... (richard terry) Date: Mon, 28 Jan 2008 15:34:14 +1100 Subject: [Gambas-user] Orientation of Checkbox Message-ID: <200801281534.14877.rterry@...1822...> Is it possible to somehow right or left orientate? Thanks Richard From rterry at ...1822... Sun Jan 27 08:31:57 2008 From: rterry at ...1822... (richard terry) Date: Sun, 27 Jan 2008 18:31:57 +1100 Subject: [Gambas-user] Webbrowser.zoom Message-ID: <200801271831.57268.rterry@...1822...> setting webbrowser1.zoom = 1 or webbrowser1.zoon = 50 seems to make no difference. Setting it to 1 on my machine shrinks the overall fonts to really tiny, but incrementing this by 1, or factors therof seems to make no difference. Any coments/help appreciated. Richard. From rterry at ...1822... Tue Jan 29 04:19:13 2008 From: rterry at ...1822... (richard terry) Date: Tue, 29 Jan 2008 14:19:13 +1100 Subject: [Gambas-user] Is there a component building guide somewhere Message-ID: <200801291419.13869.rterry@...1822...> Seem's I'm going to have to have a go at bulding a component, so wondered if anyone had a blow by blow description/guide to do something which is probably way beyond my novice capabilities. Thanks in anticipation. Richard From rospolosco at ...152... Tue Jan 29 09:09:34 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 29 Jan 2008 09:09:34 +0100 Subject: [Gambas-user] Multi-line text box In-Reply-To: <200801281903.16977.rterry@...1822...> References: <200801281903.16977.rterry@...1822...> Message-ID: <200801290909.34720.rospolosco@...152...> Alle 09:03, luned? 28 gennaio 2008, richard terry ha scritto: > I couldn't see a multi-line property on the ordinary textbox control, so > had to use the texteditor which is annoying because I only need 2 lines, > and I don't want the scroll bar's coming up. > > Any suggestions/thoughts. > > Richard The TextBox control can handle just one line of text. Use TextArea control and disable both scrollbars in its properties. Stefano > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gunartha.nyoman at ...1817... Tue Jan 29 13:56:23 2008 From: gunartha.nyoman at ...1817... (gunartha) Date: Tue, 29 Jan 2008 21:56:23 +0900 Subject: [Gambas-user] lpt printer Message-ID: <001201c86276$5ab937d0$0f0010b2@...1818...> Hi Everybody, I have a question about printing data to lpt printer If in VB6 Open "LPT1:" For Output As #1 Print #1, "NYOMAN GUNARTHA" Close #1 If in gambas how to direct printing to lpt printer like in VB6 and how to set paper (as bill paper) when end of data, the paper printer no scroll. I'm from Bali/Indonesia, I'm sorry about my english not good and may be this problem had asked before Thank you very much Regards Nyoman Gunartha From gunartha.nyoman at ...1817... Tue Jan 29 10:19:29 2008 From: gunartha.nyoman at ...1817... (gunartha.nyoman) Date: Tue, 29 Jan 2008 21:19:29 +1200 Subject: [Gambas-user] lpt printer Message-ID: <200801292119.29558.gunartha.nyoman@...1817...> Hi Everybody, I have a question about printing data to lpt printer If in VB6 Open "LPT1:" For Output As #1 Print #1, "NYOMAN GUNARTHA" Close #1 If in gambas how to direct printing to lpt printer like in VB6 and how to set paper (as bill paper) when end of data, the paper printer no scroll. I'm from Bali/Indonesia, I'm sorry about my english not good and may be this problem had asked before Thank you very much Regards Nyoman Gunartha From gambas at ...1... Tue Jan 29 11:28:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 29 Jan 2008 11:28:10 +0100 Subject: [Gambas-user] Orientation of Checkbox In-Reply-To: <200801281534.14877.rterry@...1822...> References: <200801281534.14877.rterry@...1822...> Message-ID: <200801291128.10869.gambas@...1...> On lundi 28 janvier 2008, richard terry wrote: > Is it possible to somehow right or left orientate? > > Thanks > > Richard > It is not possible, at least in Qt. Regards, -- Benoit Minisini From maximvonk at ...626... Tue Jan 29 14:17:29 2008 From: maximvonk at ...626... (MaxVK) Date: Tue, 29 Jan 2008 05:17:29 -0800 (PST) Subject: [Gambas-user] Problem with listbox In-Reply-To: <000001c7af19$23eb87f0$6401a8c0@...1587...> References: <1181887272.5515.1.camel@...1700...> <000001c7af19$23eb87f0$6401a8c0@...1587...> Message-ID: <15159202.post@...1379...> Hi Timothy. Could you expand this explanation to cover Gambas 2 please. Thanks Max TimothyMN wrote: > > > Hello Juanra, > > In Gambas 1 the List property of a ListBox was a string and each item in > the ListBox was separated by a new line. In Gambas 2 this has been > changed to a string array. So it is not that difficult to convert your > code to gambas 2. > > These examples show how you can open and save the content of a ListBox > to a text file. > > Note that that there is at least one defect with these methods. If any > item strings in the ListBox contain new lines than they will be split > into two lines. Maybe not what you want. > > > ' Open a text file for display in the ListBox > PUBLIC SUB ToolButtonOpen_Click() > Dialog.Filter = ["Lists (*.lst)", "Text Files (*.txt)", "All Files > (*)"] > IF Dialog.OpenFile() THEN RETURN > ListBox1.List = Split(File.Load(Dialog.Path), "\n") > CATCH > Message.Info("Cannot load list:
" & Dialog.Path & "
" & > Error.Text) > END > > ' Save the ListBox content to a text file > PUBLIC SUB ToolButtonSave_Click() > Dialog.Filter = ["Lists (*.lst)", "Text Files (*.txt)", "All Files > (*)"] > IF Dialog.SaveFile() THEN RETURN > File.Save(Dialog.Path, ListBox1.List.Join("\n")) > CATCH > Message.Info("Cannot save list:
" & Dialog.Path & "
" & > Error.Text) > END > > > Will this email make it? We shall see if I have been blacklisted form > source forge. Or may be it was to many people voting for Gambas. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > -- View this message in context: http://www.nabble.com/Problem-with-listbox-tp11133645p15159202.html Sent from the gambas-user mailing list archive at Nabble.com. From m0e.lnx at ...626... Tue Jan 29 17:51:59 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 29 Jan 2008 10:51:59 -0600 Subject: [Gambas-user] Help needed ... trying to resize a picture object Message-ID: <1f1e8c1b0801290851k5283766ew922098a519888df@...627...> I have an iconview on a form. This icon view will display icons and labels (obviously) but I need to make sure the icons are 48x48... My code currently works, but when the icons are not 48x48, then it looks ugly. So my first thought was... I could try to resize the picture so I did pIcon.resize(48,48) but the problem with that is that it doesn't really srhink or stretch the picture... it simply crops a 48x48 area off the entire picture, which results in an ugly partial icon I know the image object supports the .stretch method, but I'm not sure how to turn an image into a picture that the iconview can use I dont want to store another copy of the resized icon on the drive... I'd rather have gambas do it internally (in memmory) if possible. Thanks From gambas at ...1... Tue Jan 29 18:07:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 29 Jan 2008 18:07:03 +0100 Subject: [Gambas-user] Is there a component building guide somewhere In-Reply-To: <200801291419.13869.rterry@...1822...> References: <200801291419.13869.rterry@...1822...> Message-ID: <200801291807.03264.gambas@...1...> On mardi 29 janvier 2008, richard terry wrote: > Seem's I'm going to have to have a go at bulding a component, so wondered > if anyone had a blow by blow description/guide to do something which is > probably way beyond my novice capabilities. > > Thanks in anticipation. > > Richard > I never had the time to write a guide. Yet another thing to be done... But you can look in the 'comp/src' directory of the source tree, you will find all Gambas components written in Gambas. They should worth the reading! Regards, -- Benoit Minisini From leonardo at ...1237... Tue Jan 29 17:31:21 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 29 Jan 2008 17:31:21 +0100 Subject: [Gambas-user] lpt printer In-Reply-To: <001201c86276$5ab937d0$0f0010b2@...1818...> References: <001201c86276$5ab937d0$0f0010b2@...1818...> Message-ID: <479F54D9.7070600@...1237...> gunartha ha scritto: > Hi Everybody, > > I have a question about printing data to lpt printer > If in VB6 > Open "LPT1:" For Output As #1 > Print #1, "NYOMAN GUNARTHA" > Close #1 > > If in gambas how to direct printing to lpt printer like in VB6 > and how to set paper (as bill paper) when end of data, the paper printer no scroll. > > I'm from Bali/Indonesia, I'm sorry about my english not good and may be this problem had asked before > > Thank you very much > > Regards > Nyoman Gunartha > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > You could print something directly to the printer by using the console. Try something like this: PUBLIC SUB Printing() DIM hProcess AS Process hProcess = SHELL "lpr " & some_text_to_print_in_a_string & " &" END Or, maybe, use Printer object (must use gb.qt component) to create a PS document and then print it. PUBLIC SUB Printing() DIM hProcess AS Process Printer.Copies = 1 Printer.Name = "" Printer.File = Application.Path & "/name_of_file.ps" Draw.Begin(Printer) Draw.Foreground = Color.Black Draw.Font.Size = 10 Draw.Text ("Some text to print", 500,500,1000,100, Align.Left) Draw.End hProcess = SHELL ("lpr " & Application.Path & "/name_of_file.ps" & " &") END -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From sourceforge-raindog2 at ...94... Tue Jan 29 18:20:01 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 29 Jan 2008 12:20:01 -0500 Subject: [Gambas-user] Help needed ... trying to resize a picture object In-Reply-To: <1f1e8c1b0801290851k5283766ew922098a519888df@...627...> References: <1f1e8c1b0801290851k5283766ew922098a519888df@...627...> Message-ID: <200801291220.01291.sourceforge-raindog2@...94...> On Tuesday 29 January 2008 11:51, M0E Lnx wrote: > I know the image object supports the .stretch method, but I'm not > sure how to turn an image into a picture that the iconview can use > I dont want to store another copy of the resized icon on the > drive... I'd rather have gambas do it internally (in memmory) if > possible. The Image class has a Picture property that returns a Picture, and vice versa. You don't need to write it to disk, just maybe make an extra variable. You might even be able to go myPicture = myPicture.Image.Stretch(x,y,TRUE).Picture to do it all in one line, but I haven't tried that. Rob From m0e.lnx at ...626... Tue Jan 29 18:49:31 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 29 Jan 2008 11:49:31 -0600 Subject: [Gambas-user] Help needed ... trying to resize a picture object In-Reply-To: <200801291220.01291.sourceforge-raindog2@...94...> References: <1f1e8c1b0801290851k5283766ew922098a519888df@...627...> <200801291220.01291.sourceforge-raindog2@...94...> Message-ID: <1f1e8c1b0801290949s3bff633fv34c917d7871f9bb6@...627...> Thanks Rob... that worked. On Jan 29, 2008 11:20 AM, Rob wrote: > On Tuesday 29 January 2008 11:51, M0E Lnx wrote: > > I know the image object supports the .stretch method, but I'm not > > sure how to turn an image into a picture that the iconview can use > > I dont want to store another copy of the resized icon on the > > drive... I'd rather have gambas do it internally (in memmory) if > > possible. > > The Image class has a Picture property that returns a Picture, and > vice versa. You don't need to write it to disk, just maybe make an > extra variable. > > You might even be able to go > > myPicture = myPicture.Image.Stretch(x,y,TRUE).Picture > > to do it all in one line, but I haven't tried that. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Tue Jan 29 19:11:43 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 29 Jan 2008 12:11:43 -0600 Subject: [Gambas-user] Hsplit gone crazy!!! Please help In-Reply-To: <1f1e8c1b0801280944m20d114e2hf753618bacb955c0@...627...> References: <1f1e8c1b0801280944m20d114e2hf753618bacb955c0@...627...> Message-ID: <1f1e8c1b0801291011j2e311572qd77530078e93ce17@...627...> Anybody???? On Jan 28, 2008 11:44 AM, M0E Lnx wrote: > I'm in the process of writing this super kool application. Pretty > basic stuff, one window with one hsplit (hsplit1) inside the hsplit, > there is a scrollview and an iconview. > > Using the gb.gui component. > On the window's close event, I am storing the window settings to a > text file (window size, position on the screen, and the hsplit1 design > (pane sizes)) > On the window's load event, I'm retreiving these settings, and > applying them to the window. > > All works fine, except for the hsplit1 settings. > For some strange reason, every time I open the window, even if I do > not change the position of the divider in the hsplit, it stores > different values (lower) to the "PANES" setting. > This cause the scrollview on the hsplit to get smaller and smaller > every time the application loads. > > Here is a link to the code in case anyone wants to take a look and see > if I'm doing something wrong here > > http://vasmcc.googlecode.com/svn/branches/1.0.10/FMain.class > > Thanks in advance... > From rterry at ...1822... Tue Jan 29 22:16:47 2008 From: rterry at ...1822... (richard terry) Date: Wed, 30 Jan 2008 08:16:47 +1100 Subject: [Gambas-user] MyFirstComponent Attempt In-Reply-To: <200801291807.03264.gambas@...1...> References: <200801291419.13869.rterry@...1822...> <200801291807.03264.gambas@...1...> Message-ID: <200801300816.47854.rterry@...1822...> On Wed, 30 Jan 2008 04:07:03 am Benoit Minisini wrote: > On mardi 29 janvier 2008, richard terry wrote: > > Seem's I'm going to have to have a go at bulding a component, so wondered > > if anyone had a blow by blow description/guide to do something which is > > probably way beyond my novice capabilities. > > > > Thanks in anticipation. > > > > Richard > > I never had the time to write a guide. Yet another thing to be done... But > you can look in the 'comp/src' directory of the source tree, you will find > all Gambas components written in Gambas. They should worth the reading! > Regards, Will look at that tonight, in the meantime I used an example I found to try and build a component. What I ultimately want to do is to replicate my vb popup phrasewheel (textbox with listbox attatched) which auto-suggests completions, which I used extensively through my work in the mid 1990's, and which Karsten and Ian Haywood developed extensively in gnuMed over the last couple of years. I enclose some code as a stuttering example with a question. When I put this component in another project, and put it on a form which can resize, the component misbehaves badly. IE unlike a combo box where the list drops down, appearing over the top of any controls underneath it, this one, when stacked in a vertical row of similar components, on say a vertical box, behaves by pushing the otherse below it out of the way. Wonder if someone could run it and comment. + head me in the right direction re the basic design. Thanks Ricard -------------- next part -------------- A non-text attachment was scrubbed... Name: myfirstcomponent-0.0.14.tar.gz Type: application/x-tgz Size: 11399 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: comptest-0.0.1.tar.gz Type: application/x-tgz Size: 7553 bytes Desc: not available URL: From gambas at ...1... Wed Jan 30 02:33:47 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 30 Jan 2008 02:33:47 +0100 Subject: [Gambas-user] Hsplit gone crazy!!! Please help In-Reply-To: <1f1e8c1b0801291011j2e311572qd77530078e93ce17@...627...> References: <1f1e8c1b0801280944m20d114e2hf753618bacb955c0@...627...> <1f1e8c1b0801291011j2e311572qd77530078e93ce17@...627...> Message-ID: <200801300233.47703.gambas@...1...> On mardi 29 janvier 2008, M0E Lnx wrote: > Anybody???? > > On Jan 28, 2008 11:44 AM, M0E Lnx wrote: > > I'm in the process of writing this super kool application. Pretty > > basic stuff, one window with one hsplit (hsplit1) inside the hsplit, > > there is a scrollview and an iconview. > > > > Using the gb.gui component. > > On the window's close event, I am storing the window settings to a > > text file (window size, position on the screen, and the hsplit1 design > > (pane sizes)) > > On the window's load event, I'm retreiving these settings, and > > applying them to the window. > > > > All works fine, except for the hsplit1 settings. > > For some strange reason, every time I open the window, even if I do > > not change the position of the divider in the hsplit, it stores > > different values (lower) to the "PANES" setting. > > This cause the scrollview on the hsplit to get smaller and smaller > > every time the application loads. > > > > Here is a link to the code in case anyone wants to take a look and see > > if I'm doing something wrong here > > > > http://vasmcc.googlecode.com/svn/branches/1.0.10/FMain.class > > > > Thanks in advance... It seems to be some sort of bug in gb.gtk (I presume you run your program with gb.gtk). That needs more investigation... -- Benoit Minisini From nxgtrturbo at ...626... Wed Jan 30 06:37:57 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Tue, 29 Jan 2008 21:37:57 -0800 Subject: [Gambas-user] Bug: Invalid value, Null object Message-ID: <688afe140801292137k1caea8dw5c6169efb689c3fb@...627...> Bug: Invalid value, Null object Hi, after a lot of different setups with my program, I finally discover the problem that droves my crazy for a while (a long time). In my program I need some tables with a lot (problems stars beyond ~16) of fields, and ONLY with the forms I add all the datacontrols needed for control de table I get the problem, if is a form with just a little datacontrols (~8) everything works ok (sometimes dont, but don't know if the field-type matters), the problem is an Invalid value message (not say what value), and then a Null object message (not say what object) when I try to WRITE to the database, but the "nice" part is that the form works perfect! for read. I try with 1 primary key, without one (now I know thats wrong) and with 2 primary keys, with fields-types like TINYINT, INT, CHAR, VARCHAR, BIT, with parameters like NOT NULL, NULL, and with defaults value like 0, 1, etc... but nothing, nothing of that could solve the problem After a long time trying to solve the problem, I found a Work around, that could be what demonstrate the existence of a bug, and not a programing or DB design mistake. The work around is pretty easy, If I need to add X datacontrols to my form, I add one-by-one, add one, point it, compile and run, test (everything is perfect!), and so on, with the others datacontrols, I know, its a stupid way, but thats the only way I found, with 8 controls or less thats nothing, but I have a form with more than 60, you could imagine me doing that (lol) To get the "bug" is simple, you need a database table with more than 16 fields, then try to add all the needed datacontrols AT ONCE, point all of them and test your app. This post isn't to complain, if someones know a better work-around could be cool, but the main reason is to help find new bugs (if this one is a bug), right now I cant help (I know C and C++) since I am busy but later would be a honor for me to help in a better way the Gambas project. Thanks a lot. -- Nx GT-R From gunartha.nyoman at ...1817... Wed Jan 30 01:13:44 2008 From: gunartha.nyoman at ...1817... (gunartha) Date: Wed, 30 Jan 2008 09:13:44 +0900 Subject: [Gambas-user] lpt printer References: <001201c86276$5ab937d0$0f0010b2@...1818...> <479F54D9.7070600@...1237...> Message-ID: <000801c862d4$fa975670$0f0010b2@...1818...> ok, thank you for your reply I will try ----- Original Message ----- From: "Leonardo Miliani" To: "mailing list for gambas users" Sent: Wednesday, January 30, 2008 1:31 AM Subject: Re: [Gambas-user] lpt printer gunartha ha scritto: > Hi Everybody, > > I have a question about printing data to lpt printer > If in VB6 > Open "LPT1:" For Output As #1 > Print #1, "NYOMAN GUNARTHA" > Close #1 > > If in gambas how to direct printing to lpt printer like in VB6 > and how to set paper (as bill paper) when end of data, the paper printer > no scroll. > > I'm from Bali/Indonesia, I'm sorry about my english not good and may be > this problem had asked before > > Thank you very much > > Regards > Nyoman Gunartha > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > You could print something directly to the printer by using the console. Try something like this: PUBLIC SUB Printing() DIM hProcess AS Process hProcess = SHELL "lpr " & some_text_to_print_in_a_string & " &" END Or, maybe, use Printer object (must use gb.qt component) to create a PS document and then print it. PUBLIC SUB Printing() DIM hProcess AS Process Printer.Copies = 1 Printer.Name = "" Printer.File = Application.Path & "/name_of_file.ps" Draw.Begin(Printer) Draw.Foreground = Color.Black Draw.Font.Size = 10 Draw.Text ("Some text to print", 500,500,1000,100, Align.Left) Draw.End hProcess = SHELL ("lpr " & Application.Path & "/name_of_file.ps" & " &") END -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From piramix at ...178... Wed Jan 30 12:01:07 2008 From: piramix at ...178... (=?iso-8859-1?B?UGlyYW1peCBUZWNub2xvZ+1hcw==?=) Date: Wed, 30 Jan 2008 06:01:07 -0500 Subject: [Gambas-user] Messing with TextBoxes Message-ID: <20080130110107.6E9991CE7A2@...1846...> Hi, I'm still looking for the solution to my problem (see below). Someone told me to store the control not the name of it in a variable but I can't do that (I can't figure out how really). I'll try to be more specific reproducin what I'd like to do. In a form I've got a combobox with values from 1 to 10 (I posted 3 before just as an example). In that same form I also defined 10 different textboxes (just say they're called textVar01, textVar02, and so on...) DISABLED by default. Once the user (this MUST be done during runtime) clicks the combobox I need to enable as many textboxes as the user selected (if 1 the first, if 3 the first 3 textboxes, if 10 all of them, and so on...). How can I do that whit the controls I have? Or better... how should I modify the code? Take in consideration that I designed it that way 'cause I store in a database each record including the munber of variables entered and each variable separated as a way of control. Any help will be appreciated. Thanks. Pablo. > > > > ----- Original Message ----- > > From: "Fabien Bodard" > > To: "mailing list for gambas users" > > Subject: Re: [Gambas-user] Question about enabling a TextBox > > Date: Sun, 27 Jan 2008 12:32:49 +0100 > > > > > > On Sunday 27 January 2008 12:03:31 Piramix Tecnolog?as wrote: > > > Good morning people. I've got a little problem and here is it: > > > I've got a Form with 3 TextBoxes on it (DISABLED by default) called BoxOne, > > > BoxTwo and BoxThree. I need to enable or disable then depnding on the code. > > > For that purpose I store the name of each one in a variable called BoxState > > > wich is previously defined as String (obviously here's my mistake). When I > > > try to do > > > BoxState = "BoxOne" > > > BoxState.Enabled = TRUE > > > > > > I got an error. > > > How can I do that? > > > I even tried to define a TextBox during execution and then destroy the > > > control and other steps which I don't remember now but without any success. > > > Help will be appreciated. > > > Greetings. > > > Pablo. > > > > you need to store the object ... not the name ! > > > > If you have already named the box in the property windows... yu just have to > > use the control name ! > > > > TextBox1.Enabled = true > > > > You var is just a string ... so the error is normal > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Want an e-mail address like mine? > Get a free e-mail account today at www.mail.com! > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! From gambas at ...1... Wed Jan 30 12:18:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 30 Jan 2008 12:18:28 +0100 Subject: [Gambas-user] Bug: Invalid value, Null object In-Reply-To: <688afe140801292137k1caea8dw5c6169efb689c3fb@...627...> References: <688afe140801292137k1caea8dw5c6169efb689c3fb@...627...> Message-ID: <200801301218.28221.gambas@...1...> On mercredi 30 janvier 2008, Nx GT-R BOY wrote: > Bug: Invalid value, Null object > > Hi, after a lot of different setups with my program, I finally discover the > problem that droves my crazy for a while (a long time). > > In my program I need some tables with a lot (problems stars beyond ~16) of > fields, and ONLY with the forms I add all the datacontrols needed for > control de table I get the problem, if is a form with just a little > datacontrols (~8) everything works ok (sometimes dont, but don't know if > the field-type matters), the problem is an Invalid value message (not say > what value), and then a Null object message (not say what object) when I > try to WRITE to the database, but the "nice" part is that the form works > perfect! for read. > > I try with 1 primary key, without one (now I know thats wrong) and with 2 > primary keys, with fields-types like TINYINT, INT, CHAR, VARCHAR, BIT, with > parameters like NOT NULL, NULL, and with defaults value like 0, 1, etc... > but nothing, nothing of that could solve the problem > > After a long time trying to solve the problem, I found a Work around, that > could be what demonstrate the existence of a bug, and not a programing or > DB design mistake. > > The work around is pretty easy, If I need to add X datacontrols to my form, > I add one-by-one, add one, point it, compile and run, test (everything is > perfect!), and so on, with the others datacontrols, I know, its a stupid > way, but thats the only way I found, with 8 controls or less thats nothing, > but I have a form with more than 60, you could imagine me doing that (lol) > > To get the "bug" is simple, you need a database table with more than 16 > fields, then try to add all the needed datacontrols AT ONCE, point all of > them and test your app. > > This post isn't to complain, if someones know a better work-around could be > cool, but the main reason is to help find new bugs (if this one is a bug), > right now I cant help (I know C and C++) since I am busy but later would be > a honor for me to help in a better way the Gambas project. > > Thanks a lot. You sent me your project, but please send me some data to fill the database, otherwise I can't reproduce the bug. Regards, -- Benoit Minisini From rospolosco at ...152... Wed Jan 30 12:30:47 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 30 Jan 2008 12:30:47 +0100 Subject: [Gambas-user] Messing with TextBoxes In-Reply-To: <20080130110107.6E9991CE7A2@...1846...> References: <20080130110107.6E9991CE7A2@...1846...> Message-ID: <200801301230.47997.rospolosco@...152...> Alle 12:01, mercoled? 30 gennaio 2008, Piramix Tecnolog?as ha scritto: > Hi, I'm still looking for the solution to my problem (see below). Someone > told me to store the control not the name of it in a variable but I can't > do that (I can't figure out how really). I'll try to be more specific > reproducin what I'd like to do. > In a form I've got a combobox with values from 1 to 10 (I posted 3 before > just as an example). In that same form I also defined 10 different > textboxes (just say they're called textVar01, textVar02, and so on...) > DISABLED by default. Once the user (this MUST be done during runtime) > clicks the combobox I need to enable as many textboxes as the user selected > (if 1 the first, if 3 the first 3 textboxes, if 10 all of them, and so > on...). How can I do that whit the controls I have? > Or better... how should I modify the code? Take in consideration that I > designed it that way 'cause I store in a database each record including the > munber of variables entered and each variable separated as a way of > control. Any help will be appreciated. > Thanks. > Pablo. > > > > ----- Original Message ----- > > > From: "Fabien Bodard" > > > To: "mailing list for gambas users" > > > Subject: Re: [Gambas-user] Question about enabling a TextBox > > > Date: Sun, 27 Jan 2008 12:32:49 +0100 > > > > > > On Sunday 27 January 2008 12:03:31 Piramix Tecnolog?as wrote: > > > > Good morning people. I've got a little problem and here is it: > > > > I've got a Form with 3 TextBoxes on it (DISABLED by default) called > > > > BoxOne, BoxTwo and BoxThree. I need to enable or disable then > > > > depnding on the code. For that purpose I store the name of each one > > > > in a variable called BoxState wich is previously defined as String > > > > (obviously here's my mistake). When I try to do > > > > BoxState = "BoxOne" > > > > BoxState.Enabled = TRUE > > > > > > > > I got an error. > > > > How can I do that? > > > > I even tried to define a TextBox during execution and then destroy > > > > the control and other steps which I don't remember now but without > > > > any success. Help will be appreciated. > > > > Greetings. > > > > Pablo. > > > > > > you need to store the object ... not the name ! > > > > > > If you have already named the box in the property windows... yu just > > > have to use the control name ! > > > > > > TextBox1.Enabled = true > > > > > > You var is just a string ... so the error is normal > > > > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > > Want an e-mail address like mine? > > Get a free e-mail account today at www.mail.com! > > I'm not sure that I understood, but I've attached an example. Stefano > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: pablo-0.0.1.tar.gz Type: application/x-tgz Size: 7865 bytes Desc: not available URL: From nxgtrturbo at ...626... Wed Jan 30 16:35:27 2008 From: nxgtrturbo at ...626... (Nx GT-R BOY) Date: Wed, 30 Jan 2008 07:35:27 -0800 Subject: [Gambas-user] Rex2: Invalid Value, Null Object (fill data) Message-ID: <688afe140801300735pf1e1af5h2d7b7eec43d21b34@...627...> >You sent me your project, but please send me some data to fill the database, >otherwise I can't reproduce the bug. >Regards, >-- >Benoit Minisini Sorry, but, what do you mean by "data to fill the database", since my database structure creation script ALREADY has data to fill the database, thats what I call data to fill (the last script I send has data too), if you mean Data to test, so whatever (valid) value should work, that really doesn't matter. By the way, this error is the same I have in the project I already send you, the script has the data to fill the database and the data to test its simple, they are INT fields, any valid value (in the months January (enero) or December (diciembre)) will work -- http://www.cardomain.com/ride/645756 http://nxgtrturbo.googlepages.com/ http://www.fotolog.com/nxgtrturbo/ http://tallerhuertas.googlepages.com/ From gambas at ...1... Wed Jan 30 19:35:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 30 Jan 2008 19:35:18 +0100 Subject: [Gambas-user] Rex2: Invalid Value, Null Object (fill data) In-Reply-To: <688afe140801300735pf1e1af5h2d7b7eec43d21b34@...627...> References: <688afe140801300735pf1e1af5h2d7b7eec43d21b34@...627...> Message-ID: <200801301935.18881.gambas@...1...> On mercredi 30 janvier 2008, Nx GT-R BOY wrote: > >You sent me your project, but please send me some data to fill the > > database, > > >otherwise I can't reproduce the bug. > >Regards, > >-- > >Benoit Minisini > > Sorry, but, what do you mean by "data to fill the database", since my > database structure creation script ALREADY has data to fill the database, > thats what I call data to fill (the last script I send has data too), if > you mean Data to test, so whatever (valid) value should work, that really > doesn't matter. > > By the way, this error is the same I have in the project I already send > you, the script has the data to fill the database and the data to test its > simple, they are INT fields, any valid value (in the months January (enero) > or December (diciembre)) will work The 'creabd11' file you sent me just create all the tables, but there is no data in any table except one user and one 'puestos' (I don't know what it is). What should I do exactly to reproduce the bug? Thanks in advance. Regards, -- Benoit Minisini From m0e.lnx at ...626... Wed Jan 30 23:19:36 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 30 Jan 2008 16:19:36 -0600 Subject: [Gambas-user] Hsplit gone crazy!!! Please help In-Reply-To: <200801300233.47703.gambas@...1...> References: <1f1e8c1b0801280944m20d114e2hf753618bacb955c0@...627...> <1f1e8c1b0801291011j2e311572qd77530078e93ce17@...627...> <200801300233.47703.gambas@...1...> Message-ID: <1f1e8c1b0801301419s3347a4d3g5e1799000f294484@...627...> My app uses gb.gui, but it does this when running on a GTK WM. As a work around, I have modified my code to not save and retrieve settings for the Hsplit's layout.... but this definitely needs work I suppose. On Jan 29, 2008 7:33 PM, Benoit Minisini wrote: > > On mardi 29 janvier 2008, M0E Lnx wrote: > > Anybody???? > > > > On Jan 28, 2008 11:44 AM, M0E Lnx wrote: > > > I'm in the process of writing this super kool application. Pretty > > > basic stuff, one window with one hsplit (hsplit1) inside the hsplit, > > > there is a scrollview and an iconview. > > > > > > Using the gb.gui component. > > > On the window's close event, I am storing the window settings to a > > > text file (window size, position on the screen, and the hsplit1 design > > > (pane sizes)) > > > On the window's load event, I'm retreiving these settings, and > > > applying them to the window. > > > > > > All works fine, except for the hsplit1 settings. > > > For some strange reason, every time I open the window, even if I do > > > not change the position of the divider in the hsplit, it stores > > > different values (lower) to the "PANES" setting. > > > This cause the scrollview on the hsplit to get smaller and smaller > > > every time the application loads. > > > > > > Here is a link to the code in case anyone wants to take a look and see > > > if I'm doing something wrong here > > > > > > http://vasmcc.googlecode.com/svn/branches/1.0.10/FMain.class > > > > > > Thanks in advance... > > It seems to be some sort of bug in gb.gtk (I presume you run your program with > gb.gtk). That needs more investigation... > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From piramix at ...178... Thu Jan 31 00:50:04 2008 From: piramix at ...178... (=?iso-8859-1?B?UGlyYW1peCBUZWNub2xvZ+1hcw==?=) Date: Wed, 30 Jan 2008 18:50:04 -0500 Subject: [Gambas-user] Messing with TextBoxes Message-ID: <20080130235004.368D147808F@...1850...> Stefano, thanks 4 your example. That's what I need. You understood me. It's the way I wrote the code initially, but I thought it wasn't right. I was just trying to find a workaround (let's say a more effective code, smaller, just to simplify it). My problem here is that I need to enable/disable 10 textboxes during runtime -and probably more in a future- and is a long CASE sentence. I can see there is not another way to do it so, again, thx. Pablo. > ----- Original Message ----- > From: "Stefano Palmeri" > To: "mailing list for gambas users" > Subject: Re: [Gambas-user] Messing with TextBoxes > Date: Wed, 30 Jan 2008 12:30:47 +0100 > > > Alle 12:01, mercoled? 30 gennaio 2008, Piramix Tecnolog?as ha scritto: > > Hi, I'm still looking for the solution to my problem (see below). Someone > > told me to store the control not the name of it in a variable but I can't > > do that (I can't figure out how really). I'll try to be more specific > > reproducin what I'd like to do. > > In a form I've got a combobox with values from 1 to 10 (I posted 3 before > > just as an example). In that same form I also defined 10 different > > textboxes (just say they're called textVar01, textVar02, and so on...) > > DISABLED by default. Once the user (this MUST be done during runtime) > > clicks the combobox I need to enable as many textboxes as the user selected > > (if 1 the first, if 3 the first 3 textboxes, if 10 all of them, and so > > on...). How can I do that whit the controls I have? > > Or better... how should I modify the code? Take in consideration that I > > designed it that way 'cause I store in a database each record including the > > munber of variables entered and each variable separated as a way of > > control. Any help will be appreciated. > > Thanks. > > Pablo. > > > > > > ----- Original Message ----- > > > > From: "Fabien Bodard" > > > > To: "mailing list for gambas users" > > > > Subject: Re: [Gambas-user] Question about enabling a TextBox > > > > Date: Sun, 27 Jan 2008 12:32:49 +0100 > > > > > > > > On Sunday 27 January 2008 12:03:31 Piramix Tecnolog?as wrote: > > > > > Good morning people. I've got a little problem and here is it: > > > > > I've got a Form with 3 TextBoxes on it (DISABLED by default) called > > > > > BoxOne, BoxTwo and BoxThree. I need to enable or disable then > > > > > depnding on the code. For that purpose I store the name of each one > > > > > in a variable called BoxState wich is previously defined as String > > > > > (obviously here's my mistake). When I try to do > > > > > BoxState = "BoxOne" > > > > > BoxState.Enabled = TRUE > > > > > > > > > > I got an error. > > > > > How can I do that? > > > > > I even tried to define a TextBox during execution and then destroy > > > > > the control and other steps which I don't remember now but without > > > > > any success. Help will be appreciated. > > > > > Greetings. > > > > > Pablo. > > > > > > > > you need to store the object ... not the name ! > > > > > > > > If you have already named the box in the property windows... yu just > > > > have to use the control name ! > > > > > > > > TextBox1.Enabled = true > > > > > > > > You var is just a string ... so the error is normal > > > > > > > > ----------------------------------------------------------------------- > > > >-- This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > > > Want an e-mail address like mine? > > > Get a free e-mail account today at www.mail.com! > > > > > I'm not sure that I understood, but I've attached an example. > > Stefano > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > << pablo-0.0.1.tar.gz >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! From nando_f at ...951... Thu Jan 31 02:54:41 2008 From: nando_f at ...951... (nando) Date: Wed, 30 Jan 2008 20:54:41 -0500 Subject: [Gambas-user] lpt printer In-Reply-To: <479F54D9.7070600@...1237...> References: <001201c86276$5ab937d0$0f0010b2@...1818...> <479F54D9.7070600@...1237...> Message-ID: <20080131015218.M42829@...951...> Your printer is most likely /dev/lp0 or /dev/lp1. Open it just like opening a file and PRINT or WRITE to it. Same thing with serial printers /dev/ttyS0. Same thing with USB->Serial converters to a serial printer /dev/ttyUSB0 -Fernando ---------- Original Message ----------- From: Leonardo Miliani To: mailing list for gambas users Sent: Tue, 29 Jan 2008 17:31:21 +0100 Subject: Re: [Gambas-user] lpt printer > gunartha ha scritto: > > Hi Everybody, > > > > I have a question about printing data to lpt printer > > If in VB6 > > Open "LPT1:" For Output As #1 > > Print #1, "NYOMAN GUNARTHA" > > Close #1 > > > > If in gambas how to direct printing to lpt printer like in VB6 > > and how to set paper (as bill paper) when end of data, the paper printer no scroll. > > > > I'm from Bali/Indonesia, I'm sorry about my english not good and may be this problem had asked before > > > > Thank you very much > > > > Regards > > Nyoman Gunartha > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > You could print something directly to the printer by using the console. > Try something like this: > PUBLIC SUB Printing() > DIM hProcess AS Process > > hProcess = SHELL "lpr " & some_text_to_print_in_a_string & " &" > END > > Or, maybe, use Printer object (must use gb.qt component) to create a PS > document and then print it. > > PUBLIC SUB Printing() > DIM hProcess AS Process > > Printer.Copies = 1 > Printer.Name = "" > Printer.File = Application.Path & "/name_of_file.ps" > Draw.Begin(Printer) > Draw.Foreground = Color.Black > Draw.Font.Size = 10 > Draw.Text ("Some text to print", 500,500,1000,100, Align.Left) > Draw.End > hProcess = SHELL ("lpr " & Application.Path & "/name_of_file.ps" & " &") > END > > -- > Ciao. > Leo. > > Web: www.leonardomiliani.com > E-mail: leonardo at ...1237... > > Co-fondatore di Gambas-it.org: www.gambas-it.org > (il sito italiano dedicato alla comunit? di Gambas) > > Scegli software opensource - Choose opensource software > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gunartha.nyoman at ...1817... Wed Jan 30 20:53:51 2008 From: gunartha.nyoman at ...1817... (gunartha) Date: Thu, 31 Jan 2008 04:53:51 +0900 Subject: [Gambas-user] lpt printer References: <001201c86276$5ab937d0$0f0010b2@...1818...> <479F54D9.7070600@...1237...> <20080131015218.M42829@...951...> Message-ID: <005001c86379$d6c49820$0f0010b2@...1818...> yes, my printer set on /dev/lp0 type Epson LX-00 and I get a sample as below : I try this sample and when end of data, printer still scroll the paper. How to open/print a file to printer so when end of data the paper stop/no scroll PUBLIC SUB Printing() DIM hProcess AS Process Printer.Copies = 1 Printer.Name = "" Printer.File = Application.Path & "/name_of_file.ps" Draw.Begin(Printer) Draw.Foreground = Color.Black Draw.Font.Size = 10 Draw.Text ("Some text to print", 500,500,1000,100, Align.Left) Draw.End hProcess = SHELL ("lpr " & Application.Path & "/name_of_file.ps" & " &") END Thank you regards Gunartha ----- Original Message ----- From: "nando" To: "mailing list for gambas users" Sent: Thursday, January 31, 2008 10:54 AM Subject: Re: [Gambas-user] lpt printer Your printer is most likely /dev/lp0 or /dev/lp1. Open it just like opening a file and PRINT or WRITE to it. Same thing with serial printers /dev/ttyS0. Same thing with USB->Serial converters to a serial printer /dev/ttyUSB0 -Fernando ---------- Original Message ----------- From: Leonardo Miliani To: mailing list for gambas users Sent: Tue, 29 Jan 2008 17:31:21 +0100 Subject: Re: [Gambas-user] lpt printer > gunartha ha scritto: > > Hi Everybody, > > > > I have a question about printing data to lpt printer > > If in VB6 > > Open "LPT1:" For Output As #1 > > Print #1, "NYOMAN GUNARTHA" > > Close #1 > > > > If in gambas how to direct printing to lpt printer like in VB6 > > and how to set paper (as bill paper) when end of data, the paper printer > > no scroll. > > > > I'm from Bali/Indonesia, I'm sorry about my english not good and may be > > this problem had asked before > > > > Thank you very much > > > > Regards > > Nyoman Gunartha > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > You could print something directly to the printer by using the console. > Try something like this: > PUBLIC SUB Printing() > DIM hProcess AS Process > > hProcess = SHELL "lpr " & some_text_to_print_in_a_string & " &" > END > > Or, maybe, use Printer object (must use gb.qt component) to create a PS > document and then print it. > > PUBLIC SUB Printing() > DIM hProcess AS Process > > Printer.Copies = 1 > Printer.Name = "" > Printer.File = Application.Path & "/name_of_file.ps" > Draw.Begin(Printer) > Draw.Foreground = Color.Black > Draw.Font.Size = 10 > Draw.Text ("Some text to print", 500,500,1000,100, Align.Left) > Draw.End > hProcess = SHELL ("lpr " & Application.Path & "/name_of_file.ps" & " &") > END > > -- > Ciao. > Leo. > > Web: www.leonardomiliani.com > E-mail: leonardo at ...1237... > > Co-fondatore di Gambas-it.org: www.gambas-it.org > (il sito italiano dedicato alla comunit? di Gambas) > > Scegli software opensource - Choose opensource software > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Thu Jan 31 09:45:46 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 31 Jan 2008 09:45:46 +0100 Subject: [Gambas-user] Messing with TextBoxes In-Reply-To: <20080130235004.368D147808F@...1850...> References: <20080130235004.368D147808F@...1850...> Message-ID: <200801310945.46543.rospolosco@...152...> Alle 00:50, gioved? 31 gennaio 2008, Piramix Tecnolog?as ha scritto: > Stefano, thanks 4 your example. That's what I need. You understood me. > It's the way I wrote the code initially, but I thought it wasn't right. I > was just trying to find a workaround (let's say a more effective code, > smaller, just to simplify it). My problem here is that I need to > enable/disable 10 textboxes during runtime -and probably more in a future- > and is a long CASE sentence. I can see there is not another way to do it > so, again, thx. > Pablo. Oh, yes. There's a more clean way to do it. I've attached a new example. Very clean few lines instead of long CASE sentences. Saluti, Stefano > > > ----- Original Message ----- > > From: "Stefano Palmeri" > > To: "mailing list for gambas users" > > Subject: Re: [Gambas-user] Messing with TextBoxes > > Date: Wed, 30 Jan 2008 12:30:47 +0100 > > > > Alle 12:01, mercoled? 30 gennaio 2008, Piramix Tecnolog?as ha scritto: > > > Hi, I'm still looking for the solution to my problem (see below). > > > Someone told me to store the control not the name of it in a variable > > > but I can't do that (I can't figure out how really). I'll try to be > > > more specific reproducin what I'd like to do. > > > In a form I've got a combobox with values from 1 to 10 (I posted 3 > > > before just as an example). In that same form I also defined 10 > > > different textboxes (just say they're called textVar01, textVar02, and > > > so on...) DISABLED by default. Once the user (this MUST be done during > > > runtime) clicks the combobox I need to enable as many textboxes as the > > > user selected (if 1 the first, if 3 the first 3 textboxes, if 10 all of > > > them, and so on...). How can I do that whit the controls I have? > > > Or better... how should I modify the code? Take in consideration that I > > > designed it that way 'cause I store in a database each record including > > > the munber of variables entered and each variable separated as a way of > > > control. Any help will be appreciated. > > > Thanks. > > > Pablo. > > > > > > > > ----- Original Message ----- > > > > > From: "Fabien Bodard" > > > > > To: "mailing list for gambas users" > > > > > Subject: Re: [Gambas-user] > > > > > Question about enabling a TextBox Date: Sun, 27 Jan 2008 12:32:49 > > > > > +0100 > > > > > > > > > > On Sunday 27 January 2008 12:03:31 Piramix Tecnolog?as wrote: > > > > > > Good morning people. I've got a little problem and here is it: > > > > > > I've got a Form with 3 TextBoxes on it (DISABLED by default) > > > > > > called BoxOne, BoxTwo and BoxThree. I need to enable or disable > > > > > > then depnding on the code. For that purpose I store the name of > > > > > > each one in a variable called BoxState wich is previously defined > > > > > > as String (obviously here's my mistake). When I try to do > > > > > > BoxState = "BoxOne" > > > > > > BoxState.Enabled = TRUE > > > > > > > > > > > > I got an error. > > > > > > How can I do that? > > > > > > I even tried to define a TextBox during execution and then > > > > > > destroy the control and other steps which I don't remember now > > > > > > but without any success. Help will be appreciated. > > > > > > Greetings. > > > > > > Pablo. > > > > > > > > > > you need to store the object ... not the name ! > > > > > > > > > > If you have already named the box in the property windows... yu > > > > > just have to use the control name ! > > > > > > > > > > TextBox1.Enabled = true > > > > > > > > > > You var is just a string ... so the error is normal > > > > > > > > > > ------------------------------------------------------------------- > > > > >---- -- This SF.net email is sponsored by: Microsoft > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > -- > > > > Want an e-mail address like mine? > > > > Get a free e-mail account today at www.mail.com! > > > > I'm not sure that I understood, but I've attached an example. > > > > Stefano > > > > > > --------------------------------------------------------------------- > > > >---- This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > << pablo-0.0.1.tar.gz >> > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: pablo-0.0.2.tar.gz Type: application/x-tgz Size: 8218 bytes Desc: not available URL: From maillists.gurulounge at ...626... Thu Jan 31 12:14:11 2008 From: maillists.gurulounge at ...626... (Jeffrey Cobb) Date: Thu, 31 Jan 2008 03:14:11 -0800 Subject: [Gambas-user] Avoiding multiple instances Message-ID: <1201778051.1707.6.camel@...1853...> I've made a small toolbar app to run in fluxbox. I've included the binary in my xinitrc file. But I'd like to know how I can avoid multiple instances of the same app running. How does a gambas program detect another copy of itself running? Jeff From piramix at ...178... Thu Jan 31 12:36:22 2008 From: piramix at ...178... (=?iso-8859-1?B?UGlyYW1peCBUZWNub2xvZ+1hcw==?=) Date: Thu, 31 Jan 2008 06:36:22 -0500 Subject: [Gambas-user] Messing with TextBoxes Message-ID: <20080131113622.626761CE7A2@...1846...> Yes sir! That's what I'm talking about! Thank you VERY much. Molto apprezzato. Pablo. > ----- Original Message ----- > From: "Stefano Palmeri" > To: "mailing list for gambas users" > Subject: Re: [Gambas-user] Messing with TextBoxes > Date: Thu, 31 Jan 2008 09:45:46 +0100 > > > Alle 00:50, gioved? 31 gennaio 2008, Piramix Tecnolog?as ha scritto: > > Stefano, thanks 4 your example. That's what I need. You understood me. > > It's the way I wrote the code initially, but I thought it wasn't right. I > > was just trying to find a workaround (let's say a more effective code, > > smaller, just to simplify it). My problem here is that I need to > > enable/disable 10 textboxes during runtime -and probably more in a future- > > and is a long CASE sentence. I can see there is not another way to do it > > so, again, thx. > > Pablo. > > Oh, yes. There's a more clean way to do it. > I've attached a new example. Very clean few lines instead > of long CASE sentences. > > Saluti, > > Stefano > > > > > > > > > ----- Original Message ----- > > > From: "Stefano Palmeri" > > > To: "mailing list for gambas users" > > > Subject: Re: [Gambas-user] Messing with TextBoxes > > > Date: Wed, 30 Jan 2008 12:30:47 +0100 > > > > > > Alle 12:01, mercoled? 30 gennaio 2008, Piramix Tecnolog?as ha scritto: > > > > Hi, I'm still looking for the solution to my problem (see below). > > > > Someone told me to store the control not the name of it in a variable > > > > but I can't do that (I can't figure out how really). I'll try to be > > > > more specific reproducin what I'd like to do. > > > > In a form I've got a combobox with values from 1 to 10 (I posted 3 > > > > before just as an example). In that same form I also defined 10 > > > > different textboxes (just say they're called textVar01, textVar02, and > > > > so on...) DISABLED by default. Once the user (this MUST be done during > > > > runtime) clicks the combobox I need to enable as many textboxes as the > > > > user selected (if 1 the first, if 3 the first 3 textboxes, if 10 all of > > > > them, and so on...). How can I do that whit the controls I have? > > > > Or better... how should I modify the code? Take in consideration that I > > > > designed it that way 'cause I store in a database each record including > > > > the munber of variables entered and each variable separated as a way of > > > > control. Any help will be appreciated. > > > > Thanks. > > > > Pablo. > > > > > > > > > > ----- Original Message ----- > > > > > > From: "Fabien Bodard" > > > > > > To: "mailing list for gambas users" > > > > > > Subject: Re: [Gambas-user] > > > > > > Question about enabling a TextBox Date: Sun, 27 Jan 2008 12:32:49 > > > > > > +0100 > > > > > > > > > > > > On Sunday 27 January 2008 12:03:31 Piramix Tecnolog?as wrote: > > > > > > > Good morning people. I've got a little problem and here is it: > > > > > > > I've got a Form with 3 TextBoxes on it (DISABLED by default) > > > > > > > called BoxOne, BoxTwo and BoxThree. I need to enable or disable > > > > > > > then depnding on the code. For that purpose I store the name of > > > > > > > each one in a variable called BoxState wich is previously defined > > > > > > > as String (obviously here's my mistake). When I try to do > > > > > > > BoxState = "BoxOne" > > > > > > > BoxState.Enabled = TRUE > > > > > > > > > > > > > > I got an error. > > > > > > > How can I do that? > > > > > > > I even tried to define a TextBox during execution and then > > > > > > > destroy the control and other steps which I don't remember now > > > > > > > but without any success. Help will be appreciated. > > > > > > > Greetings. > > > > > > > Pablo. > > > > > > > > > > > > you need to store the object ... not the name ! > > > > > > > > > > > > If you have already named the box in the property windows... yu > > > > > > just have to use the control name ! > > > > > > > > > > > > TextBox1.Enabled = true > > > > > > > > > > > > You var is just a string ... so the error is normal > > > > > > > > > > > > ------------------------------------------------------------------- > > > > > >---- -- This SF.net email is sponsored by: Microsoft > > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > -- > > > > > Want an e-mail address like mine? > > > > > Get a free e-mail account today at www.mail.com! > > > > > > I'm not sure that I understood, but I've attached an example. > > > > > > Stefano > > > > > > > > --------------------------------------------------------------------- > > > > >---- This SF.net email is sponsored by: Microsoft > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > << pablo-0.0.1.tar.gz >> > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > << pablo-0.0.2.tar.gz >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! From gambas at ...1... Thu Jan 31 12:45:42 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 31 Jan 2008 12:45:42 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <1201778051.1707.6.camel@...1853...> References: <1201778051.1707.6.camel@...1853...> Message-ID: <200801311245.42468.gambas@...1...> On jeudi 31 janvier 2008, Jeffrey Cobb wrote: > I've made a small toolbar app to run in fluxbox. I've included the > binary in my xinitrc file. But I'd like to know how I can avoid > multiple instances of the same app running. How does a gambas program > detect another copy of itself running? > > Jeff > It does not. There is no simple way for doing that, because "avoiding multiple instances" have different meanings on Linux. 1) The first meaning is not having multiple instances on the same OS. You can do that by using a file lock on a file system that is unique for this OS. This is what system services usually do. 2) The second meaning is not having multiple instances on the same OS for one user. You can use a lock file in the user home directory, or one lock file for each user in the /tmp directoy (because some special users may not have an home directory). 3) The third meaning is not having multiple instances on the same X11 display for one client (and usually for one user as multiple users are rarely allowed to connect to the same X11 display). Then you have to detect the current running application by looking at top-level windows X11 properties, or by creating your own X11 property on the root window for your application. You can do 1) and 2) in Gambas, but 3) cannot be done yet. Implementing 3) in the gb.desktop component would be a good idea, I note that in the TODO file. Regards, -- Benoit Minisini From leonardo at ...1237... Thu Jan 31 16:00:37 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 31 Jan 2008 16:00:37 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <1201778051.1707.6.camel@...1853...> References: <1201778051.1707.6.camel@...1853...> Message-ID: <47A1E295.7000906@...1237...> Jeffrey Cobb ha scritto: > I've made a small toolbar app to run in fluxbox. I've included the > binary in my xinitrc file. But I'd like to know how I can avoid > multiple instances of the same app running. How does a gambas program > detect another copy of itself running? > > Jeff > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I can suggest you how I solved this problem. When an application of mine starts, it creates a file just by executing this code: PRIVATE FUNCTION Check_If_Running() AS Boolean DIM TempString AS String DIM hFile AS File TempString = Application.Path & "/.running" IF Exist(TempString) THEN Message.Warning("No multiple instances allowed") RETURN TRUE END IF hFile = OPEN TempString FOR CREATE CLOSE #hFile RETURN FALSE END The first time that the app starts it creates an empty hidden file and it returns FALSE because it didn't find another instance running. The second time that you call the function you'll get TRUE because the program is running (it created the check file). Just by checking its existance you can know if another instance of the program is running. Of course, when you close the app, you have to delete it: PUBLIC SUB Form_Close() IF Exist(Application.Path & "/.running") THEN KILL Application.Path & "/.running" END IF END -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From leonardo at ...1237... Thu Jan 31 16:07:28 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 31 Jan 2008 16:07:28 +0100 Subject: [Gambas-user] lpt printer In-Reply-To: <005001c86379$d6c49820$0f0010b2@...1818...> References: <001201c86276$5ab937d0$0f0010b2@...1818...> <479F54D9.7070600@...1237...> <20080131015218.M42829@...951...> <005001c86379$d6c49820$0f0010b2@...1818...> Message-ID: <47A1E430.8020002@...1237...> gunartha ha scritto: > yes, my printer set on /dev/lp0 type Epson LX-00 > and I get a sample as below : I try this sample and when end of data, > printer still scroll the paper. What does it mean "printer still scroll the paper"? If you mean that the printer scrolls the paper until the sheet end, it's the normal way of working of the Printer object: you use it as a sheet where you design your graphics and write your text. When you terminate your job (Draw.End) it is printed, but all the sheet of paper is used. > How to open/print a file to printer so when end of data the paper stop/no > scroll The printer is set to eject the sheet, even you used just a line of the paper. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From eilert-sprachen at ...221... Thu Jan 31 16:19:06 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 31 Jan 2008 16:19:06 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <47A1E295.7000906@...1237...> References: <1201778051.1707.6.camel@...1853...> <47A1E295.7000906@...1237...> Message-ID: <47A1E6EA.1080809@...221...> Leonardo Miliani schrieb: > Jeffrey Cobb ha scritto: >> I've made a small toolbar app to run in fluxbox. I've included the >> binary in my xinitrc file. But I'd like to know how I can avoid >> multiple instances of the same app running. How does a gambas program >> detect another copy of itself running? >> >> Jeff >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > I can suggest you how I solved this problem. > When an application of mine starts, it creates a file just by executing > this code: > > PRIVATE FUNCTION Check_If_Running() AS Boolean > DIM TempString AS String > DIM hFile AS File > TempString = Application.Path & "/.running" > IF Exist(TempString) THEN > Message.Warning("No multiple instances allowed") > RETURN TRUE > END IF > hFile = OPEN TempString FOR CREATE > CLOSE #hFile > RETURN FALSE > END > > The first time that the app starts it creates an empty hidden file and > it returns FALSE because it didn't find another instance running. > The second time that you call the function you'll get TRUE because the > program is running (it created the check file). > Just by checking its existance you can know if another instance of the > program is running. > > Of course, when you close the app, you have to delete it: > > PUBLIC SUB Form_Close() > > IF Exist(Application.Path & "/.running") THEN > KILL Application.Path & "/.running" > END IF > > END > Indeed, that is the problem with this solution: if the app crashes, it will prevent itself from being restarted until the user manually deletes the hidden file. I didn't find a good way out of this yet :-) Rolf From leonardo at ...1237... Thu Jan 31 16:25:25 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 31 Jan 2008 16:25:25 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <47A1E6EA.1080809@...221...> References: <1201778051.1707.6.camel@...1853...> <47A1E295.7000906@...1237...> <47A1E6EA.1080809@...221...> Message-ID: <47A1E865.6030609@...1237...> Rolf-Werner Eilert ha scritto: > Leonardo Miliani schrieb: >> Jeffrey Cobb ha scritto: >>> I've made a small toolbar app to run in fluxbox. I've included the >>> binary in my xinitrc file. But I'd like to know how I can avoid >>> multiple instances of the same app running. How does a gambas program >>> detect another copy of itself running? >>> >>> Jeff >>> >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> I can suggest you how I solved this problem. >> When an application of mine starts, it creates a file just by executing >> this code: >> >> PRIVATE FUNCTION Check_If_Running() AS Boolean >> DIM TempString AS String >> DIM hFile AS File >> TempString = Application.Path & "/.running" >> IF Exist(TempString) THEN >> Message.Warning("No multiple instances allowed") >> RETURN TRUE >> END IF >> hFile = OPEN TempString FOR CREATE >> CLOSE #hFile >> RETURN FALSE >> END >> >> The first time that the app starts it creates an empty hidden file and >> it returns FALSE because it didn't find another instance running. >> The second time that you call the function you'll get TRUE because the >> program is running (it created the check file). >> Just by checking its existance you can know if another instance of the >> program is running. >> >> Of course, when you close the app, you have to delete it: >> >> PUBLIC SUB Form_Close() >> >> IF Exist(Application.Path & "/.running") THEN >> KILL Application.Path & "/.running" >> END IF >> >> END >> > > Indeed, that is the problem with this solution: if the app crashes, it > will prevent itself from being restarted until the user manually deletes > the hidden file. I didn't find a good way out of this yet :-) > > Rolf > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > In fact, for my personal app, I also created a Recovery tool (just a simple script) that deletes the hidden file and starts again my app. :-) But it's the only easy way I found to check if my app is still running. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di Gambas-it.org: www.gambas-it.org (il sito italiano dedicato alla comunit? di Gambas) Scegli software opensource - Choose opensource software From rospolosco at ...152... Thu Jan 31 16:45:03 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 31 Jan 2008 16:45:03 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <47A1E6EA.1080809@...221...> References: <1201778051.1707.6.camel@...1853...> <47A1E295.7000906@...1237...> <47A1E6EA.1080809@...221...> Message-ID: <200801311645.03917.rospolosco@...152...> Alle 16:19, gioved? 31 gennaio 2008, Rolf-Werner Eilert ha scritto: > Leonardo Miliani schrieb: > > Jeffrey Cobb ha scritto: > >> I've made a small toolbar app to run in fluxbox. I've included the > >> binary in my xinitrc file. But I'd like to know how I can avoid > >> multiple instances of the same app running. How does a gambas program > >> detect another copy of itself running? > >> > >> Jeff > >> > >> > >> > >> ------------------------------------------------------------------------ > >>- This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > I can suggest you how I solved this problem. > > When an application of mine starts, it creates a file just by executing > > this code: > > > > PRIVATE FUNCTION Check_If_Running() AS Boolean > > DIM TempString AS String > > DIM hFile AS File > > TempString = Application.Path & "/.running" > > IF Exist(TempString) THEN > > Message.Warning("No multiple instances allowed") > > RETURN TRUE > > END IF > > hFile = OPEN TempString FOR CREATE > > CLOSE #hFile > > RETURN FALSE > > END > > > > The first time that the app starts it creates an empty hidden file and > > it returns FALSE because it didn't find another instance running. > > The second time that you call the function you'll get TRUE because the > > program is running (it created the check file). > > Just by checking its existance you can know if another instance of the > > program is running. > > > > Of course, when you close the app, you have to delete it: > > > > PUBLIC SUB Form_Close() > > > > IF Exist(Application.Path & "/.running") THEN > > KILL Application.Path & "/.running" > > END IF > > > > END > > Indeed, that is the problem with this solution: if the app crashes, it > will prevent itself from being restarted until the user manually deletes > the hidden file. I didn't find a good way out of this yet :-) > > Rolf > I use this simple code: PUBLIC SUB Main() DIM sShellOutput AS String SHELL "ps aux | grep " & Application.Name & ".gambas" & " | grep -v grep" TO sShellOutput IF sShellOutput THEN QUIT END Stefano > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From hscast at ...407... Thu Jan 31 16:58:40 2008 From: hscast at ...407... (Scott Castaline) Date: Thu, 31 Jan 2008 10:58:40 -0500 Subject: [Gambas-user] lpt printer In-Reply-To: <47A1E430.8020002@...1237...> References: <001201c86276$5ab937d0$0f0010b2@...1818...> <479F54D9.7070600@...1237...> <20080131015218.M42829@...951...> <005001c86379$d6c49820$0f0010b2@...1818...> <47A1E430.8020002@...1237...> Message-ID: <47A1F030.6080508@...407...> Leonardo Miliani wrote: > gunartha ha scritto: > >> yes, my printer set on /dev/lp0 type Epson LX-00 >> and I get a sample as below : I try this sample and when end of data, >> printer still scroll the paper. >> > > What does it mean "printer still scroll the paper"? > If you mean that the printer scrolls the paper until the sheet end, it's > the normal way of working of the Printer object: you use it as a sheet > where you design your graphics and write your text. When you terminate > your job (Draw.End) it is printed, but all the sheet of paper is used. > > >> How to open/print a file to printer so when end of data the paper stop/no >> scroll >> > > The printer is set to eject the sheet, even you used just a line of the > paper. > > I get the impression that he wants to disable this function. He may have an app that generates a few lines of text at a time, prints it then will generate a few more lines later. We used to do this to UNIX servers back in the 80's and earlier where a system message normally went to the main console and we wanted to save it in print we would redirect it to a dot matrix continuous feed printer without the page eject command being sent. From rospolosco at ...152... Thu Jan 31 17:35:04 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 31 Jan 2008 17:35:04 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <200801311645.03917.rospolosco@...152...> References: <1201778051.1707.6.camel@...1853...> <47A1E6EA.1080809@...221...> <200801311645.03917.rospolosco@...152...> Message-ID: <200801311735.05099.rospolosco@...152...> Alle 16:45, gioved? 31 gennaio 2008, Stefano Palmeri ha scritto: > I use this simple code: > > PUBLIC SUB Main() > ? > ? DIM sShellOutput AS String > ? > ? SHELL "ps aux | grep " & Application.Name & ".gambas" & " | grep -v grep" > TO sShellOutput > ? > ? IF sShellOutput THEN QUIT ? > ? ? ? > END or better: PUBLIC SUB Main() DIM sShellOutput AS String SHELL "ps aux | grep " & Application.Name & ".gambas" & " | grep -wv grep | wc -l" TO sShellOutput IF Val(sShellOutput) > 1 THEN QUIT END From jedsoftware at ...626... Thu Jan 31 17:46:27 2008 From: jedsoftware at ...626... (John Dizaro) Date: Thu, 31 Jan 2008 14:46:27 -0200 Subject: [Gambas-user] "no keyboard event data" in gridview Gambas 2.0.0 debian Text Message-ID: <11c2d5210801310846n4ebffd73l205f67bce0bd91b1@...627...> I am javing problema with key.code = key.Enter in GRIDVIEW as you can see in Captura_da_tela.png can someone help me? Thanks for all John Evan Dizaro -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura_da_tela.png Type: image/png Size: 132645 bytes Desc: not available URL: From maximvonk at ...626... Thu Jan 31 18:00:06 2008 From: maximvonk at ...626... (MaxVK) Date: Thu, 31 Jan 2008 09:00:06 -0800 (PST) Subject: [Gambas-user] Saving Listbox contents Message-ID: <15208582.post@...1379...> Hi there. Could anyone tell me if I'm doing this the right way: To save the contents of a listbox to a file I am enumerating the listbox 1 item at a time, and writing the text of each item to a file in turn. Is this the right way to go about things? It just seems a bit long winded, and I cant find anything in the documentation that suggests any other way. Thanks Max -- View this message in context: http://www.nabble.com/Saving-Listbox-contents-tp15208582p15208582.html Sent from the gambas-user mailing list archive at Nabble.com. From rospolosco at ...152... Thu Jan 31 18:35:09 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 31 Jan 2008 18:35:09 +0100 Subject: [Gambas-user] Saving Listbox contents In-Reply-To: <15208582.post@...1379...> References: <15208582.post@...1379...> Message-ID: <200801311835.09533.rospolosco@...152...> Alle 18:00, gioved? 31 gennaio 2008, MaxVK ha scritto: > Hi there. > > Could anyone tell me if I'm doing this the right way: To save the contents > of a listbox to a file I am enumerating the listbox 1 item at a time, and > writing the text of each item to a file in turn. > > Is this the right way to go about things? It just seems a bit long winded, > and I cant find anything in the documentation that suggests any other way. > > Thanks > > Max Hi. I've attached an example. It saves the file just once. The file is t3mporaryfil3.txt in your home directory. Stefano -------------- next part -------------- A non-text attachment was scrubbed... Name: listaboxxa-0.0.1.tar.gz Type: application/x-tgz Size: 7687 bytes Desc: not available URL: From epileg at ...626... Thu Jan 31 18:38:35 2008 From: epileg at ...626... (=?ISO-8859-1?Q?Ep=EDleg?=) Date: Thu, 31 Jan 2008 18:38:35 +0100 Subject: [Gambas-user] Avoiding multiple instances In-Reply-To: <200801311735.05099.rospolosco@...152...> References: <1201778051.1707.6.camel@...1853...> <47A1E6EA.1080809@...221...> <200801311645.03917.rospolosco@...152...> <200801311735.05099.rospolosco@...152...> Message-ID: <47A2079B.5030205@...626...> En/na Stefano Palmeri ha escrit: > Alle 16:45, gioved? 31 gennaio 2008, Stefano Palmeri ha scritto: >> I use this simple code: >> >> PUBLIC SUB Main() >> >> DIM sShellOutput AS String >> >> SHELL "ps aux | grep " & Application.Name & ".gambas" & " | grep -v grep" >> TO sShellOutput >> >> IF sShellOutput THEN QUIT >> >> END > > or better: > > PUBLIC SUB Main() > > DIM sShellOutput AS String > > SHELL "ps aux | grep " & Application.Name & ".gambas" & > " | grep -wv grep | wc -l" TO sShellOutput > > IF Val(sShellOutput) > 1 THEN QUIT > > END Very good solution. Thanks a lot! Ep?leg. From maximvonk at ...626... Thu Jan 31 20:54:50 2008 From: maximvonk at ...626... (MaxVK) Date: Thu, 31 Jan 2008 11:54:50 -0800 (PST) Subject: [Gambas-user] Saving Listbox contents In-Reply-To: <200801311835.09533.rospolosco@...152...> References: <15208582.post@...1379...> <200801311835.09533.rospolosco@...152...> Message-ID: <15213354.post@...1379...> Very many thanks Stefano. Regards Max -- View this message in context: http://www.nabble.com/Saving-Listbox-contents-tp15208582p15213354.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1822... Thu Jan 31 21:59:21 2008 From: rterry at ...1822... (richard terry) Date: Fri, 1 Feb 2008 07:59:21 +1100 Subject: [Gambas-user] Some sort fo glibc crash when running form. Message-ID: <200802010759.21388.rterry@...1822...> Loaded the collections example, and re-saved it as a new project in my directory. Then added a duplicate form the the main form, ran the project, and got this error. *** glibc detected *** Collection: double free or corruption (out): 0x080e3820 *** Then my other gambas project wouldn't run, but ok when re-booted. Probably untraceable, but could someone explain what it means. Richard