CTB Label icon is adjusted only after restart

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

CTB Label icon is adjusted only after restart

Post by LittleBiG »

I added a CTB with label icon "RUN". It looked like in the first picture. Only restart helped, making XY to redraw the toolbar didn't.
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: CTB Label icon is adjusted only after restart

Post by admin »

Not here. Any special display settings?

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: CTB Label icon is adjusted only after restart

Post by LittleBiG »

I don't think so. Two different computer, with different monitors . Tried with fresh instances on both.
Here is one of the display settings:

Code: Select all

Screen: 1920x1080, 1/2 (Primary), Virtual: (-1280, 0) - (3200, 1080), Work: (0, 0) - (1920, 1030)
Screen DPI: 120 (125%), twx: 12, stretch: 1
Screen Color Depth: 32
DPI awareness: Per monitor
UseDPIAwareIconSizes: Yes, Yes
Icon Size: Small=16, Large=32
Icon Size Controls: Small=20, Large=40
Icon Size Recommended: Small=20, Large=40

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: CTB Label icon is adjusted only after restart

Post by admin »

125%, was that the factory default of your Windows?

jupe
Posts: 3570
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: CTB Label icon is adjusted only after restart

Post by jupe »

I don't know if this is helpful but some info: I tested this because I also run 125% DPI and in my normal instance there was no problem, but in fresh it was there. In my normal instance I use ToolbarZoom=1.1 though, so I think that explains that. Also toggling Touchscreen mode with Toolbar Zoom enabled works to correct it rather than a restart also.

edit: Just noticed if I start a fresh instance and add the button via the address bar and snippet; it is ok, but if I add it manually it does it wrong :veryconfused:, or if I add the button manually and then Paste the snippet into the button dialog it does it wrong too.

edit2: In a fresh instance If I add via AB snippet; the button is ok, then if I subsequently add any another button to the toolbar manually it makes both buttons wrong like the first screenshot.

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: CTB Label icon is adjusted only after restart

Post by LittleBiG »

admin wrote:125%, was that the factory default of your Windows?
I do not remember... But the same happens with this setting on my other computer:

Code: Select all

Screen: 1280x1024, 1/1 (Primary), Virtual: (0, 0) - (1280, 1024), Work: (0, 0) - (1280, 984)
Screen DPI: 96 (100%), twx: 15, stretch: 1
Screen Color Depth: 32
DPI awareness: Per monitor
UseDPIAwareIconSizes: No, Yes
Icon Size: Small=16, Large=32
Icon Size Controls: Small=16, Large=32
Icon Size Recommended: Small=16, Large=32
Thanks, jupe, for trying it out. I also experienced what you wrote in edit2. A new button makes all others wrong.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: CTB Label icon is adjusted only after restart

Post by admin »

OK, should be fixed in next version.

Post Reply