Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - [solved] Alignment of skinned radio buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] Alignment of skinned radio buttons

 Post Reply Post Reply
Author
Message
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (1) Thanks(1)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: [solved] Alignment of skinned radio buttons
    Posted: 02 September 2016 at 10:06am
It seems that on monitors with more than 96 DPI (144 in this case) the text alignment for radio buttons and check boxes in skinned dialog boxes is off.

Vertical alignment is offet by few pixels, not enough space between the radio button / check box icon and the text. Tested with the most recent version to XTP.



Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Answer Answer
Post Options Post Options   Thanks (1) Thanks(1)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 03 September 2016 at 12:50pm
Hello MacW,

I'm glad to inform you that the issue has already been fixed as part of gripper in skinned StatusBar

Delete in method CXTPSkinManagerSchema::DrawThemeBackground()  all XTP_DPI and XTP_DPI_Y. Then change
       CSize szDest(sz);
to
       CSize szDest(XTP_DPI(sz));

Regards,
 Oleksandr Lebed
Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Posted: 05 September 2016 at 12:21pm
Hello Oleksander,

I can confirm that this fix solves the problem. No XTP_DPI_Y in that method, but I removed all
XTP_DPI calls and changed the CSize... initialization with success.

Thanks!
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 05 September 2016 at 12:29pm
Originally posted by MacW MacW wrote:

I can confirm that this fix solves the problem.

Glad to hear! Smile

Originally posted by MacW MacW wrote:

No XTP_DPI_Y in that method,...
 

Maybe it was our interim fix.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.