Difference between revisions of "TBLanguage"

From Jeremie Leroy - XOJO Controls Wiki
Jump to: navigation, search
m (1 revision)
Line 11: Line 11:
 
|class=titleClass colspan=3|Properties
 
|class=titleClass colspan=3|Properties
 
|-
 
|-
|width=33%|{{Property | name=tbAdd | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbAdd | type=String | description= | readonly=no | newinversion= | version=1.2}}
|width=33%|{{Property | name=tbMediumIcons | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbMediumIcons | type=String | description= | readonly=no | newinversion= | version=1.2}}
|width=33%|{{Property | name=tbSmallIcons | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbSmallIcons | type=String | description= | readonly=no | newinversion= | version=1.2}}
 
|-
 
|-
|width=33%|{{Property | name=tbAvailableTbButtons | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbAvailableTbButtons | type=String | description= | readonly=no | newinversion= | version=1.2}}
|width=33%|{{Property | name=tbMediumIconsLabel | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbMediumIconsLabel | type=String | description= | readonly=no | newinversion= | version=1.2}}
|width=33%|{{Property | name=tbSmallIconsLabel | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbSmallIconsLabel | type=String | description= | readonly=no | newinversion= | version=1.2}}
 
|-
 
|-
|width=33%|{{Property | name=tbBigIcons | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbBigIcons | type=String | description= | readonly=no | newinversion= | version=1.2}}
|width=33%|{{Property | name=tbMoveDown | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbMoveDown | type=String | description= | readonly=no | newinversion= | version=1.2}}
|width=33%|{{Property | name=tbWindowTitle | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbWindowTitle | type=String | description= | readonly=no | newinversion= | version=1.2}}
 
|-
 
|-
|width=33%|{{Property | name=tbBigIconsLabel | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbBigIconsLabel | type=String | description= | readonly=no | newinversion= | version=1.2}}
|width=33%|{{Property | name=tbMoveUp | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbMoveUp | type=String | description= | readonly=no | newinversion= | version=1.2}}
  
 
|-
 
|-
|width=33%|{{Property | name=tbClose | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbClose | type=String | description= | readonly=no | newinversion= | version=1.2}}
|width=33%|{{Property | name=tbNewTextSeparator | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbNewTextSeparator | type=String | description= | readonly=no | newinversion= | version=1.2}}
  
 
|-
 
|-
|width=33%|{{Property | name=tbCurrentTbButtons | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbCurrentTbButtons | type=String | description= | readonly=no | newinversion= | version=1.2}}
|width=33%|{{Property | name=tbRemove | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbRemove | type=String | description= | readonly=no | newinversion= | version=1.2}}
  
 
|-
 
|-
|width=33%|{{Property | name=tbLabelsOnly | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbLabelsOnly | type=String | description= | readonly=no | newinversion= | version=1.2}}
|width=33%|{{Property | name=tbResetDefaults | type=String | description= | readonly=no | newinversion= | version=}}
+
|width=33%|{{Property | name=tbResetDefaults | type=String | description= | readonly=no | newinversion= | version=1.2}}
 
|}
 
|}
  
Line 65: Line 65:
 
TBCanvas.Register(Name As String, ProductKey As String, SerialKey As Integer)
 
TBCanvas.Register(Name As String, ProductKey As String, SerialKey As Integer)
 
It returns a boolean.
 
It returns a boolean.
 
 
Please "hide" your Name, ProductKey and SerialKey the same way as explained with the MBSPlugins
 
  
  
 
************SourceCode
 
************SourceCode
  
Visit my website for more information: <a href="http://pagesperso-orange.fr/JeremK/products.html">http://pagesperso-orange.fr/JeremK/products.html</a>
+
Visit my website for more information: http://www.jeremieleroy.com/products.php#Toolbar
 
+
==Tips==
+
 
+
************Changing an Icon at Runtime:
+
You can perform the same to change the Caption property.
+
 
+
Lets say you have a button "Connected" that should change Icon when your App is connected to a database.
+
Note: in the end we manually refresh the Toolbar so it displays the new Icon.
+
You will need to use this code:
+
***
+
Toolbar1.GetButton("Connected").Icon = ConnectedIcon
+
Toolbar1.Redraw()
+
***
+
 
+
If you need to change both the Icon and the smallIcon, I recommend doing it this way:
+
***
+
Dim tempTB As [[TBButton]]
+
tempTB = ToolBar1.GetButton("Connected")
+
tempTB.Icon = ConnectedIcon
+
tempTB.SmallIcon = ConnectedSmallIcon
+
Toolbar1.Redraw()
+
  
 
==See Also==
 
==See Also==
  
  
TBCanvas and [[TBButton]] classes.
+
[[TBCanvas]] and [[TBButton]] classes.

Revision as of 22:15, 6 May 2012

All properties are of String type. They contain the String that is displayed in contextual menus and in the Customize Window.



Properties
tbAdd tbMediumIcons tbSmallIcons
tbAvailableTbButtons tbMediumIconsLabel tbSmallIconsLabel
tbBigIcons tbMoveDown tbWindowTitle
tbBigIconsLabel tbMoveUp
tbClose tbNewTextSeparator
tbCurrentTbButtons tbRemove
tbLabelsOnly tbResetDefaults






Registering the ToolBar

In DebugBuild, if the ToolBar isn't registered, it will act normally. But when you compile and launch the application, the ToolBars will appear blank.

To get a SerialKey (to register) please contact me at lej_pub@hotmail.com In the email subjet please write: REALBasic ToolBar

You will then have unlimited compilation with the class and free updates by email.


Once you have received the registration key, put this in your app.open event:

TBCanvas.Register(Name As String, ProductKey As String, SerialKey As Integer) It returns a boolean.


                        • SourceCode

Visit my website for more information: http://www.jeremieleroy.com/products.php#Toolbar

See Also

TBCanvas and TBButton classes.