I try to get the handle of the window by $self->GetWindow(GW_OWNER); but it returns 0 :(

In most case you dont need to use the handle - if you do need the handle you can use:

$self->{-handle)

Further is it possible to access the other controls that are part of the window by using the window handle? Specifically if there is a Textfield called username how do I access that Textfield?

if the window is in $mywin:

$mywin->username->Text(); #returns the text from the username contol

$mywin->username->Text('Hello'); #sets text in the username control

Cheers,

jez.



Reply via email to