XEROF

 

xlsgen 4.5 preview #5 : Traffic lights and gauges




Traffic lights and gauges need not much explanation. They can be programmatically set to reflect levels or states that are part of business decision making.

Contrary to other visual components in xlsgen (vu-meter, sparklines, google charts, geomaps, ...), whole arrays of traffic lights or gauges can be created in the same bounding area, not just one.


NameTypeDescription
SetGreenThresholdinteger or doublevalue below which traffic light signals green. Default value is 0.
SetOrangeThresholdinteger or doublevalue around which traffic light signals orange. Default value is 50.
SetRedThresholdinteger or doublevalue above which traffic light signals red. Default value is 100.
SetVerticalbooleanforce the orientation of the traffic light(s)
SetValueinteger or double (or range of integers or doubles)value itself or range of values.
SetTitlestring (or range of strings)title or range of titles.
ResetValuesNonedeletes current value(s).


Here is how to create traffic lights :



C/C++ code


xlsgen::IXlsEnginePtr engine( __uuidof(xlsgen::CoXlsEngine) );

xlsgen::IXlsWorkbookPtr wbk = engine->New( L"trafficlights.xlsx" );

xlsgen::IXlsWorksheetPtr wksht = wbk->AddWorksheet( L"Sheet1" );

xlsgen::IXlsVisualComponentPtr comp = wksht->NewVisualComponent(L"TrafficLight.ARsTdesign.1",
2,5, // row1, col1
6,8, // row2, col2
0,0,0,0);

// three traffic lights
comp->ParameterByName[L"SetValue"]->Formula = L"={80;50;70}";
comp->ParameterByName[L"SetTitle"]->Formula = L"={\"my title (80)\";\"2nd title\";\"3rd title\"}";

wbk->Close();



Posted on 31-October-2017 07:55 | Category: xlsgen, Excel generator | comment[0] | trackback[0]

 

 

<-- previous page

< October >
0102030405
0607080910
1112131415
1617181920
2122232425
2627282930
31



 

 

This site
Home
Articles

DevTools
CPU-Z
EditPlus
ExplorerXP
Kill.exe
OllyDbg
DependencyWalker
Process Explorer
autoruns.exe
Araxis
COM Trace injection
CodeStats
NetBrute
FileMon/Regmon
BoundsChecker
AQTime profiler
Source monitor
GDI leaks tracking
Rootkit revealer
Rootkit removal
RunAsLimitedUser(1)
RunAsLimitedUser(2)

 

 

Liens
Le Plan B
Un jour à Paris
Meneame
Rezo.net (aggr)
Reseau voltaire
Cuba solidarity project
Le grand soir
L'autre journal
Le courrier suisse
L'Orient, le jour
Agoravox (aggr)