[Gambas-user] Adding a new control to existing container(Panel)

abbat abbat.81 at ...787...
Sun Aug 5 15:41:11 CEST 2012


Thanks
Oh, this is way to create a controls by code, but there any way to do it in
Designer?


Tobias Boege wrote:
> 
> On Sun, 05 Aug 2012, abbat wrote:
>> 
>> A have an existing Panel1 which contains a few controls.
>> How to add a new control to existing panel?
>> I could not find anything in properies of panel(list of controls or
>> something else)
>> Thanks
>> -- 
>> View this message in context:
>> http://old.nabble.com/Adding-a-new-control-to-existing-container%28Panel%29-tp34257551p34257551.html
>> Sent from the gambas-user mailing list archive at Nabble.com.
>> 
>> 
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and 
>> threat landscape has changed and how IT managers can respond. Discussions 
>> will include endpoint security, mobile security and the latest in malware 
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> Actually, there is the Panel.Children collection but as I understood, this
> is read-only.
> The best way I can think of would be to create the new control with the
> Panel as its parent, if possible:
> 
> (for exmaple, a new Button into the Panel)
> Dim hNewButton As New Button(Panel1) As "ButtonName"
> 
> Regards,
> Tobi
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 

-- 
View this message in context: http://old.nabble.com/Adding-a-new-control-to-existing-container%28Panel%29-tp34257551p34257601.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list