[Gambas-user] Importing modules from other projects

2013-12-19 Thread Rolf-Werner Eilert
A few minutes ago I started a new project. I plan to use a module which I made for another project in my new one. The standard way to do so would be to make a new module in the project tree (right-click...), open the older project, Ctrl-A and Ctrl-C the whole text, then open the new project,

Re: [Gambas-user] File Chooser OK event?

2013-12-19 Thread Caveat
And here's the code from the form containing the File Chooser... Having sent you all this, I realise it perhaps doesn't really answer your question (sorry!) but perhaps there's enough in here about raising and handling events that it becomes clear how to use the OK and Cancel events from the

Re: [Gambas-user] File Chooser OK event?

2013-12-19 Thread Rolf-Werner Eilert
Am 19.12.2013 12:15, schrieb Caveat: Raise Done(FileChooser2.SelectedPath, fileNumber) Aaah - that was the one I was looking for! :) Thank you! Rolf -- Rapidly troubleshoot problems before they affect your business.

Re: [Gambas-user] File Chooser OK event?

2013-12-19 Thread Rolf-Werner Eilert
pbDone_Click() Where does that come from? Am 19.12.2013 12:15, schrieb Caveat: And here's the code from the form containing the File Chooser... Having sent you all this, I realise it perhaps doesn't really answer your question (sorry!) but perhaps there's enough in here about raising and

Re: [Gambas-user] File Chooser OK event?

2013-12-19 Thread Caveat
I have a pbDone and a pbCancel button on my form. I'm guessing that if you are using the File Chooser's built-in OK/Cancel buttons (where have you found that and how are you enabling that ??) that you will have to handle them in a similar way... so making a new File Chooser As ... if from

Re: [Gambas-user] File Chooser OK event?

2013-12-19 Thread Rolf-Werner Eilert
Ok, I see. You activate this by Show Button = True in the form dialog. The help says Return or set if the standard ../../dialog buttons ('OK' and 'Cancel') are visible or not. And this doesn't help me a lot... ;) Rolf Am 19.12.2013 12:48, schrieb Caveat: I have a pbDone and a pbCancel

[Gambas-user] Cairo..learning Gambas

2013-12-19 Thread Pino Zollo
Maybe...some good soul that knows the various Gambas components might teach un-expert programmers or new-comers with something like this: http://www.eiffel.com/developers/learning_maps/IntroducingEiffelLearningMaps/player.html

Re: [Gambas-user] File Chooser OK event?

2013-12-19 Thread Caveat
Looks like you have to use (at least) Activate (OK) and Cancel (Errrm Cancel!)... pffft seems simpler the way I had it! ;-) Public Sub FileChooser2_Cancel() Print Cancel fired End Public Sub FileChooser2_Activate() Print Activate fired! End Kind regards, Caveat On 19/12/13 13:11,

Re: [Gambas-user] File Chooser OK event?

2013-12-19 Thread Bruce
On Thu, 2013-12-19 at 11:36 +0100, Rolf-Werner Eilert wrote: Just saw that File Chooser can have its own OK and Cancel buttons, but how would I handle these events? Never used it before, and there is no hint in the help... Regards Rolf I really didn't it could be that hard? B

Re: [Gambas-user] File Chooser OK event?

2013-12-19 Thread Rolf-Werner Eilert
You are right, I now did it the old way with separate buttons. But I'm still interested in seeing how this would work, so if someone could explain... Regards Rolf Am 19.12.2013 14:04, schrieb Caveat: Looks like you have to use (at least) Activate (OK) and Cancel (Errrm Cancel!)... pffft

Re: [Gambas-user] File Chooser OK event?

2013-12-19 Thread Caveat
I did explain it, see my previous message. Is it really not clear still? Kind regards, Caveat On 19/12/13 16:32, Rolf-Werner Eilert wrote: You are right, I now did it the old way with separate buttons. But I'm still interested in seeing how this would work, so if someone could explain...