[Gambas-user] Custom controls - 1 more question
Kadaitcha Man
nospam.nospam.nospam at ...626...
Tue Jan 19 11:47:12 CET 2010
2010/1/19 Aaron Peachey <alpeachey at ...626...>:
> 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 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 window title-bar.
Also, lose lblName.Show().
Regards,
<aside to Benoit>
It looks like X and Y are taken from the top left boundary of the
form's physical coordinates and not the the top left boundary of the
visible area within the form.
Perhaps that needs to be fixed, squire.
More information about the User
mailing list