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_numio
Class: TNumIO2
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 input box (normally filled by some text as specified in LeftText)
1 the area of the input box
2 the area right to the input box (RightText)

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



Last Update: 2014-Sep-14