User:anonymousLog inRegister
Recents:
Slide Down Menu User Control

Download here

Control Description

The Slide Down Menu control is a menu that you can stack on your page to categorize your links. The sample was taken from http://www.dynamicdrive.com/dynamicindex1/slashdot.htm.

Image:SlideDownMenuExecutionVideo

Using the control

The control basically loads an SDT which contains the menu items. Consequently, you will have to create a SlideDownMenuData SDT-based variable which must be assigned to the control's SlideDownMenuData property. The structure of the SlideDownMenuData SDT is as follows:

Image:SlideDownMenuSDTStructure

When the user clicks on a menu item, a server event will be raised. That event can be handled as follows:

Event SlideDownMenu1.SDItemClicked
msg("Selected ParentID " + str(&SelectedItem.ParentID) + " Selected SectionID " + str(&SelectedItem
.SectionID)
EndEvent

Example

//Sample Code for SlideDownMenu
Sub
'SlideDownMenuSample' &SlideDownMenuData = DPSlideDownMenuData()
EndSub

:Using a Data Provider
SlideDownMenuData

{
SlideDownMenuDataItem
where
MenuPosition = MenuPosition.Left
where MenuParentID = 0
{
ParentID = MenuID
ParentTitle = MenuTitle
ParentDescription = MenuDescription
Items.Insert(MenuID)
}
}

SubGroup Items(&MenuID)
Sections
{
SectionsItem
where MenuParentID = &MenuID
{
SectionID = MenuID
SectionTitle = MenuTitle
SectionDescription = MenuDescription
SectionURL = MenuURL
}
}
EndSubGroup

The Data Provider outputs an SDT which is based on the following Menu Transaction structure:

Image:SlideDownMenuTrnStructure

The sample shown above will create the following Slide Down Menu:

Image:SlideDownMenuExecutionVideo

In addition, the control offers a set of properties to customize its behavior.

Control Properties

  • Width
  • Height
  • ControlName
  • Speed: sets the amount of time the menu takes to open and collapse
  • One Submenu Only: One expanded submenu at a time (default false)
  • Remember: Store menu states (default True)
  • VersionNumer: Version of the control (read-only)

Control Events

  • SDItemClicked: raised when the user clicks on a menu item.

Licensing

Please refer to http://www.dynamicdrive.com/notice.htm

To Install It

Please visit: Default Installation Instructions for User Controls.

Contact information

 Please send feedback to: acardoso@artech.com.uy

Change Log

20080416: SectionURL property added to SlideDownMenuData SDT.
                  VersionNumber property added to control's properties.
                  DataProvider added to SlideDownMenuSDT.xpz distributed with the control

  


Created: 12/10/07 10:21 AM by armando Last update: 10/06/08 08:14 AM by armando
 
Page
Categories
Group
 
Powered by GXwiki 3.0 (generated with GeneXus X Evolution 1 U3)