dbTalk Databases Forums  

Re: ENTER in Formatted Memo Field...?

comp.databases.paradox comp.databases.paradox


Discuss Re: ENTER in Formatted Memo Field...? in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rodney Wise
 
Posts: n/a

Default Re: ENTER in Formatted Memo Field...? - 10-23-2006 , 11:54 AM






Kenneth,

In the Memo Fields KeyPhysical method, try this:

if eventInfo.vCharCode() = VK_RETURN then
disableDefault
if self.wordwrap = false then
self.keyChar(13)
else
dodefault
endif
endif



--
....
`·.¸¸.·´¯`·.¸¸.·´¯`·-> rodney



Reply With Quote
  #2  
Old   
Rodney Wise
 
Posts: n/a

Default Re: ENTER in Formatted Memo Field...? - 10-23-2006 , 11:56 AM






Also... the Memo field needs to be in Edit mode.

)


--
....
`·.¸¸.·´¯`·.¸¸.·´¯`·-> rodney



Reply With Quote
  #3  
Old   
Rodney Wise
 
Posts: n/a

Default Re: ENTER in Formatted Memo Field...? - 10-23-2006 , 12:22 PM



Kenneth,

I just re-read your post...

1. If the Memo field is NOT in Edit mode, then
pressing Enter is like pressing Tab... in other words,
<Enter> causes you to move to the next tab stop.

2. If you ARE in Edit mode, then <Enter> should function
normally... by adding a line to the memo field.

3. Moving down one line of text IS NOT the Normal
behavior for pressing the <Enter> key. This is
normally done by pressing the Down Arrow key.

4. If you REALLY want <Enter> to move down...
then capture the <Enter> key in the KeyPhysical
method of the Memo Field... disable default and
cause the Down Arrow key to be substituted for
its action.

--
....
`·.¸¸.·´¯`·.¸¸.·´¯`·-> rodney



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

Default Re: ENTER in Formatted Memo Field...? - 10-23-2006 , 01:34 PM



Kenneth wrote:
Quote:
Howdy,

I have a form that displays a formatted memo field.

If I touch Enter, the cursor moves to the next page of the
form.

How can I code it to move the cursor to start the next line
of text?

Sincere thanks,
To add what Rodney said you also have to be in memoview. Shift-F2 or
with code:
method setFocus(var eventInfo Event)
dodefault
self.action(EditEnterMemoview)
endMethod


Reply With Quote
  #5  
Old   
Rodney Wise
 
Posts: n/a

Default Re: ENTER in Formatted Memo Field...? - 10-23-2006 , 01:44 PM



Try it... but the Memo field must be in edit mode.


--
....
`·.¸¸.·´¯`·.¸¸.·´¯`·-> rodney



Reply With Quote
  #6  
Old   
Tom Krieg
 
Posts: n/a

Default Re: ENTER in Formatted Memo Field...? - 10-23-2006 , 07:30 PM



Kenneth,

In the arrive event of the memo field, put the following code.

doDefault
self.action(EditEnterMemoView)
self.action(SelectSelectAll)

(leave out the last line if you don't want existing text selected
automatically).

also make sure that in the memo field text properties, Word Wrap is checked.

Tom K

Kenneth wrote:
Quote:
Howdy,

I have a form that displays a formatted memo field.

If I touch Enter, the cursor moves to the next page of the
form.

How can I code it to move the cursor to start the next line
of text?

Sincere thanks,

--
Tom Krieg
Just a small fish in a bigpond.


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.