Useing GetFocas

Saturday, December 23, 2006 by Jingles | Discussion: 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
sViz
Reply #1 Sunday, December 24, 2006 1:54 AM
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
Jingles
Reply #2 Sunday, December 24, 2006 8:41 AM
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.

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01