[Gambas-user] How to create dynamic widgets ?
l.alebarde2 at ...402...
l.alebarde2 at ...402...
Sat Dec 22 12:30:00 CET 2007
Thanks a lot. It is alright, thought not as RAD as I would expect.
I have tryed doing widgets with Forms RAD-designed in the IDE. It requires to
issue their Raise method when the main form is moved, managing Xscreen & Yscreen
widget-Form properties recalculated from X & Y main Form properties. It works,
but with lag, making it inappropriate.
> Hi:
>
> Well, creating a Widget dinamically is easy:
>
> (Inside a form)
>
> Dim hBtn as New Button (Me)
>
> HBtn.Move(10,10,100,100)
> HBtn.Text="Hello"
> ' Don't remember if the following line is neccessary or it's visible
> since the begginning
> HBtn.Show()
>
>
> 2007/12/21, l.alebarde2 at ...402... <l.alebarde2 at ...402...>:
>>
>> Hello,
>>
>> I would like to take benefit of Gambas RAD to design widgets, and then
>> to create
>> them dynamically in the main form. The best would be to generate
>> automatically a
>> CLASS with it from a Gambas IDE tool, from which it would be then
>> possible to
>> create new widgets inherited from it, of course, still using the RAD.
>>
>> That would be fun, isn't it ?
>>
>> Back to reallity, what is the best idiome to do that with what already
>> exists ?
>>
>> Laurent Alebarde.
More information about the User
mailing list