[Gambas-user] creating objects from code into a tabstrip

M0E Lnx m0e.lnx at ...626...
Thu Aug 7 23:49:21 CEST 2008


Thank you... this works great ;)


On Thu, Aug 7, 2008 at 4:20 PM, Stephen Bungay <sbungay at ...981...> wrote:
>   IN your proc..
>
> DIM hButton1 as Button
>
> With Tabstrip1
>      .Index = 2
>      hButton1 = NEW Button(TabStrip1) AS "NewButton"
> end with
>
> M0E Lnx wrote:
>> In a form, I have a tabstrip.
>> The tabstrip's .count property is not defined until some conditions are met
>>
>> After the tabstrip's .count property has been set, I want to fill each
>> tab of the tabstrip with a button, textlabel, textbox etc
>>
>> When i create my objects, how do I tell it which tab to go to?
>> Seems that the only tabstrip itself enherits the container property,
>> but the tabs in it do not.
>> I have already tried something like this
>>
>> bt = new button(tabstrip1[1]) as "button"
>>
>> but that says bad use of virtual class
>>
>> Please help
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list