Pages: 1
Print
Author Topic: showing find dialog  (Read 939 times)
sapraaman
Member

Posts: 17


« on: June 22, 2010, 03:32:13 AM »

Hi,

Is it possible to show find dialog with preset options (and text to find) using javascript?

We are using XMetal 5.5.

Thanks,
Aman
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1552



WWW
« Reply #1 on: June 22, 2010, 11:52:34 AM »

If you call the Find.Execute method you can provide a parameter that will store the other parameters you pass (as if the user had performed the find manually). The boolean is called "boolSetFindDialogOptions" and is documented along with the Execute method.

However, calling Find.Execute is going to actually perform a find without showing the dialog to the user.

The alternative to this might be to build your own dialog (probably using XFT) and then run Find.Execute from it. That way you should have complete control over the UI.
Logged
Pages: 1
Print
Jump to:  

email us