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
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 666
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.

-cpede
Product: Xtreme ToolkitPro (24.0.0)
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: Offline
Points: 841
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;
     break;
   }
 
   rcPart.right = m_spi.rc.left + m_spi.pxDownArrow;    //<<<< there
   if(PtInRectTransform(rcPart, pt))
   {
     htResult = XTP_HTSCROLLDOWNPAGE;
     break;
   }
  }
 }
 while(FALSE);
 
 return htResult;
}


Regards,
 Oleksandr Lebed
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.133 seconds.