Modify

Opened 7 years ago

Closed 6 years ago

#3723 closed Bug (Rejected)

Odd problem with _GUICtrlRichEdit_ReplaceText

Reported by: qwert Owned by: BrewManNH
Milestone: Component: Standard UDFs
Version: 3.3.14.5 Severity: None
Keywords: RichEdit ReplaceText Cc:

Description

After months of observing an odd problem when clearing the text in a RichEdit control, I isolated the statements involved:
_GUICtrlRichEdit_SetSel($hEdit, 0, -1, True)
_GUICtrlRichEdit_ReplaceText($hEdit, "")

The odd part is that every now and then (a third of the time?) the text of the button I use to invoke those statements replaces the contents of the windows clipboard. In other words, if "Clear Text" is the text on the GUI button, then "Clear Text" shows up on the windows clipboard. Strange.

I replaced those statements in the particular script I am working on with: _GUICtrlRichEdit_SetText($hEdit, "") ... which works.

I realize this is an obscure problem, but the next time someone works on the _GUICtrlRichEdit features, they might want to look at it. For now, I'm fine.

Attachments (0)

Change History (4)

comment:1 by BrewManNH, 7 years ago

Can you post an example script that demonstrates the problem? This way we don't have to reinvent the wheel, and might not be doing it the same way as you are doing it.

comment:2 by J-Paul Mesnage, 6 years ago

Component: AutoItStandard UDFs

comment:3 by J-Paul Mesnage, 6 years ago

Owner: set to BrewManNH
Status: newassigned

comment:4 by J-Paul Mesnage, 6 years ago

Resolution: Rejected
Status: assignedclosed

as no repro script was attached I close it unknown

Modify Ticket

Action
as closed The owner will remain BrewManNH.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.