Print Page | Close Window

markup ScrollViewer does not work in CFormView

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=17840
Printed Date: 19 June 2025 at 3:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: markup ScrollViewer does not work in CFormView
Posted By: evoX
Subject: markup ScrollViewer does not work in CFormView
Date Posted: 06 February 2011 at 9:14pm

markup ScrollViewer does not work in a CFormView, when you click the scroll bar nothing happens, what can be the cause?



-------------
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)



Replies:
Posted By: Fredrik
Date Posted: 07 February 2011 at 4:10am
Guessing, but try setting "Notify" to "True" in your resources for your scroll viewer.

-------------
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0


Posted By: evoX
Date Posted: 08 February 2011 at 9:12am
but the scrollviewer is in XAML file, not resources, and the scrollviewer works in markuppad and in CFormView not.

-------------
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)


Posted By: Oleg
Date Posted: 09 February 2011 at 1:46am
Did you add


BOOL CYourFormView::OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
// To Handle events:
if (m_pUIElement)
{
CXTPMarkupContext::m_hContextWnd = m_hWnd;
if (CXTPMarkupContext::OnWndMsg(m_pUIElement, message, wParam, lParam, pResult))
return TRUE;
}

return CFormView::OnWndMsg(message, wParam, lParam, pResult);
}



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: evoX
Date Posted: 09 February 2011 at 4:40pm
I have replaced the m_pUIElement with the markup control and I get this error at compile...

d:\vs\projects\hardinfo\hardinfo\hardinfoview.cpp(2239): error C2597: illegal reference to non-static member 'CXTPMarkupContext::m_hContextWnd'

1>d:\vs\projects\hardinfo\hardinfo\hardinfoview.cpp(2240): error C2664: 'CXTPMarkupContext::OnWndMsg' : cannot convert parameter 1 from 'CMarkupStatic' to 'CXTPMarkupUIElement *'

1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called



-------------
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)


Posted By: evoX
Date Posted: 11 February 2011 at 6:04pm
Thanks Fredrik, solved the problem, I just set the markup static control property to true in cformview and it works.

-------------
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)



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