Resize a control dynamically in runtime using the mouse
Resize a control dynamically in runtime using the mouse
Is it possible in Freebasic, using a library or Windows API, to dynamically resize a control during runtime using the mouse?
Re: Resize a control dynamically in runtime using the mouse
Yes, WIN-API code can do it (but, the code is no longer multi OS).
If multi OS is the intention, you'll have to use a external lib.
If multi OS is the intention, you'll have to use a external lib.
Re: Resize a control dynamically in runtime using the mouse
Search for WS_THICKFRAME.
Re: Resize a control dynamically in runtime using the mouse
Thanks Mr Swiss and jj2007
WS_THICKFRAME does give a resizeable editbox, but has the undesirable very thick border, whereas I am looking for a thin border. Is there anyway to achieve the ability to resize, but with a thin border?
WS_THICKFRAME does give a resizeable editbox, but has the undesirable very thick border, whereas I am looking for a thin border. Is there anyway to achieve the ability to resize, but with a thin border?
Re: Resize a control dynamically in runtime using the mouse
OK, that makes it WM_NCHITTEST plus subclassing. Note, though, that there is a reason why WS_THICKFRAME is so thick: it's difficult to hit a thin line with the mouse.