Toast vs desktop alert : I wanted only...

Post Reply
User avatar
Silvio.Falconi
Posts: 7164
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Toast vs desktop alert : I wanted only...

Post by Silvio.Falconi »

I saw that someone made a confusion of concept

the Desktop Alerts component to display alerts as these, we can see it on windows 10 or another system with cristobal toast class

Image


the Toast notification is a message that appears on the surface of the specified parent control for a short period of time, but it does not take focus (or pause the current activity), so it cannot accept any user input.
Notification are always displayed in context, meaning that they pop up on the surface of the specified Form or Control.
Notification only fills the amount of space required for the message and the user's current activity remains visible and interactive. The notification automatically fades in and out after specified time interval

sample
the toast notification
Image

is inserted on a dialog as

Image


That said, the fivewin toast class ( Critobal made) instead creates something that could be related to the desktop component and not the toast component

I tried to explain to someone even lately what I wanted to do: I wanted to display a colored toast inside a dialog and to make it dissolve.
Cristobal told me to use his toast class without success ( viewtopic.php?f=3&t=35648&p=212397#p212327)
because the test create before the toast and then the dialog

Perhaps now I explain the problem someone can understand how resolve my problem to insert colored notifications into a normal dialog and dissolve it

I wish a command as : MsgToast(nRow,nCol,cText,nTime,nColor)

How I can create it ?

I thinked I can use My PaintTitle class you can found on my github ( made on 2008 with our friend Stephan haupt) with the add of fade But I not understood How make it

Image
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
cnavarro
Posts: 6558
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Toast vs desktop alert : I wanted only...

Post by cnavarro »

Sorry, I do not know if I have understood your problem well

Image

Image
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
Silvio.Falconi
Posts: 7164
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: Toast vs desktop alert : I wanted only...

Post by Silvio.Falconi »

perhaps you corrected it and then not sent me any corrections ?
you use wnd or dialog ?
see the test pls of simpleline
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
cnavarro
Posts: 6558
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Toast vs desktop alert : I wanted only...

Post by cnavarro »

Silvio.Falconi wrote:perhaps you corrected it and then not sent me any corrections ?


Send you?, I do not understand
it's not a bug, it's an added feature
This class is modified at ( modification TToast class 2018-05-23 ), and include in Fwh

Silvio.Falconi wrote:you use wnd or dialog ?

First gif: window
Second gif: panel
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
Silvio.Falconi
Posts: 7164
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: Toast vs desktop alert : I wanted only...

Post by Silvio.Falconi »

K it is all ok
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Post Reply