Re: [Gambas-user] Where is user component directory?

2010-01-10 Thread bbb888
Thanks Fabien, I forgot that I did a little cleanup/re-org before the upgrade and moved the projects. The links in ~/.local/lib/gambas2 still existed and therefore pointed to a non-existent place. Simply deleting them and re-making the exec's fixed it all up! Also, sorry for the delay in

[Gambas-user] Modules cant raise events :-(

2010-01-10 Thread bbb888
I have a module called env that holds three system wide objects (CurrentUser, CurrentProject, CurrentSystem). Lots of forms access and use these objects (Login, FMain etc etc). I am trying to signal an unknown number of listeners when one of these objects changes, for example is the user

Re: [Gambas-user] Modules cant raise events :-(

2010-01-10 Thread bbb888
Hi Benoit, Benoît Minisini wrote: If CurrentUser, CurrentProject and CurrentSystem are the objects that change, then they should raise the events, not the module where they are declared. Shouldn't they? An event is the way an object tells the world it has changed. If you can't, then

[Gambas-user] Where is user component directory?

2010-01-08 Thread bbb888
Hi guys, Just did a system upgrade which required a gambas re-installation (due to postgresql upgrade dependencies). This was fine, but... All my user built components seem to have disappeared. Oh well, so it goes, so I just tried to recompile them i.e. make executable. So far, I have

[Gambas-user] Event handler in descendent class

2009-12-12 Thread bbb888
Is there a way for a specialised class to have an event handler for an event raised in the base class? Specifically in this case I have a scaffolding class workCodeTableItem that inherits CodeTableItem, adds a few scaffold attributes and I have now found that one of these attributes needs to be

Re: [Gambas-user] Event handler in descendent class

2009-12-12 Thread bbb888
Benoît Minisini wrote: Is there a way for a specialised class to have an event handler for an event raised in the base class? Specifically in this case I have a scaffolding class workCodeTableItem that inherits CodeTableItem, adds a few scaffold attributes and I have now found that

Re: [Gambas-user] Frame where the first item is not Enabled - focus problem

2009-11-24 Thread bbb888
bbb888 wrote: In this form I have - several misc controls - a textarea - a frame (with several checkboxes and buttons) - a listview in that order in the heirarchy. In certain conditions, the first item in the frame has it's Enabled property set to false. When this happens and I

Re: [Gambas-user] Setting a checkbox value

2009-11-22 Thread bbb888
nospam.nospam.nospam wrote: You'd be saying exactly the opposite if gambas was badly designed and didn't generate the event on a coded change when you needed it to. You would have no way in hell of easily detecting it, not ever. Besides that, firing events for code-set attributes

[Gambas-user] Setting a checkbox value

2009-11-21 Thread bbb888
Benoit, Why oh why should setting checkbox value in code generate a click event? bruce -- View this message in context: http://old.nabble.com/Setting-a-checkbox-value-tp26455936p26455936.html Sent from the gambas-user mailing list archive at Nabble.com.

Re: [Gambas-user] DataCombo, key_press

2009-11-21 Thread bbb888
Amended. Thank you for so gently pointing out my error. b nospam.nospam.nospam wrote: bbb888 wrote: snip all Try setting .type as the last assignment, don't know, works for me in postgresql. It seems that as soon as you give it a type and host and user postgresql makes a connect

Re: [Gambas-user] Howto: Cancel a keypress in a textarea

2009-11-20 Thread bbb888
Thanks Shordi, Amazingly obvious now I have the answer :clap: bruce -- View this message in context: http://old.nabble.com/Howto%3A-Cancel-a-keypress-in-a-textarea-tp26422301p26443625.html Sent from the gambas-user mailing list archive at Nabble.com.

Re: [Gambas-user] DataCombo, key_press

2009-11-19 Thread bbb888
snip all Try setting .type as the last assignment, don't know, works for me in postgresql. It seems that as soon as you give it a type and host and user postgresql makes a connect. Anyway, as I said, dont know works for me. b -- View this message in context:

[Gambas-user] Changing the key value in a collection

2009-11-19 Thread bbb888
I have a situation where the key for an item in a collection is an editable value in the collection item. Obviously, when that value changes, I need to update the collection and change the key. However, when I do this the item is in a new position in the collection. This is a problem because

[Gambas-user] custom controls tutorial or guide

2009-11-07 Thread bbb888
Hi guys, Is there a guideline of some sort for howto create custom controls? I was thinking I might cut my teeth on a context sensitive combobox that changes background color depending on the selected value. But I just don't know where to start. :-(( regards bruce -- View this message in

Re: [Gambas-user] Form exit code when [X] clicked

2009-10-17 Thread bbb888
Thanks Kad that does the trick! Bruce -- View this message in context: http://www.nabble.com/Form-exit-code-when--X--clicked-tp25919887p25937554.html Sent from the gambas-user mailing list archive at Nabble.com. --

[Gambas-user] Form exit code when [X] clicked

2009-10-16 Thread bbb888
I can get an exit code from a form shown with rtn = fm.ShowDialog() correctly if the user uses an in-form exit such as a exit button : PUBLIC SUB btExit_Click() ME.Close(60) END But if the user clicks on the [X] in the titlebar all I get is 0 in rtn. Is there a way to trap the exit

[Gambas-user] Project description

2009-10-16 Thread bbb888
Is there a way to access the project description field like Application.title? (or is it a missing property? :thinking: ) bruce -- View this message in context: http://www.nabble.com/Project-description-tp25919813p25919813.html Sent from the gambas-user mailing list archive at Nabble.com.