SC inputselect new style to enable inline rename

Features wanted...
Post Reply
jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

SC inputselect new style to enable inline rename

Post by jupe »

Not sure how difficult this would be to implement, but I've thought for a while that it would be useful if inputselect() had an extra style bitfield (or was just always enabled by default) to allow inline rename of the items, currently I find myself calling an inputselect followed by an input multiline to make any required changes, which is an extra step that would be nice to be able to skip.

Just to clarify I don't mean actually perform a rename on the items (if they were files), I just mean rename the content of each inputselect item, for example like is possible in the CFA, CFI, List Management dialogs.

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

Re: SC inputselect new style to enable inline rename

Post by admin »

Sorry, that's not really easy to do. And it's not what inputselect is expected to handle.

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: SC inputselect new style to enable inline rename

Post by jupe »

I only requested it because I thought that feature was an inbuilt part of inputselect since it is used throughout XY in that way, and so you'd be able to enable it for scripting without extensive effort, obviously I was wrong. Anyway thanks for replying.

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

Re: SC inputselect new style to enable inline rename

Post by admin »

jupe wrote: 15 Nov 2021 19:38 I only requested it because I thought that feature was an inbuilt part of inputselect since it is used throughout XY in that way...
Not sure what you mean. I currently can't find a single dialog with a list where you can rename the list items and return a renamed selected item.

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: SC inputselect new style to enable inline rename

Post by jupe »

I wasn't really thinking of using it for 1 selected item, it would be more useful in checkbox selections, the example I used initially was the CFA dialog, where you make the edits you want, eg below is Notepad being "inline renamed" (ie data changed without closing dialog):

2021-11-17_075822.jpg
2021-11-17_075822.jpg (5.48 KiB) Viewed 474 times

granted you don't popup a list of the selected items afterwards, but the list is still saved after editing, so I'd assumed in the scripting version it would just pass on the modified text instead of the original, but like you say that may be difficult to achieve, so I can just stick to my current workaround involving 2 dialogs.

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

Re: SC inputselect new style to enable inline rename

Post by admin »

OK, I see. Still, I think it is not intuitive to allow inputselect to change the choices it offers.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: SC inputselect new style to enable inline rename

Post by highend »

With a flag, why not? It's the users / scriptors choice then...
One of my scripts helped you out? Please donate via Paypal

Post Reply