Resizeing components

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

Resizeing components

Postby bhanu » Tue Feb 15, 2005 10:38 pm

Hello everybody,

Is it possible to resize Editbox and Memo components at runtime?

Thanks in advance
bhanu
 

Sure

Postby Jon » Thu Feb 17, 2005 9:33 am

Just change the width and height properties. Example:

Memo1->Width=TrackBar1->Position;
Edit1->Width=TrackBar1->Position;
Jon
 

Re: Resizeing components

Postby Damon » Fri Feb 18, 2005 11:31 pm

bhanu wrote:Hello everybody,

Is it possible to resize Editbox and Memo components at runtime?

Thanks in advance


In addition to Jon's suggestion, have a look at the following article; the technique presented there applis to all TWinControl descendants...

http://bcbjournal.org/free_issue/Quick_and_easy_re-sizeable_controls.htm

HTH,
Damon
User avatar
Damon
BCBJ Editor and Admin
BCBJ Editor and Admin
 
Posts: 285
Joined: Wed May 26, 2004 11:25 pm
Location: Stillwater, OK, USA


Return to Technical

Who is online

Users browsing this forum: No registered users and 23 guests