LB Booster
« "nice to have" custom icon for NOTICE »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:28am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: "nice to have" custom icon for NOTICE  (Read 253 times)
flotulopex
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 94
xx "nice to have" custom icon for NOTICE
« Thread started 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)

User IP Logged

Roger
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx 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.
User IP Logged

Alincon
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 147
xx Re: "nice to have" custom icon for NOTIC
« Reply #2 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.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx 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.
User IP Logged

tsh73
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 210
xx 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 
User IP Logged

Alincon
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 147
xx 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.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx 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.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls