Re: [Lazarus] Custom GraphicsControl - need Canvas to set Height outside OnPaint

2014-04-07 Thread Petr Kristan
On Mon, Apr 07, 2014 at 11:11:28AM +0200, zeljko wrote: > On 04/07/2014 11:01 AM, Petr Kristan wrote: > >Hi. > > > >I'am creating an graphics control and I need Canvas to set control > >Height. But I can draw (access to Canvas) only in OnPaint event. > > > >How to solve this problem? > > You need

Re: [Lazarus] Custom GraphicsControl - need Canvas to set Height outside OnPaint

2014-04-07 Thread zeljko
On 04/07/2014 11:01 AM, Petr Kristan wrote: Hi. I'am creating an graphics control and I need Canvas to set control Height. But I can draw (access to Canvas) only in OnPaint event. How to solve this problem? You need to set height of control by calculating text height out of paint event ? I'

[Lazarus] Custom GraphicsControl - need Canvas to set Height outside OnPaint

2014-04-07 Thread Petr Kristan
Hi. I'am creating an graphics control and I need Canvas to set control Height. But I can draw (access to Canvas) only in OnPaint event. How to solve this problem? Thanks Petr -- Petr Kristan . EPOS PRO s.r.o., Smilova 333, 530 02 Pardubice tel: +420 461101401Czech Republic (Eastern Europe)