DCPUSHBUTTON blink

This forum is for eXpress++ general support.
Post Reply
Message
Author
MIGUELON
Posts: 135
Joined: Wed Feb 10, 2010 10:55 am

DCPUSHBUTTON blink

#1 Post by MIGUELON »

Hello everyone, is it possible to make a DCPUSHBUTTON blink
Greetings and thanks

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCPUSHBUTTON blink

#2 Post by rdonnay »

What do you want to Blink?

The caption?
How?
Cannot change color.

How about lower case to upper case?
The eXpress train is coming - and it has more cars.

MIGUELON
Posts: 135
Joined: Wed Feb 10, 2010 10:55 am

Re: DCPUSHBUTTON blink

#3 Post by MIGUELON »

My intention is to warn the user to press the button

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCPUSHBUTTON blink

#4 Post by rdonnay »

My intention is to warn the user to press the button
I understand your intention. What I don't understand is what you expect the user to see.
The eXpress train is coming - and it has more cars.

Wolfgang Ciriack
Posts: 478
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: DCPUSHBUTTON blink

#5 Post by Wolfgang Ciriack »

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

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: DCPUSHBUTTON blink

#6 Post by Tom »

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."

MIGUELON
Posts: 135
Joined: Wed Feb 10, 2010 10:55 am

Re: DCPUSHBUTTON blink

#7 Post by MIGUELON »

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

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: DCPUSHBUTTON blink

#8 Post by Tom »

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.
Attachments
iconcircle.png
iconcircle.png (11.04 KiB) Viewed 3859 times
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Wolfgang Ciriack
Posts: 478
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: DCPUSHBUTTON blink

#9 Post by Wolfgang Ciriack »

Roger, I still can't see the attachments !!!
_______________________
Best Regards
Wolfgang

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCPUSHBUTTON blink

#10 Post by rdonnay »

Roger, I still can't see the attachments !!!
http://bb.donnay-software.com/donnay/iconcircle.png
The eXpress train is coming - and it has more cars.

Post Reply