XusinboyBekchanov / VisualFBEditor

IDE for FreeBasic
Other
169 stars 39 forks source link

Some suggestions for VisualFBEditor #248

Open chunmingwang opened 2 years ago

chunmingwang commented 2 years ago

Recently, I deeply used VisualFBEditor to make a comprehensive application of bass, which feels great! However, compared with Visual Basic, some suggestions for VisualFBEditor are as follows. It would be better if it could be implemented.

  1. The code editor is divided into two areas to facilitate viewing and editing definitions and codes.
  2. After the control editor copies and pastes the control, the property becomes the default value, hoping to retain the style of the control when it is copied.
  3. Control editor edit properties at multiple controls are selected, I want to change the properties for all selected controls.
  4. Tag property in the control cannot be used yet. It is useful sometimes.
  5. Control to add the function of ToolTipText.

baseaudio

XusinboyBekchanov commented 2 years ago

It looks very cool. Did you draw the histogram by hand?

According to point 5, there is a Hint property, do you mean it?

I'll try to do the rest of the points.

chunmingwang commented 2 years ago

Spectrum histogram It's not hand drawn, it's real time audio stream data transfer to bitmap draw to picturebox, the exsample from bass (www.un4seen.com), I coverted it for freebasic.

Thank you for pointing out that Hint is the ToolTipText in Visual Basic

XusinboyBekchanov commented 2 years ago

Added: Ability to change the Controls Tag property in the Properties Window: https://github.com/XusinboyBekchanov/VisualFBEditor/commit/84ee3b54a926eef474f5fe5581027c9a89fb45c4

Added: Object parameter to Dictionary IndexOfKey And ContainsOfKey functions: https://github.com/XusinboyBekchanov/MyFbFramework/commit/f752c524e97c5af92aa13a8d7a56f10623f60112

The Tag property is used a lot in the IDE. There you can save not only text, but also objects.

XusinboyBekchanov commented 2 years ago

Added: Ability to edit properties of selected multiple controls: https://github.com/XusinboyBekchanov/VisualFBEditor/commit/c8c7651e15f4471f991a6246ae4301102b54a759

Added: CountOf function to WStringList: https://github.com/XusinboyBekchanov/MyFbFramework/commit/1855fea8b6242fce8ce47cf6586b1995cbd7a899

XusinboyBekchanov commented 2 years ago

Improved: Copy controls copy all properties: https://github.com/XusinboyBekchanov/VisualFBEditor/commit/49bc0034026291c56168da4b0ecf41cebac25846

retsyo commented 2 years ago

mine: save current VFB layout, windows' size on exit

XusinboyBekchanov commented 2 years ago

mine: save current VFB layout, windows' size on exit

Added: Saving Width, Height and Maximized state of Main Window on exit: https://github.com/XusinboyBekchanov/VisualFBEditor/commit/82b109fcb063a443b970b54313a7e743b30720cd

retsyo commented 2 years ago

more: option to load last opened project/files

XusinboyBekchanov commented 2 years ago

There: image

retsyo commented 2 years ago

yet another: ctrl+mouse wheel to zoom in/out the text font size in editor

XusinboyBekchanov commented 2 years ago

Added: Ctrl + MouseWheel to Edit control: https://github.com/XusinboyBekchanov/VisualFBEditor/commit/d5705e9e90709813c19f0e0ee81be49e5be40e3a

XusinboyBekchanov commented 2 years ago

Improved: The Code editor can be split into two areas: https://github.com/XusinboyBekchanov/VisualFBEditor/commit/babc8a2b9096695364a84ff264816b9284392f1b

chunmingwang commented 2 years ago

Improved: The Code editor can be split into two areas: babc8a2

suggest to improve if the spliter move bottom out of the edit control, then reset the spliter back to top.

DavidIceBird commented 2 years ago

Thanks you. This fuction is good. Now VisualFBEditor ican be split, but relatively rudimentary. I think that different files should be opened in different TAB windows and linkage mechanisms can be established in different windows in the funture.

