VisualFBEditor - IDE for FreeBasic
-
- Posts: 880
- Joined: Jul 26, 2018 18:28
Re: VisualFBEditor - IDE for FreeBasic
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?
Re: VisualFBEditor - IDE for FreeBasic
Yes, FreeBASIC 1.0.9 source downloaded today from GitHub and compiled on Linux x64 Fedora 35 BetaXusinboy 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?
-
- Posts: 880
- Joined: Jul 26, 2018 18:28
Re: VisualFBEditor - IDE for FreeBasic
Additionally:robert wrote:Hi Xusinboy:
Trying to compile VisualFBEditor on Linux
fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i ../MyFbFramework -d __USE_GTK3
Define should be: -d __USE_GTK3__
Re: VisualFBEditor - IDE for FreeBasic
Yes, a problem with bad cut and paste to my original post.Xusinboy Bekchanov wrote:Additionally:robert wrote:Hi Xusinboy:
Trying to compile VisualFBEditor on Linux
fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i ../MyFbFramework -d __USE_GTK3
Define should be: -d __USE_GTK3__
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.
-
- Posts: 880
- Joined: Jul 26, 2018 18:28
Re: VisualFBEditor - IDE for FreeBasic
Fixed: Compiling with fbc 1.09:robert wrote:Yes, FreeBASIC 1.0.9 source downloaded today from GitHub and compiled on Linux x64 Fedora 35 BetaXusinboy 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?
https://github.com/XusinboyBekchanov/Vi ... 0b7b92a516
Fixed: Compiling with fbc 1.09:
https://github.com/XusinboyBekchanov/My ... 48fb603b7e
-
- Posts: 17
- Joined: Jan 08, 2016 20:33
Re: VisualFBEditor - IDE for FreeBasic
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
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
-
- Posts: 880
- Joined: Jul 26, 2018 18:28
Re: VisualFBEditor - IDE for FreeBasic
To debug in a 64-bit IDE, you need to additionally specify this command in the parameters (in the panel):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?
-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).
You must put TabPage on TabControl in the Designer.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.
-
- Posts: 17
- Joined: Jan 08, 2016 20:33
Re: VisualFBEditor - IDE for FreeBasic
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.
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.
-
- Posts: 880
- Joined: Jul 26, 2018 18:28
Re: VisualFBEditor - IDE for FreeBasic
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 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.
-
- Posts: 17
- Joined: Jan 08, 2016 20:33
Re: VisualFBEditor - IDE for FreeBasic
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.
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.
-
- Posts: 880
- Joined: Jul 26, 2018 18:28
Re: VisualFBEditor - IDE for FreeBasic
Here is my video: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.
https://github.com/XusinboyBekchanov/Vi ... -964034218
Re: VisualFBEditor - IDE for FreeBasic
I want to build MFF and VFBE on Windows with GTK3 instead of Windows API. What should I do? I already have GTK3.
-
- Posts: 880
- Joined: Jul 26, 2018 18:28
Re: VisualFBEditor - IDE for FreeBasic
You can compile like this: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.
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"
Re: VisualFBEditor - IDE for FreeBasic
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 wrote:You can compile like this: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.
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"
-
- Posts: 880
- Joined: Jul 26, 2018 18:28
Re: VisualFBEditor - IDE for FreeBasic
You can download the latest version from github.j8w344c6 wrote: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 wrote:You can compile like this: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.
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"