×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Buttons in Table Frame UIObjects

Buttons in Table Frame UIObjects

Buttons in Table Frame UIObjects

(OP)
I have a Table Frame (TF) object on a Form.  The TF has multiple columns all but one containing fields in the underlying table.  The extra column contains a Button object, with some ObjectPAL code attached to the pushButton() event.  When the TF fills with the data from the table, all rows with data contain the Button object.  Everything OK to this point.

My problem is that when a user has focus on say row 1 of the TF and uses the mouse to click on the button in row 2 of the TF the focus does not shift to row 2 but stays on row 1.  This is a problem for me in that the code attached to the button is relying on the reading the values in the row and have them associated to the same row as the button press.

The most frustrating part is that the occurrence seems random (i.e. it doesn't happen every time).  It seems to be timing related(?)  I have tried putting doDefaults and MoveTo() in the button OPal but they seem to have no effect.

Can anybody suggest a way for me to structure the UIObjects or OPal to make this reliable?

Thanks in advance.

RE: Buttons in Table Frame UIObjects

I've done things like this, and I had one button not in the table frame or on a new row, depending on the button's function.  That button always worked on the row that had the focus.  I felt this reduced confusion.

RE: Buttons in Table Frame UIObjects

Let me try that again...

I've done things like this, and I had one button not in the table frame, depending on the button's function.  That button always worked on the row that had the focus or on a new row.  I felt this reduced confusion.

RE: Buttons in Table Frame UIObjects

One more time, gah, I was out of it when I posted that!

I've done things like this, and I had one button not in the table frame.  That button always worked on the row that had the focus or on a new row, depending on the button's function.  I felt this reduced confusion.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close