wxLEDButton

If you have a cool piece of software to share, but you are not hosting it officially yet, please dump it in here. If you have code snippets that are useful, please donate!
Post Reply
orbitcowboy
I live to help wx-kind
I live to help wx-kind
Posts: 178
Joined: Mon Jul 23, 2007 9:01 am

wxLEDButton

Post by orbitcowboy » Thu Jul 10, 2008 8:33 am

Hi @all,

i have implemented an LED Button. This is a combination of an LED and a Button, which can show it's state.

Regards

Orbitcowboy
Attachments
LedButtons1.png
LedButtons1.png (3.3 KiB) Viewed 1942 times
wxLEDButton100708.tar.gz
Tested on Ubuntu 8.04 with gcc-4.2.1 and gcc-4.3.0; A makefile is also included.
(10.47 KiB) Downloaded 163 times
wxLEDButton.png
Last edited by orbitcowboy on Thu Jul 10, 2008 11:55 am, edited 4 times in total.

Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg » Thu Jul 10, 2008 9:40 am

The screenshot is a bit poor. Could you repost a screenshot that is in PNG and not truncated? Also, the colors are off so it seems.

Maybe a nice addition could be a blurry glow around the image, that is drawn with the wxClientDC so that it kind of looks like the led is actually glowing on the button.

All but all, it's a nice attempt do you also allow custom led pictures or are they stock images?

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

orbitcowboy
I live to help wx-kind
I live to help wx-kind
Posts: 178
Joined: Mon Jul 23, 2007 9:01 am

Post by orbitcowboy » Thu Jul 10, 2008 11:08 am

Hi Jorg,

first of all, thank you for response. I have replaced the image. It is a bit better, ... :-(.

It's a good idea, to place a blurry glow arround the image! Maybe, if i find some time, i will add this feature.

At the moment, custom picture leds are not allowed. This is also a possible extension.

Regards

Orbitcowboy

Post Reply