The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



MouseAreaCode


Unit:SDL_numlab
Class:TNumLab
Declaration:property MouseAreaCode: integer;

The read-only property MouseAreaCode returns the current position of the mouse cursor. This can be used to respond to mouse clicks more specifically. For example, a pop-up menu may be adjusted according to the position where the user clicks the control. The following area codes are defined:
0 the area left to the label (normally filled by some text as specified in LeftText)
1 the area of the numeric display
2 the area right to the label (RightText)

Note that MouseAreaCode is undefined if the mouse is not over the TNumLab control.



Last Update: 2023-Dec-13