Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > MarkupLabel Control
  New Posts New Posts RSS Feed - scrollviewer contents not scrollable
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

scrollviewer contents not scrollable

 Post Reply Post Reply
Author
Message
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Topic: scrollviewer contents not scrollable
    Posted: 11 December 2018 at 8:45am
I tested my markup in the MarkupPad and it worked.

Then I added a static label to a CDialog, set the markup to it.
The contents shows up correctly, the scrollbar is there, but it is not scrollable.
It is sort of disabled.

below is the markup

Thanks
Vaclav

<Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>

<Page.Resources>
<Style TargetType="TextBlock">
<Setter Property="Padding" Value="2"/>
</Style>
</Page.Resources>


<Border VerticalAlignment="Center" HorizontalAlignment="Center" BorderBrush="Black" BorderThickness="2">
<ScrollViewer Width = "100" MaxHeight="100" Margin="4">

<StackPanel KeyboardNavigation.TabNavigation="Cycle" Margin="0">

<TextBlock Background="LIME">dobrá ščřšýčážýíé</TextBlock>
<TextBlock Background="SALMON">fdfdfd</TextBlock>
<TextBlock Background="PINK">nejde to fdfdfd</TextBlock>
<TextBlock Background="CHARTREUSE">fdfdfd</TextBlock>
<TextBlock Background="PINK">nejde to fdfdfd</TextBlock>
<TextBlock Background="CHARTREUSE">fdfdfd</TextBlock>
<TextBlock Background="CHARTREUSE">fdfdfd</TextBlock>
<TextBlock Background="PINK">nejde to fdfdfd</TextBlock>
<TextBlock Background="PINK">nejde to fdfdfd</TextBlock>
<TextBlock Background="PINK">nejde to fdfdfd</TextBlock>
<TextBlock Background="CHARTREUSE">fdfdfd</TextBlock>
<TextBlock Background="PINK">nejde to fdfdfd</TextBlock>
<TextBlock Background="CHARTREUSE">fdfdfd</TextBlock>
<TextBlock Background="PINK">nejde to fdfdfd</TextBlock>
<TextBlock Background="CHARTREUSE">fdfdfd</TextBlock>

</StackPanel>
</ScrollViewer>
</Border>
</Page>
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1194
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2018 at 11:32am
Hi;

Did you specify SS_NOTFY for the static control?
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2018 at 11:39am
Thumbs Up

Thanks!
Vaclav

Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11
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.141 seconds.