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 #10399 is a reply to message #10391] Fri, 06 July 2007 03:50 Go to previous messageGo to previous message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
Mirek, you misunderstood me. i want it to show BESIDE my control, in my TopWindow. Twisted Evil
i wrote this in my TopWindow subclass' method, but nothing happens,

ImageCtrl img;
img.SetImage(CtrlImg::exclamation());
Add(img.SizePos());

mrjt wrote on Thu, 05 July 2007 18:50

To set one EditField color:
	
	EditField::Style edit_field_style = EditField::StyleDefault();
	edit_field_style.paper = Yellow();
        myedit.SetStyle(edit_field_style);


To set ALL edit field styles:
	EditField::Style edit_field_style = EditField::StyleDefault();
	edit_field_style.paper = Yellow();
	EditField::StyleDefault().Write() = edit_field_style;


Changing the color of the popup menu can be (mostly) done with SetDisplay.

James.

why my EditField has no SetStyle() method? and it has no StyleDefault() either. using current version 2007.1

[Updated on: Fri, 06 July 2007 11:57]

Report message to a moderator

 
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: Sun May 19 02:15:31 CEST 2024

Total time taken to generate the page: 0.02001 seconds