Mega Search
23.2 Million


Sign Up

Make a donation  
wxBitmapButton with halo from cursor  
News Group: comp.soft-sys.wxwindows

I have a class TBC derived from wxBitmapButton.
this can show 4 different wxBitmaps depending on its status.
and it can be klicked.
and my problem is that a halo shows up when i am at it with the cursor.
i want to put the TBCs tight side by side but the halo covers the
neighbour TBCs partially.

In an older version of wxGtk (more tha 10 years ago) this halo was NOT
present.

Is there a possibility to suppress this halo?

the background of this question is:
the program simulates the computer ZUSE Z23 of th 1960's, the first
computer i worked with.
and it has a "Bedienpult" with 3 lines of more than 40 keys in blocks of
10 keys tight side by side. the keys can be released or pressed and can
be lighted or not.

thanks in advance
	Pit

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 5-Nov-2013, at 4:12 PM EST
From: Peter Johann Brunner
 
Re: wxBitmapButton with halo from cursor  
News Group: comp.soft-sys.wxwindows
On 11/12/2013 10:57 PM, Vadim Zeitlin wrote:
> On 2013-11-05, Peter Johann Brunner  wrote:
>> I have a class TBC derived from wxBitmapButton.
>> this can show 4 different wxBitmaps depending on its status.
>> and it can be klicked.
>> and my problem is that a halo shows up when i am at it with the cursor.
>> i want to put the TBCs tight side by side but the halo covers the
>> neighbour TBCs partially.
>>
>> In an older version of wxGtk (more tha 10 years ago) this halo was NOT
>> present.
>>
>> Is there a possibility to suppress this halo?
> 
>  Try using wxBORDER_NONE style for them. But if this doesn't work, then
> the answer is almost certainly "no".
Yes, this was my first try.
The second was to use Gtk1, it also didnt help.
> 
>  If you really want to have full control over your buttons appearance, you
> should create a custom control, this is really the only way to do if you
> want them to appear the same in all ports and with all themes.
This was also my idea:
Copy the code of sxBitmapButton and adapt it to my needs.
But until now i didn't try it. No time!!
> 
>  Regards,
> VZ
> 
many thanks
	Pit

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 13-Nov-2013, at 11:10 AM EST
From: Peter Johann Brunner
 
Re: wxBitmapButton with halo from cursor  
News Group: comp.soft-sys.wxwindows
On 2013-11-05, Peter Johann Brunner  wrote:
> I have a class TBC derived from wxBitmapButton.
> this can show 4 different wxBitmaps depending on its status.
> and it can be klicked.
> and my problem is that a halo shows up when i am at it with the cursor.
> i want to put the TBCs tight side by side but the halo covers the
> neighbour TBCs partially.
>
> In an older version of wxGtk (more tha 10 years ago) this halo was NOT
> present.
>
> Is there a possibility to suppress this halo?

 Try using wxBORDER_NONE style for them. But if this doesn't work, then
the answer is almost certainly "no".

 If you really want to have full control over your buttons appearance, you
should create a custom control, this is really the only way to do if you
want them to appear the same in all ports and with all themes.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
              http://www.tt-solutions.com/

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 12-Nov-2013, at 9:57 PM EST
From: Vadim Zeitlin