1.) Im currently drawing TPanels on a TScrollbox (aligned alClient on my main form) based off from records in a table. The Tpanels will not work for me.
I need a control i can write some info on. a.) Id b.) name, and c.) status. It must be a control that has a tag (where i can store the "id") and it must have a onClick event. ATPanel has all these except that it will only allow me to write in the caption. I need to write anywhere on its canvas. Need to be able to change font size , type, and color as well
2.) My controls (currently Tpanels) are drawn left to right and when it reaches the client width, it drops down and starts the drawing all over again.
I currenly have the Vertical scrollbar visible , but not the Horizontal.
How do i redraw everything once the form is resized. Example, when a user clicks the maximize on the form?
Placing the redraw in the OnResize event, works, but with some annoying flashing, like its being redrawn a number of times
procedure TfrmMain.FormResize(Sender: TObject);