TBLanguage

From Jeremie Leroy - XOJO Controls Wiki
Revision as of 21:39, 6 May 2012 by Admin (Talk | contribs) (1 revision)

Jump to: navigation, search

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



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






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.


Please "hide" your Name, ProductKey and SerialKey the same way as explained with the MBSPlugins


                        • SourceCode

Visit my website for more information: <a href="http://pagesperso-orange.fr/JeremK/products.html">http://pagesperso-orange.fr/JeremK/products.html</a>

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

TBCanvas and TBButton classes.