[Gambas-user] Configure method of ToolBar

Jesus ea7dfh at ...2382...
Sun Dec 1 16:54:08 CET 2013


Hi all

I'm trying to get up and running a project which have a Toolbar and some 
toolbuttons in it. I'd like to mimic the same behavior toolbars have in 
Gambas' IDE. I've read the docs about Toolbar (gb.form.mdi) but calling 
the configure method throws an error aborting my application.
BTW, all the toolbuttons have set an Action property, but note that I 
haven't any workspace in the main form, just the toolbar.

This is the code I'm using in a minimal test application:
------8<----------------------------------
Public Sub ToolBar1_MouseDown()

     If Mouse.Right Then ToolBar1.Configure

End
------8<----------------------------------
The error text is in the 'Toolbar1.Configure' line: "Not an object"
The stack back-trace:

FToolBarConfig.InitAction.108
FToolBarConfig.SetCurrentToolBar.54
FToolBarConfig.Run.17
Action._ConfigureToolBar.21
ToolBar.Configure.34
FMain.ToolBar1_MouseDown.20

What am I doing wrong?

[System]
Gambas=3.5.90 r5975
OperatingSystem=Linux
Kernel=3.2.0-23-generic
Architecture=x86_64
Distribution=Linux Mint 13 Maya
Desktop=GNOME
Theme=QPlastique
Language=es_ES.UTF-8
Memory=16034M
[Libraries]
Cairo=libcairo.so.0.0.0
Cairo=libcairo.so.2.11000.2
Curl=libcurl.so.4.2.0
DBus=libdbus-1.so.3.5.8
GStreamer=libgstreamer-0.10.so.0.30.0
GTK+=libgtk-x11-2.0.so.0.2400.10
Poppler=libpoppler.so.19.0.0
Qt4=libQtCore.so.4.8.1
SDL=libSDL-1.2.so.0.11.3

Regards
-- 
Jesus Guardon




More information about the User mailing list