GIGJ.COM
welcome to my space
X
Welcome to:gigj.com
Search:  
Personal Injury | Languages | Soups | Photography | Email | Prepress | Exotic Locations | Computer Games | Related articles
 HOME   Modal dialog isn't really modal... (GXT 1.0)

Modal dialog isn't really modal... (GXT 1.0)

Published by: anonym 2010-03-18
  • Here is the code that shows that you can keep clicking on the dialog's Ok button when modal message box is opened on top of it. Every click on Dialog's Ok will cause new message box appear.
    I was under impression that Modal (Dialog or MessageBox) means you cannot click on anything besides the modal dialog.

    final Dialog d = new Dialog();
    d.setHeading( "Test" );
    d.setModal( true );
    d.setHeight( 300 );
    d.getButtonBar().getButtonById( Dialog.OK ).addSelectionListener( new SelectionListener(){
    public void componentSelected( ComponentEvent ce ) {
    MessageBox mb = new MessageBox();
    mb.setTitle( "Error" );
    mb.setMessage( "Test" );
    mb.setButtons( MessageBox.OK );
    mb.setIcon( MessageBox.ERROR );
    mb.setModal( true );
    mb.show();
    }
    } );
    d.show();

  • Search ArcScripts - ArcScripts downloads - ESRI Support::
    PREREQUISITES: 1) ESRI ArcGIS Desktop 9.0/9.1/9.2/9.3 DEMONSTRATION VIDEO: A .. Dialog converter was developed by Vlad Kouznetsov, Data East Company. producing negivtive area Updated 11-1-04 Fixed Non-Modal form problem. I have put together these 2 customatisations in the attached Normal.gxt file.
    http://arcscripts.esri.com/scripts.asp?pg=1&sb=8&ob=desc&eDate=&n=&top=&eLang=&eProd=28&perPage=1000&eDesc=on&eQuery=&Submit2=search
    HOME

  • I believe using the DeferredCommand will allow the dialog box to render on top of other elements. I guess I should have quoted the person to whom I was responding ;)


    I've build gxt library from 650 revision, but my dialogs are not modal and appear one behind another.


  • I wasn't clear probably.
    I mean that if usage of the DeferredCommand is required even after the fix that was put in to SVN to make modal dialogs work properly, then this should be factored into the code of the show() method.
    If you just posted the workaround for GXT 1.0, then my previous comment can be ignored.


  • This is fixed in SVN.


  • I have the same problem. Also one modal dialog appears BEHIND parent modal dialog.


  • just to clarify I'm using what was publicly available not SVN updates.


  • Thanks!


  • DeferredCommand is a GWT class. You should be able to use it regardless of access to SVN.


  • currently I'm using 1.0.1


  • I've build gxt library from 650 revision, but my dialogs are not modal and appear one behind another.


  • 1.0 and 1.0.1 both have this problem.


  • Modal dialogs works as expected when using DeferredCommand.


  • Have you tried to put your call to the dialog boxes inside a DeferredCommand statement?


    DeferredCommand.addCommand(new Command() {


    public void execute() {

    mb.show();
    }
    });


  • This should be fixed in the trunk and 1.0 branch. What code are you using?


  • I don't use SVN builds so I cannot try that but even if it works and this is how things suppose to be invoked for modal dialogs this should be moved inside the dialog's show() method instead of forcing users of the API to make this extra calls.


  • posta07
    I'll try it.

    Also I completely agree with plitvak that this should be factored into the code of the show() method





  • Nortel Unveils Vision, Strategy for Israeli High-Performance Net
    Busy Friday Leads to Strong Close for Net Stocks
    You are looking at:gigj.com's Modal dialog isn't really modal... (GXT 1.0), click gigj.com to home
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Modal dialog isn't really modal... (GXT 1.0) , Please add it free.
    About us |Contact us |Advertisement |Site map |Exchange links
    Copyright© 2008gigj.com All Rights Reserved