dbTalk Databases Forums  

Formatted memo 'property' change doesn't stick

comp.databases.paradox comp.databases.paradox


Discuss Formatted memo 'property' change doesn't stick in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim Moseley
 
Posts: n/a

Default Formatted memo 'property' change doesn't stick - 12-20-2006 , 10:59 PM







Greetings.

A simple form has a formatted memo field on it (among others). If the field
already has text entered into it, I can highlight some text, right click
and choose Properties and adjust the font, etc.

Here's the problem - if I haven't changed any of the text, then the font
changes don't stick. As soon as I leave the field, it returns to the old
font.

Here's the sequence of events (literally):

A. This didn't work - don't change any text, just highlight & change properties:
1 class=DataAction action=3078 DataBeginEdit
2 class=EditAction action=2577 EditProperties
3 class=DataAction action=3080 DataLockRecord
4 class=EditAction action=2588 EditEnterMemoView
5 class=EditAction action=2598 EditPropertySheet
6 class=EditAction action=2588 EditEnterMemoView
7 class=DataAction action=3081 DataUnlockRecord


B. This works - type in a space, then highlight & change properties:
1 class=DataAction action=3078 DataBeginEdit
2 class=DataAction action=3080 DataLockRecord
3 class=EditAction action=2588 EditEnterMemoView
4 class=EditAction action=2577 EditProperties
5 class=EditAction action=2598 EditPropertySheet
6 class=EditAction action=2588 EditEnterMemoView
7 class=DataAction action=3081 DataUnlockRecord

The only difference is where EditProperties happens. If it is before DataLockRecord,
then my changes don't stick. If after, then all is well.

Does anyone have any suggestions on how to fix this? Can anyone duplicate
it? BTW, I'm using the latest Pdox 9 on XPhome.

Thanks,
Jim Moseley


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

Default Re: Formatted memo 'property' change doesn't stick - 12-21-2006 , 02:53 AM






Jim

I can't recreate your problem, but take a look at PX0662 in my buglist.


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

remove spamfilter (reversed) to reply

Reply With Quote
  #3  
Old   
Jim Moseley
 
Posts: n/a

Default Re: Formatted memo 'property' change doesn't stick - 12-21-2006 , 07:27 AM




Bertil,

Quote:
but take a look at PX0662 in my buglist.
It fails in my test on a stand-alone machine. But, I think it confirms my
suspicion of what is going on.

If you just change the formatting without changing anything else on a record,
Pdox isn't setting the 'touched' property of the record to 'true'. Thus,
in my case, when I leave the field, the update is lost. In PX0662's case,
when the dataRefresh happens, it doesn't think you've changed anything so
it refreshes the record.

Make sense?

Thanks,
Jim Moseley


Reply With Quote
  #4  
Old   
Jim Moseley
 
Posts: n/a

Default Re: Formatted memo 'property' change doesn't stick - 12-21-2006 , 08:31 AM




Bertil,

This seems to fix it. Does it rate the buglist? Note that I couldn't find
any way to tell if they cancelled off of the Properties dialog without changing
anything.

method action(var eventInfo ActionEvent)
var targObj uiObject endVar
if eventInfo.isPreFilter() then
;// This code executes only for the form
if eventInfo.actionClass() = EditAction then
if eventInfo.id() = EditPropertySheet then
eventInfo.getTarget(targObj)
targObj.touched = true
endif
endif
else
;// This code executes for each object on the form
endif

Thanks,
Jim Moseley

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

Default Re: Formatted memo 'property' change doesn't stick - 12-21-2006 , 09:11 AM



Jim

You said you were using the latest P9. Which one do you refer to? Which
build number? I tested on P9 SP4, build 883, and I couldn't recreate your
problem.

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

"Jim Moseley" <jmose (AT) mapson (DOT) attglobal.net> skrev i meddelandet
news:458a9adc$1 (AT) pnews (DOT) thedbcommunity.com...
Quote:
Bertil,

This seems to fix it. Does it rate the buglist? Note that I couldn't
find
any way to tell if they cancelled off of the Properties dialog without
changing
anything.

method action(var eventInfo ActionEvent)
var targObj uiObject endVar
if eventInfo.isPreFilter() then
;// This code executes only for the form
if eventInfo.actionClass() = EditAction then
if eventInfo.id() = EditPropertySheet then
eventInfo.getTarget(targObj)
targObj.touched = true
endif
endif
else
;// This code executes for each object on the form
endif

Thanks,
Jim Moseley



Reply With Quote
  #6  
Old   
Jim Moseley
 
Posts: n/a

Default Re: Formatted memo 'property' change doesn't stick - 12-21-2006 , 10:10 AM




Bertil,

Quote:
Which build number? I tested on P9 SP4, build 883, and
I couldn't recreate your problem.
Oops, I'm on 9.00.738. Isn't that the latest version of Runtime though?
I want to make sure those stay in sync. I'm the only one who uses Pdox
- all my customers use Runtime.

Thanks,
Jim Moseley


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

Default Re: Formatted memo 'property' change doesn't stick - 12-21-2006 , 01:14 PM



738 is the latest version of P9 Runtime. This could be something that was
fixed in P9 SP4.

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

"Jim Moseley" <jmose (AT) mapson (DOT) attglobal.net> skrev i meddelandet
news:458ab213$1 (AT) pnews (DOT) thedbcommunity.com...
Quote:
Bertil,

Which build number? I tested on P9 SP4, build 883, and
I couldn't recreate your problem.

Oops, I'm on 9.00.738. Isn't that the latest version of Runtime though?
I want to make sure those stay in sync. I'm the only one who uses Pdox
- all my customers use Runtime.

Thanks,
Jim Moseley



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

Default Re: Formatted memo 'property' change doesn't stick - 12-22-2006 , 02:37 AM



Michael
<<
SP4 may be the latest version, but I have heard that SP3 is better (more
stable) than SP4 in P9.
Quote:
SP 4 introduced a couple of bugs related to wide tables, more than 30
columns. Besides that, SP 4 fixed some bugs that existed in SP 3.

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

remove spamfilter (reversed) to reply


Reply With Quote
  #9  
Old   
Egbert Babst
 
Posts: n/a

Default Re: Formatted memo 'property' change doesn't stick - 12-25-2006 , 05:37 PM



Jim,
I'm with RT ...738 and could not recreate what you mentioned.
Tried it with a formatted memofield within a table displayed as well in a
tableframe as also at the same moment in a stand-alone field. It didn't
happen.
But I've seen similar problems with the formatting of stand alone-memo
fields when I tried to use the content within a method and the field had the
focus. Sometimes colors didn't stick then, so I had to move the focus first
anywhere (to post it).

Egbert, 00:30 AM, temp. in Spain

"Jim Moseley" <jmose (AT) mapson (DOT) attglobal.net> schrieb im Newsbeitrag
news:458ab213$1 (AT) pnews (DOT) thedbcommunity.com...
Quote:
Bertil,

Which build number? I tested on P9 SP4, build 883, and
I couldn't recreate your problem.

Oops, I'm on 9.00.738. Isn't that the latest version of Runtime though?
I want to make sure those stay in sync. I'm the only one who uses Pdox
- all my customers use Runtime.

Thanks,
Jim Moseley



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.