Difference between revisions of "RibbonCanvas"

From Jeremie Leroy - XOJO Controls Wiki
Jump to: navigation, search
(Version 1.2.1)
Line 13: Line 13:
 
|width=50%|{{Event | name=MouseDown | params=X As Integer, Y As Integer | description= | returntype=Boolean | newinversion=}}
 
|width=50%|{{Event | name=MouseDown | params=X As Integer, Y As Integer | description= | returntype=Boolean | newinversion=}}
 
|-
 
|-
|width=50%|{{Event | name=GearIconClicked | description= | returntype=Boolean | newinversion=}}
+
|width=50%|{{Event | name=GearIconClicked | description= | returntype=Boolean | newinversion=1.2.0}}
 
|width=50%|{{Event | name=Open | description= | newinversion=}}
 
|width=50%|{{Event | name=Open | description= | newinversion=}}
 
|-
 
|-
Line 26: Line 26:
 
|-
 
|-
 
|width=50%|{{Event | name=MenuAction | params=SectionName As String, ButtonName As String, hitItem As MenuItem | description= | newinversion=}}
 
|width=50%|{{Event | name=MenuAction | params=SectionName As String, ButtonName As String, hitItem As MenuItem | description= | newinversion=}}
 +
 +
|-
 
|}
 
|}
  
Line 33: Line 35:
 
|class=titleClass colspan=3|Properties
 
|class=titleClass colspan=3|Properties
 
|-
 
|-
|width=33%|{{Property | name=Animate | type=Boolean | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=Animate | type=Boolean | description= | readonly=no | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=Hidden | type=Boolean | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=Hidden | type=Boolean | description= | readonly=yes | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=ShowTooltips | type=Boolean | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=ShowTooltips | type=Boolean | description= | readonly=no | newinversion= | version=1.2.5}}
 
|-
 
|-
|width=33%|{{Property | name=AutoHide | type=Boolean | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=AutoHide | type=Boolean | description= | readonly=no | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=HideButtonLeft | type=Integer | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=HideButtonLeft | type=Integer | description= | readonly=no | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=Style | type=Integer | description= | readonly=yes | newinversion=}}
+
|width=33%|{{Property | name=Style | type=Integer | description= | readonly=yes | newinversion= | version=1.2.5}}
 
|-
 
|-
|width=33%|{{Property | name=BackColor | type=Color | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=BackColor | type=Color | description= | readonly=no | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=LastError | type=String | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=LastError | type=String | description= | readonly=no | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=TabCount | type=Integer | description= | readonly=yes | newinversion=}}
+
|width=33%|{{Property | name=TabCount | type=Integer | description= | readonly=yes | newinversion= | version=1.2.5}}
 
|-
 
|-
|width=33%|{{Property | name=BestHeight | type=Integer | description= | readonly=yes | newinversion=}}
+
|width=33%|{{Property | name=BestHeight | type=Integer | description= | readonly=yes | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=LeftOffset | type=Integer | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=LeftOffset | type=Integer | description= | readonly=no | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=TabInnerOffset | type=Integer | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=TabInnerOffset | type=Integer | description= | readonly=no | newinversion= | version=1.2.5}}
 
|-
 
|-
|width=33%|{{Property | name=Blinker | type=RibbonBlinker | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=BorderColor | type=Color | description= | readonly=no | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=Main | type=RibbonMain | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=Main | type=RibbonMain | description= | readonly=no | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=TabMidOffset | type=Integer | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=TabMidOffset | type=Integer | description= | readonly=no | newinversion= | version=1.2.5}}
 
|-
 
|-
|width=33%|{{Property | name=BorderColor | type=Color | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=EmbeddedControls | type=RibbonEmbeddedControl | description= | readonly=no | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=RedrawValue | type=Integer | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=ShowGearIcon | type=Boolean | description= | readonly=no | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=Tabs | type=RibbonTab | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=Tabs | type=RibbonTab | description= | readonly=no | newinversion= | version=1.2.5}}
 
|-
 
|-
|width=33%|{{Property | name=EmbeddedControls | type=RibbonEmbeddedControl | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=Freeze | type=Boolean | description= | readonly=no | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=ShowGearIcon | type=Boolean | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=ShowHideButton | type=Boolean | description= | readonly=no | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=Value | type=Integer | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=Value | type=Integer | description= | readonly=no | newinversion= | version=1.2.5}}
 
|-
 
|-
|width=33%|{{Property | name=Freeze | type=Boolean | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=FullRefresh | type=Boolean | description= | readonly=no | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=ShowHideButton | type=Boolean | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=ShowRefreshTime | type=Boolean | description= | readonly=no | newinversion= | version=1.2.5}}
  
 
|-
 
|-
|width=33%|{{Property | name=FullRefresh | type=Boolean | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=GearIcon | type=Picture | description= | readonly=no | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=ShowRefreshTime | type=Boolean | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=ShowTabs | type=Boolean | description= | readonly=no | newinversion= | version=1.2.5}}
  
 
|-
 
|-
|width=33%|{{Property | name=GearIcon | type=Picture | description= | readonly=no | newinversion=}}
+
|width=33%|{{Property | name=Hidden | type=Boolean | description= | readonly=yes | newinversion= | version=1.2.5}}
|width=33%|{{Property | name=ShowTabs | type=Boolean | description= | readonly=no | newinversion=}}
+
 
|}
 
|}
 
 
  
  
Line 82: Line 81:
 
|-
 
|-
 
|width=33%|{{Method | name=AddOpenRecent | params=f As FolderItem | description= | newinversion=}}
 
|width=33%|{{Method | name=AddOpenRecent | params=f As FolderItem | description= | newinversion=}}
|width=33%|{{Method | name=LoadFromXML | params=XMLString As String | description= | returntype=Boolean | newinversion=}}
 
