VisualFBEditor - IDE for FreeBasic

User projects written in or related to FreeBASIC.
Post Reply
paul doe
Moderator
Posts: 1733
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: VisualFBEditor - IDE for FreeBasic

Post by paul doe »

@Tolo68: I moved your posts here as it is more appropriate.
robert
Posts: 169
Joined: Aug 06, 2019 18:45

Re: VisualFBEditor - IDE for FreeBasic

Post by robert »

Hi Xusinboy:

The file name change made here

https://github.com/XusinboyBekchanov/Vi ... 6152b162ae

broke the Linux access to Help.

The name of the file located here

https://github.com/XusinboyBekchanov/Vi ... 0the%20Day

must be "english.tip", all lower case.
Xusinboy Bekchanov
Posts: 789
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

robert wrote: Apr 02, 2022 5:04 must be "english.tip", all lower case.
Hi.
Fixed: Tip of the Day:
https://github.com/XusinboyBekchanov/Vi ... 150a8c127b
Tolo68
Posts: 105
Joined: Mar 30, 2020 18:18
Location: Spain

Re: VisualFBEditor - IDE for FreeBasic

Post by Tolo68 »

Hello to all the forum.

Among all the Visual FreeBasic IDEs I've tried, I think I'll stick with VisualFBEditor.

On Visual Basic 6.0 y Express(Net), and I think that in other IDEs, when we double click inside the Form

https://imgbb.com/Lr2qMvC

the code window opens.

https://ibb.co/SXJVCNJ

But if we want to return to the visual editor again, we go to the project explorer, and by double clicking on the form, (red rectangle from the previous image) we return to the visual design window.

On VisualFBEditor, You have to go to the menu "View -> Form" or "View -> Code and Form"

I think it would be nice to be able to go to the visual editor of the Form, just by double-clicking on the project browser.

https://ibb.co/dBHqbBT

It's just a suggestion....

Then another thing, if I have a project with 2 Forms, for example Form1 (as main) and Form2, how do I open Form2, from Form1 with a button, such as in VB6.

Private Sub Command1_Click() ' ' Button in Form1
Form2.show
End Sub

Thank you very much and greetings to all !!!!!
Last edited by Tolo68 on Apr 03, 2022 15:45, edited 1 time in total.
paul doe
Moderator
Posts: 1733
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: VisualFBEditor - IDE for FreeBasic

Post by paul doe »

Tolo68 wrote: Apr 03, 2022 14:06 ...
Among all the Visual FreeBasic IDEs I've tried, I think I'll stick with VisualFBEditor.
...
That's awesome. So post the suggestions/questions here where they belong, not wherever you feel like it. This is the second time I had to move one of your posts related to VisualFBEditor...
Tolo68
Posts: 105
Joined: Mar 30, 2020 18:18
Location: Spain

Re: VisualFBEditor - IDE for FreeBasic

Post by Tolo68 »

paul doe wrote: Apr 03, 2022 15:44
Tolo68 wrote: Apr 03, 2022 14:06 ...
Among all the Visual FreeBasic IDEs I've tried, I think I'll stick with VisualFBEditor.
...
That's awesome. So post the suggestions/questions here where they belong, not wherever you feel like it. This is the second time I had to move one of your posts related to VisualFBEditor...

Excuse me
is that when I search, VisualFBEditor in the forum enters me here.
could you tell me where I should put them, in which section???
Thank you very much, regards
Xusinboy Bekchanov
Posts: 789
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Tolo68 wrote: Apr 03, 2022 14:06 Hello to all the forum.

Among all the Visual FreeBasic IDEs I've tried, I think I'll stick with VisualFBEditor.

On Visual Basic 6.0 y Express(Net), and I think that in other IDEs, when we double click inside the Form

<a href="https://ibb.co/dBHqbBT"><img src="https://i.ibb.co/cJsHbJB/Visual-FB-Editor.jpg" alt="Visual-FB-Editor" border="0"></a>
<a href="https://ibb.co/SXJVCNJ"><img src="https://i.ibb.co/GvFCS7F/VB-Code-Editor.jpg" alt="VB-Code-Editor" border="0"></a>
<a href="https://ibb.co/Lr2qMvC"><img src="https://i.ibb.co/5kfzd25/VB-Form-Editor.jpg" alt="VB-Form-Editor" border="0"></a>

