Re: How to drop Popup Menus in a Data Grid on tab/return?
Posted: Sun Sep 26, 2010 5:58 am
Thank you very much for your continued help. Since you've been helping me on a volunteer basis, I'd like to send you something for your trouble. Can I send it to the support email address at Blue Mango?
Here is the code from my Custom Field Editor Behavior script. I think you're right, the only thing that's different is the click to drop the popup menu, and if I comment out the "click button..." line then the old field editor does get closed properly.
Here is the code from my Custom Field Editor Behavior script. I think you're right, the only thing that's different is the click to drop the popup menu, and if I comment out the "click button..." line then the old field editor does get closed properly.
Code: Select all
on tabKey
put the dgTargetKey of me into currentColumn
if currentColumn is "Description" or currentColumn is "Account1" then
if currentColumn is "Description" then put "Account1" into nextColumn else put "Account2" into nextColumn
put ColumnControlOfIndex(nextColumn, the dgTargetIndex of me) into theColumnControl
replace " of me" with empty in theColumnControl ## get rid of ' of me' reference
if theColumnControl is not empty then
put GetDataOfIndex(the dgTargetIndex of me,"Account1")
send "DeleteFieldEditorAndOpenNext" to the dgControl of me in 0 seconds
click button 1 at the loc of button 1 of theColumnControl
end if
else if the autotab of me then
send "DeleteFieldEditorAndOpenNext" to the dgControl of me in 0 seconds
else
pass tabkey
end if
end tabKey