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... ... 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