[brailleblaster] Re: MDI

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Fri, 27 Jul 2012 11:54:04 -0500

Hi Francois,

Thanks for the information.

Using multiple instances of Display in a single application is probably 
a bad idea. I wonder if we would run into problems with display 
instances if we were to start a new instance of BrailleBlaster within 
the application.


I set up the original MDI framework, but I couldn't get it to work. 
Later Hanxiao refined it. 

As I said in my previous message, if starting a new instance of 
BrailleBlaster from within itself will work, that might be the better 
approach.

John

On Fri, Jul 27, 2012 at 11:01:59AM -0400, Fran�ois Ouellette wrote:
> (warning: long post ahead!)
> The whole concept of multiple documents does not seem to be well
> implemented in BB at the moment. It seems that the same set of
> variables is shared among the windows and because of that we lose
> control of the events. I haven't changed anything to that part of the
> code that deals with opening and managing windows. There are
> discussions on the various blogs on the web regarding the use of
> Display versus Shell objects in SWT. It seems that some features of
> using multiple Displays are not supported on the Mac and I wonder if
> things have been simplified in order to accommodate that. I don't know
> who built the original model for the BB GUI, so it's difficult to
> understand what the approach was supposed to be when all we have is
> lots of java code without any embedded explication or comment.
> 
> When opening new windows the document manager seems to keep some
> document currency pointer but the display windows do not seem to have
> their own threads, so data gets mixed up and shutdown events are
> posted to all windows at the same time. Some other products like DBT
> use a single frame inside which mulitple document panels get created,
> but it can get confusing when trying to navigate between documents as
> we have to bring them to the front in the same frame as all other
> documents. Changing the structure of the current BB will not be a
> simple task.
> 
> My 2 cents.
> 
> François.
> 
> On Fri, Jul 27, 2012 at 9:56 AM, Vic Beckley <vic.beckley3@xxxxxxxxx> wrote:
> > I'm not sure if you are aware of this, but the MDI isn't working correctly
> > at all. Here are three major problem I have found so far.
> >
> > When you have multiple documents open closing one document closes all
> > documents.
> >
> > If you have a document open with text and Braille, then loading a second
> > document with text and Braille won't load the Braille.
> >
> > If you have several documents open and try to save one of the documents, BB
> > saves the wrong document. I tried to save document 2. It presented me with
> > the name of document 1. I thought it just was confused about the name so I
> > changed it to the name of document 2 and saved it. When I brought up
> > document 2 again it was actually the text of document 1.
> >
> >
> > Best regards from Ohio, U.S.A.,
> >
> > Vic
> > E-mail: vic.beckley3@xxxxxxxxx
> >
> >
> >
> >

-- 
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities


Other related posts: