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 » Community » Newbie corner » Custom/Weird Array Setup
Re: Custom/Weird Array Setup [message #46216 is a reply to message #46209] Sun, 27 March 2016 10:50 Go to previous messageGo to previous message
bempson is currently offline  bempson
Messages: 8
Registered: March 2016
Promising Member
Here is my progress so far.

The red portion is a custom display I set up to render text in that area, seems to be working fine.

I had to subclass ArrayCtrl, modify ArrayCtrl to expose certain private variables (the paint() method depends upon them), and modify the paint() routine to paint my special display after all of the columns in the row.

It's ugly (oh man I changed a base class to do it! yuck!), it's kludgy, but hey, it works so far.

I have a question, if I am drawing text in the red area, how can I notify the Ctrl class itself about the size needed to accomodate the text? Right now the values are statically assigned, but I will need to fix this so that somehow, the paint() routing would have some sort of hint as to the size (height) of the rectangle needed for a certain amount of text.

Any suggestions?
  • Attachment: progress1.png
    (Size: 23.61KB, Downloaded 283 times)

[Updated on: Sun, 27 March 2016 10:50]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: VC++ on Linux?
Next Topic: upp-mingw-9671 with win\upp9628 SOLVED
Goto Forum:
  


Current Time: Sat Jun 28 13:16:08 CEST 2025

Total time taken to generate the page: 0.03551 seconds