Print Preview ActiveX Active Users: 91 / Visits Today: 138
Highest Active Users: 91
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 GenerateCustomButton - Method
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: Refresh - Method Topic Next Topic: Zoom - Property  

emiel
Administrator

Belgium
327 Posts

Posted - 05/26/2006 :  13:28:29  Show Profile
Method GenerateCustomButton

Action:

This method triggers the event routine attached to the custom button.

Syntax:

GenerateCustomButton ()

Remark:

The event routine must have exactly this name : Preview_CustomButtonClick()

Example:

to generate the custombutton event :

Private Sub Command0_Click()

Preview.Modal = False
Preview.AddFirstPage 500, 500, 500, 500
Preview.AddTextAt "any text"
Preview.ShowCustomButton = True

' the following line triggers the Preview_CustomButtonClick()
preview.GenerateCustomButton 
                                                 
Preview.EndDocument prOTScreen

End Sub

Private Sub Preview_CustomButtonClick() ' the on_click Event

'Custom button behaviour code placed here
preview.addtext "I am active"
preview.Refresh ' I am active pops up in the preview window control
                ' on the active page at current X and current Y.

End Sub
See also :

ShowCustomButton ---------> : http://www.ppreview.net/forum/topic.asp?TOPIC_ID=461
Refresh ----------------------> : http://www.ppreview.net/forum/topic.asp?TOPIC_ID=589


Come and visit :
www.immoassist.com
www.ppreview.net
www.vbdiamond.com
www.d2dsources.com
www.mandix.com


Go to Bottom of Page
  Previous Topic: Refresh - Method Topic Next Topic: Zoom - Property  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Print Preview ActiveX © Mandix Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.02