CSDeskBand icon indicating copy to clipboard operation
CSDeskBand copied to clipboard

Deskband not showing correctly for RTL languages

Open srwi opened this issue 3 years ago • 9 comments

I received a bug report on a project of mine where I'm using CSDeskBand. It looks like right to left languages like Hebrew cause the deskband scaling to behave incorrectly. I tested it on my project and Audio Band as you can see in the video. Both of them use CSDeskBand.

fQdcCMOSd6

Edit: Only WPF is affected by this.

srwi avatar Nov 16 '20 16:11 srwi

try set fix width for the tool, like this

Options.MinHorizontalSize = new DeskBandSize(27, 40);

BTW - How did you overcome on the WIN message image

תודה.

eladpotok avatar Nov 26 '20 12:11 eladpotok

Are you also using version 3.1? Does your deskband not have the problem with RTL languages? I actually did set a minimal deskband size like this.

I think you can disable the message by setting ShowDeskBand to false or just removing the parameter (like I did).

srwi avatar Nov 26 '20 12:11 srwi

regarding to your question, I am not sure what version I am using since I am using the code and not the nugget package. I am using WPF host control and set a fix size in the XAML as well.

About my question, I did what you suggested. So while registration (by the BAT script) the toolbar is not shown. this is what this boolean parameter does. But I call to ShowDaskBand from another program, this message is shown.

eladpotok avatar Nov 26 '20 12:11 eladpotok

I am also using the code file linked in the readme which points to version 3.1 as indicated in the first few lines of the file. Interesting that you are not experiencing that problem as @dsafa's own project audio-band has it.

Other than that parameter I honestly don't know what is causing that. I don't remember specifically changing anything, sorry.

srwi avatar Nov 26 '20 13:11 srwi

Actually My windows taskbar is Left To Right, So I Can't tell if it is fixed or not. In your project, when you show the taskbar, this message is not shown?

eladpotok avatar Nov 26 '20 13:11 eladpotok

No. I don't automatically trigger the taskbar to be shown though. I tell the user to manually enable it via the taskbar context menu. Is that it?

srwi avatar Nov 26 '20 13:11 srwi

If I enable the toolbar via the taskbar I don't get this message. I am trying to find an option to disable this message when we enable the toolbar by other program.

eladpotok avatar Nov 26 '20 13:11 eladpotok

It might be a safety measure to prevent software from secretly running code from within explorer.exe. That's only a wild guess though.

Edit: https://stackoverflow.com/a/8137927/1477251

srwi avatar Nov 26 '20 13:11 srwi

i confirm that this problem it's still persist in RTL languages

do2or avatar Jul 13 '21 13:07 do2or