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 #18021 is a reply to message #17738] Sun, 07 September 2008 08:42 Go to previous message
mirek is currently offline  mirek
Messages: 13986
Registered: November 2005
Ultimate Member
mrjt wrote on Wed, 27 August 2008 13:11

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.


BTW, you can even declare this after including .lay and leave the type of widget empty, then declare it inside dialog struct...

Mirek
 
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 Jun 16 22:54:49 CEST 2024

Total time taken to generate the page: 0.01644 seconds