Author |
Topic: "nice to have" custom icon for NOTICE (Read 254 times) |
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: "nice to have" custom icon for NOTIC
« Reply #1 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.
|
|
Logged
|
|
|
|
Alincon
Full Member
member is offline
Posts: 147
|
|
Re: "nice to have" custom icon for NOTIC
« Reply #2 on: Jul 21st, 2017, 2:36pm » |
|
I would find it nice to have Code: produce x$ = White
This would be especially 'nice' when using several 'notice' commands
r.m.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: "nice to have" custom icon for NOTIC
« Reply #3 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.
|
|
Logged
|
|
|
|
tsh73
Full Member
member is offline
Gender:
Posts: 210
|
|
Re: "nice to have" custom icon for NOTIC
« Reply #4 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
|
|
Logged
|
|
|
|
Alincon
Full Member
member is offline
Posts: 147
|
|
Re: "nice to have" custom icon for NOTIC
« Reply #5 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.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: "nice to have" custom icon for NOTIC
« Reply #6 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.
|
|
Logged
|
|
|
|
|