#IupGauge Example in Led #Creates a Gauge with 5 control buttons. The first button stops and starts the Gauge. The second one resets the Gauge. The third one reduces its speed. The fourth one increases its speed. The fifth one shows or hides the percentage inside the Gauge. # play image (pause button) img_play = image[0="0 0 0",1="0 0 0",2="BGCOLOR"](22,22, 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2 ,2,2,2,2,2,2,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2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 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 ) inicio = button[IMAGE=img_inicio, PADDING=5x3]("Reset", acao_inicio ) pausa = button[IMAGE=img_play, PADDING=5x3]("Play/Pause",acao_pausa ) acelera = button[TIP="Increment Speed", IMAGE=img_forward, PADDING=5x3]( "Inc Speed", acao_acelera ) freia = button[TIP="Decrement Speed", IMAGE=img_rewind, PADDING=5x3]( "Dec Speed", acao_freia ) gauge_name=GAUGE[VALUE="0.34", EXPAND=horizontal]() comando=HBOX ( pausa, inicio, freia, acelera, button[TIP="Show percent text", IMAGE=img_exibe, PADDING=5x3]( "Show Text", acao_exibe ) ) caixa=VBOX[MARGIN=10x10, GAP=10] ( gauge_name, comando ) dialog_name = DIALOG[TITLE="IupGauge", RESIZE=NO] ( caixa )