FreeBasic IDE-poseidonFB(Update 2024.03.03)

User projects written in or related to FreeBASIC.
Post Reply
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: FreeBasic IDE-poseidonFB(Update 2021.08.05)

Post by fxm »

This is well specified in the documentation:
Compiler Option: -m

Extract:
.....
.....

Description:
  • The -m compiler option specifies a main entry point for a source file; the argument is the name of a source file minus its extension.
    So the main module file must be called twice in the command line:
    • - after compile option "-m", but without specified extension,
      - and also like any module to compile, but there with its specified extension.
    .....
    .....
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.08.05)

Post by demosthenesk »

fxm wrote:This is well specified in the documentation:
Compiler Option: -m

Extract:
.....
.....

Description:
  • The -m compiler option specifies a main entry point for a source file; the argument is the name of a source file minus its extension.
    So the main module file must be called twice in the command line:
    • - after compile option "-m", but without specified extension,
      - and also like any module to compile, but there with its specified extension.
    .....
    .....
it's ok....
i did not know how poseidonFB behaves... from test and try i discover it.
so in Project Properties we must set up without extension for main module.
ok
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.08.05)

Post by demosthenesk »

Kuan Hsu, do you plan to add a Form designer and cooperate with a windows framework compatible for windows/linux like gtk?
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.08.05)

Post by Kuan Hsu »

demosthenesk wrote:Kuan Hsu, do you plan to add a Form designer and cooperate with a windows framework compatible for windows/linux like gtk?
No, I think we had already got good RAD tools:
WinFBE
VisualFBEditor
I'm not familiar with Win32 or GTK, so I choose IUP which can do the hard work.
demosthenesk wrote:i did not know how poseidonFB behaves... from test and try i discover it.
so in Project Properties we must set up without extension for main module.
I'll add some warnning about it and remove the extension.
UEZ
Posts: 972
Joined: May 05, 2017 19:59
Location: Germany

Re: FreeBasic IDE-poseidonFB(Update 2021.08.07)

Post by UEZ »

Small cosmedic issue which I found: if you go to "Preference", select "Color" tab and press the "Color Template" button then the combo box appears.
If you switch the tab then the combo list is still visible.
Also wrong "Contract" on this line:

Code: Select all

Type REAL As Single
#Define rAbs(x_)				Iif( (x_) < 0, -(x_), (x_) )
Const As REAL rPI              	= Acos(-1)
Const As REAL rDeg2Rad         	= rPI / 180
Apropos "Contract", it would be great to contract For / Next and If / Else / ElseIf / Endif, too.

Is it also possible to mark words that are in a commented out line? A tidy function for the source code would also be a great feature! :-)

Thanks you for all your efforts on this IDE!
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.08.07)

Post by Kuan Hsu »

UEZ wrote:Small cosmedic issue which I found: if you go to "Preference", select "Color" tab and press the "Color Template" button then the combo box appears.
If you switch the tab then the combo list is still visible.
Also wrong "Contract" on this line:

Code: Select all

Type REAL As Single
#Define rAbs(x_)				Iif( (x_) < 0, -(x_), (x_) )
Const As REAL rPI              	= Acos(-1)
Const As REAL rDeg2Rad         	= rPI / 180
Apropos "Contract", it would be great to contract For / Next and If / Else / ElseIf / Endif, too.

Is it also possible to mark words that are in a commented out line? A tidy function for the source code would also be a great feature! :-)

Thanks you for all your efforts on this IDE!
(1)It's easy to fix
(2)OK, need modify LexBasic.cxx
(3)Haha, LexBasic.cxx again, I don't know how to set ELSE or ELSEIF level, maybe IF/ENDIF and FOR/NEXT and SELECT CASE/END SELECT are available
(4)I'm not sure what is mark words?
UEZ
Posts: 972
Joined: May 05, 2017 19:59
Location: Germany

Re: FreeBasic IDE-poseidonFB(Update 2021.08.07)

Post by UEZ »

Kuan Hsu wrote: (4)I'm not sure what is mark words?
I mean this:
Not working when highlighted first in the comment line:
Image

Works when highlighted in "normal" line.
Image

What about (5)? ;-)
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.08.07)

Post by Kuan Hsu »

UEZ wrote: What about (5)? ;-)
Do you mean:
A tidy function for the source code would also be a great feature!

