I also had this errormessage but did not figure out when it occured.
Maybe your example helps to track it down!
Oliver Vogel schrieb:
No Problem:
if the button is enabled, everything works fine.
But if you click at the DISABLED button an exception is raised.
The exact description of the exception is "Laufzeitfehler in Microsoft
JScript: 'this._dragCache.sourceWidget' ist Null, oder kein Objekt.
the (sorry - compressed) Source code is:
this._dragCache.sourceTopLevel=this._dragCache.sourceWidget.getTopLevelWidget();};proto._handleMouseMove=function(e){if(!this._dragCache){return;}
i hope this helps. if not, feel free to ask for more
Olli
Sebastian Werner schrieb:
Oliver Vogel schrieb:
Hello Sebastian.
please have a look at this code snipplet.
it is part of my wizard.
Please run the script and click at the disabled button. then you can
see, what is my problem!
No, please explain it a bit more. Just send out examples is the most
time not really helpful.
Sebastian
P.S. this error only occours, if the button is inside the
Layout-Manager. A simple button like in your demos wors fine.
P.P.S. you can delete the hints, it's only for better reading (i
hope, yu can understand german ;-)
Olli
--- CUT ---
window.application.main = function()
{
// Ich benötige das Dokument, damit ich etwas hinzufügen kann
var d = application.getClientWindow().getClientDocument();
//=======================================================================================================
// Der Wizard besteht zuerst einmal aus drei Bereichen.
// 1) dem Titel (oben)
// 2) den Arbeitsbereich (mitte)
// 3) dem Navigationsbereich mit den Buttons (unten)
// Deshalb zuerst einmal ein DockLayout mit diesen 3 Bereichen
erzeugen
//=======================================================================================================
//-------------------------------------------------------------------------------------------------------
// Das Layout selber
//-------------------------------------------------------------------------------------------------------
var mainLayout = new QxCanvasLayout;
with (mainLayout)
{
set({ left: 0, top: 0, right: 0, bottom: 0 }); //
komplette Fenster ausfüllen
} d.add(mainLayout);
//-------------------------------------------------------------------------------------------------------
// Der Titel (als CanvasLayout, da der Inhalt per Pixel definiert
wird)
//-------------------------------------------------------------------------------------------------------
var title = new QxCanvasLayout;
with (title)
{
set({ left: 0, top: 0, right: 0, height: 80 });
setBackgroundColor("white");
}
mainLayout.add(title);
//-------------------------------------------------------------------------------------------------------
// Der Navigationsbereich (als CanvasLayout, um die Buttons zu
positionieren)
//-------------------------------------------------------------------------------------------------------
var navigation = new QxCanvasLayout;
with (navigation)
{
set({ left: 0, bottom: 0, right: 0, height: 42 });
//
// Der Zurück Button
//
var button_Prev = new QxButton("Zurueck");
with (button_Prev)
{
setWidth(92);
setTop(8);
setHeight(24);
setRight(8 + 92 + 8 + 92);
addEventListener("execute", function(e){alert("clicked");});
} add(button_Prev);
}
mainLayout.add(navigation);
button_Prev.setEnabled(false);
};
</script>
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel