Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - markup ScrollViewer does not work in CFormView
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

markup ScrollViewer does not work in CFormView

 Post Reply Post Reply
Author
Message
evoX View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post Topic: markup ScrollViewer does not work in CFormView
    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)
Back to Top
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 235
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
evoX View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
evoX View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
evoX View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post 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)
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.063 seconds.