DCPUSHBUTTON blink
DCPUSHBUTTON blink
Hello everyone, is it possible to make a DCPUSHBUTTON blink
Greetings and thanks
Greetings and thanks
Re: DCPUSHBUTTON blink
What do you want to Blink?
The caption?
How?
Cannot change color.
How about lower case to upper case?
The caption?
How?
Cannot change color.
How about lower case to upper case?
The eXpress train is coming - and it has more cars.
Re: DCPUSHBUTTON blink
My intention is to warn the user to press the button
Re: DCPUSHBUTTON blink
I understand your intention. What I don't understand is what you expect the user to see.My intention is to warn the user to press the button
The eXpress train is coming - and it has more cars.
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: DCPUSHBUTTON blink
Perhaps put the Button on a red static (a little bit bigger than the button) and with a timer hide and show the static ?
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: DCPUSHBUTTON blink
Don't put blinking stuff in your apps. This is what we did in the eighties. Maybe colorize the button, put a warning sign (icon) on it, add a MsgBox with a warning if the button is clicked, but don't put blinking stuff in your apps. This is a way to create really, really ugly and outdated applications.
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: DCPUSHBUTTON blink
I just need to notify the user of my application that they have messages to view.
You don't have to blink the button but you do have to warn him with a change of icon or color.
It is possible to do this without consuming a lot of resources.
thanks for your ideas
You don't have to blink the button but you do have to warn him with a change of icon or color.
It is possible to do this without consuming a lot of resources.
thanks for your ideas
Re: DCPUSHBUTTON blink
IMHO, there are only two ways to implement blinking controls: a) The usage of an animated GIF (and an ActiveX-control which is able to show animated GIFs) or b) a separate thread (as Wolfgang mentioned - a timer) that shows and hides whatever needs to blink in a selected time periode, like every tenth of a second.
If we want to notify about something, we use what is called "toast" - this is a flat, borderless dialog box that appears at the bottom of the app window, shows something and vanishes after a click or a period of time. And we created an icon class that shows a circle with a number at the upper or. lower right corner of any icon, no matter where the icon is placed - on a button or somewhere in a dialog. If the "number" iVar of the class object changes and InvalidateRect fires, the circle with the number on it is repainted with the new number. Attached you see a simple sample of that (indicating the number of records that match the actual filter). Mail and messaging systems use that kind of notice to inform about the number of pending messages.
And we change the caption icon of the message box button if new messages arrived. We have a white envelope as a normal caption and an orange envelope for pending messages. Maybe you try something like this. Blinking creates a kind of restlessness in your application. Don't do that.
If we want to notify about something, we use what is called "toast" - this is a flat, borderless dialog box that appears at the bottom of the app window, shows something and vanishes after a click or a period of time. And we created an icon class that shows a circle with a number at the upper or. lower right corner of any icon, no matter where the icon is placed - on a button or somewhere in a dialog. If the "number" iVar of the class object changes and InvalidateRect fires, the circle with the number on it is repainted with the new number. Attached you see a simple sample of that (indicating the number of records that match the actual filter). Mail and messaging systems use that kind of notice to inform about the number of pending messages.
And we change the caption icon of the message box button if new messages arrived. We have a white envelope as a normal caption and an orange envelope for pending messages. Maybe you try something like this. Blinking creates a kind of restlessness in your application. Don't do that.
- Attachments
-
- iconcircle.png (11.04 KiB) Viewed 9429 times
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: DCPUSHBUTTON blink
Roger, I still can't see the attachments !!!
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: DCPUSHBUTTON blink
http://bb.donnay-software.com/donnay/iconcircle.pngRoger, I still can't see the attachments !!!
The eXpress train is coming - and it has more cars.