the code window opens.

Image

But if we want to return to the visual editor again, we go to the project explorer, and by double clicking on the form, we return to the visual design window.

On VisualFBEditor, You have to go to the menu "View -> Form" or "View -> Code and Form"

I think it would be nice to be able to go to the visual editor of the Form, just by double-clicking on the project browser.

Image
It turns out that in Windows XP the combobox at the top of the codes is not displayed. It needs to be corrected. There you can switch between Form/Code view. I will also implement your suggestion.
Tolo68 wrote: Apr 03, 2022 14:06 It's just a suggestion....

Then another thing, if I have a project with 2 Forms, for example Form1 (as main) and Form2, how do I open Form2, from Form1 with a button, such as in VB6.

Private Sub Command1_Click() ' ' Button in Form1
Form2.show
End Sub

Thank you very much and greetings to all !!!!!
So you can run the second form:

Code: Select all

#ifdef __FB_WIN32__
	#cmdline "Form1.rc"
#endif
'#Region "Form"
	#include once "mff/Form.bi"
	#include once "mff/CommandButton.bi"
	
	Using My.Sys.Forms
	
	Type Form1Type Extends Form
		Declare Static Sub CommandButton1_Click_(ByRef Sender As Control)
		Declare Sub CommandButton1_Click(ByRef Sender As Control)
		Declare Constructor
		
		Dim As CommandButton CommandButton1
	End Type
	
	Constructor Form1Type
		' Form1
		With This
			.Name = "Form1"
			.Text = "Form1"
			.SetBounds 0, 0, 350, 300
		End With
		' CommandButton1
		With CommandButton1
			.Name = "CommandButton1"
			.Text = "CommandButton1"
			.TabIndex = 0
			.SetBounds 82, 186, 161, 33
			.Designer = @This
			.OnClick = @CommandButton1_Click_
			.Parent = @This
		End With
	End Constructor
	
	Private Sub Form1Type.CommandButton1_Click_(ByRef Sender As Control)
		*Cast(Form1Type Ptr, Sender.Designer).CommandButton1_Click(Sender)
	End Sub
	
	Dim Shared Form1 As Form1Type
	
	#ifndef _NOT_AUTORUN_FORMS_
		#define _NOT_AUTORUN_FORMS_
		
		Form1.Show
		
		App.Run
	#endif
'#End Region

#include once "Form2.frm"

Private Sub Form1Type.CommandButton1_Click(ByRef Sender As Control)
	Form2.Show
End Sub
paul doe
Moderator
Posts: 1733
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: VisualFBEditor - IDE for FreeBasic

Post by paul doe »

Tolo68 wrote: Apr 03, 2022 15:50 Excuse me, could you tell me where I should put them, in which section???
Here. In this very topic.
Tolo68
Posts: 105
Joined: Mar 30, 2020 18:18
Location: Spain

Re: VisualFBEditor - IDE for FreeBasic

Post by Tolo68 »

Thank you very much Xusinboy !!!!

The only line I was missing was...

#include once "Form2.frm"

....Since I had put the rest, but I was already going crazy, because it gave me an error and I didn't know where it came from.

Every day I like this IDE more, but I have to learn these tricks.
I see that you use the MyFBFramework library, which if I'm not mistaken is from Nastasa Eodor, he has also helped me a lot with codes.
You are cracks !!!! :D :D

I can also run it on linux with Wine, and it works perfectly for me.
And you don't need modern Windows to run it, which is a big plus.

I see that in the SRC folder, there is a .poseidon file, I guess it is, because you must have developed it with the PoseidonFB IDE, which I have also used many times.

