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
> 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
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
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
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
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...
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
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
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
> 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
-
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
>
>
>
> 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.
>
> 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
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
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
> 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
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
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
18 matches
Mail list logo