Object Controllers
Wednesday, May 25, 2005 by steve54 | Discussion: DesktopX
Reply #2 Monday, May 30, 2005 8:28 PM
Steve
Reply #3 Monday, May 30, 2005 11:59 PM
Now, for the specific thing you need to do, you need one object which will appear and disappear, and one which will control that action.
You need to give the object that will be controled an Object ID. For this example we'll use "PopupOb".
For the controling object you need to create a script. In the script you need to include a callback function:
Sub Object_OnLButtonUp(x,y,dragged)
If not dragged then
If DesktopX.Object("PopupOb").Visible = TRUE Then
DesktopX.Object("PopupOb").Visible = FALSE
Else
DesktopX.Object("PopupOb").Visible = TRUE
End If
End If
End Sub
This will give you the basic functionality you want. To really do the script correctly you should also probably check to make sure the object exists before trying to access it (If DesktopX.IsObject("PopupOb") Then ...)
Reply #4 Thursday, June 9, 2005 10:53 AM
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!







Reply #1 Wednesday, May 25, 2005 4:38 PM
If this is not clear let me know and I will elaborate on "how to..."