Accusoft NotateXpress 12
NoteIcon Property
See Also  Example  Send comments on this topic.
AccusoftNotateXpress12 ActiveX DLL > NotateXpress Object : NoteIcon Property

Glossary Item Box

Description

Gets and sets a handle to a custom icon associated with the Notetool.

Property Type

Read-write property

Syntax

Visual Basic
Public Property NoteIcon As Long

Return Type

The handle to the note icon.

Remarks

This enables the application to override the default icon NotateXpress uses to display the NoteTool.

Make sure that the icon does not go out of scope, as the application controls ownership of the icon.

This property should be set once as its associated with the NotateXpress control.

Example

Custom Note Icon (Visual Basic)Copy Code
'YouwillneedtoprototypetheLoadImagecall
PrivateConstIMAGE_ICON=1
PrivateConstLR_LOADFROMFILE=&H10
PrivateDeclareFunctionLoadImageLib"user32"Alias"LoadImageA"(ByValhInstAsLong,ByVallpszAsString,ByValun1AsLong,ByValn1AsLong,ByValn2AsLong,ByValun2AsLong)AsLong

PrivateSubSetNoteIcon_Click()
NotateXpress1.NoteIcon=LoadImage(App.hInstance,"c:\\images\\newnoteicon.ico",IMAGE_ICON,0,0,LR_LOADFROMFILE)
EndSub

See Also

©2013. Accusoft Corporation. All Rights Reserved.