Board index » delphi » 1) How o draw a lot of 24bit images on a TImage canvas... 2) How to get a OnEnter event on a TGraphiControl

1) How o draw a lot of 24bit images on a TImage canvas... 2) How to get a OnEnter event on a TGraphiControl

Hi,

I have two questions:

1) What's the best way to draw a grid of 70 small 24bit bitmaps on a TImage
    - if i later want to 'update' 1 bitmap, will this cause to refresh the
whole TImage?

2) How to add an onEnter event to a TGraphicControl?

Thanks,
Savant

 

Re:1) How o draw a lot of 24bit images on a TImage canvas... 2) How to get a OnEnter event on a TGraphiControl


1) by doing myimage.canvas.copyrect(..)

Rene
--
Ing.Buero R.Tschaggelar - http://www.ibrtses.com

Quote
Savant wrote:

> Hi,

> I have two questions:

> 1) What's the best way to draw a grid of 70 small 24bit bitmaps on a TImage
>     - if i later want to 'update' 1 bitmap, will this cause to refresh the
> whole TImage?

Re:1) How o draw a lot of 24bit images on a TImage canvas... 2) How to get a OnEnter event on a TGraphiControl


OnEnter occurs when a window receives focus. Since TGraphicControls don't
have a window handle, they can't receive focus, so this event doesn't make
sense in that context.

-d

--
http://www.techvette.com - Delphi and Corvette sources

Quote
"Savant" <Sav...@fibre.a2000.nl> wrote in message news:3adddfa6_1@dnews...
> Hi,

> I have two questions:

> 1) What's the best way to draw a grid of 70 small 24bit bitmaps on a
TImage
>     - if i later want to 'update' 1 bitmap, will this cause to refresh the
> whole TImage?

> 2) How to add an onEnter event to a TGraphicControl?

> Thanks,
> Savant

Other Threads