Hello,

i try the htmlarea example but when i set the event reference from 
this.HTMLArea to this their is an access problem


i change the setup  to this

            setupToolbar1 : function(){ 
                var toolbar = new qx.ui.toolbar.ToolBar;
                toolbar.setDecorator("main");
     
                // Put together toolbar entries
                var button;
                var toolbarEntries = this.getToolbarEntries1();
                for (var i=0, j=toolbarEntries.length; i<j; i++){
                    var part = new qx.ui.toolbar.Part;
                    toolbar.add(part);
       
                for (var entry in toolbarEntries[i]){
                      var infos = toolbarEntries[i][entry];
                     if(infos.custom) {
                        button = infos.custom.call(this);
                        }       
                    else if(infos.custom2 == true) {
                        button = new qx.ui.toolbar.Button(null, 
infos.image);
                        button.set({ focusable         : false,
                                     keepFocus         : true,
                                     center         : true,
                                     toolTipText     : infos.text ? 
infos.text : "" });
                        button.addListener("execute", infos.action, this);
                        }
                    else {
                        button = new qx.ui.toolbar.Button(null, 
infos.image);
                        button.set({ focusable         : false,
                                     keepFocus         : true,
                                     center         : true,
                                     toolTipText     : infos.text ? 
infos.text : "" });
                        button.addListener("execute", infos.action, 
this.htmlArea);
                          }
                      part.add(button);
                    }       
                  }
              return toolbar;
            },




the event acces for eample this

        saveDokumentAs : function () {
            var content = this.htmlArea.getValue();
            alert(content);
            this.window1 = new 
makebiz.modules.dokumentenverwaltung.SaveAsWindow();
            
this.window1.getWindow(this.htmlArea.getUserData("DOKUMENTID"),this.htmlArea.getUserData("CURRENTID"),content);
            this.win.close();
            },

but i get no value when i use the reference this.HTMLarea

when i use the original   version including thisHTMLArea as reference 
and access it by

this.getValue() everything is ok

My version working when i focus another external programm window and the 
focus the qooxdoo appliation and then click on saveas:(

How can this be?
Thanks for help


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to