Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

StaticImage

 

class StaticImage : public Ctrl

 

As seen in layout designer:

 

 

As seen in program:

 

 

StaticImage is a field to visualize an image inside Ctrl frame or filling window background.

 

 

Constructor Detail


 

StaticImage()

Initializes StaticImage..

 

 

Public Member List


 

bool Set(String fileName)

Fills control with image from file fileName.

 


 

bool Set(Image image)

Fills control with Image image from .iml resource or initialized Image.

 


 

void Clear()

Clears image.

 


 

Image &Get()

Gets a reference to control original Image without rotation or scaling.

 


 

StaticImage& SetPopUp(bool pop = true)

If pop is true, image will popup if mouse is hovering over the control and popup Size is bigger that StaticImage control size.

 


 

StaticImage& SetPopUpSize(Size sz)

Sets with sz the size of popup.

If sz is Null, popup Size is the original image Size.

 


 

Callback WhenLeftDouble

Callback function called when mouse left button is clicked twice.

 


 

Callback WhenLeftDown

Callback function called when mouse left button is clicked.

 


 

Callback WhenRightDown

Callback function called when mouse right button is clicked twice.

 


 

void operator=(String fileName)

Like Set(String fileName).

 


 

void operator=(Image image)

Like Set(Image image).

 


 

StaticImage& SetAngle(int angle)

Sets the image orientation.

angle parameter valid values are Angle_0, Angle_90, Angle_180 and Angle_270.

 

 

 


 

StaticImage& SetFit(int fit)

Sets the image fit into the Ctrl frame.

fit parameter valid values are BestFit, FillFrame, NoScale, RepeatToFill.

Background example is a combination of SetFit(RepeatToFill); and UseAsBackground(true);

 

 


 

StaticImage& SetBackground(Color c)

Sets c.as image frame background color. Null is valid as transparent color.

 


 

StaticImage& UseAsBackground(bool b)

If b.is true the image will be used as parent window background.

 

 

Do you want to contribute?