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 » U++ Widgets - General questions or Mixed problems » How to resize an ImageCtrl to fit the Image?
Re: How to resize an ImageCtrl to fit the Image? [message #5550 is a reply to message #5549] Mon, 02 October 2006 17:14 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
Have you tried SetRect?

Actually, the situation is a little bit complicated, because Ctrls have "logical" coordinates. However, SetRect sets logical coordinates equivalent to simply placing Ctrl to the specified Rect.

Another possible trouble is that this Rect is "outer", while to fit the Image you are more interested about the size of view rectangle. You can get required "outer" rect size using AddFrameSize.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Exception,how to find where?
Next Topic: Problem with ColumnList (with example) [BUG/FIXED]
Goto Forum:
  


Current Time: Fri Jun 06 11:07:34 CEST 2025

Total time taken to generate the page: 0.04362 seconds