backcountryprogrammer
Member
- Local time
- Today, 02:37
- Joined
- Aug 10, 2024
- Messages
- 39
Attached is a DB with a form that shows two text boxes. The only styling applied to the text boxes is the border width; everything else is default. One text box has event handlers setup for Got/Lost-Focus. In the event handler I set the color of the textbox. I observe that this screws up the rendering of the text box (see pictures). If I don't modify the text box properties then it renders fine. This appears to bug in the renderer.
Anybody seen this before?
EDIT: It seem that the problem only shows for me if four conditions are met. borderwidth is not hairline, backcolor is set from the focus event handler and the textbox receives focus by TAB'ing into it and the text becomes auto-selected.
EDIT: I tried it on computers with and without HiDPI screens all showed the faulty behavior.
EDIT: First picture shows normal behavior because not all four conditions are met. Second picture shows the faulty behavior (all four conditions are met). The only difference between them is that in latter case the backcolor is set in the gotfocus event handler.
EDIT: In the attached DB, in order to show the faulty behavior, Text1 needs to receive the focus by TAB'ing to it (the text then becomes auto-selected).
Anybody seen this before?
EDIT: It seem that the problem only shows for me if four conditions are met. borderwidth is not hairline, backcolor is set from the focus event handler and the textbox receives focus by TAB'ing into it and the text becomes auto-selected.
EDIT: I tried it on computers with and without HiDPI screens all showed the faulty behavior.
EDIT: First picture shows normal behavior because not all four conditions are met. Second picture shows the faulty behavior (all four conditions are met). The only difference between them is that in latter case the backcolor is set in the gotfocus event handler.
EDIT: In the attached DB, in order to show the faulty behavior, Text1 needs to receive the focus by TAB'ing to it (the text then becomes auto-selected).
Attachments
Last edited: