InputSelect(), pre-select one line

Features wanted...
Post Reply
PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

InputSelect(), pre-select one line

Post by PeterH »

OK: I have an InputSelect() with style=1024 (+8192 +16384).
I want to pre-select a line by preselectitem, i.e. 10:=xxx.

A line is, for example:

Code: Select all

   $txt = <<<#>>>
....
↓ Delete Hardcpy-file ('$filehcp')                   |°hcpdel
...#>>> ;
(So the filename will be resolved.)
(All special chars seem to work: display is ok, and on select '°hcpdel' is returned.)

I find no way to define operand 10:= to preselect the line.

My hope is to specify 10:='°hcpdel', i.e. the returnvalue for this line, as it's rather easy and unique.

Tried many things - nothing did it :(
(Seems I'm blind now...)

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: InputSelect(), pre-select one line

Post by PeterH »

Thought I had tested that: must be the *complete* line as specified, with Caption, Pipe & Data!
(Good luck I haven't specified the Icon field :roll: )

But I think that makes no sense. When the Data field is unique enough to report what was selected - I think it should be good enough to define what shall be pre-selected.

So please: move this to wishes.

Short and in one:
Cmd inputselect, with style = 1024, operand preselectitem: should only need Data-part of a line to pre-select it.
(I.e. the text entered behind the 1st pipe char, up to the 2nd pipe (Icon) if any.)

If there's no Data it might fall back on Caption - I don't mind.

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: InputSelect(), pre-select one line

Post by PeterH »

Don, did you miss this wish :?:

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

Re: InputSelect(), pre-select one line

Post by admin »

No, but wasn't interested. The pitch wasn't convincing. :)

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: InputSelect(), pre-select one line

Post by PeterH »

:(
But at least a circumvention, i.e. get the (variable) full line, is possible.
(Though not nice.)

Post Reply