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 » U++ Widgets - General questions or Mixed problems » Set Button's size programmatically (with maintaining the left-top position)
Set Button's size programmatically (with maintaining the left-top position) [message #40712] Sun, 08 September 2013 08:21 Go to previous message
iST1 is currently offline  iST1
Messages: 107
Registered: August 2013
Experienced Member
It is correct? (maybe exists special API for this?)
	
Button::LogPos btnPos = btn.GetPos();
	
btn.LeftPos(btnPos.x.GetA(), newWidth);
btn.TopPos(btnPos.y.GetA(), newHeight);

[Updated on: Sun, 08 September 2013 08:23]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: How to catch a (registered) Message comming from other application
Next Topic: Ctrl::ProcessEvent()
Goto Forum:
  


Current Time: Mon Apr 29 13:45:24 CEST 2024

Total time taken to generate the page: 0.02458 seconds