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 » how to paint a LineEdit? how to create a small image?
Re: how to paint a LineEdit? how to create a small image? [message #10364 is a reply to message #10363] Wed, 04 July 2007 11:04 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
TextCtrl::
	enum {
		INK_NORMAL,
		INK_DISABLED,
		INK_SELECTED,
		PAPER_NORMAL,
		PAPER_READONLY,
		PAPER_SELECTED,
		COLOR_COUNT,
	};

	void      SetColor(int i, Color c)         { color[i] = c; Refresh(); }



All the painting should be generally done in Paint. For specific cases you can use tricks like overlapping the widget with e.g. Picture widget which accepts Drawing. Somethine like:

 
LineEdit edit;
Picture picture;
....
// show the picture
picture = my_drawing;
edit.Add(picture.SizePos());
....
// back to LineEdit
picture.Remove();


Mirek
 
Read Message
Read Message
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message icon14.gif
Previous Topic: BSD problems with Draw
Next Topic: How to Draw into an existing image(buffer) ?
Goto Forum:
  


Current Time: Sat May 04 23:29:32 CEST 2024

Total time taken to generate the page: 0.02568 seconds