[Gambas-user] ARM debugging - where to start?
Hi, I have an ARM based Genesi Smarttop unit which runs Ubuntu 10.10 and it has Gambas version 2. When Gambas starts up gbx2 runs, consumes all resources in a big loop. If I start with it in command line, I get no output - zip. No clues what could be going on. I left a message in their forum http://www.powerdeveloper.org/forums/viewtopic.php?t=2042 but no response for some weeks now. So it looks like I have an excuse to go from being a big fan of Gambas to an even bigger fan and help debug :-) Bearing in mind this is ARM platform, and I don't know first thing about gamabas development, what is the first things I should do? Please be explicit with syntax for use of commands and parameters to be sent to get some debug messages and results, as I won't be able to second guess what is being suggested. I am familiar with C (skill rating 9/10), C++ (4/10), using gambas (8/10). Thanks. JM __ This message has been checked for viruses and spam by Corpex using the ArmourPlate Anti Virus and Anti Spam Scanning Service. To find out more and see our email archiving service see http://www.armourplate.com or call Corpex on UK 0845 050 1898. -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] yperlink and TextEdit control
Am Dienstag, den 06.09.2011, 06:00 +0200 schrieb Andrea Bertini: @Charlie thx:-) I insert an hyperlink in TextEdit control with the code (test code): TextEdit1.RichText = a href=' $_Param[2] ' $_Param[1] /a The problem is to insert an hyperlink in an existing text at the curson position Andrea Salut Andrea, Param1 = gambas_1 Param2 = http://gambas.sourceforge.net/en/main.html; s = a href=\ Param2 \ Param1 /a s = BR s = a href=\http://gambas.sourceforge.net/en/main.html\; gambas_2 /a but you have no link event -- Amicalement Charlie -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 102 in gambas: (Minor) help error for Settings array write
Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 102 by benoit.m...@gmail.com: (Minor) help error for Settings array write http://code.google.com/p/gambas/issues/detail?id=102 (No comment was entered for this change.) -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] dateadd overflow...
Gambas 2.23 I have three variables, all of type date. mdStartTime mdEndTime newEndTime The first two contain time values with no date portion. This was obtained from a function which used Time(CInt(TimeArray[0]), CInt(TimeArray[1]), CInt(TimeArray[2])) to generate the value to return. It ends up that the following get assigned; mdStartTime = 10:01:31 mdEndTIme = 10:16:31 I want to use DateAdd to get a new value based on the mdEndTime value + 15 minutes. To do this I used newEndTIme = DateAdd(mdEndTime, gb.minute, 15) And promptly got an Overflow error. Now I'm puzzled. Is there a problem with DateAdd? Regards Steve. I confirm the bug. I will look at it... -- Benoît Minisini -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 102 in gambas: (Minor) help error for Settings array write
Updates: Status: Fixed Comment #2 on issue 102 by benoit.m...@gmail.com: (Minor) help error for Settings array write http://code.google.com/p/gambas/issues/detail?id=102 Fixed. For the idea about new Settings syntax, you must create another enhancement issue. Do not put two different things in the same issue! -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] dateadd overflow...
Gambas 2.23 I have three variables, all of type date. mdStartTime mdEndTime newEndTime The first two contain time values with no date portion. This was obtained from a function which used Time(CInt(TimeArray[0]), CInt(TimeArray[1]), CInt(TimeArray[2])) to generate the value to return. It ends up that the following get assigned; mdStartTime = 10:01:31 mdEndTIme = 10:16:31 I want to use DateAdd to get a new value based on the mdEndTime value + 15 minutes. To do this I used newEndTIme = DateAdd(mdEndTime, gb.minute, 15) And promptly got an Overflow error. Now I'm puzzled. Is there a problem with DateAdd? Regards Steve. I confirm the bug. I will look at it... OK, fixed in revision #4097. Regards, -- Benoît Minisini -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] ARM debugging - where to start?
Hi, I have an ARM based Genesi Smarttop unit which runs Ubuntu 10.10 and it has Gambas version 2. When Gambas starts up gbx2 runs, consumes all resources in a big loop. If I start with it in command line, I get no output - zip. No clues what could be going on. I left a message in their forum http://www.powerdeveloper.org/forums/viewtopic.php?t=2042 but no response for some weeks now. So it looks like I have an excuse to go from being a big fan of Gambas to an even bigger fan and help debug :-) Bearing in mind this is ARM platform, and I don't know first thing about gamabas development, what is the first things I should do? Please be explicit with syntax for use of commands and parameters to be sent to get some debug messages and results, as I won't be able to second guess what is being suggested. I am familiar with C (skill rating 9/10), C++ (4/10), using gambas (8/10). Thanks. JM Gambas 2 already runs some project on ARM, but two ARM computers are well- known to be very different! Go to the directory of the Gambas 2 project you want to run, and use the debugger. Hit CTRL+C to stop it when it loops, and send me the backtrace. $ cd /path/to/my/gambas/project $ gdb gbx2 ... (gdb) run ... ^C (gdb) bt ... Please try to compile the latest version of gambas, and with debugging information enabled. Try to compile with and without optimization too, to see if something changes. Regards, -- Benoît Minisini -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] dateadd overflow...
On 09/06/2011 07:09 AM, Benoît Minisini wrote: Gambas 2.23 I have three variables, all of type date. mdStartTime mdEndTime newEndTime The first two contain time values with no date portion. This was obtained from a function which used Time(CInt(TimeArray[0]), CInt(TimeArray[1]), CInt(TimeArray[2])) to generate the value to return. It ends up that the following get assigned; mdStartTime = 10:01:31 mdEndTIme = 10:16:31 I want to use DateAdd to get a new value based on the mdEndTime value + 15 minutes. To do this I used newEndTIme = DateAdd(mdEndTime, gb.minute, 15) And promptly got an Overflow error. Now I'm puzzled. Is there a problem with DateAdd? Regards Steve. I confirm the bug. I will look at it... OK, fixed in revision #4097. Regards, Merci. -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 103 in gambas: Treeview KeyRelease behaves differently with gtk and qt4
Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 103 by benoit.m...@gmail.com: Treeview KeyRelease behaves differently with gtk and qt4 http://code.google.com/p/gambas/issues/detail?id=103 I know that the behaviour of Qt4 is by design, (it is automatic repetition, and so simulates multiple press and release events). But I don't know for GTK+. Maybe they decide to simulate only the press events, and so I guess I won't be able to change that. I will investigate... -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Slider event trapping...
Only event that seems to work is the Change event documentation says it inherits Control so I'm thinking that MouseUp/Down/Wheel etc. should also get raised. Am I mistaken? Regards Steve. -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Does really nobody have an idea?
I sent this yesterday, but nobody seems to know - or is the question too stupid to be answered? :-) As the mailing list doesn't accept a repost, I put it under a new Re. Hope you aren't annoyed, guys... Hi folks, Is there a general function that counts or registers mouse and keyboard events on an application-wide level? Already in Gambas 2 ? What I need is something that simply watches if the user has clicked or typed ANYWHERE into the program within a given period without having to count the clicks and types of each GUI element separately. My idea is to hide personal data parts of the GUI after some time of no action and require a password before releasing the surface again. Thanks for all ideas and hints! Rolf -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Does really nobody have an idea?
On 09/06/2011 09:38 AM, Rolf-Werner Eilert wrote: I sent this yesterday, but nobody seems to know - or is the question too stupid to be answered? :-) As the mailing list doesn't accept a repost, I put it under a new Re. Hope you aren't annoyed, guys... Hi folks, Is there a general function that counts or registers mouse and keyboard events on an application-wide level? Already in Gambas 2 ? What I need is something that simply watches if the user has clicked or typed ANYWHERE into the program within a given period without having to count the clicks and types of each GUI element separately. My idea is to hide personal data parts of the GUI after some time of no action and require a password before releasing the surface again. Thanks for all ideas and hints! Rolf -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Hi Rolf! Not an answer for you (yet) but I'll add my voice because what you're looking for would probably also help me. Basically I need to know when a user has released the mouse button on a slider control, signalling that they have finished making changes and allowing normal program execution to resume... so far no luck. Regards Steve -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Does really nobody have an idea?
first answer for steve Public Sub Slider1_MouseUp() Print Mouse is released End -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Does really nobody have an idea?
good question rolf :/ 2011/9/6 Fabien Bodard gambas...@gmail.com: first answer for steve Public Sub Slider1_MouseUp() Print Mouse is released End -- Fabien Bodard -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Does really nobody have an idea?
Hi, I had to write something like that in VB for QM. Even though the effort might be overwhelming, I would do some thing like this: make a global object in some module, f.eks. m.module public GetMe as object in the same module you save or do anything f.eks puclic sub WriteLogg() 2011/9/6 Fabien Bodard gambas...@gmail.com good question rolf :/ 2011/9/6 Fabien Bodard gambas...@gmail.com: first answer for steve Public Sub Slider1_MouseUp() Print Mouse is released End -- Fabien Bodard -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Does really nobody have an idea?
Something happened public sub WriteLogg() print GetMe.name (and or other options) end And the heavy stuff is here: for every Object you want to control, you will have to: private sub xxx_control_click() GetMet=xxx_control m.WriteLogg Alternate WriteLogg as function public WriteLogg(xctrl as control) print xctrl.name I am sure one of the guys here have more sophisticated solutions for you., f.eks the event-handler on every form, but I am not so good at that yet. Regards, Dag-Jarle 2011/9/6 Dag-Jarle Johansen dag.jarle.johan...@gmail.com Hi, I had to write something like that in VB for QM. Even though the effort might be overwhelming, I would do some thing like this: make a global object in some module, f.eks. m.module public GetMe as object in the same module you save or do anything f.eks puclic sub WriteLogg() 2011/9/6 Fabien Bodard gambas...@gmail.com good question rolf :/ 2011/9/6 Fabien Bodard gambas...@gmail.com: first answer for steve Public Sub Slider1_MouseUp() Print Mouse is released End -- Fabien Bodard -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Does really nobody have an idea?
Thanks for your idea, Dag-Jarle, but isn't this effort exactly what I would like to avoid? I guess the whole thing depends on the question of how QT or GTK handle the events of the controls within a window/application. I cannot imagine that the controls are accessed by the GUI (X) directly. That would imply an event loop for each control. Instead, I would expect one event loop for the application within which you have one event request for each window within which you have one event request for each control of that window. If there is a slot for the overall mouse activities of one window or application in QT (on the C++ side), it should be easy for Benoit to connect this to a Gambas event. If not, things are different :-) Regards Rolf Am 06.09.2011 17:04, schrieb Dag-Jarle Johansen: Something happened public sub WriteLogg() print GetMe.name (and or other options) end And the heavy stuff is here: for every Object you want to control, you will have to: private sub xxx_control_click() GetMet=xxx_control m.WriteLogg Alternate WriteLogg as function public WriteLogg(xctrl as control) print xctrl.name I am sure one of the guys here have more sophisticated solutions for you., f.eks the event-handler on every form, but I am not so good at that yet. Regards, Dag-Jarle 2011/9/6 Dag-Jarle Johansendag.jarle.johan...@gmail.com Hi, I had to write something like that in VB for QM. Even though the effort might be overwhelming, I would do some thing like this: make a global object in some module, f.eks. m.module public GetMe as object in the same module you save or do anything f.eks puclic sub WriteLogg() 2011/9/6 Fabien Bodardgambas...@gmail.com good question rolf :/ 2011/9/6 Fabien Bodardgambas...@gmail.com: first answer for steve Public Sub Slider1_MouseUp() Print Mouse is released End -- Fabien Bodard -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] problems running component gb.net.smtp
ahem, sorry for my previous infos: the puppy linux gambas version I'm using is 2.7 not 2.2 as I erroneously mentioned (it's shown in big capital letters !!!) . So, may be, that's not so old version. May this new infos can have any impact on the solution of equal signs mistery ? :-/ -- View this message in context: http://old.nabble.com/problems-running-component-gb.net.smtp-tp32388134p32409066.html Sent from the gambas-user mailing list archive at Nabble.com. -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] problems running component gb.net.smtp
ahem, sorry for my previous infos: the puppy linux gambas version I'm using is 2.7 not 2.2 as I erroneously mentioned (it's shown in big capital letters !!!) . So, may be, that's not so old version. May this new infos can have any impact on the solution of equal signs mistery ? :-/ = signs are not a mystery, this is the standard way of quoting dots in the quoted-printable mail format. -- Benoît Minisini -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 100 in gambas: GB2 to GB3 convert fails if .icon.png is a symbolic link or read-only(?)
Updates: Status: Fixed Comment #2 on issue 100 by benoit.m...@gmail.com: GB2 to GB3 convert fails if .icon.png is a symbolic link or read-only(?) http://code.google.com/p/gambas/issues/detail?id=100 Fixed in revision #4098. Now instead of crashing, the IDE just prints a warning on the standard error output. -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] problems running component gb.net.smtp
Thank you, I supposed something similar, but was confused by the fact that some dots are sent exacly as dots and others are padded with the equal sign, so what's the rule ? Now, I will immediatly load the specs for the quoted-printable mail format and learn (what I missed to do before). Another question: is there a way to force the gb.net.smtp to use a different format that simply uses (without any encoding) the standard 7 bits ascii set ? Thank you again for your kindness and patience. -- View this message in context: http://old.nabble.com/problems-running-component-gb.net.smtp-tp32388134p32410054.html Sent from the gambas-user mailing list archive at Nabble.com. -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Does really nobody have an idea?
Here there is a class that do exactly what you want (I hope). http://www.gambas-es.org/download.php?id=82 I included a little proyect with example. Hope it'll be usefull. Regards. 2011/9/6 Rolf-Werner Eilert eilert-sprac...@t-online.de Thanks for your idea, Dag-Jarle, but isn't this effort exactly what I would like to avoid? I guess the whole thing depends on the question of how QT or GTK handle the events of the controls within a window/application. I cannot imagine that the controls are accessed by the GUI (X) directly. That would imply an event loop for each control. Instead, I would expect one event loop for the application within which you have one event request for each window within which you have one event request for each control of that window. If there is a slot for the overall mouse activities of one window or application in QT (on the C++ side), it should be easy for Benoit to connect this to a Gambas event. If not, things are different :-) Regards Rolf Am 06.09.2011 17:04, schrieb Dag-Jarle Johansen: Something happened public sub WriteLogg() print GetMe.name (and or other options) end And the heavy stuff is here: for every Object you want to control, you will have to: private sub xxx_control_click() GetMet=xxx_control m.WriteLogg Alternate WriteLogg as function public WriteLogg(xctrl as control) print xctrl.name I am sure one of the guys here have more sophisticated solutions for you., f.eks the event-handler on every form, but I am not so good at that yet. Regards, Dag-Jarle 2011/9/6 Dag-Jarle Johansendag.jarle.johan...@gmail.com Hi, I had to write something like that in VB for QM. Even though the effort might be overwhelming, I would do some thing like this: make a global object in some module, f.eks. m.module public GetMe as object in the same module you save or do anything f.eks puclic sub WriteLogg() 2011/9/6 Fabien Bodardgambas...@gmail.com good question rolf :/ 2011/9/6 Fabien Bodardgambas...@gmail.com: first answer for steve Public Sub Slider1_MouseUp() Print Mouse is released End -- Fabien Bodard -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Malware Security Report: Protecting Your Business, Customers, and the Bottom Line. Protect your business and customers by understanding the threat from malware and how it can impact your online business. http://www.accelacomm.com/jaw/sfnl/114/51427462/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] gambas3 and the hidden .src
Salut, now I work more and more with gambas3, and I found out, in daily work the hidden .src is really ..now it's time for the sh.. or f... word. I don't remember if there was/is a reason to hide the source code, but now I know it sucks, that it is hidden. What does the community think about that? -- Amicalement Charlie -- Malware Security Report: Protecting Your Business, Customers, and the Bottom Line. Protect your business and customers by understanding the threat from malware and how it can impact your online business. http://www.accelacomm.com/jaw/sfnl/114/51427462/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas3 and the hidden .src
Am Mittwoch, den 07.09.2011, 08:14 +1000 schrieb richard terry: On Wednesday 07 September 2011 06:37:46 Karl Reinl wrote: Salut, now I work more and more with gambas3, and I found out, in daily work the hidden .src is really ..now it's time for the sh.. or f... word. I don't remember if there was/is a reason to hide the source code, but now I know it sucks, that it is hidden. What does the community think about that? No issues, what's the problem?, if you really need to access the code tree outside of the gambas IDE just type in the dir as you usually would Richard Salut Richard, it is not the problem outside the code tree, it's the access with the gambas3-IDE which makes the problem. May be only on Mandriva 2010.2. But that sucks. Did you try to add a source code from an other project ? Try it more then one time, .. not nice, for not saying hoorible! -- Amicalement Charlie -- Malware Security Report: Protecting Your Business, Customers, and the Bottom Line. Protect your business and customers by understanding the threat from malware and how it can impact your online business. http://www.accelacomm.com/jaw/sfnl/114/51427462/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas3 and the hidden .src
On Wed, Sep 7, 2011 at 6:37 AM, Karl Reinl karl.re...@fen-net.de wrote: Salut, now I work more and more with gambas3, and I found out, in daily work the hidden .src is really ..now it's time for the sh.. or f... word. I don't remember if there was/is a reason to hide the source code, but now I know it sucks, that it is hidden. What does the community think about that? I'd second this. Yes .src makes no difference for the GUI IDE, but src with no dot would also work just as well. The only point of the dot is it hides the directory from standard UNIX tools such as ls and grep. Maybe I'm just a command-line diehard, but I *like* using those tools and so I agree with Karl. Also it is more standard as all other languages have their src directory without a dot. Ian -- Malware Security Report: Protecting Your Business, Customers, and the Bottom Line. Protect your business and customers by understanding the threat from malware and how it can impact your online business. http://www.accelacomm.com/jaw/sfnl/114/51427462/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas3 and the hidden .src
On Wed, Sep 7, 2011 at 6:37 AM, Karl Reinl karl.re...@fen-net.de wrote: Salut, now I work more and more with gambas3, and I found out, in daily work the hidden .src is really ..now it's time for the sh.. or f... word. I don't remember if there was/is a reason to hide the source code, but now I know it sucks, that it is hidden. What does the community think about that? I'd second this. Yes .src makes no difference for the GUI IDE, but src with no dot would also work just as well. The only point of the dot is it hides the directory from standard UNIX tools such as ls and grep. Maybe I'm just a command-line diehard, but I *like* using those tools and so I agree with Karl. Also it is more standard as all other languages have their src directory without a dot. Ian The reason why it is named .src is the following: all non-hidden files in the root directory of the project are included in the executable. So, to rename .src to something not-hidden, I have to change the way data files are organized, and I can't do that before Gambas 4! Regards, -- Benoît Minisini -- Malware Security Report: Protecting Your Business, Customers, and the Bottom Line. Protect your business and customers by understanding the threat from malware and how it can impact your online business. http://www.accelacomm.com/jaw/sfnl/114/51427462/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Does really nobody have an idea?
Hi Rolf-Werner, sorry, I thought just that. I Benoit have no better solution, I could write you a little parser; takes just one second, and the form(s) is/are up to date, and you can define in a INI which events to monitor. This is a quick and dirty solution, but surely works, and you have no effort at all. Regards, Dag-Jarle 2011/9/6 Rolf-Werner Eilert eilert-sprac...@t-online.de Thanks for your idea, Dag-Jarle, but isn't this effort exactly what I would like to avoid? I guess the whole thing depends on the question of how QT or GTK handle the events of the controls within a window/application. I cannot imagine that the controls are accessed by the GUI (X) directly. That would imply an event loop for each control. Instead, I would expect one event loop for the application within which you have one event request for each window within which you have one event request for each control of that window. If there is a slot for the overall mouse activities of one window or application in QT (on the C++ side), it should be easy for Benoit to connect this to a Gambas event. If not, things are different :-) Regards Rolf Am 06.09.2011 17:04, schrieb Dag-Jarle Johansen: Something happened public sub WriteLogg() print GetMe.name (and or other options) end And the heavy stuff is here: for every Object you want to control, you will have to: private sub xxx_control_click() GetMet=xxx_control m.WriteLogg Alternate WriteLogg as function public WriteLogg(xctrl as control) print xctrl.name I am sure one of the guys here have more sophisticated solutions for you., f.eks the event-handler on every form, but I am not so good at that yet. Regards, Dag-Jarle 2011/9/6 Dag-Jarle Johansendag.jarle.johan...@gmail.com Hi, I had to write something like that in VB for QM. Even though the effort might be overwhelming, I would do some thing like this: make a global object in some module, f.eks. m.module public GetMe as object in the same module you save or do anything f.eks puclic sub WriteLogg() 2011/9/6 Fabien Bodardgambas...@gmail.com good question rolf :/ 2011/9/6 Fabien Bodardgambas...@gmail.com: first answer for steve Public Sub Slider1_MouseUp() Print Mouse is released End -- Fabien Bodard -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Does really nobody have an idea?
I sent this yesterday, but nobody seems to know - or is the question too stupid to be answered? :-) As the mailing list doesn't accept a repost, I put it under a new Re. Hope you aren't annoyed, guys... Hi folks, Is there a general function that counts or registers mouse and keyboard events on an application-wide level? Already in Gambas 2 ? What I need is something that simply watches if the user has clicked or typed ANYWHERE into the program within a given period without having to count the clicks and types of each GUI element separately. My idea is to hide personal data parts of the GUI after some time of no action and require a password before releasing the surface again. Thanks for all ideas and hints! Rolf I may have a solution, but after the Gambas 3 release. Sorry! -- Benoît Minisini -- Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Does really nobody have an idea?
On 09/06/2011 10:20 AM, Fabien Bodard wrote: first answer for steve Public Sub Slider1_MouseUp() Print Mouse is released End -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Hi Fabien Been there, done that. MouseUp is not firing, which is why I posted the initial email in the first place. Must be something interfering with it. I do have gambas 3 and 2 installed on the same machine... Might they be interfering with each other? Otherwise everything is working well... just can't tell when the user depresses or releases the mouse on the slider (there may be other events not firing.. I have not tested them all). Regards Steve -- Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Does really nobody have an idea?
On 09/06/2011 10:20 AM, Fabien Bodard wrote: first answer for steve Public Sub Slider1_MouseUp() Print Mouse is released End - - Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Hi Fabien Been there, done that. MouseUp is not firing, which is why I posted the initial email in the first place. Must be something interfering with it. I do have gambas 3 and 2 installed on the same machine... Might they be interfering with each other? Otherwise everything is working well... just can't tell when the user depresses or releases the mouse on the slider (there may be other events not firing.. I have not tested them all). Regards Steve with Qt or GTK+? -- Benoît Minisini -- Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Does really nobody have an idea?
On 09/06/2011 08:29 PM, Benoît Minisini wrote: On 09/06/2011 10:20 AM, Fabien Bodard wrote: first answer for steve Public Sub Slider1_MouseUp() Print Mouse is released End - - Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Hi Fabien Been there, done that. MouseUp is not firing, which is why I posted the initial email in the first place. Must be something interfering with it. I do have gambas 3 and 2 installed on the same machine... Might they be interfering with each other? Otherwise everything is working well... just can't tell when the user depresses or releases the mouse on the slider (there may be other events not firing.. I have not tested them all). Regards Steve with Qt or GTK+? GTK+ -- Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Does really nobody have an idea?
On 09/06/2011 08:29 PM, Benoît Minisini wrote: On 09/06/2011 10:20 AM, Fabien Bodard wrote: first answer for steve Public Sub Slider1_MouseUp() Print Mouse is released End - - Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Hi Fabien Been there, done that. MouseUp is not firing, which is why I posted the initial email in the first place. Must be something interfering with it. I do have gambas 3 and 2 installed on the same machine... Might they be interfering with each other? Otherwise everything is working well... just can't tell when the user depresses or releases the mouse on the slider (there may be other events not firing.. I have not tested them all). Regards Steve with Qt or GTK+? Further to the earlier reply... I have tested the following events for Slider under GTK+ DblClick: Does not fire Enter: Does not fire GotFocus: Fires as expected Leave: Does not fire LostFocus: Fires as expected MouseDown: Does not fire MouseUp: Does not fire MouseWheel: Moves the slider but the actual MouseWheel event doesn't fire. Steve -- Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Does really nobody have an idea?
Further to the earlier reply... I have tested the following events for Slider under GTK+ DblClick: Does not fire Enter: Does not fire GotFocus: Fires as expected Leave: Does not fire LostFocus: Fires as expected MouseDown: Does not fire MouseUp: Does not fire MouseWheel: Moves the slider but the actual MouseWheel event doesn't fire. Steve It works with Gambas 3, so it has been fixed in Gambas 3 at least. :-) -- Benoît Minisini -- Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas3 and the hidden .src
Am Mittwoch, den 07.09.2011, 08:14 +1000 schrieb richard terry: On Wednesday 07 September 2011 06:37:46 Karl Reinl wrote: Salut, now I work more and more with gambas3, and I found out, in daily work the hidden .src is really ..now it's time for the sh.. or f... word. I don't remember if there was/is a reason to hide the source code, but now I know it sucks, that it is hidden. What does the community think about that? No issues, what's the problem?, if you really need to access the code tree outside of the gambas IDE just type in the dir as you usually would Richard Salut Richard, it is not the problem outside the code tree, it's the access with the gambas3-IDE which makes the problem. May be only on Mandriva 2010.2. But that sucks. Did you try to add a source code from an other project ? Try it more then one time, .. not nice, for not saying hoorible! I fixed some bugs in revision #4103, so that, now, when inserting a module, class, form... from another project, hidden files are always shown so that the .src directory is always visible. I hope it will help! Regards, -- Benoît Minisini -- Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user