Professional Documents
Culture Documents
Siderbar Class
Siderbar Class
INTRODUCTION:
In this document I shall try to explain how to implement a side bar (_SideBar) in our
applications. It is a vertical menu composed of groups of option that can be
collapsed or expanded. It consists of a vertical bar and a separator that changes
the object’s width horizontally.
STEP 2
We can now add directly to our form the _SideBar class from FoxRibbon.vcx.
We adjust its limits and position horizontally the separator to determine the initial
width of the menu.
Class / PEM Description
_ScrollContainer
Title Will be the general title of our side bar.
TitleIdTranslate The ID for translation to different languages.
_SideBarGroup
lMinimize Determines whether or not the object can be collapsed.
_SideBar Class
Title Will be the general title of our side bar.
TitleIdTranslate The ID for translation to different languages.
ScrollContainer In this property we refer to the recently created
_ScrollContainer (step 1)
lSplitter Show the separator or not
Method: Reloads the new _ScrollContainer To use different menus as
ReLoad per several criteria.
WITH THISFORM._SideBar
DO CASE
CASE lnOpcion = 1
.ScrollContainer = “invoicing”
CASE lnOpcion = 2
.ScrollContainer = “accounting”
ENDCASE
.ReLoad()
ENDWITH