#PB_Text_AutoSize flag for the TextGadget

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

#PB_Text_AutoSize flag for the TextGadget

Post by Kukulkan »

Hello Fred and team,

Some #PB_Text_AutoSize flag for the Textgadget would be very handy. If set, the gadget keeps the width and position but adapts the height automatically to fit the text with the current font. Later on, you can use GadgetHeight() to find out what happened.

Important: If you change the text later using SetGadgetText(), the height has to adapt automatically again!

Kukulkan