|width=33%|{{Method | name=SetStyle | params=value As Integer | description= | newinversion=}}
 
|-
 
|width=33%|{{Method | name=EmbedControl | params=c As RectControl, Left As Integer = - 1, Top As Integer = - 1, Tab As Integer = - 1, Section As Integer = - 1, Button As Integer = - 1 | description= | newinversion=}}
 
 
|width=33%|{{Method | name=Redisplay | description= | newinversion=}}
 
|width=33%|{{Method | name=Redisplay | description= | newinversion=}}
 
|width=33%|{{Method | name=Show | params=Refresh As Boolean = True | description= | newinversion=}}
 
|width=33%|{{Method | name=Show | params=Refresh As Boolean = True | description= | newinversion=}}
 
|-
 
|-
|width=33%|{{Method | name=EmbedControl | params=c As RectControl, Button As RibbonButton | description= | newinversion=}}
+
|width=33%|{{Method | name=EmbedControl | params=c As RectControl, Left As Integer = - 1, Top As Integer = - 1, Tab As Integer = - 1, Section As Integer = - 1, Button As Integer = - 1 | description= | newinversion=}}
 
|width=33%|{{Method | name=RemoveOpenRecent | params=f As FolderItem | description= | newinversion=}}
 
|width=33%|{{Method | name=RemoveOpenRecent | params=f As FolderItem | description= | newinversion=}}
 
|width=33%|{{Method | name=toRB | params=FullConstructor As Boolean = False, SaveStyle As Boolean = True | description= | returntype=String | newinversion=}}
 
|width=33%|{{Method | name=toRB | params=FullConstructor As Boolean = False, SaveStyle As Boolean = True | description= | returntype=String | newinversion=}}
Line 103: Line 98:
 
|width=33%|{{Method | name=Hide | params=Refresh As Boolean = True | description= | newinversion=}}
 
|width=33%|{{Method | name=Hide | params=Refresh As Boolean = True | description= | newinversion=}}
 
|width=33%|{{Method | name=SetHighlightColor | params=C As Color | description= | newinversion=}}
 
|width=33%|{{Method | name=SetHighlightColor | params=C As Color | description= | newinversion=}}
 +
 +
|-
 +
|width=33%|{{Method | name=LoadFromXML | params=XMLString As String | description= | returntype=Boolean | newinversion=}}
 +
|width=33%|{{Method | name=SetStyle | params=value As Integer | description= | newinversion=}}
  
 
|-
 
|-
Line 113: Line 112:
 
|-
 
|-
 
|{{Method | name=Register | params=Name As String, ProductKey As String, SerialKey As Integer | description= | returntype=Boolean | newinversion=}}
 
|{{Method | name=Register | params=Name As String, ProductKey As String, SerialKey As Integer | description= | returntype=Boolean | newinversion=}}
 +
|-
 +
 
|-
 
|-
 
|}
 
|}
Line 118: Line 119:
  
 
==History==
 
==History==
 +
 
===Version 1.2.5===
 
===Version 1.2.5===
 
*Fix:
 
*Fix:
 
**Crash on Mac OS with StyleOffice2011 (gradient2)
 
**Crash on Mac OS with StyleOffice2011 (gradient2)
 
**Crash on Mac OS (RibbonHelpWindow)
 
**Crash on Mac OS (RibbonHelpWindow)
 +
**Embedded control not displaying properly if the Ribbon isn't in top left position.
  
  
Line 135: Line 138:
  
 
===Version 1.2.1===
 
===Version 1.2.1===
*Contextual Click in RibbonHelpWindow does not trigger action anymore
+
**Contextual Click in RibbonHelpWindow does not trigger [[RibbonCanvas.Action|Action]] anymore
 
+
 
==See Also==
 
==See Also==
  
[[RibbonButton]], [[RibbonSection]], [[RibbonTab classes.]]
+
RibbonButton, RibbonSection, [[RibbonTab]] classes.

Revision as of 23:55, 24 May 2012

The RibbonCanvas is a custom Canvas that displays a Ribbon similar to Microsoft Office and Windows 7 Paint and WordPad.


Events
Action Minimized
Change MouseDown
GearIconClicked Open
GetIcon OpenRecent
GetMenu Restored
HeightChange
MenuAction


Properties
Animate Hidden ShowTooltips
AutoHide HideButtonLeft Style
BackColor LastError TabCount
BestHeight LeftOffset TabInnerOffset
BorderColor Main TabMidOffset
EmbeddedControls ShowGearIcon Tabs
Freeze ShowHideButton Value
FullRefresh ShowRefreshTime
GearIcon ShowTabs
Hidden


Methods
AddOpenRecent Redisplay Show
EmbedControl RemoveOpenRecent toRB
GetButton SendAcceleratorKey toXML
GetMainOption SetColor
Hide SetHighlightColor
LoadFromXML SetStyle


Shared Methods
Register


History

Version 1.2.5

  • Fix:
    • Crash on Mac OS with StyleOffice2011 (gradient2)
    • Crash on Mac OS (RibbonHelpWindow)
    • Embedded control not displaying properly if the Ribbon isn't in top left position.


Version 1.2.4 - Released 2012-04-15

  • New:
    • Removed Class TooltipTimer which isn't needed anymore
  • Fix:
    • embeddedControl
    • Graphical bug in StyleOffice2010
    • Buttons with menu: PopupArrow missing the tip pixel in newer versions of RealStudio


Version 1.2.1

    • Contextual Click in RibbonHelpWindow does not trigger Action anymore

See Also

RibbonButton, RibbonSection, RibbonTab classes.