How to hide close icon in Dialog framework

JDev 10g.
Any idea how to hide/disable close icon in a dialog launched by using:
<af:commandButton     action="dialog:editEmpAngDetails"
                                   partialSubmit="true"
                                   useWindow="true"
                                   windowHeight="..."
                                   windowWidth="..."/>
Dialog appears as a new browser window, and I want to force user to use one of the Save/Cancel button, in order to perform Commit/Rollback.
So, I need a way to hide browser close 'X' icon.
Any idea ?

Hi...
I got a further lead in this problem... In the class ADMDialog.h, in the comments described for Create & Modal functions for creating ADM Dialogs, there are some options described for the last parameter of these functions:
ADMInt32 ADMAPI (*Modal)(SPPluginRef inPluginRef, const char* inName,
                                        ADMInt32 inDialogID, ADMDialogStyle inDialogStyle,
                                        ADMDialogInitProc inInitProc, ADMUserData inUserData, ADMInt32 inOptions);
Now, there are some values that can be given in that last parameter which define our creation options for the dialog. One of them is  kADMModalDialogHasPaletteSystemControlsOption, which too is defined in the same class (ADMDialog.h) & which, as the comments say, shows a close box at the top right corner of modal dialogs.
So, I implemented this as,
sADMDialog->Modal(fPluginRef, "My Dialog", kMyDialog, kADMModalDialogStyle, NULL, NULL, kADMModalDialogHasPaletteSystemControlsOption);
This compiled just fine, but the dialog appeared without any close icon. Now, what to do?
Please guide me on this...
Thanks!

