Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > MarkupLabel Control
  New Posts New Posts RSS Feed - [solved] Markup Horizontal Scroll
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] Markup Horizontal Scroll

 Post Reply Post Reply
cpede View Drop Down
Senior Member
Senior Member

Joined: 13 August 2004
Status: Offline
Points: 537
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: [solved] Markup Horizontal Scroll
    Posted: 08 March 2016 at 7:10am
I have problems with the horizontal scroll when using markup.

Specifying a ScrollViewer etc. in my code but it didn't work.

The I turned to the Markup ChartSample in the MarkupPad, and then I see the same problem.

Making the window small to create both horizontal and vertical scroll-bars, size they are set to Auto.
Here the vertical scroll works correctly, but the horizontal does not work.

Easy to see in the sample.

Product: Xtreme ToolkitPro (18.0.1)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
olebed View Drop Down
Admin Group
Admin Group

Joined: 01 July 2014
Location: Ukraine
Status: Online
Points: 730
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 08 March 2016 at 8:45am
Hello cpede,

I'm glad to inform you that the issue has already been addressed and fixed. The fix will be available in the next beta or final release.

As hot fix you can change file Source/Markup/Controls/XTPMarkupScrollBar.cpp  and rebuild library.
in method CXTPMarkupScrollBar::HitTestScrollBar  change last two "rcPart.left"  to  "rcPart.right"

int CXTPMarkupScrollBar::HitTestScrollBar(POINT pt) const

   rcPart.right = m_spi.rc.left + m_spi.pxThumbBottom;   //<<<< there
   if(PtInRectTransform(rcPart, pt))
     htResult = XTP_HTSCROLLTHUMB;
   rcPart.right = m_spi.rc.left + m_spi.pxDownArrow;    //<<<< there
   if(PtInRectTransform(rcPart, pt))
 return htResult;

 Oleksandr Lebed
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

This page was generated in 0.063 seconds.