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 » ArrayCtrl, HeaderCtrl & GridCtrl » Substring formating in ArrayCtrl (SqlCtrl)
Re: Substring formating in ArrayCtrl (SqlCtrl) [message #22847 is a reply to message #22819] Sat, 22 August 2009 02:06 Go to previous message
bushman is currently offline  bushman
Messages: 134
Registered: February 2009
Experienced Member
You're right, I can add a RichTextCtrl to each cell in an ArrayCtrl and then insert my decorated text:

ArrayCtrl arrctrl;
Array<RichTextCtrl> rtctrl;
...
arrctrl.Clear()
rtctrl.Clear();
...
Zoom zoom(3, 4);
rtctrl.Add();
arrctrl.SetCtrl(row, col, rtctrl.Top().NoSb());
rtctrl.Top().SetZoom(zoom).TopPos(0, arrctrl.GetLineCy());
rtctrl.Top().SetQTF("[* Ultimate++] is great!");


I just shouldn't forget to Clear() the RichTextCtrl Array whenever I Clear() the ArrayCtrl to avoid memory overload.

Thank you very much for your advice!
 
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Previous Topic: ArrayCtrl column width problem
Next Topic: Problem with Drag&Drop in ArrayCtrl
Goto Forum:
  


Current Time: Fri May 10 14:41:57 CEST 2024

Total time taken to generate the page: 0.02377 seconds