-------- Message transféré --------
Sujet : [Gambas Bug Tracker] Bug #1155: DateBox control contains "Children" 
symbol
Date : Tue, 29 Aug 2017 01:34:03 GMT
De : bugtrac...@gambaswiki.org
Pour : mourad.regg...@gmail.com, g4m...@gmail.com

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.




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to