News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

moving trackbar with a timer

Started by Alesath, April 13, 2014, 06:31:33 AM

Previous topic - Next topic

Alesath

Hello everybody. Oversimplifying my project, i have to modify the value of a trackbar with a timer (basically a tick will determine a movement of the trackbar) and to output the value of the trackbar on a window. I am familiar with asm, but unfortunately i have no experience whatsoever with windows api and masm. I have only found examples of trackbars in dialog boxes and not in windows and i am not sure how to influence the trackbar without a buddy control. Any help would be appreciated. Thanks a lot!

jj2007

Hello Alesath,

Have a look at http://masm32.com/board/index.php?topic=426.msg2929#msg2929

Welcome to the Forum :icon14:

Alesath

Thank you for your answer, jj2007. I have already seen that topic and I created the trackbar. My problem is with changing the value of the trackbar. I know i should do this with TBM_setpos and getpos, I also know how things should look like: at a tick of the timer, the trackbar value should be incremented with setpos and with getpos i should output the value in a text control. It looks simple and straightforward, but ... the 'newbieness' says its word.

Alesath

#3
Got this done, I will post the solution once it's finished.

EDIT: Here is the program if anybody else needs it (it's part of a bigger project so there are some extra things). However, it lacks the manual scroll function.

Could anybody tell me if there is a way to format the time (an integer basically) to hh:mm:ss? I have seen the GetTimeFormat function, but that needs a specific SYSTEMTIME value to transform.