This event is generated just after a thumbnail image is displayed in the Thumbnail Control.
Parameters
Name | Explanation |
---|---|
PathName | The directory name and path of the image that will be displayed |
FileName | The file name of the image that will be displayed |
ImageNumber | The sequential number of the thumbnail image |
MaxImage | The total number of images to be loaded into the Thumbnail Control |
Left | The position, in pixels, of the left side of the thumbnail frame that will be displayed. (This is the x coordinate of the top left corner of the thumbnail frame) |
Top | The position, in pixels, of the top of the thumbnail frame that will be displayed. (This is the y coordinate of the top left corner of the thumbnail frame) |
Right | The position, in pixels, of the left side of the thumbnail frame that will be displayed. (This is the x coordinate of the bottom right corner of the thumbnail frame) |
Bottom | The position, in pixels, of the left side of the thumbnail frame that will be displayed. (This is the y coordinate of the bottom right corner of the thumbnail frame) |
Explanation
The ShowThumbImage event is generated just after a thumbnail image is displayed in the thumbnail control. This event is generated for each image displayed in the thumbnail control and if the Thumbnail Control is forced to repaint, the event will be generated even though the Display method has not been called.
When multi-page image files are loaded, the page number is appended to the FileName parameter (If the page number is 0 then it is omitted).
Example: When page 2 of the file ABC.TIF is loaded into the thumbnail control, the FileName parameter will return the string "ABC.TIF 2".
Note for Visual Basic: In order to use the Left($) function and Right($) function within the ShowThumbImage event, please change the names of the Left and Right parameters in this event.
- For example:
- Private Sub IkThumb1_ShowThumbImage(ByVal PathName As String,
ByVal FileName As String, ByVal ImageNumber As Integer, ByVal
MaxImage As Integer, ByVal Left_ As Integer, ByVal Top As Integer,
ByVal Right_ As Integer, ByVal Bottom As Integer)
End Sub