like->http://weekendcode.phatcode.net/sub/fbstyle.html?
UEZ
Posts: 972
Joined: May 05, 2017 19:59
Location: Germany

Re: FreeBasic IDE-poseidonFB(Update 2021.08.07)

Post by UEZ »

Kuan Hsu wrote:
UEZ wrote: What about (5)? ;-)
Do you mean:
A tidy function for the source code would also be a great feature!

like->http://weekendcode.phatcode.net/sub/fbstyle.html?
I don't know what FBStyle.bas does in detail but it would be great that the code can be formatted / beautified within the IDE just like the tools unter "Options -> Tools".
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.08.07)

Post by Kuan Hsu »

Kuan Hsu wrote:
UEZ wrote:Small cosmedic issue which I found: if you go to "Preference", select "Color" tab and press the "Color Template" button then the combo box appears.
If you switch the tab then the combo list is still visible.
Also wrong "Contract" on this line:

Code: Select all

Type REAL As Single
#Define rAbs(x_)				Iif( (x_) < 0, -(x_), (x_) )
Const As REAL rPI              	= Acos(-1)
Const As REAL rDeg2Rad         	= rPI / 180
Apropos "Contract", it would be great to contract For / Next and If / Else / ElseIf / Endif, too.

Is it also possible to mark words that are in a commented out line? A tidy function for the source code would also be a great feature! :-)

Thanks you for all your efforts on this IDE!
(1)It's easy to fix
(2)OK, need modify LexBasic.cxx
(3)Haha, LexBasic.cxx again, I don't know how to set ELSE or ELSEIF level, maybe IF/ENDIF and FOR/NEXT and SELECT CASE/END SELECT are available
(4)I'm not sure what is mark words?
(1)~(4) had already modified at rev.464.

About Q5--A tidy function for the source code would also be a great feature!, I think we can use plugin to do .
UEZ
Posts: 972
Joined: May 05, 2017 19:59
Location: Germany

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by UEZ »

Well done Kuan Hsu!

Thx for the update! :-)

Waiting for the tidy solution...
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by Kuan Hsu »

UEZ wrote:Well done Kuan Hsu!

Thx for the update! :-)

Waiting for the tidy solution...
I modified Garvan's code( viewtopic.php?f=8&t=921&hilit=FBStyle ) to make poseidonFB plugin:
https://bitbucket.org/KuanHsu/poseidon- ... r/FBStyle/
UEZ
Posts: 972
Joined: May 05, 2017 19:59
Location: Germany

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by UEZ »

Kuan Hsu wrote:
UEZ wrote:Well done Kuan Hsu!

Thx for the update! :-)

Waiting for the tidy solution...
I modified Garvan's code( viewtopic.php?f=8&t=921&hilit=FBStyle ) to make poseidonFB plugin:
https://bitbucket.org/KuanHsu/poseidon- ... r/FBStyle/
I cannot compile it
FBStyle.bas(946) error 42: Variable not declared, IupMessageError in 'IupMessageError( POSEIDON_HANDLE, "Sorry, this plugin is for freeBASIC use only!" )
...
...freebasic\bin\win32\ld.exe: cannot find -liup
...freebasic\bin\win32\ld.exe: cannot find -liup_scintilla
Where can I download the dependencies?
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by Kuan Hsu »

UEZ wrote:
FBStyle.bas(946) error 42: Variable not declared, IupMessageError in 'IupMessageError( POSEIDON_HANDLE, "Sorry, this plugin is for freeBASIC use only!" )
...
...freebasic\bin\win32\ld.exe: cannot find -liup
...freebasic\bin\win32\ld.exe: cannot find -liup_scintilla
Where can I download the dependencies?
Need download IUP3.27 library ->https://sourceforge.net/projects/iup/fi ... p/download(32bit)
or
https://bitbucket.org/KuanHsu/poseidon- ... downloads/
UEZ
Posts: 972
Joined: May 05, 2017 19:59
Location: Germany

Re: FreeBasic IDE-poseidonFB(Update 2021.08.14)

Post by UEZ »

Thanks, seems to work properly with your DLL but when I try to compile it I still get the em:
...FBStyle.bas(946) error 42: Variable not declared, IupMessageError in 'IupMessageError( POSEIDON_HANDLE, "Sorry, this plugin is for freeBASIC use only!" )'
If I comment it out then I can compile the code to a DLL.
Post Reply