02-14-2011, 11:49 PM
Im Having Problems with having more then 1 trackbar in 1 dialog, if i make it 18<<16
and do this
--------------------------------------------------------------------------
int i=SendMessage(id(3 hDlg) TBM_GETPOS 0 0)
int e=SendMessage(id(5 hDlg) TBM_GETPOS 0 0)
if i=0;_s="test";_s.setwintext(id(4 hDlg))
if e=0;_s="test1";_s.setwintext(id(6 hDlg))
---------------------------------------------------------------------------
the problem i am having is that it will change the text correctly but it changes the text on both , i only want it to change the text on test not test 1
and when i move trackbar on test 1 only change text on test 1,
really all i need to know is how to make it start at 20 instead of 0-10 start at 20-30
;;
SendMessage id(3 hDlg) TBM_SETRANGE 0 18<<16
SendMessage id(5 hDlg) TBM_SETRANGE 20 10<<16
-----
i cant get it to start the trackbar at 20 instead of 0 << 18 i want it to start at 20 and have only 10 of them please any help
and do this
--------------------------------------------------------------------------
int i=SendMessage(id(3 hDlg) TBM_GETPOS 0 0)
int e=SendMessage(id(5 hDlg) TBM_GETPOS 0 0)
if i=0;_s="test";_s.setwintext(id(4 hDlg))
if e=0;_s="test1";_s.setwintext(id(6 hDlg))
---------------------------------------------------------------------------
the problem i am having is that it will change the text correctly but it changes the text on both , i only want it to change the text on test not test 1
and when i move trackbar on test 1 only change text on test 1,
really all i need to know is how to make it start at 20 instead of 0-10 start at 20-30
;;
SendMessage id(3 hDlg) TBM_SETRANGE 0 18<<16
SendMessage id(5 hDlg) TBM_SETRANGE 20 10<<16
-----
i cant get it to start the trackbar at 20 instead of 0 << 18 i want it to start at 20 and have only 10 of them please any help