FbEdit

User projects written in or related to FreeBASIC.
dani.user
Posts: 284
Joined: Sep 30, 2006 10:41

Postby dani.user » Dec 17, 2006 11:32

Hello
A small bug I've noticed on the auto complete feature

If i write

Code: Select all

dim string1 as string

Upon pressing a space after string, another list appears from where I can select the type.
SSC
Posts: 319
Joined: May 29, 2005 4:47
Location: Around
Contact:

Postby SSC » Dec 17, 2006 22:56

Here is a couple more things I noticed, keep up the good work though =D

The VB style variable list will not show arrays inside of a type dec. So say i have

Code: Select all

type mytype
  variable_a as integer
  variable_b as integer
  array(1 to 10) as integer
end type
dim new_type as mytype
the variable selection list after typing "new_type." it will show variable_a and variable_b but not the array.

Another thing I noticed, is that having ctrl + y for redo is kinda out of the way, and harder to reach. I think it would speed things up to do ctrl + shift + z. I use undo and redo a lot =)
voodooattack
Posts: 605
Joined: Feb 18, 2006 13:30
Location: Alexandria / Egypt
Contact:

Postby voodooattack » Dec 17, 2006 23:20

amazing improvements, ketilo.. :)

by the way, here's a theme i've created, if you'd like to include it.

http://rafb.net/paste/results/BlP04t11.html

by the way, may i suggest separating the keyword groups for each theme (and still provide the default)?

i think it'll make customizing the IDE more flexible.

keep up the good work :)
Ryan
Posts: 695
Joined: Jun 10, 2005 2:13
Location: Louisville, KY
Contact:

Postby Ryan » Dec 18, 2006 3:25

Speaking of themes... I'd love to try out this project, but the default themes don't really do it for me. I know this is a silly thing, but I love the borland theme from FB IDE... if anyone else ports that, lemme know. ; )

Otherwise I'll do it myself, which isn't a big deal.
voodooattack
Posts: 605
Joined: Feb 18, 2006 13:30
Location: Alexandria / Egypt
Contact:

Postby voodooattack » Dec 18, 2006 5:18

Ryan wrote:Speaking of themes... I'd love to try out this project, but the default themes don't really do it for me. I know this is a silly thing, but I love the borland theme from FB IDE... if anyone else ports that, lemme know. ; )

Otherwise I'll do it myself, which isn't a big deal.


you'll find the one i posted very similar :)
that's the reason i made it anyways ;)
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Postby KetilO » Dec 18, 2006 22:24

Hi all

New upload.

Whats new:
----------
1.0.2.8
o Added Enums and Namespaces properties.
o Added options for brace matching and auto brace.
o Added voodooattacks Breeze theme.
o Fixed parser bug that could duplicate properties.
o Fixed parser bug that omitted arrays in types.
o Fixed code complete bug with dim.

Get it here:
http://www.assembler.ca/radasm/Upload/FbEdit.zip
Or here:
http://www.radasm.com/Upload/FbEdit.zip

KetilO
porfirio
Posts: 154
Joined: Mar 17, 2006 11:54
Location: Portugal

Postby porfirio » Dec 19, 2006 12:13

Good to see the brace matching and auto brace!!

One thing i like very much is the resource import generation (rsrc.bi)
But in some projects i may require it in other i may don't, in some i may have it on \inc folder with other includes, in others i may just not have a \inc folder and just put it on \ folder

So maybe you can move the rsrc.bi options to the project options, so we could put it where we want :)

Also, could you make a sample of creating a TabStrip container, i tried to convert the one from RadFB, but i am a bit lost ( RadFB use that .dlg files ... )
and maybe you could even put it as a template

Between i noticed that you are using the bitmaps arrows i sent on the package, thank you :p
Shocking
Posts: 79
Joined: Nov 14, 2005 19:56

Postby Shocking » Dec 19, 2006 17:15

The latest version of this IDE seems to lock up every time I try to compile a program.
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Postby KetilO » Dec 19, 2006 18:59

Hi Shocking

Did you install latest CVS build of FreeBASIC?
If yo did, check if you have all the binaries in bin\win32 (ld.exe).

KetilO
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Postby KetilO » Dec 19, 2006 19:00

Hi porfirio

Here is a TabStrip template

Code: Select all

FBTabStrip
Tab strip with 2 tabs
[*BEGINPRO*]
[*BEGINDEF*]
[Project]
Version=2
Description=TabStrip
[Make]
Current=1
1=Windows GUI,fbc -s gui -w 1
Recompile=0
Module=Module Build,fbc -c
[*ENDDEF*]
[*BEGINTXT*]
[*PRONAME*].bas
''
'' Dialog Example, by fsw
''
'' compile with:   fbc -s gui FBTabStrip.rc FBTabStrip.bas
''
''

