Multiple browsers

Timvdw

New Member
I have 4 browsers with 4 different tables on it. When i select a row of a browser I need to give details about that row.

Giving the details is no problem. But how do I know which browser is active? I tried it with "frame-field". It but when I press a button it gives me the name of the button instead of the name of the browser I want.

Thanks.
 
I'm not 100% sure I understand your question but you might try the FOCUS handle. It's one of those things I don't 100% trust, but it should equal the handle of whatever control currently has focus (is that what you mean by active?). So perhaps you could test to see if FOCUS = h_browser_handle, or whatever, then act accordingly.
 
I will try to explain the situation:

I have 4 browsers, each linked to a different table.

example BROWSE-1 => tabl1
BROWSE-2 => tabl2
BROWSE-3 => tabl3
BROWSE-4 => tabl4

On the screen there are some buttons as well. These buttons are linked to function keys (example "F12").

Now I need the details from a row in Browse-1.
With "Frame-field" and "Focus" it works fine if I only use the function key (example "F12") and not the corrosponding button.
If I use the button, the focus is set to the button.

I hope this makes more sense.
 
Oh, I see. That is a little awkward, because when the guy clicks the button, there is no longer an "active" browse. Any or all of them could have selected records, and none of them will have focus.

Maybe what you want to know is, what was the last browse that had focus immediately prior to focus shifting to the button. You could keep track of that by updating a window-wide h_last_active_browse variable in each browse's ON LEAVE event. Then when he clicks the button, check to see which browse this variable points to.

This would work OK if he always picks a browse then clicks the button directly. It won't work if he picks a browse then tabs to the button, passing through another browse on the way, not realizing that that "pass through browse" will be considered his "last active" browse.
 
Back
Top