U++ framework
Do not panic. Ask here before giving up.

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: 14291
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: Sat Sep 12 21:27:01 GMT+2 2026

Total time taken to generate the page: 0.00895 seconds