RB: access to controls of window by index ?
erne
ernestogiannotta at tiscalinet.it
Sun Apr 17 19:03:26 CDT 2005
Hi Ruslan,
On 17 apr 2005, at 10:20, Ruslan Zasukhin wrote:
> Hi Guys,
>
> I do not see, if REALbasic have such feature:
>
> I have window
> it have several controls (edit fields, static fields, radio
> buttons)
>
> Can I iterate in loop all controls and check
yep!
dim c as Control
for i = 0 to Window.ControlCount - 1
c = Window.Control(i)
next
> a) their type?
with some tweak:
if c isa RectControl then
Return true
end if
> b) their name?
yep!
c.Name
> c) do type cast to get access to all specific its properties?
>
yep!
if c isa RectControl then
rc = RectControl(c)
end if
>
HTH
Cool Runnings,
Erne.
|er| musical box
|ne| a media store
More information about the Valentina
mailing list