Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Image Button on PPC
Image Button on PPC [message #454660] Tue, 26 April 2005 15:48 Go to next message
Scott Pelton is currently offline Scott PeltonFriend
Messages: 81
Registered: July 2009
Member
I am painting my own Image Button on Pocket PC. All is well until the
button is tapped (selected). The image and text that I painted disappears
- it seems that the button paints itself (blank button - no text no image)
over my painting of the image and text. When it gains or looses focus all
is well - paints the border without painting over my painting of the image
and the text.

Is there a different painting order when a button is selected as opposed
to when a button gains/looses focus?
Re: Image Button on PPC [message #454681 is a reply to message #454660] Wed, 27 April 2005 13:30 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Button painting is platform specific. For example, the button is most
likely drawing in mouse down and never issuing a paint event.

"Scott Pelton" <scottp@worldpac.com> wrote in message
news:7bec1c327dc496521a945ef932eea077$1@www.eclipse.org...
> I am painting my own Image Button on Pocket PC. All is well until the
> button is tapped (selected). The image and text that I painted disappears
> - it seems that the button paints itself (blank button - no text no image)
> over my painting of the image and text. When it gains or looses focus all
> is well - paints the border without painting over my painting of the image
> and the text.
>
> Is there a different painting order when a button is selected as opposed
> to when a button gains/looses focus?
>
Re: Image Button on PPC [message #454701 is a reply to message #454681] Wed, 27 April 2005 16:16 Go to previous messageGo to next message
Scott Pelton is currently offline Scott PeltonFriend
Messages: 81
Registered: July 2009
Member
It has to be issuing a paint at some point because it does draw my image
and text except on button selection where it redraws itself based on some
platform specific/native criteria...I guess...???
Re: Image Button on PPC [message #454792 is a reply to message #454701] Thu, 28 April 2005 22:07 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
On Windows, the operating system doesn't have to draw in WM_PAINT. From
memory, Windows buttons draw in WM_LBUTTONDOWN (and elsewhere). If you are
planning on drawing ontop of Windows, you'll have to draw the same places
that Windows does.

"Scott Pelton" <scottp@worldpac.com> wrote in message
news:36c6ff7f8d741e090d851ce63b55811b$1@www.eclipse.org...
> It has to be issuing a paint at some point because it does draw my image
> and text except on button selection where it redraws itself based on some
> platform specific/native criteria...I guess...???
>
Previous Topic:Non-selectable table?
Next Topic:Tiff compression in image?
Goto Forum:
  


Current Time: Sat Mar 06 06:36:23 GMT 2021

Powered by FUDForum. Page generated in 0.02002 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top