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 » Draw, Display, Images, Bitmaps, Icons » How to Draw a couple of lines over an ArrayCtrl
Re: How to Draw a couple of lines over an ArrayCtrl [message #4134 is a reply to message #4130] Mon, 24 July 2006 11:00 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
To draw something "over" some other widget is always a bit tricky solution - so the first question is "why?".

If you insist on doing so, in this situation probably the simplest solution is to use "Picture" static Ctrl - this is a simple Ctrl that displays the Drawing. Simply add it to layout (it is not yet predefined in .usc, so you have to add it as user class) AFTER the ArrayCtrl so that it will be painted over it.

To answer some other question:

- Of course, parent background has to painted behind all child widgets.

- Paint method is responsible for redrawing widget upon system request. In other words, this is where you draw the visual content of the widget.

- "Drawing" is a container that stores recording of Draw operations. You can think about it as of vector image. DrawDrawing replays those operations.

- [0, 0] at upper left corner is quite common solution for GUI... It is definitely better for most widgets (e.g. lines in editors or grids are counted from top to bottom).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to display an icon on the right side of a label/button
Next Topic: Pdf export
Goto Forum:
  


Current Time: Thu Jul 17 00:55:28 CEST 2025

Total time taken to generate the page: 0.03584 seconds