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 display an icon on the right side of a label/button
Re: How to display an icon on the right side of a label/button [message #3895 is a reply to message #3893] Fri, 07 July 2006 00:26 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
fallingdutch wrote on Thu, 06 July 2006 22:51

don't know wether the first suggestion works, but i am sure it works with deriving and rewriting Paint()

in Button::Paint a DrawLabel 'dl' is created an painted, just add the following instruction:
dl.align =  ALIGN_RIGHT 


best would be to add align as a private Member to Button class and add get/set methods and in the Paint method set dl.align as the private align member.



Thank you.
The Aris' method doesn't work. While your method... Embarassed ... I do not know what to do. It seems in U++ one should be ready to derive often and at the moment I feel not confortable with this operation regarding Paint, Display, Draw, etc.... Can you be more explicit about the operation I have to do?

Luigi

PS: I agree that a method like .SetImgAlign(LEFT/RIGHT) would be more friendly

[Updated on: Fri, 07 July 2006 00:27]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to #define/#include correctly the .iml file
Next Topic: How to Draw a couple of lines over an ArrayCtrl
Goto Forum:
  


Current Time: Sat May 18 03:53:23 CEST 2024

Total time taken to generate the page: 0.03550 seconds