Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Showing Images in a Child Frame
Re: Showing Images in a Child Frame [message #17717 is a reply to message #17710] |
Wed, 27 August 2008 13:23 |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
Hi and welcome!
I'm afraid you haven't really given enough information for a definitive answer, and there are probably several ways of doing it depending on exactly how you want it to look.
Paint() is clipped to the client area of a ctrl. Frames are objects and responsible for drawing themselves. The simplest way :
// Member variable for the frame (change to Top/Left etc.)
FrameRight<ImageCtrl> imageframe;
...
// In constructor
Image img = AppImg::some_image();
imageframe.SetImage(img);
AddFrame(imageframe.Width(img.GetWidth()));
But if that's not what you're after, post some more info and we'll help you out.
[Updated on: Wed, 27 August 2008 13:27] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon May 06 01:03:01 CEST 2024
Total time taken to generate the page: 0.02760 seconds
|