FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Antonio -> toast()
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Antonio -> toast()
Posted: Wed Dec 14, 2016 01:50 PM

Is it required to check the winversion if i use toast()?
Thanks.

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Antonio -> toast()
Posted: Wed Dec 14, 2016 05: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
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Antonio -> toast()
Posted: Wed Dec 14, 2016 09:36 PM

Antonio, should toast() the check to >win10 make inside?

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Antonio -> toast()
Posted: 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Antonio -> toast()
Posted: Thu Dec 15, 2016 06: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

Continue the discussion