FreeBasic IDE-poseidonFB(Update 2024.03.03)

User projects written in or related to FreeBASIC.
Post Reply
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2017.11.12)

Post by Kuan Hsu »

Makoto WATANABE wrote:Dear Kuan Hsu
I updated the Japanese.lng.
http://makoto-watanabe.main.jp/Japanese.zip


By the way, I tried to compile a following program from "Rosetta Code".
Amicable pairs
24 FreeBASIC
24.2 using "Sieve of Erathosthenes" style
http://rosettacode.org/wiki/Amicable_pa ... s.22_style
However, it interrupted with the following error.

Please tell me if there is a way to avoid this error.
Thanks~~^^

Hmm, change LINE(12):

Code: Select all

Dim As String u_str = String(Len(Str(max))+1,"#")
to

Code: Select all

Dim As String u_str = String(Len(Str(max))+1,35)
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2017.11.12)

Post by Kuan Hsu »

c-sanchez wrote:Thanks @Kuan Hsu, you are the best :D

Yes, now minimize with main window, but.. and if just chage window without minimize?
https://s6.postimg.org/69wlbpgup/poseidonfb_overlay.png
haha :P

Other Ideas/Feature request:
1. A option to hide the Tabs bar if we have just one document opened.

2. Don't show the horizontal scroll bar if not necessary. Even if word wrap is disabled. Like vertical scroll bar.
some images to explain me better:
https://s6.postimg.org/phjq8k6yp/scrollbars.gif
https://s6.postimg.org/jgm1bhcmp/poeido ... llbars.gif

3. An small detail in Search/Replace window. Change a bit the Cancel button, by example:
Image Image
1. I'll fixed at rev.331( also search/search in files dialog )
2. Scintilla has fixed width for performance, I will not change it...
3. Window 7:
Image
I'll add some code to change the layout, please check at rev.331
c-sanchez
Posts: 145
Joined: Dec 06, 2012 0:38

Re: FreeBasic IDE-poseidonFB(Update 2017.11.13)

Post by c-sanchez »

Kuan Hsu wrote:2. Scintilla has fixed width for performance, I will not change it...
How much affect this the perfomance? :S
Because notepad++ (Scintilla based) make this as I say it.

I'm sorry Kuan, but I'm not sure about that you changed in layout.
But now talking about layout, I did some lines to check how is sorted. I think actually is a bit wrong the layout :P
This is your window of Find/Replace in Windows 7 with some guide lines:
Image
Blue lines are for alignment between: buttons, space of lines (from Direction, Scope and text fields of Find What and Replace With)
Yellow lines are for alignment between selectors.
This is an example following some guide lines
Image
Also I noticed the buttons in left side (Find, Replace, Count All) are 7 pixels wider than buttons in right side.

Some guide lines with Find/Replace window / The window following the guide lines
Image Image
Original / with guide lines
Image Image

A small one, the "Go to line" window hehe
Original with some guide lines / Using guide lines
Image Image
Now without show the lines
Image Image

If not problem don't forget this one please :P
c-sanchez wrote:1. A option to hide the Tabs bar if we have just one document opened.
Sorry for the long post!
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2017.11.13)

Post by Kuan Hsu »

c-sanchez wrote:
Kuan Hsu wrote:2. Scintilla has fixed width for performance, I will not change it...
How much affect this the perfomance? :S
Because notepad++ (Scintilla based) make this as I say it.

I'm sorry Kuan, but I'm not sure about that you changed in layout.
But now talking about layout, I did some lines to check how is sorted. I think actually is a bit wrong the layout :P
This is your window of Find/Replace in Windows 7 with some guide lines:......

If not problem don't forget this one please :P
c-sanchez wrote:1. A option to hide the Tabs bar if we have just one document opened.
Sorry for the long post!
(1)
About performance, I't said by Neil Hodgson, the author of Scintilla.......
Anyway, I enabled SCI_SETSCROLLWIDTHTRACKING = true at rev0.332, please check...
(2)
I could not correct the layout then I've no idea how to do.....
Even the layout maybe a bit wrong, I think it still works.....
(3)
About hide the tab bar, I think I will keep it, sorry...
SimpliJess
Posts: 2
Joined: Nov 17, 2017 10:51

Re: FreeBasic IDE-poseidonFB(Update 2017.11.13)

Post by SimpliJess »

Kuan Hsu wrote:
c-sanchez wrote:
Kuan Hsu wrote:2. Scintilla has fixed width for performance, I will not change it...
How much affect this the perfomance? :S
Because notepad++ (Scintilla based) make this as I say it.

I'm sorry Kuan, but I'm not sure about that you changed in layout.
But now talking about layout, I did some lines to check how is sorted. I think actually is a bit wrong the layout :P
This is your window of Find/Replace in Windows 7 with some guide lines:......

