dbTalk Databases Forums  

How to emulate Shift/F2 (memo edit) via code?

comp.databases.paradox comp.databases.paradox


Discuss How to emulate Shift/F2 (memo edit) via code? in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bjorn Sagbakken
 
Posts: n/a

Default How to emulate Shift/F2 (memo edit) via code? - 05-02-2007 , 02:35 PM






Hi.

I want to go directly into memo edit on arrive or setfocus event, so the
user don't have to hit Shift/F2 every time.
The only way I half the way have succeeded is to attach some code to the
keyphysical event, setting isshiftkey and keyevent to F2 (I don't have the
exact code on this computer) The only side-effect is that the first
keystroke skips the actual key beeing hit, so the user experience a "blind"
first key stroke, then it works ok.

Anyone has any idea? (I can provide the actual code beeing used, if needed)

Bjorn



Reply With Quote
  #2  
Old   
Tony McGuire
 
Posts: n/a

Default Re: How to emulate Shift/F2 (memo edit) via code? - 05-02-2007 , 02:55 PM







action(editenterpersistfieldview) in arrive ??

--
------------------------------
Tony McGuire



Reply With Quote
  #3  
Old   
Bertil Isberg
 
Posts: n/a

Default Re: How to emulate Shift/F2 (memo edit) via code? - 05-02-2007 , 03:43 PM



<<
I can't think of why you wouldn't want it in arrive though.
Quote:
In arrive, you may have to write

doDefault
self.postAction(EditEnterMemoView)


--
Bertil Isberg - CTECH
Paradox buglist:
online: http://hem.bredband.net/bertilisberg/

"Mark Bannister" <markRemove (AT) ThisINjection-Moldings (DOT) com> skrev i meddelandet
news:4638f209$1 (AT) pnews (DOT) thedbcommunity.com...
Quote:
Tony McGuire wrote:
action(editenterpersistfieldview) in arrive ??


most likely wants
method setFocus(var eventInfo Event)
dodefault
self.action(EditEnterMemoView)
endMethod


I put it in setFocus. I can't think of why you wouldn't want it in arrive
though.



Reply With Quote
  #4  
Old   
Mark Bannister
 
Posts: n/a

Default Re: How to emulate Shift/F2 (memo edit) via code? - 05-02-2007 , 04:22 PM



Tony McGuire wrote:
Quote:
action(editenterpersistfieldview) in arrive ??

most likely wants
method setFocus(var eventInfo Event)
dodefault
self.action(EditEnterMemoView)
endMethod


I put it in setFocus. I can't think of why you wouldn't want it in
arrive though.


Reply With Quote
  #5  
Old   
Bjorn Sagbakken
 
Posts: n/a

Default Re: How to emulate Shift/F2 (memo edit) via code? - 05-03-2007 , 12:34 PM



"Mark Bannister" <markRemove (AT) ThisINjection-Moldings (DOT) com> wrote

Quote:
Tony McGuire wrote:
action(editenterpersistfieldview) in arrive ??


most likely wants
method setFocus(var eventInfo Event)
dodefault
self.action(EditEnterMemoView)
endMethod


I put it in setFocus. I can't think of why you wouldn't want it in arrive
though.
Thanks a lot. That was exactly the right answer to my long lasting question.
Now it works very well - in setfocus.

I didn't really intend to put it in arrive, more like just anywhere that
could solve the task.
You cannot imagine all the strange stuff I've tried without success.
But now that this arrive event has been questioned there is no doubt I will
just have to try and see what happens...

Bjorn




Reply With Quote
  #6  
Old   
Bjorn Sagbakken
 
Posts: n/a

Default Re: How to emulate Shift/F2 (memo edit) via code? - 05-03-2007 , 12:45 PM



"Tony McGuire" <png.paradoxcommunity@com> wrote

Quote:
action(editenterpersistfieldview) in arrive ??
I have obviously been searching vigorously along the wrong path, since there
already is an action command for this.
I was trying to "type" shift/F2 with code, silly me.
But programming sometimes is like a blind mans walk in weird places.
This forum is like calling the guide dog for help, it will hopefully pull
you in the right direction.
But the steps must be walked by the man, nevertheless.

Bjorn




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.