FiveLinux Button Bar ( My OS : Ubuntu 7.10 )
FiveLinux Button Bar ( My OS : Ubuntu 7.10 )
Hello!
I think this FiveLinux has a Button Bar Error(???)
My OS : Ubuntu Linux 7.10
Please Help me!!!
I think this FiveLinux has a Button Bar Error(???)
My OS : Ubuntu Linux 7.10
Please Help me!!!
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Ok, we found whats going on. You need to create a main pulldown menu in order to get properly placed the buttonbar:
Code: Select all
#include "FiveLinux.ch"
static oWnd
function Main()
local oBar
DEFINE WINDOW oWnd TITLE "Test" MENU BuildMenu()
DEFINE BUTTONBAR oBar OF oWnd
DEFINE BUTTON OF oBar ACTION MsgInfo( 1 )
DEFINE BUTTON OF oBar ACTION MsgInfo( 2 )
DEFINE BUTTON OF oBar ACTION MsgInfo( 3 )
ACTIVATE WINDOW oWnd
return nil
function BuildMenu()
local oMenu
MENU oMenu
MENUITEM "One" ACTION MsgInfo( 1 )
MENUITEM "Two" ACTION MsgInfo( 2 )
MENUITEM "Three" ACTION MsgInfo( 3 )
ENDMENU
return oMenu
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
FiveLinux Button Bar
Thank you for your answer Antonio.
but there are still some errors.
tutor04.prg Compile or link error
but there are still some errors.
tutor04.prg Compile or link error
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
-
- Posts: 310
- Joined: Mon Oct 10, 2005 5:10 am
Editor
Hi Otto
It looks like the KDE editor called KATE. I dont think it is
cross platform though.
Cheers
Colin
It looks like the KDE editor called KATE. I dont think it is
cross platform though.
Cheers
Colin
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
Kate is a pretty nice text editor and comes with xHarbour language highlighting. Its KDE based so only available for Linux. By saving sessions you can effectively have it set up on a project basis. It tracks and shows levels of IF - ELSE - ENDIF, FUNCTION - RETURN etc but the language file needs some tweaking for FiveLinux as it sees
as an END which throws this functionality out.
Regards
Doug
(xProgrammer)
Code: Select all
oDlg:End()
Regards
Doug
(xProgrammer)
FiveLinux DEFINE Button
Hi Antonio.
"RESOURCE" of the DEFINE BUTTON in a FiveLinux.ch File of downloded FTDN March 2008 FiveLinux is not defined, and TButton Class too.
< FiveLinux.ch >
#xcommand DEFINE BUTTON [<oBtn>] ;
[ OF <oBar> ] ;
[ <label: LABEL, PROMPT> <cText> ] ;
[ <img: IMAGE> <cImgName> ] ;
[ ACTION <uAction> ] ;
[ <group: GROUP> ] ;
=> ;
[ <oBtn> := ] TButton():NewBar( [<oBar>], <cText>,;
<cImgName>, [ \{|o|<uAction>\} ], <.group.> )
< tutor04.prg sample >
DEFINE BUTTON OF oBar RESOURCE "gtk-new" ACTION MsgInfo( "New" )
DEFINE BUTTON OF oBar RESOURCE "gtk-open" ACTION MsgInfo( "Open" )
"RESOURCE" of the DEFINE BUTTON in a FiveLinux.ch File of downloded FTDN March 2008 FiveLinux is not defined, and TButton Class too.
< FiveLinux.ch >
#xcommand DEFINE BUTTON [<oBtn>] ;
[ OF <oBar> ] ;
[ <label: LABEL, PROMPT> <cText> ] ;
[ <img: IMAGE> <cImgName> ] ;
[ ACTION <uAction> ] ;
[ <group: GROUP> ] ;
=> ;
[ <oBtn> := ] TButton():NewBar( [<oBar>], <cText>,;
<cImgName>, [ \{|o|<uAction>\} ], <.group.> )
< tutor04.prg sample >
DEFINE BUTTON OF oBar RESOURCE "gtk-new" ACTION MsgInfo( "New" )
DEFINE BUTTON OF oBar RESOURCE "gtk-open" ACTION MsgInfo( "Open" )
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
FiveLinux Button Bar
Thank you for your answer Antonio.
Modify tutor04.prg ..... error
Modify tutor04.prg ..... error
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
I tried to build tutor04 and got the same error.
For the record I made the change to FiveLinux.ch referred to above which fixed 3 of the 5 compile errors but @ <row>, <col> BUTTON .... also needs to be fixed. To get around it I just changed RESOURCE in the .prg file to IMAGE.
I haven't been using COMBOBOXes in my code nor BUTTONs with IMAGEs/RESOURCEs but I thought I had successfully built tutor04 sometime in the past (but not on current machine so can't state that categorically).
Regards
Doug
(xProgrammer)
For the record I made the change to FiveLinux.ch referred to above which fixed 3 of the 5 compile errors but @ <row>, <col> BUTTON .... also needs to be fixed. To get around it I just changed RESOURCE in the .prg file to IMAGE.
I haven't been using COMBOBOXes in my code nor BUTTONs with IMAGEs/RESOURCEs but I thought I had successfully built tutor04 sometime in the past (but not on current machine so can't state that categorically).
Regards
Doug
(xProgrammer)
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Doug, Oknbs,
Please use this library instead of the one that you are linking:
http://rapidshare.com/files/102094690/libfivec.zip.html
Please use this library instead of the one that you are linking:
http://rapidshare.com/files/102094690/libfivec.zip.html