[Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1155: DateBox control contains "Children" symbol

Benoît Minisini gambas at ...1...
Tue Aug 29 03:36:02 CEST 2017



-------- Message transféré --------
Sujet : [Gambas Bug Tracker] Bug #1155: DateBox control contains "Children" symbol
Date : Tue, 29 Aug 2017 01:34:03 GMT
De : bugtracker at ...3416...
Pour : mourad.reggadi at ...626..., g4mba5 at ...626...

http://gambaswiki.org/bugtracker/edit?object=BUG.1155&from=L21haW4-

Comment #1 by Benoît MINISINI:

Making a "control" (in the meaning of the form editor) with Gambas sometimes requires compounding other controls.

So a "control" is sometimes a Container, but not necessarily a "container" (in the meaning of the form editor).

No idea why exactly you want to know if a Control is a "container", but to do that, you have to check first if it inherits UserContainer (every "container" made in Gambas must inherit that class).
If not, check if it inherits Container, but not UserControl (every "control" made in Gambas must inherit UserControl).

Another method is checking the value of the hidden constant "_IsContainer" of the control. But beware that there are "controls" that are not necessarily GUI Controls.

Benoît MINISINI changed the state of the bug to: Rejected.







More information about the User mailing list