-
Hi
When you open say the Notepad with some text in it and rightclick on the texts a popup menue appears with the Copy section not enabled.
As soon as you select some text and you rightclick again
you see the copy section of the menu is enabled.
How dose windows know when the text is selected?
-
Create a textbox and a command button and put this code in the command_click event:
Code:
If Text1.SelLength = 0 Then
MsgBox "no text selected"
Else
MsgBox Text1.SelText
End If
In the Windows case, its something like:
Code:
If Text1.SelLength = 0 Then
contextmnu.mnucopy.enabled = False
Else
contextmnu.mnucopy.enabled = True
End If
-
He's talking about getting selected text from an external application
-
-
don't you think he knows that already?= also still talking about external applications, youre missleading him.
You have to go for my subclassing sample
-
Kedaman and Megatron, Mass asked: How does windows know? Not how do you use a context menu on an external application.
-
Dear Matthew
Thanks but Ked is right, I want to know how to detect if a text is selected in an external application.
It is probably my fault to posr the question the way I did.
I asked how windows know in order to know myself, and I still want to know.