Greetings, have a good day!!!!
Xusinboy Bekchanov
Posts: 789
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Tolo68 wrote: Apr 03, 2022 23:17 I can also run it on linux with Wine, and it works perfectly for me.
On Linux, you can also compile without Wine.
Tolo68 wrote: Apr 03, 2022 23:17 I see that in the SRC folder, there is a .poseidon file, I guess it is, because you must have developed it with the PoseidonFB IDE, which I have also used many times.
It's recently added, one user asked for help compiling this IDE with PoseidonFB. I myself always compile my programs with the VisualFBEditor IDE.
Xusinboy Bekchanov
Posts: 789
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Tolo68 wrote: Apr 03, 2022 14:06 On Visual Basic 6.0 y Express(Net), and I think that in other IDEs, when we double click inside the Form

https://imgbb.com/Lr2qMvC

the code window opens.

https://ibb.co/SXJVCNJ

But if we want to return to the visual editor again, we go to the project explorer, and by double clicking on the form, (red rectangle from the previous image) we return to the visual design window.

On VisualFBEditor, You have to go to the menu "View -> Form" or "View -> Code and Form"

I think it would be nice to be able to go to the visual editor of the Form, just by double-clicking on the project browser.

https://ibb.co/dBHqbBT

It's just a suggestion....
Improved: Double-clicking a form in Explorer opens the Visual Designer:
https://github.com/XusinboyBekchanov/Vi ... 2d7786dd23
Tolo68
Posts: 105
Joined: Mar 30, 2020 18:18
Location: Spain

Re: VisualFBEditor - IDE for FreeBasic

Post by Tolo68 »

[/quote]
Improved: Double-clicking a form in Explorer opens the Visual Designer:
https://github.com/XusinboyBekchanov/Vi ... 2d7786dd23
[/quote]

Hello Xusinboy.
Sorry to bother you.

I followed the steps indicated in the link above, save the .bas file, but the double click does not work.
Do I need to compile the IDE or some module??? , or is it enough to make the modification in the .bas and save it ???

Thank you very much!!!!!
Xusinboy Bekchanov
Posts: 789
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Tolo68 wrote: Apr 04, 2022 9:48
Improved: Double-clicking a form in Explorer opens the Visual Designer:
https://github.com/XusinboyBekchanov/Vi ... 2d7786dd23
I followed the steps indicated in the link above, save the .bas file, but the double click does not work.
Do I need to compile the IDE or some module??? , or is it enough to make the modification in the .bas and save it ???
You can download the latest version from github (not yet released version). And compile according to the manual as indicated here: https://github.com/XusinboyBekchanov/Vi ... /Compiling
Tolo68
Posts: 105
Joined: Mar 30, 2020 18:18
Location: Spain

Re: VisualFBEditor - IDE for FreeBasic

Post by Tolo68 »

You can download the latest version from github (not yet released version). And compile according to the manual as indicated here: https://github.com/XusinboyBekchanov/Vi ... /Compiling
[/quote]

Hello XusinBoy!!!

I have followed these steps, and for a moment I was able to compile the IDE, but because of the mff paths and others, it gave me errors.

But at least, I could see in the Project Explorer, that when I clicked on Form1, to toggle between the code window and the visual window, it already worked!!!! :D :D

You are a genious!!!
Anyway, I'll wait for you to upload this version to GitHub, since you have more control over it, and what takes me hours to do, surely you will do in minutes.
At the moment I'm programming with your IDE. :D

Someday when I have time, I'll look at the source code, since I'd like to learn how it works.
By the way, I studied Electronics too, so if you need anything you can ask me, and if I know the subject I'll be happy to help you :)

Well, I wish you a happy day with FreeBasic !!!!!
Xusinboy Bekchanov
Posts: 789
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Tolo68 wrote: Apr 04, 2022 14:03 Anyway, I'll wait for you to upload this version to GitHub, since you have more control over it, and what takes me hours to do, surely you will do in minutes.
Tomorrow I'll see maybe I make another release for you.
Tolo68 wrote: Apr 04, 2022 14:03 Someday when I have time, I'll look at the source code, since I'd like to learn how it works.
This is welcome.
Tolo68 wrote: Apr 04, 2022 14:03 By the way, I studied Electronics too, so if you need anything you can ask me, and if I know the subject I'll be happy to help you :)
Right now I have no interest yet, but thanks for the offer of help.
Post Reply