Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I opened a window thru clicked event ; next click won't work

Status
Not open for further replies.

fmolko

Programmer
Jun 21, 2006
2
FR
Hi everybody,

I've got a datawindow within a "main" window.
Then, I've got another window inherited from the first one ("detail window).

The datawindow in "main window" has a "clicked event" which shall open a "response window" with a message and a button "OK" which closes this response window.

In my application, I open a "detail window".
The trouble is, one time out of two, clicking on the OK button won't work. I put the pointer over the button, click, and then nothing happens. I have to click twice for the clicking to be considered and the window to close.

I tried to use a messagebox instead of my response window. The OK button worked all right, but I still encountered a problem on my next click on the datawindow. One time out of two, clicking did NOT trigger the clicked event, though it did something since the line I clicked on became highlighted. I also noticed that before clicking, I could slide the mouse pointer over a zone where it should change without it actually changing. Last of all, if I tried to scroll my datawindow down, it did not work, but instead it selected the rows of my datawindow which were behind the scroll bar, as if the scroll bar didn't exist at all and I was clicking in the datawindow.

(These problems also occur with the response window, but I cannot manage to find the pattern behind them)

Does anyone know where this problem may come from, and how to solve it?
Thanks for your help.
 
Have you set the OK button as the default on the response window?

Matt

"Nature forges everything on the anvil of time
 
Yes, I have. Note that if I use the "Return (or Enter) key", the button acts as if it were clicked every time without any problem.

It just looks like my mouse pointer becomes "inactive" in PB.
I tried a little experiment too: when my response window pops up, I switch to another application (using alt+tab), e.g. firefox, and then minimize it in order to get back to PB. I noticed that this way, clicking always worked.

By the way, I forgot to say I'm running PB 6.5.1.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top