Combo-box enhanced input field

Features wanted...
eil
Posts: 1609
Joined: 13 Jan 2011 19:44

Re: Combo-box enhanced input field

Post 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. :ninja:
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.. :mrgreen:
Win 7 SP1 x64 100% 1366x768

PeterH
Posts: 2776
Joined: 21 Nov 2005 20:39
Location: Germany

Re: Combo-box enhanced input field

Post by PeterH »

Hm - in german it's just the key left of "1" :-) :roll:

Edit: the "1" is the digit "one"!
W7(x64) SP1 German
( +WXP SP3 )

klownboy
Posts: 4089
Joined: 28 Feb 2012 19:27

Re: Combo-box enhanced input field

Post 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).
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

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

Re: Combo-box enhanced input field

Post 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?
Attachments
2021-07-26_165902.png
2021-07-26_165902.png (5.29 KiB) Viewed 2220 times

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

Re: Combo-box enhanced input field

Post 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.

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

Re: Combo-box enhanced input field

Post 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.)

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

Re: Combo-box enhanced input field

Post by highend »

Thanks for the new beta, icons for scripts in e.g. the hamburger menu are now working absolute fine. Great enhancement!
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

eil
Posts: 1609
Joined: 13 Jan 2011 19:44

Re: Combo-box enhanced input field

Post 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?
Win 7 SP1 x64 100% 1366x768

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

Re: Combo-box enhanced input field

Post 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
1.png (2.37 KiB) Viewed 2161 times
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

eil
Posts: 1609
Joined: 13 Jan 2011 19:44

Re: Combo-box enhanced input field

Post 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.
Win 7 SP1 x64 100% 1366x768

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

Re: Combo-box enhanced input field

Post by jupe »


eil
Posts: 1609
Joined: 13 Jan 2011 19:44

Re: Combo-box enhanced input field

Post by eil »

jupe wrote: 27 Jul 2021 20:28 viewtopic.php?p=164265#p164265
too far in the past to remember, but again i cheched only Help file this time, that's why missed it. :oops:
Win 7 SP1 x64 100% 1366x768

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

Re: Combo-box enhanced input field

Post by admin »

The help file will be improved.

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

Re: Combo-box enhanced input field

Post 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
2022-04-20_080237.png (2.45 KiB) Viewed 1435 times

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

Re: Combo-box enhanced input field

Post 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.

Post Reply