Home » U++ Library support » U++ Widgets - General questions or Mixed problems » How to use caret / caretCtrl in a custom control [SOLVED]
How to use caret / caretCtrl in a custom control [SOLVED] [message #43351] |
Wed, 09 July 2014 20:40 |
slashupp
Messages: 231 Registered: July 2009
|
Experienced Member |
|
|
I'm buiding a custom control "from scratch" and want to have a caret in it.
I don't want to re-invent the wheel and would rather make use of the existing
code for using the caret in a control, so what do I need to do to make use of
the caret / caretCtrl that already exists?
(I tried to follow what the existing 'edit'-type controls do, but the code is
all over the place and the logic is hard to decipher.)
Edit - Solved:
It's as simple as just calling SetCaret(..) - with _valid_ values
(I was looking for complexity where there wasn't any - I should have
learned by now that most things in upp is simple & easy )
[Updated on: Thu, 10 July 2014 14:29] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 09:49:46 CEST 2024
Total time taken to generate the page: 0.03060 seconds
|