Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #8425
| Newsgroups | comp.lang.clipper.visual-objects |
|---|---|
| Date | 2015-09-22 12:57 -0700 |
| References | <d5121a48-5b41-45c0-96e5-0892c946c7db@googlegroups.com> |
| Message-ID | <9d1cbe74-e138-44e4-b272-769710bb021e@googlegroups.com> (permalink) |
| Subject | Re: Icon draw question |
| From | Fabio Romling Rotheia <pinbitmap@gmail.com> |
Hello Karl/Franz!
The problem is that i have a bitmap loaded in the background of my shellwindow, with lots of pictures and information on it. That's why i needed the icon to be transparent, like when i use the function Drawiconex.
I think i'll have to use DrawIconEx and find a way to minimize the flickering.
Thanks anyway!
Best regards,
Fábio.
Em sexta-feira, 18 de setembro de 2015 22:03:50 UTC-3, Fabio Romling Rotheia escreveu:
> Hello there!
>
> I'm drawing some icons on my shellwindow using this:
>
> oIcon := My_Icon1{}
> DrawIconEx( hDC, 150, 200, oIcon:Handle(), oIcon:size:width, oIcon:size:height, 0, 0, DI_NORMAL)
> I'm also using "CASE uMsg==WM_MOUSEMOVE" to change the pointer to a hand and
> "CASE uMsg==WM_LBUTTONDOWN .or. uMsg==WM_LBUTTONUP" to click on it and call a datawindow.
>
> Everything is fine, but now I want to draw another icon on the same place, when the user position the mouse on top of it, and redraw the first icon when the mouse is not on top of it. All this to appear that the icon is moving (it's a cashier and one icon has paper coming out).
>
> The problem is that inside the MdiClientWinProc function, where this is all happening, I can't call a repaint to force this part of the screen to draw the icons.
>
> Anyone out there, specially old VOers, known how to do it?
>
>
> Thanks in advance,
>
> Fábio Romling Rotheia.
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Icon draw question Fabio Romling Rotheia <pinbitmap@gmail.com> - 2015-09-18 18:03 -0700
Re: Icon draw question Franz Rachbauer <office@rachbauer.org> - 2015-09-19 08:26 +0200
Re: Icon draw question Fabio Romling Rotheia <pinbitmap@gmail.com> - 2015-09-19 05:54 -0700
Re: Icon draw question "Karl-Heinz" <invalid@invalid.invalid> - 2015-09-19 18:25 +0200
Re: Icon draw question Fabio Romling Rotheia <pinbitmap@gmail.com> - 2015-09-19 13:57 -0700
Re: Icon draw question Franz Rachbauer <office@rachbauer.org> - 2015-09-22 08:13 +0200
Re: Icon draw question Karl Wochele <kw@e©os-system.dot.de> - 2015-09-22 13:15 +0200
Re: Icon draw question "Karl-Heinz" <invalid@invalid.invalid> - 2015-09-22 21:04 +0200
Re: Icon draw question Fabio Romling Rotheia <pinbitmap@gmail.com> - 2015-09-22 12:57 -0700
Re: Icon draw question Paulo Oliveira <paulo@clipinfor.com> - 2015-10-08 09:45 -0700
Re: Icon draw question Fabio Romling Rotheia <pinbitmap@gmail.com> - 2015-10-12 21:50 -0700
Re: Icon draw question Paulo Oliveira <paulo@clipinfor.com> - 2015-10-19 08:51 -0700
Re: Icon draw question Fabio Romling Rotheia <pinbitmap@gmail.com> - 2015-10-19 16:20 -0700
csiph-web