VisualFBEditor - IDE for FreeBasic

User projects written in or related to FreeBASIC.
Post Reply
Xusinboy Bekchanov
Posts: 880
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

This is all because of the Left operator, I know how to fix it. I'll fix it in Linux in the evening when I'm at home. Is this a new version of the compiler?
robert
Posts: 169
Joined: Aug 06, 2019 18:45

Re: VisualFBEditor - IDE for FreeBasic

Post by robert »

Xusinboy Bekchanov wrote:This is all because of the Left operator, I know how to fix it. I'll fix it in Linux in the evening when I'm at home. Is this a new version of the compiler?
Yes, FreeBASIC 1.0.9 source downloaded today from GitHub and compiled on Linux x64 Fedora 35 Beta
Xusinboy Bekchanov
Posts: 880
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

robert wrote:Hi Xusinboy:

Trying to compile VisualFBEditor on Linux

fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i ../MyFbFramework -d __USE_GTK3
Additionally:
Define should be: -d __USE_GTK3__
robert
Posts: 169
Joined: Aug 06, 2019 18:45

Re: VisualFBEditor - IDE for FreeBasic

Post by robert »

Xusinboy Bekchanov wrote:
robert wrote:Hi Xusinboy:

Trying to compile VisualFBEditor on Linux

fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i ../MyFbFramework -d __USE_GTK3
Additionally:
Define should be: -d __USE_GTK3__
Yes, a problem with bad cut and paste to my original post.

I just downloaded, built and installed FreeBASIC 1.08.1 to the Linux x64 Fedora 35 beta computer and then compiled successfully your editor and framework.

I apologize for not doing this before and submitting a bug report to Github about 1.0.9 but I'm not sure that I could have put together a small example that demonstrates the problem. Thanks for making the bug report post to the FreeBASIC 1.08.1 and 1.09.0 Development thread.
Xusinboy Bekchanov
Posts: 880
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

robert wrote:
Xusinboy Bekchanov wrote:This is all because of the Left operator, I know how to fix it. I'll fix it in Linux in the evening when I'm at home. Is this a new version of the compiler?
Yes, FreeBASIC 1.0.9 source downloaded today from GitHub and compiled on Linux x64 Fedora 35 Beta
Fixed: Compiling with fbc 1.09:
https://github.com/XusinboyBekchanov/Vi ... 0b7b92a516

Fixed: Compiling with fbc 1.09:
https://github.com/XusinboyBekchanov/My ... 48fb603b7e
Andrew Lindsay
Posts: 17
Joined: Jan 08, 2016 20:33

Re: VisualFBEditor - IDE for FreeBasic

Post by Andrew Lindsay »

A couple of questions that I am working on.

1. How do I enable the debugger and use the debugger? Is there a simple tutorial to explain its setup and use?
2. How do I create tab pages for the tab control. I have tried a couple of things but I don't seem to be able to get anything to work.

Best regards
Andrew
Xusinboy Bekchanov
Posts: 880
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Andrew Lindsay wrote: 1. How do I enable the debugger and use the debugger? Is there a simple tutorial to explain its setup and use?
To debug in a 64-bit IDE, you need to additionally specify this command in the parameters (in the panel):
-Wc -gdwarf-2

You also need to turn on Use Debugger and compile.
You can enable breakpoints and run (F5 - launches up to breakpoints, F8 - launches in steps).
Andrew Lindsay wrote: 2. How do I create tab pages for the tab control. I have tried a couple of things but I don't seem to be able to get anything to work.
You must put TabPage on TabControl in the Designer.
Andrew Lindsay
Posts: 17
Joined: Jan 08, 2016 20:33

Re: VisualFBEditor - IDE for FreeBasic

Post by Andrew Lindsay »

Thanks. I’ve tried that, and it seems to work too out one tab page on the tab control, but I couldn’t get a second tab to display.
If I edit the file manually I can add the tab to show when I compile, but the second tab doesn’t show up in the IDE view.
Xusinboy Bekchanov
Posts: 880
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Andrew Lindsay wrote:Thanks. I’ve tried that, and it seems to work too out one tab page on the tab control, but I couldn’t get a second tab to display.
If I edit the file manually I can add the tab to show when I compile, but the second tab doesn’t show up in the IDE view.
The second tab can also be added, only the second tab needs to be added to the top part of the tab control.
Andrew Lindsay
Posts: 17
Joined: Jan 08, 2016 20:33

Re: VisualFBEditor - IDE for FreeBasic

Post by Andrew Lindsay »