Similar Messages

  • How to hide attachment icon in pdf

    Hi Experts,
    I developed a Adobe interactive application , but at the  bottom  left of pdf form  ihave an attachment icon that attachment icon need to be hided,can any one tell me how to hide that  icon.
    Thanks
    Rahul.

    Hi Rahul,
    Please Check the following link
    In Adobe Forms, Is it Possible to remove File Attachment Link of Navigation
    Regards,
    Mathan

  • How to hide "Help" icon in "Tech Support and Training" channel in CLM

    How to hide "Help" icon in "Tech Support and Training" channel in CLM.
    Is there a way to link the Help icon to custom training pdf's rather than standard training pdf "buyer_online_help"
    Regards,
    Gurmeet

    Hi Gurmeet
    In order to display custom training PDF, an alternative approach could be to make use of workbench channel "Links". You can store the custom PDF on intranet and display the link under links channel.
    Regards
    Mudit Saini

  • Hide close icon from taskflow inline popups / process window closure

    Hi OTN,
    I would like to know of there is an opportunity to hide "X" close icon from popup window when I run a taskflow in a popup as an inlineDocument?
    Or what is a preferred way to process user window closure to rollback changes?
    In my current application a user always has Cancel button which sets taskflow return parameter as "Cancel" which is then read by dialog return listener.
    The listener would call Rollback if there is "Cancel" returned.
    But "X" close doesn't set any parameter.
    Maybe I sould set "Cancel" as a default return parameter value? Or the right way is to use finalizer?
    Please, advice me.
    Thanks.
    ADF Fusion Web Application
    JDev 11.1.1.3

    You have to define and apply a custom skin. It is easy, read the documentation here:
    http://download.oracle.com/docs/cd/E14571_01/web.1111/b31973/af_skin.htm#BAJFEFCJ
    You can get detailed description of all the supported skin selectors here:
    http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e15862/toc.htm#ComponentLevelSelectors
    Note, that <tt>af|dialog::close-icon-style {display:none;}</tt> will affect all the popup dialogs, but not only the taskflow popup windows. If you need to apply it only to taskflow popup windows, then use <tt>af|panelWindow::close-icon-style{ display:none; }</tt>. Have a look at Frank's blog post http://blogs.oracle.com/jdevotnharvest/2010/12/how-to_hide_the_close_icon_for_task_flows_opened_in_dialogs.html.
    Dimitar

  • How to hide tray icon when in jframe

    how to hide the tray icon when v display a new JFrame in jdk1.5?

    use a JWindow or JDialog, but you may come across other problems if using
    them without a parent (the parent will be the one in the task bar)

  • How to hide duplicate icons

    How do you remove duplicate icons from the screen. Example. My Iphoto has an icon on the doc and an icon on the upper right of the screen. If I move the icon on the screen to the trash, so goes the whole program. Of course then I have to restore it. Any way, I want to remove the icon on the screen. Any help?

    If the iPhoto icon has a small arrow in the lower left hand corner, it's not the actual application but an alias and can be safely trashed.  Otherwise, just drag it into your Applications folder.

  • How to hide autoplay icon from html5 published from captivate 8

    I have a html5 course created in captivate 8. Course is scorm packaged. Course works fine on ios devices but in android device autoplay from the beginning doesnot go away. Any idea how to resolve this?

    Hi,
    Welcome to Adobe Forums
    Could you please check the version of Google Chrome ?
    Please try following the steps given in the link below to fix your issue .
    Update on Captivate HTML 5 content playback issue in Google Chrome Browser. « Rapid eLearning | Adobe Captivate Blog
    Thanks
    Himanshu

  • How do I get the Speakable Dialog Bow to go away???

    Hello,
    I'm not certain what the feature is called Apple, as I must have hit a random set of keys on the key baord by mistake, but I am having a heck of a time trying to find out how to g close a speakable dialog box to close on my Mac. This is what it looks like - http://img689.imageshack.us/img689/5002/savedialogbox.png  It's the Black Box in the middle of the screen, with white lettering, and shows and speaks everything that I do.
    I've gone to the System Preferences and opened the "Speef" preference and it was "Off," so that can't be it, so any other ideas would be greatly appreciated.
    Thanks in advance,
    SH

    LOL... THANK YOU!!!!!  
    It's always frustarting to hit a set of commands and get a feature and then not know the sequence to turn it off.
    Thanks again... BIG sign going on over here.
    Best,
    SH

  • Programmatically change size of dialog framework

    Hi All,
    + I'm using JDev 11.1.2.3
    + Currently, i show popup by using "dialog:" as prefix of CommandButton action string
    So, Can anybody tell me how i can modify size of dialog framework programmatically?
    P/s: I use dialog framework, I do NOT use <af:popup />
    Thank you very much,

    approach 1:
    private RichCommandButton btnSave;
    public void setBtnSave(RichCommandButton btnSave) {
    this.btnSave = btnSave;
    public RichCommandButton getBtnSave() {
    return btnSave;
    public void clickButton(ActionEvent) {
    btnSave.setInlineStyle("input your style");//how you can change inline style in your bean
    <af:commandButton id="navigateButton" action="dialog:openWindow" useWindow="true" windowEmbedStyle="inlineDocument"
    binding="#{testbean.btnSave}"/>
    approach 2 :
    private String inStyle;
    public void setInStyle(String inStyle)
    this.inStyle=inStyle;
    public String getInStyle()
    return Style;
    <af:commandButton id="navigateButton" action="dialog:openWindow" useWindow="true" windowEmbedStyle="#{testbean.inStyle}"
    />
    Edited by: vikasadf on Apr 1, 2013 7:11 AM

  • Hide levels icon in lower right?

    Hello,
    Does anyone know how to hide the icon in the lower right corner of master images that appears to indicate that levels have been edited? I'm trying to retouch the image in that spot, but for the life of me I can't figure out how to make the icon disappear. Every time I move the retouch tool to that location, the icon remains and I cannot see what I'm working on. I've taken a screenshot that can be viewed here:
    http://www.freeimagehosting.net/uploads/583629f0cc.jpg
    Thanks.

    Go to Preferences, Metadata, and uncheck the box next to Viewer. That should turn off overlays so that you can edit the image without the badge in the way.

  • How to handle the "cancel" button and "close" icon of a popup ?

    Hi,
    I have a popup with "cancel button" and "close icon"(on the top right corner of the popup), I want the same operations to be performed on clicking of any of these two components.
    Is there a way to handle such situation ?
    I read about 2 cases to look into this but they didn't work too well for me.
    1. I read about the "popcancellistener" but that listener is called whenever the popup closes, so suppose I have an "ok button" on the popup to create a record, after the record is created, the popup closes and goes into the "popcancellistener", now the question is "how do we know if it came there because of the 'ok button' or 'some other event'".
    2. I even checked the "DialogListener", now I'm able to distinguish between the 'OK' and 'CANCEL' button in the dialoglistener using the "Dialog.Outcome.ok/cancel", but when a user clicks on the close icon, we do not enter the "DialogListener" at all, so in this case "how do we handle the close icon click event"
    Do let me know if you need any more information from my side.
    Thanks for the help in advance.

    The following mechanism responds to any of the following events: <Esc> key, Close icon ('x'), Cancel button
    JavaScript part:
    function popupClosedListener(event){
                  var source = event.getSource();
                  var popupId = source.getClientId();
                  var params = {};
                  params['popupId'] = popupId;
                  var type = "serverPopupClosed";
                  var immediate = true;
                  AdfCustomEvent.queue(source, type, params, immediate);
    }JSF part:
             <af:popup ....>
                  <af:clientListener method="popupClosedListener"
                                           type="popupClosed"/>
                  <af:serverListener type="serverPopupClosed"
                                          method="#{myBean.serverPopupClosedMetod}"/>
            </af:popup>Finally, Java part:
    public void serverPopupClosedMetod(ClientEvent event){
    }

  • How to close a popup dialog?

    Looking at the Scenebuilder1.1 Login sample, a new scene is created which is placed on stage.
    How would such a popup get closed and get back the original main screen?
        private Initializable replaceSceneContent(String fxml) throws Exception {
            FXMLLoader loader = new FXMLLoader();
            InputStream in = Main.class.getResourceAsStream(fxml);
            loader.setBuilderFactory(new JavaFXBuilderFactory());
            loader.setLocation(Main.class.getResource(fxml));
            AnchorPane page;
            try {
                page = (AnchorPane) loader.load(in);
            } finally {
                in.close();
            // store the stage height in case the user has resized the window
            double stageWidth = stage.getWidth();
            if (!Double.isNaN(stageWidth)) {
                stageWidth -= (stage.getWidth() - stage.getScene().getWidth());
            double stageHeight = stage.getHeight();
            if (!Double.isNaN(stageHeight)) {
                stageHeight -= (stage.getHeight() - stage.getScene().getHeight());
            Scene scene = new Scene(page);
            if (!Double.isNaN(stageWidth)) {
                page.setPrefWidth(stageWidth);
            if (!Double.isNaN(stageHeight)) {
                page.setPrefHeight(stageHeight);
            stage.setScene(scene);
            stage.sizeToScene();
            return (Initializable) loader.getController();
        }

    Thanks for your reply. I rewrote the sample to do this - created a new Stage, and it worked. :)
        <T extends ControllerBase> T replaceSceneContent(T controller, String fxml, String message) {
            try {
                AnchorPane page;
                FXMLLoader loader = new FXMLLoader(getClass().getResource(fxml));
                page = (AnchorPane) loader.load();
                Stage dialog = new Stage(StageStyle.UTILITY);
                dialog.initOwner(MainPane.primaryStage);
                dialog.getIcons().add(new Image("/resources/my-icon.gif"));
                dialog.initModality(Modality.WINDOW_MODAL);
                Scene scene = new Scene(page);
                dialog.setScene(scene);
                T c = loader.getController();
                c.stage = dialog;
                c.setMessage(message);
                dialog.showAndWait();
                return c;
            } catch (IOException ex) {
                Logger.getLogger(main_screenController.class.getName()).log(Level.SEVERE, null, ex);
            return null;
        }

  • How to hide icon ?

    How to hide icon which is mark as yellow in screenshot ..

    Hello Smita,
    Follow below steps:
    1: Open content admin and then open portal content folder.
    2: Find the Framework page. Right click and open page
    3: It will somewhat look like below snapshot
    4: Now uncheck 'Visible' checkbox of "Page Title Bar" as done in the snapshot.
    As we can see the title in second level navigation and there are no other links on your page title bar, you can uncheck it

  • How do I delete movies from iTunes library? I have moved them to the iCloud and now only seem to have the option to hide the icon in iCloud.  I am sure I chose poorly at the 'keep file' window.  Please help. My Brain hurts- 18   movies need to go-.

    How do I delete movies from iTunes library? I have moved them to the iCloud and now only seem to have the option to hide the icon in iCloud.  I am sure I chose poorly at the 'keep file' window.  Please help. My Brain hurts… 18 plus movies need to go….  Thank you.

    Instead of removing the music from the cloud or the iTunes library why not shuffle your music using a Smart Playlist which excludes the holiday music, or tracks that are not checked. For example, use this very simple Smart Playlist:

  • How to change the icon for print dialog?

    Hello,
    I have a JTable, and with the print() method, I'm able to bring up the Print dialog and successfully print the contents of the table. Example:
    myTable.print( JTable.PrintMode.FIT_WIDTH, myHeaderFormat, myFooterFormat );This works great, but one small detail I'd like to change is the icon in the top-left corner of the dialog. The icon is currently the default Java coffee cup icon, while the rest of my application uses my custom icon. I couldn't find any documentation in the API or tutorials that Java has listed which shows how to change the icon, so I'm not even sure if it's possible (but why shouldn't it be?).
    My question is this: Is it possible to change the default icon in the print dialog? Or do I have to either make my own print dialog somehow, or use a third-party print dialog?
    Thanks

    tjacobs01: Appreciate the assistance (despite your sass). I've already searched the API, tutorials, and this forum. I'm already well aware of the setIconImage() method for JFrame -- after all, that's how I set the icon for my other frames as I previously mentioned. However, I want to set the icon for the print dialog called from the print() method of JTable.
    How would I use setIconImage() for the print() method of JTable? The print() method returns a boolean value, not a JFrame, so I'm just not sure how to implement what you're saying.
    Thanks

Maybe you are looking for