If not problem don't forget this one please :P
c-sanchez wrote:1. A option to hide the Tabs bar if we have just one document opened.
Sorry for the long post!
(1)
About performance, I't said by Neil Hodgson, the author of Scintilla.......
Anyway, I enabled SCI_SETSCROLLWIDTHTRACKING = true at rev0.332, please check...
(2)
I could not correct the layout then I've no idea how to do.....
Even the layout maybe a bit wrong, I think it still works.....
(3)
About hide the tab bar, I think I will keep it, sorry...
1)Hey,I checked SCI_SETSCROLLWIDTHTRACKING it does not work..Atlest for me
2)Yes,its still works,but not always.
3)Keep it for sure.Its good!
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2017.11.14)

Post by Kuan Hsu »

ponseidonFB - codecompletion:
poseidonFB is design with auto complete because I'm very lazy, I wrote a simpel freeBASIC parser to parse *.bas and *.bi to create a nodes tree, every nodes had their name, kind, protection, type, base(for OO), line-number, endline-number and father node (pointer) and children (pointer), if we enable the parser, everytime what we key in that poseidonFB will search parsed tree to find the match node, if we get the matches will display a select-able list.

If the base parsed tree( original document ) has INCLUDE node, poseidonFB will continue load and parse the INCLUDE files, althought poseidonFB will marked the files had be parsed to prevent over repeat, if we got many level ( A include B, B include C, C include D..... ) the perfomance will slow down, so I added a Include Levels option to limit( from original document ).
Image

poseidonFB had Keyword / Include / Code complete, I uploaded a example gif-animation to explain:
Image
We can see the first line is include IUP.bi( Keyword / Include Complete ), the 4th line the Ihandle had display in the list( Code Complete ), we also see the 3rd line when dim a varable, the outline tree is change, that is because I set the ParseLive! level is "Light" and Enabled "Update Outline".

The ParseLive! Level = "None" is mean the poseidonFB will not update the parsed tree automatically, please use "Reparse".

The ParseLive! Level = "Light" is mean the poseidonFB will parse current line every key-in and update the parsed tree.

The ParseLive! Level = "Full" is mean the poseidonFB will parse current block( ie. function body, TYPE..END TYPE....) every key-in and update the parsed tree, but if we are in a 10,000+ lines file and in root block, every key-in maybe need parse 10,000+ lines, the perfomance will slow down.

Because my "good" English I can't write to much, but I want intro the how poseidonFB autocomplete works, that's all, happy coding...^^
c-sanchez
Posts: 145
Joined: Dec 06, 2012 0:38

Re: FreeBasic IDE-poseidonFB(Update 2017.11.13)

Post by c-sanchez »

Kuan Hsu wrote:(1)
About performance, I't said by Neil Hodgson, the author of Scintilla.......
Anyway, I enabled SCI_SETSCROLLWIDTHTRACKING = true at rev0.332, please check...
Thanks, although now the horizontal scroll bar is not showed never.
Kuan Hsu wrote:(2)
I could not correct the layout then I've no idea how to do.....
Even the layout maybe a bit wrong, I think it still works.....
Yeah, this works of course, my commentary was just to show how can be looks a bit "nicer", without belittling your work at all :P
Kuan Hsu wrote:(3)
About hide the tab bar, I think I will keep it, sorry...
Heh is ok.

By other side, I wonder if you can explain a bit how setup D + IUP + all necessary to compile poseidonFB.
I would like to try to modify the interface a bit and play a bit with the source code of poseidonFB. Maybe it's a good way to help too :)

Thanks for everything you have done with poseidonFB so far :)
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2017.11.13)

Post by Kuan Hsu »

c-sanchez wrote:
Kuan Hsu wrote:(1)
About performance, I't said by Neil Hodgson, the author of Scintilla.......
Anyway, I enabled SCI_SETSCROLLWIDTHTRACKING = true at rev0.332, please check...
Thanks, although now the horizontal scroll bar is not showed never.
Kuan Hsu wrote:(2)
I could not correct the layout then I've no idea how to do.....
Even the layout maybe a bit wrong, I think it still works.....
Yeah, this works of course, my commentary was just to show how can be looks a bit "nicer", without belittling your work at all :P
Kuan Hsu wrote:(3)
About hide the tab bar, I think I will keep it, sorry...
Heh is ok.

By other side, I wonder if you can explain a bit how setup D + IUP + all necessary to compile poseidonFB.
I would like to try to modify the interface a bit and play a bit with the source code of poseidonFB. Maybe it's a good way to help too :)

Thanks for everything you have done with poseidonFB so far :)
Never show H-scroller?
Image

Build poseidonFB need several tools:
(1)Download DMD1076Tango_win.7z, the archive contain IUPr4353 libs( older than 3.23 ), if we use this we can skip (2),(3)
(2)Download IUP 3.23, goto https://sourceforge.net/projects/iup/fi ... p/download
(3)Download coffimplib tool, the document at http://www.digitalmars.com/ctg/coffimplib.html, convert iup.lib and iup_scintilla.lib to OMF format.
(4)Download poseidonFB sources, goto https://bitbucket.org/KuanHsu/poseidonfb/downloads/ and select "Download repository".
(5)Download poseidonD IDE.
(6)Open the poseidonD IDE, setup the DMD path, load poseidonFB project, change the project libs path where the OMF libs are, Build project~~

