Panel that resizes with padding to caption size




Don't know if I need a specialized panel or just code...?

What I need to do:

Have the ability to automatically resize a panel to the size of the caption text, wordwrapping, plus height & width padding of say, 10 pixels. The caption text will change with user input. Font size and type are subject/likely to change also.

So, with wordwrapping also part of the problem, how can I automatically size the panel as stated? Is there a panel component that you could recommend, or do I handle this with code?

Thanks for any links and/or tips! Hope this makes sense...
.



Relevant Pages

  • Hi there everyone
    ... How can I design a form with say two listboxes, a panel and a few buttons on it (does not matter really what components are on the form) How do I make it auto ajust its size, for the particular screen size, ... I really want it so that if I am using one resolution, and then change to some other resolution it will automatically resize, and the components with resize accordingly and in the right proportions ...
    (alt.comp.lang.borland-delphi)
  • Re: Hi there everyone
    ... How can I design a form with say two listboxes, a panel and a few buttons on it (does not matter really what components are on the form) How do I make it auto ajust its size, for the particular screen size, ... I really want it so that if I am using one resolution, and then change to some other resolution it will automatically resize, and the components with resize accordingly and in the right proportions ...
    (alt.comp.lang.borland-delphi)
  • Re: Panel that resizes with padding to caption size
    ... Have the ability to automatically resize a panel to the size of the ... caption text, wordwrapping, plus height & width padding of say, 10 pixels. ... The caption text will change with user input. ...
    (borland.public.delphi.thirdpartytools.general)
  • What If? 2000 AD Never Published
    ... The original panel is the top of an obese belly squeezed by a table's ... but the fat guy is Shaggy of Scooby-Doo fame. ... CAPTION: Width between seat and table not wide enough. ... On the first panel of page 11, Freddy looks through the partially open ...
    (rec.arts.comics.dc.universe)
  • Re: Captions and Labels
    ... I've got a button and a panel on a form and here's ... One creates a timer, stores a ... the panel and changes the caption to the new one. ... {create copy of original caption & stores it} ...
    (alt.comp.lang.borland-delphi)