#include once "windows.bi"
#include once "win/commctrl.bi"

#define IDD_DLG0 1000
#define IDC_TAB1 1001
#define IDC_BTN1 1002

#define IDD_TAB1 1100
#define IDD_TAB2 1200

declare function DlgProc(byval hWnd as HWND,byval uMsg as UINT,byval wParam as WPARAM,byval lParam as LPARAM) as integer

dim SHARED hInstance as HINSTANCE

'''
''' Program start
'''

   ''
   '' Create the Dialog
   ''
   hInstance=GetModuleHandle(NULL)
   InitCommonControls
   DialogBoxParam(hInstance,Cast(zstring ptr,IDD_DLG0),NULL,@DlgProc,NULL)
   ''
   '' Program has ended
   ''
   ExitProcess(0)
   end

'''
''' Program end
'''

function Tab1Proc(byval hDlg as HWND,byval uMsg as UINT,byval wParam as WPARAM,byval lParam as LPARAM) as bool

   return FALSE

end function

function Tab2Proc(byval hDlg as HWND,byval uMsg as UINT,byval wParam as WPARAM,byval lParam as LPARAM) as bool

   return FALSE

end function


function DlgProc(byval hDlg as HWND,byval uMsg as UINT,byval wParam as WPARAM,byval lParam as LPARAM) as bool
   dim as long id, event
   dim ts as TCITEM
   dim lpNMHDR as NMHDR PTR
   dim hTab as HWND

   select case uMsg
      case WM_INITDIALOG
         ' Get handle of tabstrip
         hTab=GetDlgItem(hDlg,IDC_TAB1)
         ts.mask=TCIF_TEXT or TCIF_PARAM
         ts.pszText=StrPtr("Tab1")
         ' Create Tab1 child dialog
         ts.lParam=CreateDialogParam(hInstance,Cast(zstring ptr,IDD_TAB1),hTab,@Tab1Proc,0)
         SendMessage(hTab,TCM_INSERTITEM,0,Cast(LPARAM,@ts))
         ts.pszText=StrPtr("Tab2")
         ' Create Tab2 child dialog
         ts.lParam=CreateDialogParam(hInstance,Cast(zstring ptr,IDD_TAB2),hTab,@Tab2Proc,0)
         SendMessage(hTab,TCM_INSERTITEM,1,Cast(LPARAM,@ts))
         '
      case WM_NOTIFY
         lpNMHDR=Cast(NMHDR ptr,lParam)
         if lpNMHDR->code=TCN_SELCHANGING then
            ' Hide the currently selected dialog
            id=SendMessage(lpNMHDR->hwndFrom,TCM_GETCURSEL,0,0)
            ts.mask=TCIF_PARAM
            SendMessage(lpNMHDR->hwndFrom,TCM_GETITEM,id,Cast(LPARAM,@ts))
            ShowWindow(Cast(HWND,ts.lParam),SW_HIDE)
         elseif lpNMHDR->code=TCN_SELCHANGE then
            ' Show the currently selected dialog
            id=SendMessage(lpNMHDR->hwndFrom,TCM_GETCURSEL,0,0)
            ts.mask=TCIF_PARAM
            SendMessage(lpNMHDR->hwndFrom,TCM_GETITEM,id,Cast(LPARAM,@ts))
            ShowWindow(Cast(HWND,ts.lParam),SW_SHOW)
         endif
         '
      case WM_CLOSE
         EndDialog(hDlg, 0)
         '
      case WM_COMMAND
         id=loword(wParam)
         event=hiword(wParam)
         select case id
            case IDC_BTN1
               EndDialog(hDlg, 0)
               '
         end select
         '
      case else
         return FALSE
         '
   end select
   return TRUE

end function
[*ENDTXT*]
[*BEGINTXT*]
[*PRONAME*].rc
#define IDD_DLG0 1000
#define IDC_BTN1 1002
#define IDC_TAB1 1001
IDD_DLG0 DIALOGEX 6,6,248,188
CAPTION "Tabstrip"
FONT 8,"MS Sans Serif",400,0
STYLE 0x10C80880
EXSTYLE 0x00000001
BEGIN
  CONTROL "Exit",IDC_BTN1,"Button",0x50010000,176,166,64,17,0x00000000
  CONTROL "",IDC_TAB1,"SysTabControl32",0x50018000,2,3,244,157,0x00000000
