mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
LEDCtrl: New LED control by Christian (cb31_fr)
git-svn-id: svn://ultimatepp.org/upp/trunk@2585 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
a5087202de
commit
a9918fcf41
10 changed files with 671 additions and 0 deletions
38
bazaar/TestLEDCtrl/TestLEDCtrl.cpp
Normal file
38
bazaar/TestLEDCtrl/TestLEDCtrl.cpp
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#include "TestLEDCtrl.h"
|
||||
|
||||
|
||||
|
||||
void TestLEDCtrl::TerminerApplication( void )
|
||||
{
|
||||
Close( ) ;
|
||||
}
|
||||
|
||||
|
||||
TestLEDCtrl::TestLEDCtrl()
|
||||
{
|
||||
Sizeable().Zoomable( ) ;
|
||||
|
||||
CtrlLayout(*this, "LED Ctrl tests");
|
||||
WhenClose = THISBACK( TerminerApplication ) ;
|
||||
|
||||
MyLED.SetString("<>@^&~\"{A¨\\'Z`(E#|_R)\"N°Y}=!-+*/0:12.3[45],;?%")
|
||||
.SetLEDSize(3).SetFgLightOnColor(White).SetFgLightOffColor(Blue).SetBgColor(LtBlue);
|
||||
Add( MyLED.SetPosZ(5, 5) ) ;
|
||||
|
||||
MyAnimLed.SetString( "This is one animated message with all known characters !! - 0123456789AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz");
|
||||
MyAnimLed.SetTimer(120).SetMaxCharNumber(20).SetAnimationType(AnimatedLEDCtrl::LED_SLIDING)
|
||||
.SetLEDSize(2).SetFgLightOnColor(Yellow).SetFgLightOffColor(Black);
|
||||
Add( MyAnimLed.SetPosZ(5, 50) ) ;
|
||||
|
||||
MyBlinkLed.SetString( "And a blinking one. Wonderful, isn't it ?");
|
||||
MyBlinkLed.SetTimer(500).SetMaxCharNumber(41).SetAnimationType(AnimatedLEDCtrl::LED_BLINKING)
|
||||
.SetLEDSize(3).SetFgLightOnColor(LtGreen).SetFgLightOffColor(Green);
|
||||
Add( MyBlinkLed.SetPosZ(5, 80) ) ;
|
||||
}
|
||||
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
TestLEDCtrl().Run();
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue