Page 2 of 3

Re: Combo-box enhanced input field

Posted: 21 Jul 2021 17:52
by Horst
eil wrote: 21 Jul 2021 15:24 +1 i'd wish ico, png, exe could be supported as icons for anything all over XY. :roll:
++1

Re: Combo-box enhanced input field

Posted: 21 Jul 2021 21:33
by mazot
+1 from me .
From the moment that png , jpg was introduced I have loved the idea of using aforementioned instead of ico.
Even though I personally think it is lazy. (I have used it once)There are a couple of progs ,(including portable), that will easily
convert and resize from aforementioned to ico.

Re: Combo-box enhanced input field

Posted: 22 Jul 2021 09:51
by admin
eil wrote: 21 Jul 2021 15:24 +1 i'd wish ico, png, exe could be supported as icons for anything all over XY. :roll:
All over? Which places would that be exactly?

Re: Combo-box enhanced input field

Posted: 23 Jul 2021 13:08
by admin
highend wrote: 21 Jul 2021 13:40 [icon] is nice but it would be a lot nicer if it'd support files as well (png, ico, exe)... :mrgreen:
Next beta. 8)

Re: Combo-box enhanced input field

Posted: 23 Jul 2021 14:47
by highend
Thanks but one thing is still missing: XY internal icons :titter:

E.g.: 8:=":sync"

Re: Combo-box enhanced input field

Posted: 23 Jul 2021 14:57
by admin
Drop the ":" and you're there. :)

Re: Combo-box enhanced input field

Posted: 23 Jul 2021 15:05
by admin
Well, it would probably be more consistent to require a ":" here, right?

Re: Combo-box enhanced input field

Posted: 23 Jul 2021 15:13
by highend
In all other places internal icons are prefixed with ":"...

Re: Combo-box enhanced input field

Posted: 23 Jul 2021 15:24
by admin
Next beta...

Re: Combo-box enhanced input field

Posted: 24 Jul 2021 00:04
by jupe
@Don: I just wanted to confirm a couple things, historically input "topic" text was left aligned, now it is always indented the width of the icon, even when not using the icon param, is that correct? It leaves a little less room for text, and the alignment looks strange. Also the icon doesn't apply to multiline input, correct?

eg. input('<<< Gap here', '^^^ This doesn''t align');

Also the icons are now missing from all your internal dialogs, eg. Quicksearch (F3), I assume because of the colon prefix now being required.

Re: Combo-box enhanced input field

Posted: 24 Jul 2021 08:47
by admin
:bug: & :bug:
Fixes coming.

Re: Combo-box enhanced input field

Posted: 24 Jul 2021 19:49
by eil
admin wrote: 22 Jul 2021 09:51 All over? Which places would that be exactly?
basically i meant anywhere where ico files can be used, like say:
-Tabs icons via Rename
-scripting commands like: inputselect(), popupmenu(), seticons()
-Custom File Icons
-Catalog :tup:

Re: Combo-box enhanced input field

Posted: 24 Jul 2021 20:13
by highend
I'd love to see working icon support for scripts in the hamburger menu...
Especially because it refers to the description / syntax of popupmenu / popupnested

Code: Select all

::Caption for a script;e "Hello";:sync
Executes the e correctly but doesn't show the chosen icon but interprets the third field as another script command (and shows a standard icon like it is done in CFAs)

I know this is a bit tricky because the field separator is a ";" but this could always be circumvented by just using a load "<script>"; command (when you need more than one script command) in the second field/position

So if you could add a tweak to allow this kind of behavior would make me a happy... camper :party:

Re: Combo-box enhanced input field

Posted: 25 Jul 2021 13:33
by admin
eil wrote: 24 Jul 2021 19:49
admin wrote: 22 Jul 2021 09:51 All over? Which places would that be exactly?
basically i meant anywhere where ico files can be used, like say:
-Tabs icons via Rename
-scripting commands like: inputselect(), popupmenu(), seticons()
-Custom File Icons
-Catalog :tup:
- Tabs icons via Rename :tup:
- inputselect() :tup:

It's not really applicable to popupmenu(), seticons() and Custom File Icons. Too slow or too much effort.

Re: Combo-box enhanced input field

Posted: 25 Jul 2021 16:59
by admin
highend wrote: 24 Jul 2021 20:13 I'd love to see working icon support for scripts in the hamburger menu...
Especially because it refers to the description / syntax of popupmenu / popupnested

Code: Select all

::Caption for a script;e "Hello";:sync
Executes the e correctly but doesn't show the chosen icon but interprets the third field as another script command (and shows a standard icon like it is done in CFAs)

I know this is a bit tricky because the field separator is a ";" but this could always be circumvented by just using a load "<script>"; command (when you need more than one script command) in the second field/position

So if you could add a tweak to allow this kind of behavior would make me a happy... camper :party:
I came up with this solution:

Code: Select all

    + SC popupmenu/popupnested enhanced: Experimentally now you can add custom 
      icons to script items in your scripted menu, 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'");