Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » FindReplace Dialog in SWT Text Widget Standalone App?
FindReplace Dialog in SWT Text Widget Standalone App? [message #443067] Fri, 17 September 2004 23:48 Go to next message
Eclipse UserFriend
Originally posted by: chu.hudel.com

Hello,

I've two questions about the SWT Text widget as I am developing a
standalone application using Eclipse.

1. How can I override the keyboard events for some sequences? For
example, I want to perform an action when CTRL-H is pressed but the Text
widget is already acting on CTRL-H as the delete key before I can get
the KeyPress event.

2. I would like to add the Eclipse Find/Replace Dialog into my
standalone application for use within the SWT text widget. How may this
be accomplished?

Thanks,
Chu.
Re: FindReplace Dialog in SWT Text Widget Standalone App? [message #443141 is a reply to message #443067] Mon, 20 September 2004 14:25 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
1. Use MenuItem.setAccelerator() to define an action for SWT.MOD1 + 'h'
2. The Find/Replace dialog is not part of SWT. You'll need to write the
dialog yourself or port the code from Eclipse.

"Chu." <chu@hudel.com> wrote in message
news:20040917195030347-0400@news.eclipse.org...
> Hello,
>
> I've two questions about the SWT Text widget as I am developing a
> standalone application using Eclipse.
>
> 1. How can I override the keyboard events for some sequences? For
> example, I want to perform an action when CTRL-H is pressed but the Text
> widget is already acting on CTRL-H as the delete key before I can get
> the KeyPress event.
>
> 2. I would like to add the Eclipse Find/Replace Dialog into my
> standalone application for use within the SWT text widget. How may this
> be accomplished?
>
> Thanks,
> Chu.
Previous Topic:TrayItem platforms
Next Topic:SWT browser and URL's question, problem with languages
Goto Forum:
  


Current Time: Thu Apr 25 07:14:59 GMT 2024

Powered by FUDForum. Page generated in 0.02419 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top