从 Windows 版邮件https://go.microsoft.com/fwlink/?LinkId=550986发送

发件人: @.> 发送时间: 2022年4月7日 8:26 收件人: @.> 抄送: @.***> 主题: Re: [XusinboyBekchanov/VisualFBEditor] Some suggestions for VisualFBEditor (Issue #248)

Improved: The Code editor can be split into two areas: babc8a2https://github.com/XusinboyBekchanov/VisualFBEditor/commit/babc8a2b9096695364a84ff264816b9284392f1b

suggest to improve if the spliter move bottom out of the edit control, then reset the spliter back to top.

― Reply to this email directly, view it on GitHubhttps://github.com/XusinboyBekchanov/VisualFBEditor/issues/248#issuecomment-1090955331, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGA22NMGLFHEAMQNQJTBPMTVDYTSLANCNFSM5Q5RSEEA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

XusinboyBekchanov commented 2 years ago

suggest to improve if the spliter move bottom out of the edit control, then reset the spliter back to top.

Fixed.

Fixed: If the edit control separator is moved down from the edit control then the separator is moved back to the top: https://github.com/XusinboyBekchanov/VisualFBEditor/commit/898d590fa8c38b4f2fa883fabf8210aff2dff9e9

Thanks you. This fuction is good. Now VisualFBEditor ican be split, but relatively rudimentary. I think that different files should be opened in different TAB >windows and linkage mechanisms can be established in different windows in the funture.

I will try this too.

XusinboyBekchanov commented 2 years ago

Added: Split vertically to Edit control: https://github.com/XusinboyBekchanov/VisualFBEditor/commit/936633f11121b9fd66518b15e2f0aaa133b43086

chunmingwang commented 2 years ago

Suggest to delete following exe files.

\Examples\Chart\Chart Example.exe
\Examples\Grid\Grid Example.bas.exe
\Examples\GridData\frmGridDataTest.exe
\Examples\WebBrowser\WebBrowser Example.exe
\Examples\WebBrowser\WebBrowser1.exe
XusinboyBekchanov commented 2 years ago

Done. Deleted: Exe files from Github: https://github.com/XusinboyBekchanov/VisualFBEditor/commit/75dba61efac69297df22f2477227da4702c21d2e

chunmingwang commented 2 years ago

Add management function to recent tab in frmTemplates.frm Untitled

chunmingwang commented 2 years ago

Add Manifest and Run as adiministrator options for Windows app

Untitled

XusinboyBekchanov commented 2 years ago

Add management function to recent tab in frmTemplates.frm

Added: Add, Change, Remove and Clear buttons to New Project Dialog's Recent files tab: https://github.com/XusinboyBekchanov/VisualFBEditor/commit/4b72272a122c17993c0c8c3de5eb7e65cb6db6c2

XusinboyBekchanov commented 2 years ago

Fixed: Run As Administrator Project Properties option: https://github.com/XusinboyBekchanov/VisualFBEditor/commit/68beefffc9f0c52d22f5aeb43f6f302e0aad6bdb

chunmingwang commented 2 years ago

Has Manifest not been imported yet? When compiling, I see that the following line of the RC file has not changed

Manifest disabled should be:

//1 24 "Manifest.xml"

Manifest enabled should be:

1 24 "Manifest.xml"

XusinboyBekchanov commented 2 years ago

When you compile, then it changes.

chunmingwang commented 2 years ago

How to determine which RC file will changes?

  1. Form code like this
#ifdef __FB_WIN32__
    '#Compile "frmRadio.rc"
#endif

or

#ifdef __FB_WIN32__
    #cmdline "frmRadio.rc"
#endif
  1. Project define RC file as main file

Untitled

XusinboyBekchanov commented 2 years ago

Looks at the main resource file first, then a line in the file (no difference with #cmdline or '#Compile). If the main resource file is specified, no lines are needed in the file.

chunmingwang commented 2 years ago

I used the main resource file, delete all in lines RC codes, change Manifest enabled/disabled, the compile RC files always

1 24 "Manifest.xml"

not present:

//1 24 "Manifest.xml"

Is there anything else I have missing?

chunmingwang commented 2 years ago

Options setting like this

Untitled

XusinboyBekchanov commented 2 years ago

Fixed: Project Properties Manifest option: https://github.com/XusinboyBekchanov/VisualFBEditor/commit/e7bc375b09f65154ebaa3ee6f6f28121af9ead51

XusinboyBekchanov commented 2 years ago

I mistakenly counted only with "./"

chunmingwang commented 2 years ago

Fixed: Project Properties Manifest option: e7bc375

I mistakenly counted only with "./"

Tested and it works!

XusinboyBekchanov commented 2 years ago

Added: Split Up, Split Down, Split Left and Split Right functionality to Tab Page menu: https://github.com/XusinboyBekchanov/VisualFBEditor/commit/6a2444955dba4ef7a2edf774f0030e3fd88a0af7

chunmingwang commented 2 years ago

Split Up, Split Down, Split Left and Split Right functionality

Different files can be edited at the same time. It's great!

Untitled

chunmingwang commented 2 years ago

Add shortcut Ctrl+Y at code editor for copy cursor current line to clipboard and delete current line.

XusinboyBekchanov commented 2 years ago

Ctrl+Y already exists: image

Why combine two actions into one? In which IDE did you see this?

XusinboyBekchanov commented 2 years ago

We can add Ctrl+Shift+X.

chunmingwang commented 2 years ago

Ctrl+Y already exists: image

Why combine two actions into one? In which IDE did you see this?

ctrl+y is in Visual Basic 6.0

chunmingwang commented 2 years ago

We can add Ctrl+Shift+X.

is it posible to change Ctrl+Shift+Z for redo, then using the ctrl+y for copy current line to clipboard and delete current line?

XusinboyBekchanov commented 2 years ago

Added: Cut Current Line to Edit Menu

hustbeef commented 2 years ago

It is better keep the same as vscode. I checked vscode. Undo Ctrl+Z , Redo Ctrl+Y, the custmer can change in setting windows.

chunmingwang commented 2 years ago

It is better keep the same as vscode. I checked vscode. Undo Ctrl+Z , Redo Ctrl+Y, the custmer can change in setting windows.

Thanks!

chunmingwang commented 2 years ago

Folding functions issue found: When the code is folded, the vertical scroll adjustment still keeps the code unfolded staus.

Suggested to Folding functions: 1, Add more code folding functions(if,else,end if;select case,case,end select;for,next;enum,end enum,etc.) 2, Add folding all/unfolding all function

XusinboyBekchanov commented 2 years ago

2, Add folding all/unfolding all function

There is such a function: image

chunmingwang commented 2 years ago

Thanks

2, Add folding all/unfolding all function

There is such a function: image

XusinboyBekchanov commented 2 years ago

Added: Collapsing If, For, Select Case and etc.; Fixed: Vertical Scroll on Code Editor Folding; Added: Collapse and Uncollapse Current, All Procedures menu items.

https://github.com/XusinboyBekchanov/VisualFBEditor/commit/9f8bf954c501a5c3986409db095a1bc77a3eff5e

chunmingwang commented 2 years ago

Thank you for improving so quickly!

hustbeef commented 2 years ago

It is very nice! Now VisualFBEditor is so powefull.

chunmingwang commented 2 years ago

When there are many controls in the form, and the number of lines of code is large, the code editor slows down for example:

\Examples\Bass\frmBass.frm

  1. scrolling up and down
  2. moving cursor
  3. page up and down
XusinboyBekchanov commented 2 years ago

Improved: Speed updating Of Edit Control: https://github.com/XusinboyBekchanov/VisualFBEditor/commit/8adaaa91117b8dac1d790d4f00714a0ac21b1b0b

XusinboyBekchanov commented 2 years ago

For speed, you can still remove these settings: image