[Gambas-user] Custom controls based on radiobutton question

2012-04-25 Thread Bruce Bruen
I am trying to create a customised radiobutton control. The problem I have is this. The native radiobutton control behaves according to the specification in that if more than one exists in the same parent then they automatically effect a mutually exclusive true value. In other words, setting one

Re: [Gambas-user] Custom controls - 1 more question

2010-01-19 Thread Aaron Peachey
> Erm... have you tried putting text in the label's Caption property, > set its width and X, Y location so that it is within the visible area > of the form, yes? > > No, you haven't? > > There's your problem then, hey. The field has no text so it can't be > seen, even if it is hiding behind the w

Re: [Gambas-user] Custom controls - 1 more question

2010-01-19 Thread Kadaitcha Man
2010/1/19 Doriano Blengino : > Or, at least, so It should be - too > lazy to try by myself... It is so, Doriano. And don't fret about not trying it, because I did it for you :) I have never experienced the problem because I learned. very early on, the value of containers. Nevertheless it does ap

Re: [Gambas-user] Custom controls - 1 more question

2010-01-19 Thread Doriano Blengino
I wrote: > He does not need - at the time of the label creation with NEW, lblName > gets two references; one of them is discarded by leaving the subroutine, > but the other, held by the form (thanks to "(ME)"), remains; so the > label is not destroyed. Kadaitcha is right - the label should have

Re: [Gambas-user] Custom controls - 1 more question

2010-01-19 Thread Kadaitcha Man
2010/1/19 Ron_1st : > if he want the control always on the form the dim must be done global > in the head else it lives only for the time the subroutine lives (??) Wrong. His code will show nothing. The default background of a label is the same as that of a form. A label has no border, and his co

Re: [Gambas-user] Custom controls - 1 more question

2010-01-19 Thread Doriano Blengino
Ron_1st ha scritto: > On Tuesday 19 January 2010, Kadaitcha Man wrote: > >> 2010/1/19 Aaron Peachey : >> >>> Yes, this is the code in my form's class file: >>> >>> PUBLIC SUB Form_Open() >>> DIM lblName AS Label >>> lblName = NEW Label(ME) >>> lblName.Show() >>> END >>> >> Erm...

Re: [Gambas-user] Custom controls - 1 more question

2010-01-19 Thread Ron_1st
On Tuesday 19 January 2010, Kadaitcha Man wrote: > 2010/1/19 Aaron Peachey : > > Yes, this is the code in my form's class file: > > > > PUBLIC SUB Form_Open() > >  DIM lblName AS Label > >  lblName = NEW Label(ME) > >  lblName.Show() > > END > > Erm... have you tried putting text in the label's Ca

Re: [Gambas-user] Custom controls - 1 more question

2010-01-19 Thread Kadaitcha Man
2010/1/19 Aaron Peachey : > Yes, this is the code in my form's class file: > > PUBLIC SUB Form_Open() >  DIM lblName AS Label >  lblName = NEW Label(ME) >  lblName.Show() > END Erm... have you tried putting text in the label's Caption property, set its width and X, Y location so that it is within

Re: [Gambas-user] Custom controls - 1 more question

2010-01-19 Thread Aaron Peachey
Yes, this is the code in my form's class file: PUBLIC SUB Form_Open() DIM lblName AS Label lblName = NEW Label(ME) lblName.Show() END -- Throughout its 18-year history, RSA Conference consistently attracts the world's

Re: [Gambas-user] Custom controls - 1 more question

2010-01-18 Thread Benoît Minisini
> How do i add a control to a form in code? i've tried dim name as label > then name = new label(parentformname) in the form open method but it > doesn't appear. thanks, aaron > Can you show your code? -- Benoît Minisini -

[Gambas-user] Custom controls - 1 more question

2010-01-18 Thread Aaron Peachey
How do i add a control to a form in code? i've tried dim name as label then name = new label(parentformname) in the form open method but it doesn't appear. thanks, aaron -- Throughout its 18-year history, RSA Conference co

Re: [Gambas-user] Custom controls

2010-01-17 Thread Aaron Peachey
> > > > For example, you have to: > > 1) Create a class named "MyLabel" in your project. > 2) Use "INHERITS Label". > > But you have to use it manually, and you won't see it in the IDE toolbox. > > If you want that, you have to create a component, as explained in the link > provide by nospam x 3. >

Re: [Gambas-user] Custom controls

2010-01-17 Thread Benoît Minisini
> Hi all, > I'm just learning Gambas and trying to do something simple (I thought) > by making custom versions of controls. > > For example, I want to inherit the Label and TextBox controls to add > some new properties and methods. > As a basic example, in my program the labels for mandatory field

Re: [Gambas-user] Custom controls

2010-01-16 Thread nospam.nospam.nos...@gmail.com
2010/1/17 Aaron Peachey : > Hi all, > I'm just learning Gambas and trying to do something simple (I thought) > by making custom versions of controls. > > For example, I want to inherit the Label and TextBox controls to add > some new properties and methods. > As a basic example, in my program the l

[Gambas-user] Custom controls

2010-01-16 Thread Aaron Peachey
Hi all, I'm just learning Gambas and trying to do something simple (I thought) by making custom versions of controls. For example, I want to inherit the Label and TextBox controls to add some new properties and methods. As a basic example, in my program the labels for mandatory fields are a dif

Re: [Gambas-user] custom controls tutorial or guide

2009-11-09 Thread Benoît Minisini
> 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 > You

Re: [Gambas-user] custom controls tutorial or guide

2009-11-08 Thread Fabien Bodard
I think for the begginnig you must to do an encapsulating classe. It's a class that take a control as parameter. And give to it new function or feature. so: = CLASS CColourCombo Private $hComboBox Private $hObs as new Observer Public

[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 cont