V4RB, how to create StaticText in code

Charles Yeomans yeomans at desuetude.com
Wed May 26 15:53:55 CDT 2004


On May 26, 2004, at 2:47 PM, Ruslan Zasukhin wrote:

> On 5/26/04 9:41 PM, "Charles Yeomans" <yeomans at desuetude.com> wrote:
>
>> On May 26, 2004, at 2:30 PM, Ruslan Zasukhin wrote:
>>
>>>
>>> Is it possible in REALbasic ?
>>>
>>> I think yes, but cannot make it working.
>>
>> It depends on what you mean; you can clone a StaticText in a window,
>> but this is the only way to create controls at runtime.
>
> Ugly.

I agree.
>
> Yes, I want
>
>     to have empty window "Properties"
>     or with one pair of static text
>
> Then add as many as I need.
>
>
>     StaticText      StaticText
>
>     ........        ...........
>
>     ........        ...........
>
>
> So I need clone it?
>
> Exists such function?
>

Yes; new StaticText1 will return a new instance.  Don't forget to set 
the Index property of StaticText1 in the Properties editor, or this 
call will fail.

Charles Yeomans



More information about the Valentina mailing list