Parect Child

Child Button to check email

Saturday, July 29, 2006 by Automan | Discussion: DesktopX

Hi filks; I have a probable simple one for you. I have a parent for email thats called "Main_Back" and it has all the scripting to chect email, etc. Now I have placed a button on the Main_Back and made it part of the group and also a child. My problem is how to make the button fire the check mail manuly when I want instead of waiting for the timer to fire. Now I don't remember who wrote this email section but it has a button to bring up a configure screen for your info. Thanks Automan
Skarny
Reply #1 Saturday, July 29, 2006 11:39 PM
the Sub Object_OnTimer1 (etc) that would be used as the Timer events in the mail object should just be normal Subroutines like any other. You should be able to call them from the button object. Do something like the following.

Add a script to your button.

Sub Object_OnLButtonUp(x,y,dragged)
Call DesktopX.ScriptObject("Main_Back").Object_OnTimer1
End Sub

When you mouse click (up) on your button, the mail script timer routine should be called just as if the timer event had occured.

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