Board index » delphi » Help !!! Altering control size at run-time??

Help !!! Altering control size at run-time??

I was wondering if anyone knows a way, or knows of some documentation
for resizing a control at run-time using a visual method similar to the
way delphi behaves during design mode.

For example, the user clicks a button and the resize rectangle appears
around the button.  The cursor changes and they can stretch the
retangle to a new size then when they release the mouse the button
changes size to fit the rectangle.

I want to be able to duplicate the design functionality at run-time.

Any help would be greatly appreciated.

thanks in advanc,
B.

 

Re:Help !!! Altering control size at run-time??


Quote
user wrote:

> I was wondering if anyone knows a way, or knows of some documentation
> for resizing a control at run-time using a visual method similar to the
> way delphi behaves during design mode.

> For example, the user clicks a button and the resize rectangle appears
> around the button.  The cursor changes and they can stretch the
> retangle to a new size then when they release the mouse the button
> changes size to fit the rectangle.

> I want to be able to duplicate the design functionality at run-time.

> Any help would be greatly appreciated.

> thanks in advanc,
> B.

Get handles.zip from Delphi Super Page ( I think? ).  It's a component
which does exactly what you asked, and seems to work well.

Gary

Re:Help !!! Altering control size at run-time??


Quote
user wrote:

> I was wondering if anyone knows a way, or knows of some documentation
> for resizing a control at run-time using a visual method similar to the
> way delphi behaves during design mode.

> For example, the user clicks a button and the resize rectangle appears
> around the button.  The cursor changes and they can stretch the
> retangle to a new size then when they release the mouse the button
> changes size to fit the rectangle.

> I want to be able to duplicate the design functionality at run-time.

> Any help would be greatly appreciated.

> thanks in advanc,
> B.

I have seen the "Magic Number" trick to dragging controls at runtime and I'm sure there's got to be a
similar method for sizing.

I would be interested in reply to this post as well.

Other Threads