How to determine the " could cut " status ?
Hi, all, When I select a whole page, I could copy and paste it to other place. But most of the time I select a page, I'm not allowed to cut it since the browser does not permit it. So how could I query the status to determine whether I could copy or cut ? Is there any API method I could use ? Or I should judge it by myself ? Anybody could give a hint ? Thanks so much. Best Regards. Andy
Andy wrote:
Hi, all, When I select a whole page, I could copy and paste it to other place. But most of the time I select a page, I'm not allowed to cut it since the browser does not permit it. So how could I query the status to determine whether I could copy or cut ?
Editor::canCut() looks useful. Joe
On Aug 5, 2008, at 7:46 PM, Andy wrote:
Is there any API method I could use ?
There's no platform-independent WebKit API, so this is a platform- specific question. In the Mac OS X API, the way you determine this is by checking to see if the cut: command is enabled using the validateUserInterfaceItem method. -- Darin
participants (3)
-
Andy
-
Darin Adler
-
Joe Mason