Having to click twice..... (OpenInsight 32-Bit)
At 23 MAY 2011 09:11:48PM Karl Pozmann wrote:
I've created small buttons for users to click on to increase or decrease values in an adjacent combobox. A simple click event like this:
Weight=Get_Property(@Window:".WEIGHT",'TEXT')
If Weight # '' and Num(Weight) Then
Weight=Weight + 1Void = Set_Property(@Window:".WEIGHT",'TEXT',Weight)End
Return 0
A weight is initially entered and then you can make it (or at least theoretically) go up by clicking on the button. But, the user has to click twice (double click) to make the weight go up. I've experienced similar issues when trying to do a system close on a window - have to click twice. OI 9.1.2 XP Pro SP3
Can anyone else duplicate this?
At 25 MAY 2011 05:32PM Jared Bratu wrote:
Does the control lose focus after the first click so it requires another click to reset focus?
Is it a true "double click" or just two clicks? The difference is timing. With a double click the action is about two clicks within 500ms of each other on the same location. The alternative is two clicks timed further apart, 2 seconds for instance.
At 27 MAY 2011 12:17PM Paul Marraffa wrote:
OI 9.2.1 WIN7
Your script and description works for me perfect, (No double click)
I would suspect, some other focus/script/event before the click event of the button…ie GotFocus or Lostfocus from the last control.
I can reproduce your issue by changing focus on the lostfocus event of the edit line, and by exiting from the buttons gotfocus event with return 0
At 27 MAY 2011 02:19PM Karl Pozmann wrote:
Thanks for your help guys. For me it takes two clicks whether its slow or not. But now I'll play with it a bit based on your input and see if I can make it work.