f



wxBitmapButton with halo from cursor

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
0
Peter
11/5/2013 3:12:14 PM
comp.soft-sys.wxwindows 21076 articles. 0 followers. Post Follow

2 Replies
959 Views

Similar Articles

[PageSpeed] 16

On 2013-11-05, Peter Johann Brunner <pjbru@aon.at> 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/
0
Vadim
11/12/2013 9:57:24 PM
On 11/12/2013 10:57 PM, Vadim Zeitlin wrote:
> On 2013-11-05, Peter Johann Brunner <pjbru@aon.at> 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
0
Peter
11/13/2013 10:10:07 AM
Reply: