News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

New resizer discussion

Started by John Z, November 17, 2025, 12:01:10 PM

Previous topic - Next topic

TimoVJL

Proves, that generic resizer code might be difficult and needs lot of code.
May the source be with you

John Z

#16
Quote from: TimoVJL on November 24, 2025, 02:05:33 PMProves, that generic resizer code might be difficult and needs lot of code.


Indeed it does.  Still working to improve it. Standard controls seem to be handled fairly well now, but still need more testing. Library is about 11k for now.

A simple "custom" control on the window works - just need to create it BEFORE calling Init_resize - that was my mistake it was after and I finally realized it. 

Tested Owner-Draw of a simple text box it worked also!

The attachment is just a demo of the resizer in action.  New code for the library will be posted soon.  Open issues (but not blocks to using) are window glitching a bit if specified "LIMIT_SHRINK = TRUE" but trying to drag smaller for Main Dialog - just does not look nice.  Second, still working on a maintain w/h ratio option, a nice to have IMO.  Otherwise, to me, it is looking close to being completed. 

John Z