Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dragging a bitmap

0 views
Skip to first unread message

Alex Weiss

unread,
Mar 20, 1999, 3:00:00 AM3/20/99
to
I am trying to dag a bitmap image (a TImage actually) of a card (like in
solitaire), but can not drag it without flicker. Can anyane post code to do
so

Peter Below (TeamB)

unread,
Mar 21, 1999, 3:00:00 AM3/21/99
to
In article <7d19l4$em...@forums.borland.com>, Alex Weiss wrote:
> From: "Alex Weiss" <alex_...@email.msn.com>
> Newsgroups: borland.public.delphi.objectpascal,borland.public.delphi.vcl.components.writing
> Subject: Dragging a bitmap
> Date: Sat, 20 Mar 1999 18:12:56 -0500

>
> I am trying to dag a bitmap image (a TImage actually) of a card (like in
> solitaire), but can not drag it without flicker. Can anyane post code to do
> so


Set the DoubleBuffered property of the images parent control to true. You have to
do this in code, e.g. in the formCreate event, the property is public but not published, if
memory serves.

Please do not cross-post messages on these groups, it inconvenienves other users
and is against the newsgroup guidelines (see borland.public.announce).

Peter Below (TeamB) 10011...@compuserve.com)
No e-mail responses, please, unless explicitely requested!


Alex Weiss

unread,
Mar 21, 1999, 3:00:00 AM3/21/99
to

Thanks, but I was trying not to use a window handle for each bitmap and
DoubleBuffered is (I believe) a property of TWinControl which requires a
window handle. Should I worry about using 100-200 window handles for the
bitmaps?

Sorry for the crosspost, didn't know the rules.


Dan Thomas

unread,
Mar 25, 1999, 3:00:00 AM3/25/99
to
Yes, you probably should worry about using that many window handles.

If you need some sample code, e-mail me and I will send you some.

-Dan Thomas
--
NOTE: When replying to my e-mail address, replace the obvious with apollorx.

Alex Weiss wrote in message <7d3ruk$gk...@forums.borland.com>...

0 new messages