![]() |
markup ScrollViewer does not work in CFormView |
Post Reply ![]() |
Author | |
evoX ![]() Senior Member ![]() ![]() Joined: 25 July 2007 Status: Offline Points: 207 |
![]() ![]() ![]() ![]() ![]() 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) |
|
![]() |
|
Fredrik ![]() Senior Member ![]() Joined: 22 June 2005 Status: Offline Points: 235 |
![]() ![]() ![]() ![]() ![]() |
Guessing, but try setting "Notify" to "True" in your resources for your scroll viewer.
|
|
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
|
|
![]() |
|
evoX ![]() Senior Member ![]() ![]() Joined: 25 July 2007 Status: Offline Points: 207 |
![]() ![]() ![]() ![]() ![]() |
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) |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
evoX ![]() Senior Member ![]() ![]() Joined: 25 July 2007 Status: Offline Points: 207 |
![]() ![]() ![]() ![]() ![]() |
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) |
|
![]() |
|
evoX ![]() Senior Member ![]() ![]() Joined: 25 July 2007 Status: Offline Points: 207 |
![]() ![]() ![]() ![]() ![]() |
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) |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |