Page 1 of 1

Toast vs desktop alert : I wanted only...

Posted: Fri Nov 02, 2018 5:05 pm
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

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

Posted: Fri Nov 02, 2018 6:02 pm
by cnavarro
Sorry, I do not know if I have understood your problem well

Image

Image

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

Posted: Fri Nov 02, 2018 6:08 pm
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

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

Posted: Fri Nov 02, 2018 6:17 pm
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

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

Posted: Fri Nov 02, 2018 7:29 pm
by Silvio.Falconi
K it is all ok