| |
|
|
| Simple skeleton for display of analogen Instrumenten with gedrehtem
Zeigerbild, after a idea of Funkheld from this Topic: [...]
Download external Download
{$cleq}
#include instrument.inc
userMessages wm_close
cls
long myPanel1=create.instrument("bg.jpg","zeiger.png",64,64,0)
long myPanel2=create.instrument("bg.jpg","zeiger.png",128,128,0)
long myPanel3=create.instrument("bg.jpg","zeiger.png",256,256,0)
do{
instrument.setValue(myPanel1,getTickCount*10)
instrument.draw(myPanel1,hWnd,100,100)
//
instrument.setValue(myPanel2,getTickCount*20)
instrument.draw(myPanel2,hWnd,200,100)
//
instrument.setValue(myPanel3,mousex*1000)
instrument.draw(myPanel3,hWnd,400,100)
//
waitinput 20
select %uMessage
caseof wm_close : break
endSelect
}
instrument.destroy(myPanel1)
instrument.destroy(myPanel2)
end
with manchen Gradzahlen is the spending the turned Zeigers not so qualitative - so The spending always qualitative is just whom Zeiger as quadratisches Image take off z.B. with 512x512 Pixeln.
rather So the Zeigerbild from the pkg through this supplant:
|
|
|
| |
|
|