Builder Canvas & TListBox question
I'm programming a componente derivated from TListBox. What I'm trying to do, is to put the strings in the objetc, centered inside the Canvas.
For example; I have one TListBox with an Height of 100. But i only have one Item, so I don't want that it displays in the top. I would want that it displays in the middle of the control, about in the pixel 40 of "y", so it looks more centered.
I'm unable to get this, although i tried with MoveTo(), making Draw(0,40), and so on.
Please, how can I do that? Is it possible?