[Gambas-user] Tip #14 (EMBED)

Fabien Bodard gambas.fr at ...626...
Fri Oct 24 17:53:19 CEST 2014


It wil be more easier without the param1, param2 that have no really needs to be

2014-10-24 17:07 GMT+02:00 Tobias Boege <taboege at ...626...>:
> Hi,
>
> I received a question about tip #14 in the IDE. Indeed it contains some
> unnecessary complication:
>
> --8<--[ tips.en ]-----------------------------------------------------------
> 254 Dim hSuperControl As MyForm
> 255 ' Create a dialog
> 256 hForm = New MyDialog
> 257 ' Insert a form into this dialog
> 258 ' Note that this form takes two parameters before the container
> 259 hSuperControl = New MyForm(Param1, Param2, MyDialog)
> 260 ' Moves and resizes the form
> 261 hSuperControl.Move(8, 8, 128, 64)
> --8<------------------------------------------------------------------------
>
> If someone tries to arrange a project around this snippet to test it, they
> may fail at the two additional parameters to MyForm. They don't seem
> relevant to the topic of embedding a form into a container. Remove them?
>
> Regards,
> Tobi
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list