mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2025-01-15 03:49:56 +00:00
Fixes #93: Hides cursor when window is not in focus.
This commit is contained in:
parent
40daacf007
commit
929d5c359c
1 changed files with 1 additions and 0 deletions
|
@ -833,6 +833,7 @@ SUB __UI_DrawTextBox (This AS __UI_ControlTYPE, ControlState, ss1 AS LONG, ss2 A
|
||||||
SetCursor# = TIMER
|
SetCursor# = TIMER
|
||||||
cursorBlink%% = NOT cursorBlink%%
|
cursorBlink%% = NOT cursorBlink%%
|
||||||
END IF
|
END IF
|
||||||
|
IF _WINDOWHASFOCUS = False THEN cursorBlink%% = False
|
||||||
|
|
||||||
IF This.Cursor > UBOUND(__UI_ThisLineChars) THEN This.Cursor = UBOUND(__UI_ThisLineChars)
|
IF This.Cursor > UBOUND(__UI_ThisLineChars) THEN This.Cursor = UBOUND(__UI_ThisLineChars)
|
||||||
This.VisibleCursor = CaptionIndent + __UI_ThisLineChars(This.Cursor) - This.InputViewStart
|
This.VisibleCursor = CaptionIndent + __UI_ThisLineChars(This.Cursor) - This.InputViewStart
|
||||||
|
|
Loading…
Reference in a new issue