*-------------------------------------------------------------------------------------------------------------------------------------------------------- * (EN) AUTOGENERATED - ATTENTION!! - NOT INTENDED FOR EXECUTION!! USE ONLY FOR MERGING CHANGES AND STORING WITH SCM TOOLS!! *-------------------------------------------------------------------------------------------------------------------------------------------------------- *< FOXBIN2PRG: Version="1.21" SourceFile="outlooknavbar.vcx" CPID="1252" /> (Solo para binarios VFP 9 / Only for VFP 9 binaries) * * DEFINE CLASS outlooknavbar AS container *< CLASSDATA: Baseclass="container" Timestamp="" Scale="Pixels" Uniqueid="" /> *-- OBJECTDATA items order determines ZOrder / El orden de los items OBJECTDATA determina el ZOrder *< OBJECTDATA: ObjPath="PanelVertical" UniqueID="" Timestamp="" /> *< OBJECTDATA: ObjPath="Title" UniqueID="" Timestamp="" /> *< OBJECTDATA: ObjPath="OverflowPanel" UniqueID="" Timestamp="" /> *< OBJECTDATA: ObjPath="ShrinkButton" UniqueID="" Timestamp="" /> *< OBJECTDATA: ObjPath="Panel" UniqueID="" Timestamp="" /> *< OBJECTDATA: ObjPath="Splitter" UniqueID="" Timestamp="" /> *< OBJECTDATA: ObjPath="Panes" UniqueID="" Timestamp="" /> * *m: beforechangeselectedbutton *m: buttonclicked && Occurs when a button is clicked. *m: changetheme && Occurs when theme change. *m: changeviewmode && Change control state (shrunk or not). *m: inainte_de_showless *m: inainte_de_showmore *m: initthemedcontrol *m: rearrangebuttons && Internal to the class. Rearrange buttons to show in correctly order and position. *m: repositioncontrols && Reposition all controls inside OutlookNavBar to avoid bugs if height is changed at design time. *m: selectedbutton_assign && Internal to the class. Occurs when SelectedButton property is changed. *m: showless && Internal to the class. Show less buttons in the panel. *m: showmore && Internal to the class. Show more buttons in the panel. *m: updatepane && Change the specified pane properties: Caption, Picture16, Picture24 and HotKey. *m: viewmodechanged && Occurs when the control was shrunk. *p: displayshrinkbutton && Specify if Shrink button will be displayed or not. *p: maxshowedbuttons && Maximum number of buttons displayed in the panel. *p: mnushowlesstext && The text that is displayed in the "Show less" shortcut menu item. *p: mnushowmoretext && The text that is displayed in the "Show more" shortcut menu item. *p: mnuthemestext && The text that is displayed in the "Themes" shortcut menu item. *p: selectedbutton && Internal to the class. The number of selected button. *p: showedbuttons && Internal to the class. The number of showed buttons. *p: targetformname && Internal to the class. Name of the target form where the toolbar will be docked. *p: version && OutlookNavBar version. *p: _memberdata && XML Metadata for customizable properties * PROTECTED Init,version * Anchor = 7 BackColor = 255,255,255 displayshrinkbutton = .T. Height = 400 maxshowedbuttons = 5 mnushowlesstext = Mai putine mnushowmoretext = Mai multe mnuthemestext = Themes... Name = "outlooknavbar" selectedbutton = 0 showedbuttons = 0 targetformname = ("") version = 3.5.0 Width = 200 _memberdata = * ADD OBJECT 'OverflowPanel' AS overflowpanel WITH ; Anchor = 14, ; Left = 1, ; Name = "OverflowPanel", ; Top = 368, ; Width = 198, ; MENUBUTTON.imgPicture.Name = "imgPicture", ; MENUBUTTON.Name = "MENUBUTTON", ; MENUBUTTON.shpTransparent.Name = "shpTransparent" *< END OBJECT: ClassLib="outlooknavbar.vcx" BaseClass="container" /> ADD OBJECT 'Panel' AS panel WITH ; Height = 0, ; Left = 1, ; Name = "Panel", ; Top = 368 *< END OBJECT: ClassLib="outlooknavbar.vcx" BaseClass="container" /> ADD OBJECT 'PanelVertical' AS panelvertical WITH ; Left = 2, ; Name = "PanelVertical", ; Top = 29, ; lblCaption.Name = "lblCaption" *< END OBJECT: ClassLib="outlooknavbar.vcx" BaseClass="control" /> ADD OBJECT 'Panes' AS panes WITH ; Anchor = 11, ; ErasePage = .T., ; Height = 332, ; Left = 1, ; Name = "Panes", ; Top = 28 *< END OBJECT: ClassLib="outlooknavbar.vcx" BaseClass="pageframe" /> ADD OBJECT 'ShrinkButton' AS shrinkbutton WITH ; Anchor = 9, ; Left = 176, ; Name = "ShrinkButton", ; Top = 5 *< END OBJECT: ClassLib="outlooknavbar.vcx" BaseClass="control" /> ADD OBJECT 'Splitter' AS splitterhorizontal WITH ; Left = 1, ; Name = "Splitter", ; objectabove = This.Parent.Panes, ; objectbelow = This.Parent.Panel, ; Top = 360, ; imgBackground.Name = "imgBackground", ; imgGripper.Name = "imgGripper" *< END OBJECT: ClassLib="outlooknavbar.vcx" BaseClass="control" /> ADD OBJECT 'Title' AS title WITH ; Name = "Title", ; Top = 0, ; imgBackground.Name = "imgBackground", ; lblCaption.Name = "lblCaption" *< END OBJECT: ClassLib="outlooknavbar.vcx" BaseClass="control" /> PROCEDURE beforechangeselectedbutton Lparameters lnOldValue, lnNewValue ENDPROC PROCEDURE buttonclicked && Occurs when a button is clicked. Lparameters lnNumber, lcCaption, lcPicture24 ENDPROC PROCEDURE changetheme && Occurs when theme change. This.BorderColor = _Screen.ThemesManager.GetMember("OutlookNavBar.BorderColor") ENDPROC PROCEDURE changeviewmode && Change control state (shrunk or not). This.ShrinkButton.ChangeViewMode() ENDPROC PROCEDURE inainte_de_showless ENDPROC PROCEDURE inainte_de_showmore ENDPROC PROTECTED PROCEDURE Init With Thisform .LockScreen = .T. .ShowTips = .T. Local loPane If .BaseClass=="Form" .MinHeight = This.Height + 4 .MinWidth = This.Width + 4 * * Special action for forms For Each loPane In This.Panes.Pages With loPane This.UpdatePane(.PageOrder,.Caption,; .Picture16,.Picture24,.HotKey) Endwith Endfor * Else * Special action for toolbars For Each loPane In This.Panes.Pages If This.ShowedButtons