MDI window and close button - genero

whenever a modal dialog (e.g. call fgl_winmessage(...)) is open from a MDI window the close action is disabled. I allready tried to reactived from the menu with a dialog.setActionActive with no sucess. Any ideas will be highly appreciated.
TIA
Frederico Moreira

Have you tried creating a simple application and testing it?
IMPORT FGL fgldialog
MAIN
CALL fgl_winMessage("title","text","info")
END MAIN
I did this and there is no "close" action but there is an "ok" action which is enabled. Any buttons on other forms would be disabled because the modal form has exclusive focus. The window menu has a "Close Alt+F4" menu item and it is enabled too.
I suspect you might need to look at your action defaults or style files to see if anything is interfering there.
The fgl_winMessage() function has no COMMAND close block in the code so if a button for close did appear on the modal form then it would be disabled.

Related

How to retain the previous state of Viewer Toolbar

I have one custom toolbar buttons for the viewing 2d files. Clicking on same opens the panel for selecting file for comparison and loads the 'PixelCompare' extension. Once the operation is done, and when I click the 'Exit Comparing' toolbar button of PixelCompare, it doesn't show that extra custom toolbar button. Please suggest what is required. How can I handle the inbuilt extension unload. Thanks!

Which div to programmatically click to close bootstrap modal

I am writing tests for my Bootstrap 3.x webapp using Nightwatch. All is working fine, but I would like to add the "close modal by clicking somewhere next to it" in one of my tests. I don't seem to be able to identify the html element that's supposed to receive the click event however.
Can anyone help me with this?
Thanks!
The background is a div with class .modal-backdrop. According to the docs: "...generates a .modal-backdrop to provide a click area for dismissing shown modals when clicking outside the modal."

How do I remove the OK/cancel button from the alert dialog

I'm working on a button script for my page.
I want the "OK" button from alert dialogs.
Any Idea on how to do it?
I want the dialog be on the screen until the person refreshes the page.
I'm trying to make it in html5.
Thanks
It's impossible. You need use a custom dialog.

Creating contextMenu at Chrome load

I'm doing a chrome extension which adds an option to right click menu in "page" context. I see the option added in the context menu after I click on extension's icon in the toolbar.
But I need the option to be added without clicking on the extension icon in the toolbar. If I add contextMenu creation code in the content script which gets injected in every page, the option is not added in the contextmenu.
What do I need to do to: add an option in the contextMenu when the user loads any webpage without clicking the extension first.
Add your context menu in the background page.
http://code.google.com/chrome/extensions/background_pages.html
Background pages is a single long-running script to manage some task or state. That is where you should put it.
Hope that helped.

How Do I disable the button that hides/shows the toolbar in CKEdtor 3.0?

I'm current creating a custom configuration for a CKEditor installation. I got all fixed, besides disabling the toggle button that hides/shows the toolbar.
So my question is: "How Do I disable the button that hides/shows the toolbar in CKEdtor 3.0?"
CKEDITOR.config.toolbarCanCollapse
at CKEditor 3.0 JavaScript API Documentation CKEDITOR.config
Alternatively, locate that toggle button and script something to hide it or detach events from it.