Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

100LHQ: HOWTO: Change the Default Properties of the Ruler Object in VB?
Started by Gabe-Forum@LEADTOOLS.com at 09-21-2006 18:23. Topic has 0 replies.

Print Search « Previous Thread Next Thread »
  09-21-2006, 18:23
Gabe-Forum@LEADTOOLS.com is not online. Last active: 7/18/2008 3:15:03 PM Gabe-Forum@LEADTOOLS.com



Top 25 Posts
Joined on 04-27-2005
Posts 237
100LHQ: HOWTO: Change the Default Properties of the Ruler Object in VB?

Summary:

You can change the default properties of any new ruler objects by adding a LEAD DLL API call to L_AnnSetUnit in the AnnCreate Event

More Information:

You may accomplish this using the DLL function calls as follows: 

Private Sub LEAD1_AnnCreate(ByVal hObject As stdole.OLE_HANDLE)
If LEAD1.AnnGetType(hObject) = ANNOBJECT_RULER Then
L_AnnSetUnit
hObject, ANNUNIT_CENTIMETERS, TEXT(“cm”), 2, 0
End If
End Sub

   Report 
LEAD Support Fo... » Developer » FAQ » 100LHQ: HOWTO: Change the Default Properties of the Ruler Object in VB?

Powered by Community Server, by Telligent Systems