The operation of poseidonD just like poseidonFB and easy to use, it be created to coding poseidonFB instead of old poseidon IDE, it had Windows and Linux version, the D language had already many IDEs but I stiil like the poseidon series....( because it designed for my need..^^ )
dixiony
Posts: 38
Joined: Jun 22, 2017 15:21
Location: Volgograd, Russia

Re: FreeBasic IDE-poseidonFB(Update 2017.11.18)

Post by dixiony »

Updated Russian localization file.

https://drive.google.com/open?id=1HEcVN ... 7tSY_NDUbd

Please add the following (like Notepad++):
1. Selection of text in a rectangular block - Alt + LeftClick + Drag.
2. Selecting all the text between the parentheses (or other pairs of characters) - Ctrl + DoubleClick.
c-sanchez
Posts: 145
Joined: Dec 06, 2012 0:38

Re: FreeBasic IDE-poseidonFB(Update 2017.11.18)

Post by c-sanchez »

Never show H-scroller?
is showed, but is weird how works.
is showed just after certain amount characters on editor, ie is not based in characters + windows size.
also once horizontal scroll bar is showed, is not hidden, even if editor window is empty :S
https://s6.postimg.org/kn1276ykh/demo_h ... c1a1s0.gif
https://s6.postimg.org/xef8dp0mp/demo_a ... 4x8q8x.gif

thanks by instructions to build poseidonFB!! :D
I wonder now where is located the sizes, positions of windows/buttons.
by example if I want modify the design of Find/Replace Window?
SimpliJess
Posts: 2
Joined: Nov 17, 2017 10:51

Re: FreeBasic IDE-poseidonFB(Update 2017.11.18)

Post by SimpliJess »

Oh snap @dixiony,thanks alot for this https://drive.google.com/open?id=1HEcVN ... 7tSY_NDUbd This is what I needed!
Thank you guys for additional information. Very useful.
Cheer!
dixiony
Posts: 38
Joined: Jun 22, 2017 15:21
Location: Volgograd, Russia

Re: FreeBasic IDE-poseidonFB(Update 2017.11.18)

Post by dixiony »

Add, please, the choice of the encoding when saving the file, because When you start a file with dialog boxes displayed, Russian letters are displayed as unreadable characters. And also setting the encoding for a quick start.

Code: Select all

#INCLUDE "windows.bi"
MessageBox(0, @"Это первая функция Api,которую мы с вами вызвали", @"Сообщение",0)
Image
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2017.11.18)

Post by Kuan Hsu »

dixiony wrote:Updated Russian localization file.

https://drive.google.com/open?id=1HEcVN ... 7tSY_NDUbd

Please add the following (like Notepad++):
1. Selection of text in a rectangular block - Alt + LeftClick + Drag.
2. Selecting all the text between the parentheses (or other pairs of characters) - Ctrl + DoubleClick.
Thank to your Russian localization file..^^
1. Done at rev0.334
2. Done at rev0.334, but using Ctrl + Middle-Click
dixiony wrote:Add, please, the choice of the encoding when saving the file, because When you start a file with dialog boxes displayed, Russian letters are displayed as unreadable characters. And also setting the encoding for a quick start.

Code: Select all

#INCLUDE "windows.bi"
MessageBox(0, @"Это первая функция Api,которую мы с вами вызвали", @"Сообщение",0)
Image
The choice of the encoding when saving the file / Quick Run had done before, in your code, please use 'W':

Code: Select all

#INCLUDE "windows.bi"
MessageBoxW(0, @"Это первая функция Api,которую мы с вами вызвали", @"Сообщение",0)
Image
Last edited by Kuan Hsu on Nov 21, 2017 18:25, edited 2 times in total.
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2017.11.18)

Post by Kuan Hsu »

c-sanchez wrote:
Never show H-scroller?
is showed, but is weird how works.
is showed just after certain amount characters on editor, ie is not based in characters + windows size.
also once horizontal scroll bar is showed, is not hidden, even if editor window is empty :S
https://s6.postimg.org/kn1276ykh/demo_h ... c1a1s0.gif
https://s6.postimg.org/xef8dp0mp/demo_a ... 4x8q8x.gif

thanks by instructions to build poseidonFB!! :D
I wonder now where is located the sizes, positions of windows/buttons.
by example if I want modify the design of Find/Replace Window?
(1) Please recheck rev0.334
(2) dialogs/searchDlg.d( class CSearchDialog ) and dialogs/findFilesDlg.d( class CFindInFilesDialog ), both classes are inherit from CBaseDialog class and they have their own member function createLayout()
AWPStar
Posts: 47
Joined: May 03, 2009 21:47

Re: FreeBasic IDE-poseidonFB(Update 2017.11.22)

Post by AWPStar »

Hi!

If i have a UDT array in inclusion, i can not get autocompletion.

user.bas

Code: Select all

type user_t
	name as string
	ip as ULong
	port as UShort
	rev as long
end type

dim shared usr() as user_t
dim shared usr_count as long
main

Code: Select all

#include "user.bas"
usr(0).[Nothing happens]
Is it parser issue?

My settings(editorSettings.ini)
Post Reply