Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 07 JUL 2001 11:57:59AM Mike O'Neal wrote:

Hello all:

I'm trying to use PREVFOCUS on an edit table with no luck… works great for edit lines, so I'm pretty sure I have the syntax correct in my code. Is there a PREVFOCUS equivalent for edit tables?

Thanks much,

Mike O.


At 07 JUL 2001 04:10PM Bob Carten wrote:

Mike:

try PREVSELPOS

Bob


At 09 JUL 2001 04:33PM Mike O'Neal wrote:

Hi Bob:

PREVSELPOS isn't what I'm looking for. Scenario is I'm in an edit table, then click on a button outside of the edit table. The button needs to know what the previous control was. PREVFOCUS does not seem to work when coming from edit tables, while PREVSELPOS assumes you already know the control name.

Make sense?

Thanks,

Mike


At 12 JUL 2001 12:59AM Mark Glicksman wrote:

Hi Mike,

In the click event of the external button, I put this:

*Determine the control that last had focus.

LastControl=Get_Property(@Window, "GOTFOCUS_CONTROL")

If RightString(LastControl, 5)=TABLE" then

  • Determine which column in the table currently is selected
SelPos=Get_Property(LastControl, "SELPOS")
SelColumn=SelPos
SelRow=SelPos

End

This gives me the name of the control that had focus. If it's a table, it gives me the selected row and column.

Mark

Mark Glicksman

BG-Map Botanical Mapping System/GIS

e-mail: [email protected]

website: www.bg-map.com

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/82bdaa296996151385256a820057b4fb.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1