Crystal
Crystal copied to clipboard
#1078 TextBox masking in window mode.
UpdateTextBoxHostLocationnow centralizes where the WinForms input control lives. In fullscreen it sits where it always was; in windowed mode it’s moved toHiddenTextBoxLocationso it never paints over Mir UIs.- Mouse input paths (
OnMouseDown/Move/Up/DoubleClick/Wheel) detect when the control is hidden and replay the corresponding Windows messages viaSendMessage, usingCMain.MPointto compute the caret position. Keyboard input still flows through the realTextBox, so all selection/editing behavior is preserved without rewriting it manually. - Texture creation is still triggered everywhere (windowed + fullscreen), so the Mir-themed mask/caret drawn from
TextBox.DrawToBitmapnow matches in both modes.
@Suprcode not sure whether this is the correct direction which AI provided.