| View previous topic :: View next topic |
| Author |
Message |
sawang Newbie
Joined: 06 Mar 2005 Posts: 8
|
Posted: Thu Oct 20, 2005 6:29 pm Post subject: Inifile + Combobox + mouse scroll = error |
|
|
if i focus on combo box,with CLICK style, and each time click event open an INIFILE (inifile open,c:\test.ini) an error will occur. In my code, after open inifile, it read about 20-25 key values.I know this is due to vds didn't have the time to open the inifile while scrolling in the combo box. Therefore, i need a solution on how to prevent the command INIFILE OPEN being executed while scrolling.
[/code] |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Oct 20, 2005 7:54 pm Post subject: |
|
|
You might try waiting for half a second and then checking to make sure the selection is still the same as it was before you waited.
| Code: |
%%sel = @item(COMBO1)
wait 0.5
if @equal(%%sel,@item(COMBO1))
INIFILE OPEN....
end
|
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
sawang Newbie
Joined: 06 Mar 2005 Posts: 8
|
Posted: Fri Oct 21, 2005 10:52 am Post subject: |
|
|
| thanx.that do it. y didnt i think about that? LoL |
|
| Back to top |
|
 |
|