Trackbar problem
Posted: Sun Dec 14, 2008 10:27 pm
I am using trackbar for scaling graph. I have trackbar for X axe and for Y axe. I have checkbox here for ratio.
Code: Select all
hodnotax = GetGadgetState(#trackbar_0)
hodnotay = GetGadgetState(#trackbar_1)
If hodnotax <> zvetsenix
zvetsenix = hodnotax
If pomer = 1
SetGadgetState(#trackbar_1, hodnotay)
EndIf
Aktualizuj_graf()
EndIf
If hodnotay <> zvetseniy
zvetseniy = hodnotay
If pomer = 1
SetGadgetState(#trackbar_0, hodnotax)
EndIf
Aktualizuj_graf()
EndIf [quote]
So, when I change value at trackbar 1, It should change trackbar 2 automaticly. Of course, it doesnt work, only with constants.[/quote]