Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PowerBuilder 12.5 RTE RichTextEdit not detecting Paste - Modified doesn't get set

Status
Not open for further replies.

Statey603

Programmer
Nov 10, 2009
196
US
We recently converted our project from PowerBuilder 11 to 12.5.

We just noticed that our Rich Text Edit controls [RTEs] are no longer getting flagged as Modified when text is pasted into them.
Pasted text appears in the RTE, but the screen does not think anything needs to be saved. This used to work prior to 12.5.
If the user types text into the RTE, the control correctly indicates Modified and the screen prompts that changes need to be saved.

I am wondering if anyone else has seen this behavior.

Thanks,
Bill
 
Tried to delete this post.

Turns out this was NOT caused by the migration from PB 11 to PowerBuilder 12.5.

Code was changed unbeknownst to me during the same release as our migration to 12.5.
In out main menu object, the Shortcut Keys associated with our Edit menu [Copy/Cut/Paste operations] had been cleared from the menu item properties. These shortcut keys originally executed the specified Edit menu item code
Edit - Copy:
of_SendMessage ("pfc_copy")

Edit - Cut:
of_SendMessage ("pfc_cut")

Edit - Paste:
of_SendMessage ("pfc_paste")

Once the shortcuts were cleared, the RTE paste behavior no longer worked entirely right.
As mentioned in the original post, the text got pasted into the RTE on Ctrl-V, but the RTE's modified flag did not get set. I believe this is because the pfc_paste event never fired. I put the shortcut key associations back and the RTEs are functioning as they used to.

My apologies for any confusion.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top