I want to show a specified dialog under simulation category like "Developement Strategy" and do something after its "OK" click. Is there a way to show a native petrel process window? I can see some class and interfaces in "Slb.Ocean.Petrel.UI" like DialogBuilder , DialogPage, IDialogPageFactory, IDialogPage...but I can't use them, even I don't know if they supply my required objects.
相关问题
- Android: Progress Dialog change ProgressDialog.set
- Webview with facebook login flickering in Dialog
- Creating TimePickerDialog with custom style in And
- Is possible to have more granular control over jQu
- android: Dialog, cancel button
相关文章
- Checking & Unchecking Checkboxes inside a JQuery M
- How to show appropriate icon on dialog box
- What are event and UI parameters in Dialog
- Open file from windows file dialog with python aut
- Android - getting an error “no application can per
- Android 4.1.2 dialogs are called twice
- Fix display garbage left by WPF dialog window?
- Migrating the code from Bot Framework V3 to V4
I think you want to create a Workstep (Slb.Ocean.Petrel.Workflow). The Ocean wizard lets offers a quick start. It creates optionally a process wrapper for you, which is the item showing up in the process tree.
Once you got familiar with the concepts, you can evolve the simplistic initial implementation by using the WorkflowEditorUIFactory. Check the namespace documentation in the Ocean documentation for more details.
IProcessDiagram offers different Add methods for your custom Process to enable custom positioning in the tree node sequence.
You can programmatically show a particular process dialog using
DialogBuilder.ShowSettings(object)
and passing theProcess
instance. This is typically used by a plug-in to launch its own process dialog, but it's possible to obtain a reference to the instance of a nativeProcess
by name usingFindProcess(string)
. This is, of course, a very fragile approach:It would need a lot of error handling, not just to guard against changes to the process name, but also to handle the case where an exclusive process dialog is already open.
However, this will still only launch the dialog. There is no way to know if/when the user clicks the OK button. Petrel processes are typically stand-alone pieces of functionality, and any kind of chaining is generally supported by creating workflows.