Quick start

Return to Introduction  Previous page  Next page

This tutorial takes you through the steps to create a simple PowerToolbar application.

 

The finished application is installed at: Clarion6\3rdParty\Examples\PowerToolbar\Quickstart.app

 

qs_1

 

 

Quick start tutorial

1. Create an empty application (ABC or Legacy).

 

2. Add the global template to your application (PowerToolbarGlobal - Icetips Power Toolbar Global)

 

  Onestep Press the "Global"-button

  Onestep Click "Extensions"

  Onestep Click "Insert"

  Onestep Choose "PowerToolbarGlobal - Icetips Power Toolbar Global"

  Onestep Click "Ok" to close global settings.

 

 

3. Add an AppFrame to your application

 

  Onestep Double-click the Main procedure

  Onestep Choose "Frame - Multiple Document Main Menu"

  Onestep Click the "Window"-button

  Onestep Choose "Application Main MDI Frame"

 

 

4. Add a toolbar to your AppFrame

 

  Onestep Select "Toolbar -> New Toolbar" on the menu

 

 

5. Populate the toolbar control

 

  Onestep Click the "Control Template" toolbutton

  Onestep Choose the template "POToolbar - Toolbar Control"

  Onestep Click somewhere inside the Clarion toolbar to position the PowerToolbar-control.

 

 

6. Open PowerToolbar settings

 

  Onestep Right-click the PowerToolbar-control and select "Actions"

 

 

7. Add a toolbar-band

 

  Onestep Press the "Insert"-button

  Onestep Enter a name for the band:  "Quick start Band" (without the quotes)

  Onestep When you tab to the next field, the an ID will be generated (TB1_QuickstartBand)

 

 

8. Add a control to the band

 

  Onestep Press the "Insert"-button below the Controls list.

  Onestep In the control-settings dialog, enter the following Name: "My First Button" (without the quotes)

  Onestep The generated ID will be ID_MyFirstButton

  Onestep You can choose your favourite icon and enter some tooltip text if you'd like to.

 

 

9. Add some action for the button

 

  Onestep Choose the "Action"-tab

  Onestep Press the "Embeds"-button

  Onestep Double-click the "Local Objects -> Toolbar1 -> ID_MyFirstButton -> Accepted"-event

  Onestep Choose "Source" as Embed type

  Onestep Enter the following text:

 

       Message('Hello from PowerToolbar')

 

  Onestep Exit and save the source

  Onestep Press "Close" and "Ok" three times and close the window formatter to get back to the main Clarion IDE.

 

 

10. Compile and run your application

 

 

The result should be something similar to the screen shot below:

 

qs_1

 

 

 

This example application can be found in the "Clarion6\3rdparty\Examples\PowerToolbar\" folder.

 



Direct link to this page on our website: http://www.icetips.com/manuals/powertoolbar/quickstart.htm