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