Page 3 of 3
Re: Combo-box enhanced input field
Posted: 25 Jul 2021 22:16
by eil
admin wrote: ↑25 Jul 2021 16:59
It's not really applicable to popupmenu(), seticons() and Custom File Icons. Too slow or too much effort.
that's sad, but understandable.
admin wrote: ↑25 Jul 2021 16:59
I came up with this solution:
quite an inventive decision, don't even know how to put that circle..

Re: Combo-box enhanced input field
Posted: 25 Jul 2021 23:02
by PeterH
Hm - in german it's just the key left of "1" :-)
Edit: the "1" is the digit "one"!
Re: Combo-box enhanced input field
Posted: 26 Jul 2021 00:56
by klownboy
That symbol ° isn't as "readily" assessible on a US keyboard, but you can get it by holding alt and hitting 248 on the numeric keypad or use Window's Character Map - (U+00B0 - degree sign).
Re: Combo-box enhanced input field
Posted: 26 Jul 2021 08:59
by jupe
Using 22.10.0007, quicksearch/findfiles (maybe others) internal icons display like this for me, also I wanted to confirm the new icon param doesn't apply to multiline input, is that correct?
Re: Combo-box enhanced input field
Posted: 26 Jul 2021 21:58
by admin
jupe wrote: ↑26 Jul 2021 08:59
Using 22.10.0007, quicksearch/findfiles (maybe others) internal icons display like this for me, also I wanted to confirm the new icon param doesn't apply to multiline input, is that correct?
The new total icon support involved some fundamental rewriting. It will take some days to fully cover all cases. This one and a couple of others will be fixed in the next beta.
Re: Combo-box enhanced input field
Posted: 27 Jul 2021 08:28
by admin
klownboy wrote: ↑26 Jul 2021 00:56
That symbol ° isn't as "readily" assessible on a US keyboard, but you can get it by holding alt and hitting 248 on the numeric keypad or use Window's Character Map - (U+00B0 - degree sign).
Oh, didn't know that ° isn't as accessible on a US keyboard. I will change it to slash (/) which will do the job just as well. (| is not possible here because it already has another function in this context.)
Re: Combo-box enhanced input field
Posted: 27 Jul 2021 11:11
by highend
Thanks for the new beta, icons for scripts in e.g. the hamburger menu are now working absolute fine. Great enhancement!
Re: Combo-box enhanced input field
Posted: 27 Jul 2021 14:18
by eil
admin wrote: ↑27 Jul 2021 08:28
Oh, didn't know that ° isn't as accessible on a US keyboard. I will change it to slash (/) which will do the job just as well. (| is not possible here because it already has another function in this context.)
I'm sorry to again hijack topic about inputselect, but as most discussions about "more icons" are here, have to ask it here. Got little frustration after last beta, 'cause i thought popupmenu already could use icons for items in menu, just couldn't use png/images as icons... Help file states:
Code: Select all
popupmenu()
Pops a menu and returns the selected item.
Syntax
popupmenu(itemlist, [x=-1], [y=-1], [start=1], [count=-1], [flags=0], [sep_itemlist="|"], [sep_item=";"], [on_cancel=""])
itemlist List of items separated by sep_itemlist.
Each item is made of a Caption and optionally a Data part, an Icon part, and a State part, all parts being separated by sep_item: "Caption;Data;Icon;State"
Caption: Menu caption. Use "-" (no quotes) to specify a menu separator.
Data: Returned when item is clicked. If missing or empty then Caption is returned.
Icon: Supports various sources for icons
Toolbar icons, prefixed by ":", e.g. :paper
Generic file system icons, e.g. *.png
Specific files, e.g. C:\Program Files (x86)\XYplorer\XYplorer.exe
Icon file (defaulting to <xyicons>, e.g. 64_bit.ico
XYplorer native and environment variables, e.g. <xy>
while recent beta log says:
Code: Select all
+ SC popupmenu/popupnested enhanced: Experimentally now you can add custom
icons to script items in your scripted menu, at the second position and
identified by / as icon marker.
That makes 3 possible syntaxes for script items (here assuming sep_item=";"):
::Script (here Script is also used as Caption)
::Caption;Script
::Caption;/Icon;Script
Example:
popupmenu("::Caption for a script;/:sync;e 'Hello'");
that's a planed rewrite of syntax or am i missing smth?
Re: Combo-box enhanced input field
Posted: 27 Jul 2021 14:30
by highend
It allows a different syntax now. An additional one^^
popupmenu() already supported all forms of icons since... years?
Code: Select all
// Caption|Data|Icon|State
$menu = <<<>>>
0||:sync
1||R:\1.png
2||R:\2.jpg
3||R:\3.ico
>>>;
$result = popupmenu($menu, 6:=<crlf>, 7:="|");
1.png
Re: Combo-box enhanced input field
Posted: 27 Jul 2021 20:26
by eil
highend wrote: ↑27 Jul 2021 14:30
popupmenu() already supported all forms of icons since... years?
hm, didn't know that, Help file mentions only ico/exe.
Re: Combo-box enhanced input field
Posted: 27 Jul 2021 20:28
by jupe
Re: Combo-box enhanced input field
Posted: 28 Jul 2021 20:28
by eil
too far in the past to remember, but again i cheched only Help file this time, that's why missed it.

Re: Combo-box enhanced input field
Posted: 28 Jul 2021 20:43
by admin
The help file will be improved.
Re: Combo-box enhanced input field
Posted: 28 Apr 2022 08:22
by jupe
I noticed something I thought I'd bring to your attention, if you reduce the width of SC input, the dropdown appears wider than the input dialog, but conversely if you widen it, it adjusts to the full width. eg.
input(5:=300, 7:='a|b|c|d');
2022-04-20_080237.png
Re: Combo-box enhanced input field
Posted: 28 Apr 2022 11:12
by admin
Yep. Ever since there was a hard-coded minimum width for the dropdown of 400 pixels. I could not see a reason not to reduce it so I changed it to 150 now.