Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
slashupp is currently offline  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 Smile
(I was looking for complexity where there wasn't any - I should have
learned by now that most things in upp is simple & easy Embarassed )

[Updated on: Thu, 10 July 2014 14:29]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bugfix: DocEdit, not to put back to wantfocus after clicking into it
Next Topic: mixed RichEdit widget with MFC Dialog.
Goto Forum:
  


Current Time: Thu Jul 18 03:12:43 CEST 2024

Total time taken to generate the page: 0.02014 seconds