FbEdit, new IDE for FreeBASIC written in FreeBASIC

User projects written in or related to FreeBASIC.
Post Reply
porfirio
Posts: 154
Joined: Mar 17, 2006 11:54
Location: Portugal

Post by porfirio »

Merick wrote:Is that createpipe windows only? I'm going to want to make this work on both win and linux
FBEdit works great on Wine!! Also, you can compile executables for windows with it ;)
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Post by KetilO »

Yes it's windows apis. Don't know a thing about linux.

KetilO
Merick
Posts: 1038
Joined: May 28, 2007 1:52

Post by Merick »

Guess I'll have to go with my second option then and have FBlua put the errors into a text file which can then be read by my editor, thnx anyway.
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Post by KetilO »

Hi all

FbEdit 1.0.5.7 is uploaded.

Get it here:
http://www.fbedit.freebasic.net/viewtopic.php?f=2&t=231

KetilO
y offs et
Posts: 6
Joined: Sep 04, 2007 9:36
Location: Vernon,BC,Canada

Noob help

Post by y offs et »

You know, I learned qbasic ver.1 about 20 years ago, and for about a year I had coding mania. Then I ran out of projects and stopped. So FreeBasic now is pretty advanced for me.

So, after I moved FreeBasic from the program file directory to the C: directory, FbEdit worked like a charm.

I am in utter awe of how well this works!

---------------------------------
I figure I can be useful. I can do this post as help for the other noobs working their way through the tutorials.

Tutorial#1
First Step
If you choose to rename DialogApp.bas, etc. to resemble the tut screenshot, when you hit GO, the error message will clearly show where you must change the code.
"You can place ..." - see tutorial#2
Second Step
Many icons are .bmp or others. Change it to .ico or it just won't show.
Don't copy/paste the code. Type it. It's educational.
With FB.18 it's even smaller!

Tutorial#2
"Place 2 editboxes..." - In Editbox.rc , on the right, doubleClick IDD_DIALOG

Tutorial#3
Step 2
In your .bi file is an ID defined for idm_file_exit - use that for the ID in the stringtable.

Tutorial#4
Discovered labeling must be logically ordered.

Tutorial#5
no problem

Tutorial#6
It's a zero.
Last edited by y offs et on Oct 16, 2007 3:24, edited 5 times in total.
Merick
Posts: 1038
Joined: May 28, 2007 1:52

Post by Merick »

Is there anyway that you can speed up the find/replace function? With a large file I'm working with - 6k+ lines - it sometimes take up a couple of minutes to search through the whole file

*edit*

Shouldn't the function ... end function blocks be included when using format -> indent ?
y offs et
Posts: 6
Joined: Sep 04, 2007 9:36
Location: Vernon,BC,Canada

Post by y offs et »

Hello KetilO

I've triple checked everything and I think I found a bug in Tutorial#3. Everything is identical, including Tooltip true, and the number 0 as the ID, and I get this error -

Error!
Line 39 of Resource Script (Toolbar.RC):-
Could not evaluate an ID which must be a number:-
idm_file_exit

OBJ file not made

Make done

... and of course, no tooltip messages.

EDIT -
Changing the stringtable ID to 10001 makes it work.

note - Tutorial#4 works perfectly.
note - Tutorial#5 works perfectly.
note - Tutorial#6 works perfectly, if you realize it's a zero.

NOTE - Found a bug. When you change the caption of a static.
Lengthening works properly. Shortening does not bring up the save new dialog.
Last edited by y offs et on Oct 16, 2007 3:28, edited 5 times in total.
Frank Dodd
Posts: 444
Joined: Mar 10, 2006 19:22

Post by Frank Dodd »

Thanks for the release KetilO, it sounds like its worth updating for the bug fixes alone. Great Project!
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Post by KetilO »

Thanks for the feedback.

I will have a closer look at the tutorials.

@Merick
Unless you have a very slow computer or found a bug, find / replace should take less than a second on a 6K lines file. Function / End Function should be included in format / indent.

KetilO
gedumer
Posts: 129
Joined: Sep 15, 2005 16:52

Missing xStyle

Post by gedumer »

The following STYLEs are missing from the xStyle Property in the Resource Editor:

WS_CHILDWINDOW
WS_MAXIMIZEBOX
WS_MINIMIZEBOX
WS_OVERLAPPED
WS_POPUPWINDOW
WS_TILED
WS_TILEDWINDOW

Without these, some of which I need, I have to manually edit the RC file every time I save a project in fbEdit
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Post by KetilO »

Hi gedumer

Those styles are not really needed since they can be set combining other styles.

WS_CHILDWINDOW = WS_CHILD
WS_MAXIMIZEBOX = WS_TABSTOP
WS_MINIMIZEBOX = WS_GROUP
WS_OVERLAPPED = WS_TILED = 0
WS_OVERLAPPEDWINDOW = WS_OVERLAPPED OR WS_CAPTION OR WS_SYSMENU OR WS_THICKFRAME OR WS_MINIMIZEBOX OR WS_MAXIMIZEBOX
WS_TILEDWINDOW = WS_OVERLAPPEDWINDOW
WS_POPUPWINDOW = WS_POPUP OR WS_BORDER OR WS_SYSMENU

KetilO
Aquarius
Posts: 88
Joined: Jun 27, 2005 19:08

Post by Aquarius »

FbEdit is great, but I miss one feature I use very often in other text/code editors: Duplicate Line ( try Ctrl+D in Notepad++ for example )
cha0s
Site Admin
Posts: 5319
Joined: May 27, 2005 6:42
Location: USA
Contact:

Post by cha0s »

home, shift+down, ctrl-insert, shift-insert :P (yeah i'm oldskool)
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Post by KetilO »

Hi Aquarius

Duplicate line added to the AdvEdit addin.

Get it here:
https://fbedit.svn.sourceforge.net/svnr ... dvEdit.dll

KetilO
Aquarius
Posts: 88
Joined: Jun 27, 2005 19:08

Post by Aquarius »

Thanks KetilO! :D it works great

Small bug: if the line you want to duplicate is the last line in the file, the duplicated text is placed in the same line not in the new line.


Also you might want to change shortcut for Dual Pane because it uses Ctrl+D too (or for Duplicate Line, but I think it's more logical to keep Edit menu shortcuts as short as possible so maybe Ctrl+Shift+D for Dual Pane?)
Post Reply