[Gambas-user] Custom controls - 1 more question

Kadaitcha Man nospam.nospam.nospam at ...626...
Tue Jan 19 12:44:26 CET 2010


2010/1/19 Ron_1st <ronstk at ...239...>:

> 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 code
does not apply a caption to the object either. Therefore the result is
an object in a certain shade grey on a form of the very same shade of
grey. The visible result is zilch, nada, nothing, nowt, nought, blank,
not anything, zip, emptiness, nonexistence.

Capice?

That said, when the nothingness problem is fixed, gambas still does
not display the label correctly because it has been put, by default,
in a non-displayable area of the window, i.e. under the title bar at
0,0, and not in the displayable area of the window.

There is a bug, IMO, but not where you or the OP mistakenly believes
it to be. 0,0 seems to be the top left corner of the whole window,
including the title bar. It does not seem that 0,0 is within the
visible boundary of the window _below_ the title bar.

HTH




More information about the User mailing list