Advanced Edit Box Exposure for Scripting

Features wanted...
Post Reply
Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Advanced Edit Box Exposure for Scripting

Post by Enternal »

You know how you have those really nice edit boxes that you use to edit things such as Custom Icons, PFAs, and more?
EditBox.png
EditBox.png (128.57 KiB) Viewed 2745 times
It would be very nice if it's possible to use such type of Edit Boxes for scripting as well. These type of edit boxes are perfect for editing lists of any type. The advanced Edit Box even allows you to edit stuff just as text (Editor Mode F6) so I think it would be amazing! It would be very useful for the script I have been working on, it allows the user to edit the list content but only through a text box and that becomes kind of annoying and a bit clunky to use.

Boring and Clunky for Lists Editing?
TextBox.png
TextBox.png (41.78 KiB) Viewed 2745 times
What do you think?

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Advanced Edit Box Exposure for Scripting

Post by SkyFrontier »

So you're proposing such box as an input box, right?
Yes, it could be useful. Specially because it could provide a way to provide visual interaction using icons.

For writing scripts, I'm really missing a CTRL+F (find) function and a copy button. But each time I think about it, considering all of the stuff I already produced without such features, it may turn out to be a frustration if/when they find their way thru the GUI.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Advanced Edit Box Exposure for Scripting

Post by Enternal »

SkyFrontier wrote:So you're proposing such box as an input box, right?
Yes, it could be useful. Specially because it could provide a way to provide visual interaction using icons.

For writing scripts, I'm really missing a CTRL+F (find) function and a copy button. But each time I think about it, considering all of the stuff I already produced without such features, it may turn out to be a frustration if/when they find their way thru the GUI.
Yeah pretty much!

CTRL+F? You mean the Command ID #260? That's what I used to get the Ctrl+F dialog to pop up. But with new functions and tools, there's always frustration that comes with it. But sometimes it's worth it :whistle:

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Advanced Edit Box Exposure for Scripting

Post by SkyFrontier »

CTRL+F like in notepad. I really miss a way to locate a string when XYscripting. Yes, I do my best to code outside, but then it's a pain switching back and forth as in XY I can immediately preview/debug what the script is doing. When things get hard, a "copy" button would allow copying the whole script without having to select all code - and lose the line I was working at. So they are complimentary.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Advanced Edit Box Exposure for Scripting

Post by Enternal »

SkyFrontier wrote:CTRL+F like in notepad. I really miss a way to locate a string when XYscripting. Yes, I do my best to code outside, but then it's a pain switching back and forth as in XY I can immediately preview/debug what the script is doing. When things get hard, a "copy" button would allow copying the whole script without having to select all code - and lose the line I was working at. So they are complimentary.
Oh! I see. Yeah that will be very useful. I generally gave up trying to code inside XYplorer and just rely on Notepad2-mod. Mainly because I miss the ability to double click a word and Notepad2-mod (and various other programming text editors) will correctly highlight that word only. The text editor in XYplorer is very "stupid" in that regard but that's because of how simple it is. For example:
[+|"VLC Media Player" ] The brackets show the actual content which includes the extra space at the end.
In XYplorer coding, when I double click "Player", it will end up selecting ["Player" ] or selecting VLC will select [+|"VLC ]. It's maddening :evil:
With text editors, selecting "VLC" will get you [VLC] while "Player" will get you [Player] as expected.

And a yes a copy button would be very useful too!

admin
Site Admin
Posts: 65017
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Advanced Edit Box Exposure for Scripting

Post by admin »

Isn't SC inputselect() pretty close?

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Advanced Edit Box Exposure for Scripting

Post by Enternal »

admin wrote:Isn't SC inputselect() pretty close?
Not quite if you planning on allowing the user to edit the list like add new items, edit the items, browse to a different item, and so forth.

admin
Site Admin
Posts: 65017
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Advanced Edit Box Exposure for Scripting

Post by admin »

Well, ok. But the window you mean is totally specialized to List Management. I cannot open it to scripting.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Advanced Edit Box Exposure for Scripting

Post by bdeshi »

Perhaps you can add a tweak to make the single line script boxes always show up as multi-line. Save clicks on the edit button = slightly longer mouse button life
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 65017
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Advanced Edit Box Exposure for Scripting

Post by admin »

Which single line script boxes?

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Advanced Edit Box Exposure for Scripting

Post by bdeshi »

Single-line boxes like these:
scriptboxconcatenate.png
scriptboxconcatenate.png (17.22 KiB) Viewed 2616 times
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 65017
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Advanced Edit Box Exposure for Scripting

Post by admin »

Aah, these ones. No, sorry (again!), not possible (again!).

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Advanced Edit Box Exposure for Scripting

Post by bdeshi »

:x :blackstorm: :x Oh well.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Advanced Edit Box Exposure for Scripting

Post by Enternal »

Ah I see. That's too bad... :om:

Post Reply