LB Booster
General >> Suggestion Box >> "nice to have" custom icon for NOTICE
http://lbb.conforums.com/index.cgi?board=suggestions&action=display&num=1500622534

"nice to have" custom icon for NOTICE
Post by flotulopex on Jul 21st, 2017, 07:35am

Hi,

I would find it "nice to have" to be able to choose between a few icons for the NOTICE.

I think about:
- question mark
- exclamation
- "i" for information
- "stop"
- "okay"
- ... ( https://www.google.ch/search?q=status+icons&client=firefox-b&source=lnms&tbm=isch&sa=X&ved=0ahUKEwixyo7F7ZnVAhWDJ1AKHeNqDJwQ_AUICigB&biw=1172&bih=903)


Re: "nice to have" custom icon for NOTIC
Post by Richard Russell on Jul 21st, 2017, 08:35am

on Jul 21st, 2017, 07:35am, flotulopex wrote:
I would find it "nice to have" to be able to choose between a few icons for the NOTICE.

I agree that it would be useful, but it's so easy to achieve the same thing using the MessageBox API call that I doubt it is really worth adding:

Code:
    calldll #user32, "MessageBoxA", _NULL as long, "Alternative icon" as ptr, _
        "LB Booster" as ptr, _MB_OK or _MB_ICONSTOP as ulong, ret as long 

Richard.

Re: "nice to have" custom icon for NOTIC
Post by Alincon on Jul 21st, 2017, 2:36pm

I would find it nice to have
Code:
notice x$
 

produce x$ = White

This would be especially 'nice' when using several 'notice' commands

r.m.
Re: "nice to have" custom icon for NOTIC
Post by Richard Russell on Jul 21st, 2017, 3:31pm

on Jul 21st, 2017, 2:36pm, Alincon wrote:
I would find it nice to have 'notice x$' produce x$ = White

Sorry, I don't understand what you mean. Can you give an example?

Richard.
Re: "nice to have" custom icon for NOTIC
Post by tsh73 on Jul 21st, 2017, 5:47pm

Something along this?

Code:
'notice x$
'produce x$ = White

x$ = "White"

call extraNotice "x$"


sub extraNotice var$
    notice var$;"=";eval$(var$)
end sub 

Re: "nice to have" custom icon for NOTIC
Post by Alincon on Jul 22nd, 2017, 2:41pm

tsh73's example is what I was thinking of.
It would also be 'nice' if we could display both string and numeric items with one 'notice' command - like in the 'print' command.

r.m.
Re: "nice to have" custom icon for NOTIC
Post by Richard Russell on Jul 22nd, 2017, 3:35pm

on Jul 22nd, 2017, 2:41pm, Alincon wrote:
tsh73's example is what I was thinking of.

So I presume his solution is acceptable. There's no point building something in that is so easily achievable with a user-defined sub or function, especially as it would result in an unnecessary incompatibility with LB 4.

Quote:
It would also be 'nice' if we could display both string and numeric items with one 'notice' command - like in the 'print' command.

Apart from options like tabbing and columnar output (which don't really apply to a MessageBox) you already can:

Code:
    pi = 4*atn(1)
    notice "The value of PI is ";pi 

Mixing text and numbers in this way is a standard feature of Liberty BASIC.

Richard.