Parect Child

Child Button to check email

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
1,161 views 1 replies
Reply #1 Top
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.