Author Topic: Visual improvements to SUBs dialog. (latest git)  (Read 3326 times)

0 Members and 1 Guest are viewing this topic.

Offline RhoSigma

  • QB64 Developer
  • Forum Resident
  • Posts: 565
    • View Profile
Visual improvements to SUBs dialog. (latest git)
« on: February 15, 2021, 04:54:22 am »
@FellippeHeitor, I hope it is not one of the improvements, that the arguments list is cropped after the first SUB/FUNCTION argument. It's essential for quick reference to see the entire arguments list at least as far as the dialog width allows. That's why I've disabled the line count feature from the first day, to rather have more space for the arguments.
My Projects:   https://qb64forum.alephc.xyz/index.php?topic=809
GuiTools - A graphic UI framework (can do multiple UI forms/windows in one program)
Libraries - ImageProcess, StringBuffers (virt. files), MD5/SHA2-Hash, LZW etc.
Bonus - Blankers, QB64/Notepad++ setup pack

Offline RhoSigma

  • QB64 Developer
  • Forum Resident
  • Posts: 565
    • View Profile
Re: Visual improvements to SUBs dialog. (latest git)
« Reply #1 on: February 15, 2021, 06:05:48 am »
After doing more tests it turned out that only those argument lists are cropped which contain an array, eg. SUB BlaBla (x%, y%(), z%), then the list is cropped after the closing parantesis of the array argument, so I suspect a problem with parantesis detection.
My Projects:   https://qb64forum.alephc.xyz/index.php?topic=809
GuiTools - A graphic UI framework (can do multiple UI forms/windows in one program)
Libraries - ImageProcess, StringBuffers (virt. files), MD5/SHA2-Hash, LZW etc.
Bonus - Blankers, QB64/Notepad++ setup pack

FellippeHeitor

  • Guest
Re: Visual improvements to SUBs dialog. (latest git)
« Reply #2 on: February 15, 2021, 06:41:39 am »
Thanks for letting me know. I will check it.

FellippeHeitor

  • Guest
Re: Visual improvements to SUBs dialog. (latest git)
« Reply #3 on: February 15, 2021, 01:16:24 pm »
Fixed!

Offline RhoSigma

  • QB64 Developer
  • Forum Resident
  • Posts: 565
    • View Profile
Re: Visual improvements to SUBs dialog. (latest git)
« Reply #4 on: February 15, 2021, 01:35:04 pm »
Ok @FellippeHeitor, I've seen it already and it works now even with array arguments. Thank You.

But what are the Visual improvements now? - I can't see any real difference, except that the "Line count" column seems to be wider than in its original implementation.

BTW - Is it really required to waste 10 chars for the "Line count" column? - SUBs and FUNCTIONs should have a couple hundred lines at maximum, otherwise the developer should really rethink his program structure.

I would call the column simply "Lines", then it's half the size and can still take upto 99999 lines. The "external" SUBs/FUNCs from DECLARE LIBRARY blocks could just get "n/a" in this column.
My Projects:   https://qb64forum.alephc.xyz/index.php?topic=809
GuiTools - A graphic UI framework (can do multiple UI forms/windows in one program)
Libraries - ImageProcess, StringBuffers (virt. files), MD5/SHA2-Hash, LZW etc.
Bonus - Blankers, QB64/Notepad++ setup pack

FellippeHeitor

  • Guest
Re: Visual improvements to SUBs dialog. (latest git)
« Reply #5 on: February 15, 2021, 01:37:58 pm »
Suggestions noted.

The recent changes refer to having the sub name column be more flexible when the IDE is large enough (previously limited to 20 chars, now can show full 40 char-named procedures if you happen to have them, provided the window is big enough. Also, there was a corner case that would not count lines in a procedure if it contained a DECLARE LIBRARY block.

Offline MasterGy

  • Seasoned Forum Regular
  • Posts: 327
  • people lie, math never lies
    • View Profile
Re: Visual improvements to SUBs dialog. (latest git)
« Reply #6 on: February 15, 2021, 03:06:56 pm »
Hello ! sorry for quoting, but i just want to ask where can i download qb64 1.5.

FellippeHeitor

  • Guest
Re: Visual improvements to SUBs dialog. (latest git)
« Reply #7 on: February 15, 2021, 03:27:02 pm »
Development build available at https://www.qb64.org/portal/development-build/

Offline MasterGy

  • Seasoned Forum Regular
  • Posts: 327
  • people lie, math never lies
    • View Profile
Re: Visual improvements to SUBs dialog. (latest git)
« Reply #8 on: February 15, 2021, 05:26:16 pm »
Thank you very much Felippe, I went to the link!