dsafa / CSDeskBand

Windows deskband with C#
MIT License
274 stars 65 forks source link

Deskband not showing correctly for RTL languages #54

Open srwi opened 3 years ago

srwi commented 3 years ago

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.

eladpotok commented 3 years ago

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

תודה.

srwi commented 3 years ago

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).

eladpotok commented 3 years ago

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.

srwi commented 3 years ago

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.

eladpotok commented 3 years ago

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?

srwi commented 3 years ago

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?

eladpotok commented 3 years ago

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.

srwi commented 3 years ago

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

do2or commented 3 years ago

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