Antonio -> toast()

Antonio -> toast()

Postby byte-one » Wed Dec 14, 2016 1:50 pm

Is it required to check the winversion if i use toast()?
Thanks.
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Antonio -> toast()

Postby Antonio Linares » Wed Dec 14, 2016 5:45 pm

Günther,

yes.

You have to check the Windows version to check if you are using Windows 10 before using them.

You may use FWH function IsWindows10()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41858
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Antonio -> toast()

Postby byte-one » Wed Dec 14, 2016 9:36 pm

Antonio, should toast() the check to >win10 make inside?
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Antonio -> toast()

Postby Antonio Linares » Wed Dec 14, 2016 11:09 pm

In some cases, you may want to show an alternative "popup message" if Windows 10
is not being used.

Thats why I think that the Windows 10 check should not be done from inside the Toast() function

Also, actually as it is, it may generate an error. I have not tested it if called from a lower Windows version.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41858
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Antonio -> toast()

Postby Antonio Linares » Thu Dec 15, 2016 6:47 am

FWH also provides a class TToast for not Windows 10 and samples\toastest.prg

Thanks to Cristobal for the reminder :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41858
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 39 guests