OK - I'm not really getting how that works...
I can add the TabControl, which is fine.
Then I click on the TabPage control and draw an area on the TabControl, then the tab pops up on the top let corner, saying 'TabPage1'.
Now, when I click back on the TabPage container/control to add another one, when I try to draw anywhere on the TabControl, nothing happens at best, or my mouse picks up the TabControl and drags that around.
Can I add a suggestion that you be able to click on an existing Tab, which brings up a context menu allowing you to Add or delete a tab page to the TabControl.
I'll upload a video of the actions I'm trying shortly.
Xusinboy Bekchanov
Posts: 880
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Andrew Lindsay wrote:OK - I'm not really getting how that works...
I can add the TabControl, which is fine.
Then I click on the TabPage control and draw an area on the TabControl, then the tab pops up on the top let corner, saying 'TabPage1'.
Now, when I click back on the TabPage container/control to add another one, when I try to draw anywhere on the TabControl, nothing happens at best, or my mouse picks up the TabControl and drags that around.
Can I add a suggestion that you be able to click on an existing Tab, which brings up a context menu allowing you to Add or delete a tab page to the TabControl.
I'll upload a video of the actions I'm trying shortly.
Here is my video:
https://github.com/XusinboyBekchanov/Vi ... -964034218
j8w344c6
Posts: 184
Joined: Oct 25, 2021 10:18

Re: VisualFBEditor - IDE for FreeBasic

Post by j8w344c6 »

I want to build MFF and VFBE on Windows with GTK3 instead of Windows API. What should I do? I already have GTK3.
Xusinboy Bekchanov
Posts: 880
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

j8w344c6 wrote:I want to build MFF and VFBE on Windows with GTK3 instead of Windows API. What should I do? I already have GTK3.
You can compile like this:
fbc.exe" -b "VisualFBEditor.bas" -exx -v -x "../VisualFBEditor32.exe" "VisualFBEditor.rc" -g -d __USE_GTK__ -d __USE_GTK3__ -i "D:\GitHub\VisualFBEditor/./MyFbFramework" -p "D:\FreeBasic\msys2\msys32\mingw32\lib"

fbc.exe" -b "mff.bi" -exx -v -x "../mff32.dll" "mff.rc" -dll -g -d __USE_GTK__ -d __USE_GTK3__ -i "D:\GitHub\VisualFBEditor/./MyFbFramework" -p "D:\FreeBasic\msys2\msys32\mingw32\lib"
j8w344c6
Posts: 184
Joined: Oct 25, 2021 10:18

Re: VisualFBEditor - IDE for FreeBasic

Post by j8w344c6 »

Xusinboy Bekchanov wrote:
j8w344c6 wrote:I want to build MFF and VFBE on Windows with GTK3 instead of Windows API. What should I do? I already have GTK3.
You can compile like this:
fbc.exe" -b "VisualFBEditor.bas" -exx -v -x "../VisualFBEditor32.exe" "VisualFBEditor.rc" -g -d __USE_GTK__ -d __USE_GTK3__ -i "D:\GitHub\VisualFBEditor/./MyFbFramework" -p "D:\FreeBasic\msys2\msys32\mingw32\lib"

fbc.exe" -b "mff.bi" -exx -v -x "../mff32.dll" "mff.rc" -dll -g -d __USE_GTK__ -d __USE_GTK3__ -i "D:\GitHub\VisualFBEditor/./MyFbFramework" -p "D:\FreeBasic\msys2\msys32\mingw32\lib"
Currently it will error as __USE_GTK3__ definition is duplicated. I removed -d __USE_GTK3__ and MFF is built fine. VFBE's build fails at frmMenuEditor.frm(48) error 4: Duplicated definition, BGR.
Xusinboy Bekchanov
Posts: 880
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

j8w344c6 wrote:
Xusinboy Bekchanov wrote:
j8w344c6 wrote:I want to build MFF and VFBE on Windows with GTK3 instead of Windows API. What should I do? I already have GTK3.
You can compile like this:
fbc.exe" -b "VisualFBEditor.bas" -exx -v -x "../VisualFBEditor32.exe" "VisualFBEditor.rc" -g -d __USE_GTK__ -d __USE_GTK3__ -i "D:\GitHub\VisualFBEditor/./MyFbFramework" -p "D:\FreeBasic\msys2\msys32\mingw32\lib"

fbc.exe" -b "mff.bi" -exx -v -x "../mff32.dll" "mff.rc" -dll -g -d __USE_GTK__ -d __USE_GTK3__ -i "D:\GitHub\VisualFBEditor/./MyFbFramework" -p "D:\FreeBasic\msys2\msys32\mingw32\lib"
Currently it will error as __USE_GTK3__ definition is duplicated. I removed -d __USE_GTK3__ and MFF is built fine. VFBE's build fails at frmMenuEditor.frm(48) error 4: Duplicated definition, BGR.
You can download the latest version from github.
Post Reply