Useing GetFocas

Hi,

I have a prodject I'm working on that has an object hidden by virtue of being a

child object.And it shows via script,executed though another object say a button.I

need to give focas to the first object.I have had no luck.Any help would be

apreciated.

Thanks

Jingles
4,514 views 2 replies
Reply #1 Top
Okay so there's an object (let's call it object2) that has no visiblity because of the parent. You have a button that makes "object2" visible when you click the button. But you'd like to set focus on "object2" via script?

How about using object.setfocus
You can insert a script like this in the button:

Sub Object_OnLButtonUp(x,y,d)
If Not d Then
desktopx.Object("object2").visible = True
desktopx.Object("object2").setfocus
End If
End Sub
Reply #2 Top
Thanks but no dice.Scripting errors.It's not the Cache either.I'll keep trying,I'm

just running out of things to try.