Re: [Gambas-user] Selection from GridView
I think you have a bug in your gambas2 version. What distro are you using? (I always run gambas in ubuntu because I've got problems with fedora and opensuse and the instalation in ubuntu form sources are easy and clear - you can see step by step in gambasdoc.org) Are you using your distro repositories to install gambas2? gnome or KDE? I confirm to you I can't cancel the selection by click at the same row. This is only possible by theGridView.Rows.Unselect (I think this is one of the differences whith listbox control, but I allways use gridviews and no ListBoxes because I'm a databases programmer and allways hide first or more columns to get from this the id of the rows after) Multiple is the correct value for do that you want. I recomended to you you try to compile gambas2 from souces in souceforge using Ubuntu (Ubuntu is not the best distro but I use this because gambas run fine and it's easy and fast to deploy my apps using freenx) Regards, 2009/9/10 Aleksandrs Livshics alek...@mpe.lv Thank you. I was not clear enough, sorry. The problem is not with programming, but with the selection by mouse and keyboard. The Ctrl and Shift do not work the way they do with the ListBox for example. The only way to select more then one row is to drag the mouse cursor keeping the left button pressed. But then only the consequent rows can be chosen. Also I cannot cancel the selection. Only if I select another row.. If I click on a selected row or double click on it nothing happens. It is NOT the same as in the case of ListBox. I must also mention that I have set the mode of the GridView to multiple. I hope now my question is clear. On Thursday 10 September 2009 09:55:12 Ricardo Díaz Martín wrote: To do the first write (select first, third and sixth rows - gvYourGridView is the name of the gridview in your form) gvYourGridView.Rows.[0].Selected = True gvYourGridView.Rows.[2].Selected = True gvYourGridView.Rows.[5].Selected = True To do the second only write gvYourGridView.Rows.Unselect Regards, Ricardo Díaz 2009/9/9 Aleksandrs Livshics alek...@mpe.lv Hi Gambas users. I cannot fond how to select several rows from a GridView. The difficulty happens only if the rows to select are not consequent. If there is a simple interval of rows, then selection works well, but if I want to select, say, row1 and row5 ? Also how can a row selection be canceled without selecting of another row? Just mouse click on the selected row does not cancel the selection... My version is 2.7. Aleks - - Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --- --- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Workspace and scrollbars
Good morning to all, is it possible to use scrollbars with workspace when a form is bigger than visible screen area? -- Γεια χαρα σε όλους!!! Regards, Demosthenes Koptsis -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Word Wrap in GridView
Angel Romero Astorga schrieb: Hi all My problem is similar. When I used gb.gui, GridView wrap the text, but when I use gb.qt, it don't do it. ¿How can I wrap the text in a cell? thanks Rolf, I don't know how to help you, sorry I'm using the whole thing under KDE only, and I don't know why it wraps the texts (though I don't mind it doing so :-) ). Is there a property to switch this on or off? Here is an idea for the developers (bonjour Benoit...) which came to me the other day: IF there is any value about word-wrap that can be read from the original C++ GridView from the libraries, it might suffice to give just an integer about the number of text lines in a grid line. If it's 1, the program could decide whether to stretch this line's height to make the whole text visible. A single line's height can be read easily anyway. If the programmer doesn't want to decide for each line, there could be a property as well to be set with TRUE to make the GridView care for it by itself. Just my 2 cents... Regards Rolf -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Selection from GridView
I used 2.7 on eeepc version of Ubuntu 8.1 (called EasyPeasy 1.1), but now I have compiled 2.16 on the same system. No difference. I can select one row only or a group of rows, but not 2 rows in different places of the GridView. But I cannot imagine how this netbook may be different from a usual PC in this case. Should be only small and slow and without a CD/DVD inside... And I have never noticed any differences using other software. On Friday 11 September 2009 10:10:35 Ricardo Díaz Martín wrote: I think you have a bug in your gambas2 version. What distro are you using? (I always run gambas in ubuntu because I've got problems with fedora and opensuse and the instalation in ubuntu form sources are easy and clear - you can see step by step in gambasdoc.org) Are you using your distro repositories to install gambas2? gnome or KDE? I confirm to you I can't cancel the selection by click at the same row. This is only possible by theGridView.Rows.Unselect (I think this is one of the differences whith listbox control, but I allways use gridviews and no ListBoxes because I'm a databases programmer and allways hide first or more columns to get from this the id of the rows after) Multiple is the correct value for do that you want. I recomended to you you try to compile gambas2 from souces in souceforge using Ubuntu (Ubuntu is not the best distro but I use this because gambas run fine and it's easy and fast to deploy my apps using freenx) Regards, 2009/9/10 Aleksandrs Livshics alek...@mpe.lv Thank you. I was not clear enough, sorry. The problem is not with programming, but with the selection by mouse and keyboard. The Ctrl and Shift do not work the way they do with the ListBox for example. The only way to select more then one row is to drag the mouse cursor keeping the left button pressed. But then only the consequent rows can be chosen. Also I cannot cancel the selection. Only if I select another row.. If I click on a selected row or double click on it nothing happens. It is NOT the same as in the case of ListBox. I must also mention that I have set the mode of the GridView to multiple. I hope now my question is clear. On Thursday 10 September 2009 09:55:12 Ricardo Díaz Martín wrote: To do the first write (select first, third and sixth rows - gvYourGridView is the name of the gridview in your form) gvYourGridView.Rows.[0].Selected = True gvYourGridView.Rows.[2].Selected = True gvYourGridView.Rows.[5].Selected = True To do the second only write gvYourGridView.Rows.Unselect Regards, Ricardo Díaz 2009/9/9 Aleksandrs Livshics alek...@mpe.lv Hi Gambas users. I cannot fond how to select several rows from a GridView. The difficulty happens only if the rows to select are not consequent. If there is a simple interval of rows, then selection works well, but if I want to select, say, row1 and row5 ? Also how can a row selection be canceled without selecting of another row? Just mouse click on the selected row does not cancel the selection... My version is 2.7. Aleks - - Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user - -- --- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user - - Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --- --- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report
Re: [Gambas-user] Word Wrap in GridView
Angel Romero Astorga schrieb: Hi all My problem is similar. When I used gb.gui, GridView wrap the text, but when I use gb.qt, it don't do it. ¿How can I wrap the text in a cell? thanks Rolf, I don't know how to help you, sorry I'm using the whole thing under KDE only, and I don't know why it wraps the texts (though I don't mind it doing so :-) ). Is there a property to switch this on or off? Here is an idea for the developers (bonjour Benoit...) which came to me the other day: IF there is any value about word-wrap that can be read from the original C++ GridView from the libraries, it might suffice to give just an integer about the number of text lines in a grid line. If it's 1, the program could decide whether to stretch this line's height to make the whole text visible. A single line's height can be read easily anyway. If the programmer doesn't want to decide for each line, there could be a property as well to be set with TRUE to make the GridView care for it by itself. Just my 2 cents... Regards Rolf In Gambas 3, I added a WordWrap property to the cell virtual object and the Data property, both in gb.qt4 and gb.gtk. By default, this property is false, and text is not wrapped. In Gambas 2, cells won't be never wrapped. Regards, -- Benoît Minisini -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Database manager Save Table problem
Benoît Minisini a écrit : ... Apparently on other database systems, two index can have the same name provided they are on different tables. ? strange (and I'm not sure this fit in SQLs standards) However, in PG, you can't have a doublon, either it is from tables, indexes, sequences (exception for functions, unless args are the same) unless your items are in different schemas. I will modify the postgresql driver to add the table name before each index, it should solve the problem. Be careful because this is PG's standard naming system; an index is automatically named as: tablename_columnname_key (..._pkey for primary keys) Yep. Modifying the driver is not the solution at all. I must modify the IDE instead... I modified the algorithm used by the database manager to save table definition so that index names do not conflict. The fix is in revision 2330 for Gambas 2. I will make a 2.16.1 release soon. Regards, -- Benoît Minisini -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] a IDE-Bug in 2.16.0 rev 2323
Salut Benoit, [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.24-24-generic DistributionVendor=ubuntu DistributionRelease=Ubuntu 8.04.3 LTS [System] CPUArchitecture=i686 TotalRam=506932 kB [Gambas] Gambas1=gbx-1.0.17 Gambas1Path=/usr/bin/gbx Gambas2=2.16.0 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 - gambas2 -- 2.16.0 Revision: 2323 /usr/local/bin/gbx2 changing in IDE-Editor the sub/function by selecting it in the ComboBox raise an Error and IDE crashes. I cannot reproduce the bug - please give some details about what you did exactly. Regards, -- Benoît Minisini -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Property buttons for popup dialogis in IDE not working
With versions after 2219, the buttons to bring up things like font dialogs, colors, don't work for me, no-one else seems to be complaining. last version tried 2230. ??just me, if so, any way of tracking this down? Regards Richard -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Property buttons for popup dialogis in IDE not working
With versions after 2219, the buttons to bring up things like font dialogs, colors, don't work for me, no-one else seems to be complaining. last version tried 2230. ??just me, if so, any way of tracking this down? Regards Richard I confirm the bug. -- Benoît Minisini -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Property buttons for popup dialogis in IDE not working - second try
On Friday 11 September 2009 22:53:52 richard terry wrote: Dorry, I meant after 2319. not 2219 I've taken a close look at this and what is happening is that the mouse down, instead of depressing the button the button disappears from under the mouse. Interestingly if I double click really quickly on the blank area where the button should be, after a number of times (seemingly randomly) the mouse up event I presume seems to trigger something and the dialog appears. Regards Richard With versions after 2219, the buttons to bring up things like font dialogs, colors, don't work for me, no-one else seems to be complaining. last version tried 2230. ??just me, if so, any way of tracking this down? Regards Richard --- --- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Profiler for Gambas projects
Hi all! I hope I'm not talking pure non-sense about this, but lets try... I was thinking about possibility to make profiler for Gambas projects. I readed wikipedia article about profilers ( http://en.wikipedia.org/wiki/Profiler_(computer_science)#Statistical_profilers ), and I think statistical profiler would be possible solution. I really don't know for sure. If interpreter could put out time and address in bytecode, then it would be possible to do statistical analyze about running gambas project. (maybe there is problem to translate bytecode address to line of source code..?) Would be nice if interpreter could be compiled with optionally to act like profiler or normal interpreter (then no performance penalty). I think that would be possible with preprocessor conditionals..? If I'm correct, then only thing left to do is GUI for the data, and that could be written with Gambas. Comments? I think profiler is important feature, and I hope we can find other solution than just manual instrumentation... yes I actually do that. Jussi -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Profiler for Gambas projects
Hi all! I hope I'm not talking pure non-sense about this, but lets try... I was thinking about possibility to make profiler for Gambas projects. I readed wikipedia article about profilers ( http://en.wikipedia.org/wiki/Profiler_(computer_science)#Statistical_profil ers ), and I think statistical profiler would be possible solution. I really don't know for sure. If interpreter could put out time and address in bytecode, then it would be possible to do statistical analyze about running gambas project. (maybe there is problem to translate bytecode address to line of source code..?) Would be nice if interpreter could be compiled with optionally to act like profiler or normal interpreter (then no performance penalty). I think that would be possible with preprocessor conditionals..? If I'm correct, then only thing left to do is GUI for the data, and that could be written with Gambas. Comments? I think profiler is important feature, and I hope we can find other solution than just manual instrumentation... yes I actually do that. Jussi You mean something like valgrind/callgrind, but for the Gambas bytecode? -- Benoît Minisini -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Profiler for Gambas projects
I haven't use Valgrind, but I think yes, but I'm only interested about performace analysis. Jussi 2009/9/11 Benoît Minisini gam...@users.sourceforge.net: Hi all! I hope I'm not talking pure non-sense about this, but lets try... I was thinking about possibility to make profiler for Gambas projects. I readed wikipedia article about profilers ( http://en.wikipedia.org/wiki/Profiler_(computer_science)#Statistical_profil ers ), and I think statistical profiler would be possible solution. I really don't know for sure. If interpreter could put out time and address in bytecode, then it would be possible to do statistical analyze about running gambas project. (maybe there is problem to translate bytecode address to line of source code..?) Would be nice if interpreter could be compiled with optionally to act like profiler or normal interpreter (then no performance penalty). I think that would be possible with preprocessor conditionals..? If I'm correct, then only thing left to do is GUI for the data, and that could be written with Gambas. Comments? I think profiler is important feature, and I hope we can find other solution than just manual instrumentation... yes I actually do that. Jussi You mean something like valgrind/callgrind, but for the Gambas bytecode? -- Benoît Minisini -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Profiler for Gambas projects
Jussi Lahtinen a écrit : I haven't use Valgrind, but I think yes, but I'm only interested about performace analysis. I think that's a nice idea, when I 1st used a python profiler, I found many places where small modifications greatly improved execution time. JY -- I know things about TROY DONAHUE that can't even be PRINTED!! -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] a IDE-Bug in 2.16.0 rev 2323
Am Freitag, den 11.09.2009, 13:34 +0200 schrieb Benoît Minisini: Salut Benoit, [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.24-24-generic DistributionVendor=ubuntu DistributionRelease=Ubuntu 8.04.3 LTS [System] CPUArchitecture=i686 TotalRam=506932 kB [Gambas] Gambas1=gbx-1.0.17 Gambas1Path=/usr/bin/gbx Gambas2=2.16.0 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 - gambas2 -- 2.16.0 Revision: 2323 /usr/local/bin/gbx2 changing in IDE-Editor the sub/function by selecting it in the ComboBox raise an Error and IDE crashes. I cannot reproduce the bug - please give some details about what you did exactly. Regards, Salut, today I cannot reproduce the bug too. What I do, I often do, is changing in an open IDE the projects, run them, test them. Move sometimes the place where the project is stored (move them). Yesterday, after the a couple of reproduction off that bug, I copied the last gambas-IDE to my home, loaded and started it, then I'v chosen the project and could reproduce the error the 3 objects had all a NULL value. What I did: I stood in the code editor and wanted to change into another SUB, which I choose in the combobox.. and hoped ...and crashed. Send you the stack. -- Amicalment Charlie attachment: Unbenannt.xcf-- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Profiler for Gambas projects
I haven't use Valgrind, but I think yes, but I'm only interested about performace analysis. Jussi OK, I read the wikipedia entry and found how gprof works, and now I can see how it could be done: 1) Have a counter for each Gambas function written in Gambas and for each public function of each component. 2) Increment this counter each time the function is called. 3) Eventually note the current stack backtrace at each function call. 4) Have another counter for each function. 5) Run a high resolution timer that increments that counter for the current function at the time the timer is triggered. 6) Save all this results to disk when the program terminates, or in real time. But I hate slowing down the interpreter for such things. I have no idea on how to implement that in a efficient way. Maybe by compiling a special version of the interpreter that dumps this information? -- Benoît Minisini -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Profiler for Gambas projects
Benoît Minisini schreef: I haven't use Valgrind, but I think yes, but I'm only interested about performace analysis. Jussi OK, I read the wikipedia entry and found how gprof works, and now I can see how it could be done: 1) Have a counter for each Gambas function written in Gambas and for each public function of each component. 2) Increment this counter each time the function is called. 3) Eventually note the current stack backtrace at each function call. 4) Have another counter for each function. 5) Run a high resolution timer that increments that counter for the current function at the time the timer is triggered. 6) Save all this results to disk when the program terminates, or in real time. But I hate slowing down the interpreter for such things. I have no idea on how to implement that in a efficient way. Maybe by compiling a special version of the interpreter that dumps this information? I would like to have gprof alike feature added too, my project is getting bigger and bigger. That last option is the best way I guess. We don't want to loose any performance during normal use. Regards, Ron_2nd. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Profiler for Gambas projects
5) Run a high resolution timer that increments that counter for the current function at the time the timer is triggered. How accurate high resolution timer is on Linux? But I hate slowing down the interpreter for such things. I agree, that is not good option! Maybe by compiling a special version of the interpreter that dumps this information? Can it be implemented somehow like this: #ifdef DEBUG cout This is the test version, i= i endl; #else cout This is the production version! endl; #endif Jussi -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Slider problem?
If you disable a Slider, so Slider1.Enabled = FALSE , it still fires it's MouseUp event when clicked. This is not what I expected. Is this expected behaviour? Gambas 2.16.0 gb.qt. Regards, Ron_2nd. This is not a bug, this is by design. The bug is in gb.gtk, where mouse events are not raised when Enabled is False, and often not raised too when Enabled is True. Regards, -- Benoît Minisini -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Slider problem?
Benoît Minisini schreef: If you disable a Slider, so Slider1.Enabled = FALSE , it still fires it's MouseUp event when clicked. This is not what I expected. Is this expected behaviour? Gambas 2.16.0 gb.qt. Regards, Ron_2nd. This is not a bug, this is by design. The bug is in gb.gtk, where mouse events are not raised when Enabled is False, and often not raised too when Enabled is True. Regards, Hmm ok, i'm using gb.qt, so because of a bug in gb.gtk you change it's behaviour too.. I forgive you if you promise me we don't end up like visual basic ;-) Regards, Ron_2nd. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Slider problem?
Benoît Minisini schreef: If you disable a Slider, so Slider1.Enabled = FALSE , it still fires it's MouseUp event when clicked. This is not what I expected. Is this expected behaviour? Gambas 2.16.0 gb.qt. Regards, Ron_2nd. This is not a bug, this is by design. The bug is in gb.gtk, where mouse events are not raised when Enabled is False, and often not raised too when Enabled is True. Regards, Hmm ok, i'm using gb.qt, so because of a bug in gb.gtk you change it's behaviour too.. I forgive you if you promise me we don't end up like visual basic ;-) Regards, Ron_2nd. I didn't change the behaviour of gb.qt because of gb.gtk. Mouse events must be always raised, whatever the value of the Enabled property. Regards, -- Benoît Minisini -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Slider problem?
Benoît Minisini schreef: Benoît Minisini schreef: If you disable a Slider, so Slider1.Enabled = FALSE , it still fires it's MouseUp event when clicked. This is not what I expected. Is this expected behaviour? Gambas 2.16.0 gb.qt. Regards, Ron_2nd. This is not a bug, this is by design. The bug is in gb.gtk, where mouse events are not raised when Enabled is False, and often not raised too when Enabled is True. Regards, Hmm ok, i'm using gb.qt, so because of a bug in gb.gtk you change it's behaviour too.. I forgive you if you promise me we don't end up like visual basic ;-) Regards, Ron_2nd. I didn't change the behaviour of gb.qt because of gb.gtk. Mouse events must be always raised, whatever the value of the Enabled property. Regards, Ok understand now. I have to change my code a bit to not run into trouble then when a user clicks the disabled control... Regards, Ron_2nd. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] intel i7 - parallel processing
Greetings I currently program in gambas on a P4 Dual Core with 2 GB RAM and will be upgrading to a I7 system by the end of the quarter. I am wondering if anyone out there is programming on a i7 and if so, what kind of speed are you seeing in program execution? Also, have you had any success in parallel programming with gambas and if so are you willing to share your code? Thank You Ivan I never saw a wild thing sorry for itself. A small bird will drop frozen dead from a bough Without ever having felt sorry for itself. -- D.H. Lawrence http://www.usconstitution.net/const.html Linux - Live Free or Die. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] intel i7 - parallel processing
I run simultaneously multiple Gambas apps on a multicore cpu - some very cpu and I/O intensive and SHELLing big scripts in the background. Most impressed I'm with is dual Atom with hyperthreading which looks like four cores to the kernel. My apps are not the same (ie parallel programs). The kernel does wonderful job working and balancing things out. Parallel programming and multi-threading is where things are going. Gambas isn't either (yet). I written a few programs that SHELLs multiple identical Gambas progams as if it was like a single multi-thread program. Works fine. Benoit et al has done a wonderfuljob! -Fernando -- Original Message --- From: Ivan Williams ivanwm...@yahoo.com To: gambas-user@lists.sourceforge.net Sent: Fri, 11 Sep 2009 13:01:36 -0700 (PDT) Subject: [Gambas-user] intel i7 - parallel processing Greetings I currently program in gambas on a P4 Dual Core with 2 GB RAM and will be upgrading to a I7 system by the end of the quarter. I am wondering if anyone out there is programming on a i7 and if so, what kind of speed are you seeing in program execution? Also, have you had any success in parallel programming with gambas and if so are you willing to share your code? Thank You Ivan I never saw a wild thing sorry for itself. A small bird will drop frozen dead from a bough Without ever having felt sorry for itself. -- D.H. Lawrence http://www.usconstitution.net/const.html Linux - Live Free or Die. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --- End of Original Message --- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Slider problem?
Benoît Minisini schreef: Benoît Minisini schreef: If you disable a Slider, so Slider1.Enabled = FALSE , it still fires it's MouseUp event when clicked. This is not what I expected. Is this expected behaviour? Gambas 2.16.0 gb.qt. Regards, Ron_2nd. This is not a bug, this is by design. The bug is in gb.gtk, where mouse events are not raised when Enabled is False, and often not raised too when Enabled is True. Regards, Hmm ok, i'm using gb.qt, so because of a bug in gb.gtk you change it's behaviour too.. I forgive you if you promise me we don't end up like visual basic ;-) Regards, Ron_2nd. I didn't change the behaviour of gb.qt because of gb.gtk. Mouse events must be always raised, whatever the value of the Enabled property. Regards, Ok understand now. I have to change my code a bit to not run into trouble then when a user clicks the disabled control... Regards, Ron_2nd. Apparently having the same behaviour in gb.gtk than in gb.qt is impossible. You cannot catch events in gb.gtk before they are processed. So I think you will be pleased :-), I have to do the contrary: prevent a disabled control to raise *any* event in gb.qt. Regards, -- Benoît Minisini -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user