For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > March 2004 > Focus Problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Focus Problem
Alan J. Tepper

2004-03-27, 12:23 am

I've discovered a bug in PB9.0.1 (build 7119)...running in WinXP Pro.
Put two buttons on a window - one opens a second window, the other
button calls the MessageBox function. Click button one to open the
second window, then close that window. After this, any time the
MessageBox function is called, focus is returned to the button that
opened the second window. You will find this is the case if you click
the second button.

This is just an example of how to get the bug to occur. In my case,
I've got a window with a button that opens a secondary window, and a
datawindow that sometimes causes a messagebox to appear. Anytime the
datawindow calls the messagebox function, focus is returned to the
button instead of the datawindow. It is very annoying.

Does anyone know how PB keeps track of what control should have focus
when a window is re-activated? Is there some kind of API for this?
This is driving me bonkers!!

Thanks in advance for any help.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com