END
#define IDD_TAB1 1100
#define CHK_1 1101
#define EDT_1 1102
IDD_TAB1 DIALOGEX 6,15,200,123
FONT 8,"MS Sans Serif",400,0
STYLE 0x50000000
EXSTYLE 0x00000000
BEGIN
  CONTROL "CheckBox",CHK_1,"Button",0x50010003,14,38,172,9,0x00000000
  CONTROL "",EDT_1,"Edit",0x50010000,14,49,172,13,0x00000200
END
#define IDD_TAB2 1200
#define CHK_2 1201
#define CHK_3 1202
#define EDT_2 1001
#define EDT_3 1002
#define EDT_4 1003
IDD_TAB2 DIALOGEX 6,15,200,123
FONT 8,"MS Sans Serif",400,0
STYLE 0x40000000
EXSTYLE 0x00000000
BEGIN
  CONTROL "CheckBox",CHK_2,"Button",0x50010003,8,24,170,13,0x00000000
  CONTROL "CheckBox",CHK_3,"Button",0x50010003,8,38,170,15,0x00000000
  CONTROL "",EDT_2,"Edit",0x50010000,8,55,174,13,0x00000200
  CONTROL "",EDT_3,"Edit",0x50010000,8,73,174,13,0x00000200
  CONTROL "",EDT_4,"Edit",0x50010000,8,92,174,13,0x00000200
END
[*ENDTXT*]
[*ENDPRO*]


KetilO

Note:
The code formatter on this board changes END to End in the resource script. Change it back before saving the template.
Last edited by KetilO on Dec 20, 2006 12:54, edited 2 times in total.
KaraK
Posts: 72
Joined: Sep 13, 2006 19:01
Location: Argentina

Postby KaraK » Dec 20, 2006 7:13

nice ide i love it , really , very good work , will be good add tooltiphelp with functions like mid() , hex() , etc etc...

btw , here its a vb-like theme for fbide:

Code: Select all

5=BlueFB,16777215,0,10485760,16777215,33587200,0,255,4868682,29041,3158064,12632256,8421504,8388608,8421504,12644592,8388672,14745568,8388608,16744448,16744448,16744448,8421440,16711680,16744448,16744448,16744448,16744448,33521664,285179904,16744448,4227327,16711680,16711680,16711680


edit: a bug founded... if i pass argument -w 1 to the compiler , the ide stills show me the level 1 warnings
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Postby KetilO » Dec 20, 2006 9:27

Hi KaraK

Thanks for the nice theme.

will be good add tooltiphelp with functions like mid() , hex() , etc etc...

Thats easy. Just edit the fbCall.api file and add the functions missing.
If you have the time to complete it it would be great.

if i pass argument -w 1 to the compiler , the ide stills show me the level 1 warnings

This is a bug / change in fbc 0.17

KetilO
wallyfblu
Posts: 69
Joined: May 24, 2006 10:58
Location: ITALY

Postby wallyfblu » Dec 20, 2006 9:37

Hi KetilO, The TabStrip template you've posted have an error in the resource file: 'End' statement instead of 'END' for three times and the rc compiler not recognize it.
porfirio
Posts: 154
Joined: Mar 17, 2006 11:54
Location: Portugal

Postby porfirio » Dec 20, 2006 11:09

KaraK wrote:nice ide i love it , really , very good work , will be good add tooltiphelp with functions like mid() , hex() , etc etc...

btw , here its a vb-like theme for fbide:

Code: Select all

5=BlueFB,16777215,0,10485760,16777215,33587200,0,255,4868682,29041,3158064,12632256,8421504,8388608,8421504,12644592,8388672,14745568,8388608,16744448,16744448,16744448,8421440,16711680,16744448,16744448,16744448,16744448,33521664,285179904,16744448,4227327,16711680,16711680,16711680


edit: a bug founded... if i pass argument -w 1 to the compiler , the ide stills show me the level 1 warnings


I like it very mutch but i hate the
Comments Back
Active Line back

I bet you based on Black Night theme

Code: Select all

5=BlueFB,16777215,0,10485760,16777215,33587200,0,255,12910532,10944511,3158064,12632256,8421504,8388608,8421504,12644592,8388672,14745568,8388608,16744448,16744448,16744448,8421440,16711680,16744448,16744448,16744448,16744448,33521664,285179904,16744448,4227327,16711680,16711680,16711680
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Postby KetilO » Dec 20, 2006 12:51

Hi wallyfblu

The code formatter on this board changed END to End.

KetilO

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 14 guests