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 » Showing Images in a Child Frame
Re: Showing Images in a Child Frame [message #17738 is a reply to message #17736] Wed, 27 August 2008 19:11 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
I would suggest creating a custom widget based on Ctrl, and overloading it's Paint method to draw the cards.

Something like:
class CardView : public Ctrl
  virtual void Paint(Draw &w) {
    w.DrawRect(GetSize(), SColorFace);
    // Draw cards
  }
};


As long as you declare this before you include your .lay file (or include a header with it in) you can add CardView to your child window's layout using 'User class' from the Layout Manager context menu.

[Updated on: Wed, 27 August 2008 19:12]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Premultiply - Wrong expression
Next Topic: EXIF data access
Goto Forum:
  


Current Time: Sun May 05 23:51:13 CEST 2024

Total time taken to generate the page: 0.02912 seconds