ComponentOne WebMenus and WebBars for ASP.NET (2.0) Search HelpCentral 

Scrollable Groups

C1WebTopicBar's groups are scrollable. The scrollable groups inherit from the C1WebScrollableGroup class. The scrollable groups have Height, and ScrollAreaStyle properties. The ScrollAreaStyle object includes the following C1WebScrollAreaStyle members:

 

·      ScrollImageDownActiveUrl - Represents the image URL for the scroll down in active state.

·      ScrollImageDownHoverUrl - Represents the image URL for the scroll down in hover state.

·      ScrollImageDownUrl - Represents the image URL for the scroll down in normal state.

·      ScrollImageUpActiveUrl - Represents the image URL for the scroll up in active state.

·      ScrollImageUpHoverUrl - Represents the image URL for the scroll up in hover state.

·      ScrollImageUpUrl - Represents the image URL for the scroll up in normal state.

 

These properties are accessible programmatically through C1WebScrollableGroups object or through the designer.

To access the ScrollAreaStyle properties using C1WebTopicBar's Properties window

1.   Right-click on C1WebTopicBar and select Properties from its context menu. The C1WebTopicBar Properties window appears.

2.   Expand the ScrollAreaStyle node.

To programmatically access the ScrollAreaStyle properties through the C1WebScrollAreaStyle object

This method can be applied the same way for the remaining C1WebScrollAreaStyle object properties.

·      Visual Basic

'Create an instance of the class

Dim topicbar As C1WebTopicBar = New C1WebTopicBar()

topicbar.ScrollAreaStyle.ScrollImageDownActiveUrl = "../Images/scrolldown.png"

·      C#

// create an instance of the class

C1WebTopicBar topicbar = new C1WebTopicBar();

topicbar.ScrollAreaStyle.ScrollImageDownActiveUrl = @"../Images/scrolldown.png";

·      Delphi

// create an instance of the class

var

topicbar: C1WebTopicBar;

begin

topicbar := C1WebTopicBar.Create;

topicbar.ScrollAreaStyle.ScrollImageDownActiveUrl := @"../Images/scrolldown.png";

end;


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.