tempelmann / custom-editfield

Powerful text editor class made in Xojo.
27 stars 11 forks source link

CEF doesn't update unless resized #27

Open gkjpettet opened 6 years ago

gkjpettet commented 6 years ago

I've dropped the CEF folder into a new desktop project on macOS (10.13) using Xojo 2017 r3. Despite AcceptFocus being on, the EditField doesn't update at all with keypresses, selection, the arrow keys and the caret doesn't blink. If I resize the window, any changes I had typed in the EditField suddenly show up. I've been through the demo project and my CEF settings in the inspector match up. If I call self.Refresh() from within CEF.TextChanged() then the changes are reflected but things like selecting text don't work.

I'm sure there's something simple I'm missing here. The demo project works fine.

tempelmann commented 6 years ago

Use my tool Arbed to compare your project with the demo project to see where the differences are. If you find the reason, post it here for others to see and close this ticket, please.