Page 1 of 1
Advanced Edit Box Exposure for Scripting
Posted: 24 Mar 2014 02:33
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 (128.57 KiB) Viewed 2760 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 (41.78 KiB) Viewed 2760 times
What do you think?
Re: Advanced Edit Box Exposure for Scripting
Posted: 24 Mar 2014 03:23
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.
Re: Advanced Edit Box Exposure for Scripting
Posted: 24 Mar 2014 04:24
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

Re: Advanced Edit Box Exposure for Scripting
Posted: 24 Mar 2014 16:35
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.
Re: Advanced Edit Box Exposure for Scripting
Posted: 24 Mar 2014 22:21
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

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!
Re: Advanced Edit Box Exposure for Scripting
Posted: 29 Mar 2014 08:41
by admin
Isn't SC inputselect() pretty close?
Re: Advanced Edit Box Exposure for Scripting
Posted: 29 Mar 2014 11:16
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.
Re: Advanced Edit Box Exposure for Scripting
Posted: 29 Mar 2014 11:28
by admin
Well, ok. But the window you mean is totally specialized to List Management. I cannot open it to scripting.
Re: Advanced Edit Box Exposure for Scripting
Posted: 29 Mar 2014 14:02
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
Re: Advanced Edit Box Exposure for Scripting
Posted: 29 Mar 2014 17:06
by admin
Which single line script boxes?
Re: Advanced Edit Box Exposure for Scripting
Posted: 30 Mar 2014 07:41
by bdeshi
Single-line boxes like these:

- scriptboxconcatenate.png (17.22 KiB) Viewed 2631 times
Re: Advanced Edit Box Exposure for Scripting
Posted: 30 Mar 2014 08:53
by admin
Aah, these ones. No, sorry (again!), not possible (again!).
Re: Advanced Edit Box Exposure for Scripting
Posted: 30 Mar 2014 09:54
by bdeshi
Re: Advanced Edit Box Exposure for Scripting
Posted: 30 Mar 2014 10:28
by Enternal
Ah I see. That's too bad...
