Joined: 27 Jun 2013 Posts: 11 Location: Russian Federation
Posted: Sun Aug 04, 2013 10:23 am Post subject: How to reverse trackbar? control_setReversed(Trackbar, true)
Hello, tell me how to reverse the trackbar?
Code:
function SpeedAttack()
SpeedAttackTrack = trackbar_getPosition(SpeedTrack)
memoryrecord_setValue(memoryrec1, SpeedAttackTrack)
SpeedAttackRead = memoryrecord_getValue(memoryrec1)
SpeedLabel.setCaption("Speed Attack: "..SpeedAttackRead)
end
Form = createForm(true)
SpeedLabel = createLabel(Form)
SpeedTrack = createTrackBar(Form)
SpeedTrack.setLeft(10)
SpeedTrack.setTop(20)
SpeedTrack.setMax(20)
SpeedTrack.setMin(5)
SpeedTrack.setReversed(true) -- [[then there is an error
Error: [string "- Start of code functions ...."]: 22: attempt to call global 'trackbar_setReversed' (a nil value)
]]
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum