wxBitmapButton with halo from cursor |
|
Re: wxBitmapButton with halo from cursor |
|
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
|
Re: wxBitmapButton with halo from cursor |
|
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/
|