Published on December 23, 2006 By Jingles In DesktopX
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
Comments
on Dec 24, 2006
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
on Dec 24, 2006
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.