Re: [Gambas-user] GB3 Custom controls

2011-11-14 Thread Bruce Bruen
On Sun, 2011-11-13 at 20:40 +0100, Fabien Bodard wrote: > Oups ... too complex... this is the better way without observer > Not at all! (I'm using the observer method as this will be a custom control. As far as I can see I need that so the CC can see its' own events.) But thank you! I found w

Re: [Gambas-user] GB3 Custom controls

2011-11-13 Thread Fabien Bodard
Oups ... too complex... this is the better way without observer -- Fabien Bodard demowidjet-0.0.1.tar.gz Description: GNU Zip compressed data -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/s

Re: [Gambas-user] GB3 Custom controls

2011-11-13 Thread Fabien Bodard
Maybe that way demowidjet-0.0.1.tar.gz Description: GNU Zip compressed data -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ Gamb

Re: [Gambas-user] GB3 Custom controls

2011-11-13 Thread Bruce Bruen
Hi Fabien, Thanks for your input, responses inline regards Bruce On Sun, 2011-11-13 at 08:07 +0100, Fabien Bodard wrote: > 2011/11/13 Bruce Bruen : > > On Sun, 2011-11-13 at 03:01 +0100, Benoît Minisini wrote: > > > >> Hi Bruce, > >> > >> I took at a look at your code. You made a big mistake by

Re: [Gambas-user] GB3 Custom controls

2011-11-12 Thread Fabien Bodard
2011/11/13 Bruce Bruen : > On Sun, 2011-11-13 at 03:01 +0100, Benoît Minisini wrote: > >> Hi Bruce, >> >> I took at a look at your code. You made a big mistake by making your >> controls inherit UserContainer, whereas they are not containers. Which >> makes the IDE mad when you want to use _DrawWit

Re: [Gambas-user] GB3 Custom controls

2011-11-12 Thread Benoît Minisini
Hi Bruce, I took at a look at your code. You made a big mistake by making your controls inherit UserContainer, whereas they are not containers. Which makes the IDE mad when you want to use _DrawWith or some other properties. They must inherit UserControl. Or maybe I didn't understand what you

Re: [Gambas-user] GB3 Custom controls

2011-11-08 Thread Bruce Bruen
On Tue, 2011-11-08 at 15:41 -0800, Randall Morgan wrote: > I think that should be an upper case "C" which may be why it is being > ignored. *nix is case sensitive. > Oops, I wasn't being clear enough. > > Oh, by the way in install the "-c" option appears to be ignored these > > days. Maybe ju

Re: [Gambas-user] GB3 Custom controls

2011-11-08 Thread Randall Morgan
I think that should be an upper case "C" which may be why it is being ignored. *nix is case sensitive. On Tue, Nov 8, 2011 at 3:28 PM, GMail wrote: > On Tue, 2011-11-08 at 01:01 +0100, Benoît Minisini wrote: > > > Laurent Carlier made the autotools packager, and I'm not sure that is > > support

Re: [Gambas-user] GB3 Custom controls

2011-11-08 Thread GMail
On Tue, 2011-11-08 at 01:01 +0100, Benoît Minisini wrote: > Laurent Carlier made the autotools packager, and I'm not sure that is > supports packaging components. Can you try with a true binary package? > > -- > Benoît Minisini Good morning Benoît, (and any others watching) re the automake

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread GMail
On Tue, 2011-11-08 at 01:01 +0100, Benoît Minisini wrote: > Can you try with a true binary package? Benoît, I wasn't sure what you meant there, so I just went the manual route. Bruce -- RSA(R) Conference 2012 Save $700

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Tue, 2011-11-08 at 10:35 +1030, Bruce Bruen wrote: > FORGET THIS ONE! I found my problem - I had included phCCDemo as a > library in the project I was using to see if the new component was > available. No, I spoke too soon... :-( Tried with a new project and the Paddys-Hill tab is definitely

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Tue, 2011-11-08 at 10:27 +1030, Bruce Bruen wrote: > On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > > > You must make a binary package of your component project. Normally > > this > > package should install the component in the same place as the other > > components located in t

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Benoît Minisini
Le 08/11/2011 00:57, Bruce Bruen a écrit : > On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > >> You must make a binary package of your component project. Normally >> this >> package should install the component in the same place as the other >> components located in the Gambas 3 source

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > You must make a binary package of your component project. Normally > this > package should install the component in the same place as the other > components located in the Gambas 3 source code, and should become as > usable as them. >

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > > b) the gb problem of having to reload the project if a new CC > class > > is added still seems to exist. > > What are you talking about exactly? Please give some details. Sorry, I am wrong on this one. Make executable does relo

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > > 5) It would be really, really, really nice if all controls had a > > AcceptFocus property (IDE visible) so things like Picture boxes can > be > > skipped in custom navigation code > > Normally PictureBox is a read-only control, so it s

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > > 4) It would be really, really nice if IsContainer was a RO property > > exposed by all controls > > To know if a control is a container, use the "IS" operator: > >If MyControl Is Container Then ... > > The difference is when a co

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > > 2) (Related) Don't use the _DrawWith constant without care as it > will > > crash the IDE if the form is left open. > > _DrawWith works only if you specify a control used by the IDE project > (it must be in gb.qt4, gb.qt4.ext, gb.form

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > > 1) Declaring one of the hidden constants with the value set to the > > default causes problems, e.g. _IsContainer=False > > Mmm. What are you talking about exactly ? Sorry, my mistake. It's _IsMultiContainer=False. In the IDE using

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Dag-Jarle Johansen
wow 2011/11/7 Benoît Minisini > Le 07/11/2011 05:29, Bruce Bruen a écrit : > > I thought I had figured out all the secrets, but no. > > > > This is about custom controls (hereafter "CC") written in gambas. > > > > What I've found out so far > > 1) Declaring one of the hidden constants with the v

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Benoît Minisini
Le 07/11/2011 05:29, Bruce Bruen a écrit : > I thought I had figured out all the secrets, but no. > > This is about custom controls (hereafter "CC") written in gambas. > > What I've found out so far > 1) Declaring one of the hidden constants with the value set to the > default causes problems, e.g.

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread GMail
On Mon, 2011-11-07 at 11:01 +0100, Fabien Bodard wrote: > well your controls are in the toobar ! in the paddy's hill tab > > > Public Const _Group As String = "Paddys-Hill" > Yes, they are (and on the proper tab) In the demo. But I am asking about how to deploy that "library" so that other pr