Print Page | Close Window

[solved] Markup Horizontal Scroll

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: MarkupLabel Control
Forum Description: Topics Related to Codejock MarkupLabel Control
URL: http://forum.codejock.com/forum_posts.asp?TID=22953
Printed Date: 21 November 2024 at 1:41pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] Markup Horizontal Scroll
Posted By: cpede
Subject: [solved] Markup Horizontal Scroll
Date 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++)



Replies:
Posted By: olebed
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net