Green Fuze
April 9th, 2005, 09:03 PM
Hey eveyone!
I'm having this REALLY weird problem with a combobox, and I don't even know where to start and look for the solution!
I have created a clock (with a timer, of course), and a combobox with different GMTs, and by changing the combobox the GMT of the clock changes.
everything works perfectly, but with ONE WEIRD PROBLEM!
everytime "-1" or "-3" are being chosen the combobox changes itself to something else (if it is -3 it turns into -3:30, and if it is -1 it changes to -12),
but the clock does change to the right GMT, only the text in the combobox changes.
that means that the String of the combobox (m_strGMT) is still -3 (or -1), but for some reason the combobox still changes the text inside.
I immidatly suspected the timer UpdateData(FALSE) (for the clock) as the fault for that, and I was right, when I deleted these lines, it did not happen, but the clock of course does not work.
does anyone have any kind of idea how to fix this bug ???
THANKS!!!
I'm having this REALLY weird problem with a combobox, and I don't even know where to start and look for the solution!
I have created a clock (with a timer, of course), and a combobox with different GMTs, and by changing the combobox the GMT of the clock changes.
everything works perfectly, but with ONE WEIRD PROBLEM!
everytime "-1" or "-3" are being chosen the combobox changes itself to something else (if it is -3 it turns into -3:30, and if it is -1 it changes to -12),
but the clock does change to the right GMT, only the text in the combobox changes.
that means that the String of the combobox (m_strGMT) is still -3 (or -1), but for some reason the combobox still changes the text inside.
I immidatly suspected the timer UpdateData(FALSE) (for the clock) as the fault for that, and I was right, when I deleted these lines, it did not happen, but the clock of course does not work.
does anyone have any kind of idea how to fix this bug ???
THANKS!!!