Go to Post If you use a flux capacitor make certain it is a COTS component, or that you fabricate it from COTS materials. - Richard Wallace [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 24-01-2012, 21:29
Ipiano's Avatar
Ipiano Ipiano is offline
Registered User
AKA: Andrew Stelter
FRC #3018 (Nordic Storm)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Mankato, Minnesota
Posts: 27
Ipiano is an unknown quantity at this point
Trouble with custom SmartDashboard Widgets

I decided to create some of my own widgets for the SmartDashboard and have been only somewhat successfull. So far, I have taken the source code for the Dashboard and edited the code for the ProgressBar in a new project. As of now the bar works exactly the same except that it also displays the value superimposed over the bar. However, I'm using it for values that range from -1 to 1. Instead of having the bar half full when it is at 0 value, I want it empty at 0 value, full for 1 or -1 values, and in-between for corresponding values. I think I can get that done. BUT, I also want it to change color to indicate if the value is negative or positive(green for positive, red for negative) hoever I am unable to find a way to override the nimbus configuration and change to color at all. Everything I have tried so far has either caused the bar to disappear or not change at all. Please Help!
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:24.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi