Zwei mit Tab Box() zusammengeführte Fenster funktionieren nicht korrekt
Ich habe zwei Fenster mit Tab Box() zusammengeführt, wie im folgenden Code gezeigt. Aber einige der Tastenfelder sind nicht funktionsfähig. In Einzelkartons funktionieren sie einwandfrei. Irgendeine Idee, was in der Objektreferenz fehlt?
Clear Log();
main_window_app_path = Substr( Get Default Directory(), 2, 999 );
main_window_app_path = Substitute( main_window_app_path, "/", "\" );
Show( main_window_app_path );
Set Path Variable( "root", main_window_app_path );
Include( "$root/System/DataAnalysisGUI_Mongo.jsl" );
Include( "$root/System/DataAnalysisGUI_SMV.jsl" );
Include( "$root/System/GUI_Files/Lists.jsl" );
Include( "$root/System/GUI_Files/HelperFunctions.jsl" );
Include( "$root/System/Common/GetDataFromSQLorCSV.jsl" );
Include( "$root/System/Common/wrapper_mongo_data_pull.jsl" );
//********main window****************//
DAGui = New Window( "Database Query",
bb = Border Box( Left( 10 ), Right( 10 ), Top( 10 ), Bottom( 5 ), Sides( 15 ),
V List Box(
Text Box( "GUI to Pull-data from both MongoDB and AVcloud", set font size(10) ),
tb = Text Box( "pre-req: JMP14 and run install_pkg.bat"),
tb << Font Color("yellow") << background color("red") << border(1);
Text Box( "More info: http://goto/jmp_ui"),
Spacer Box( Size( 10, 10 ) ),
H List Box( Tab Box( "MongoDB", Mongo_data, "AvcloudDB", SMV_data ), )
)
),
);
//SMV_data << Close Window();
//Mongo_data << Close Window();
bb << Set Color( "black" );

Unten sehen Sie das Mongo-Tab-Fenster einzeln.

Betreff: Zwei mit Tab Box() zusammengeführte Fenster funktionieren nicht richtigEs sieht so aus, als ob es sich bei dem, was Sie haben, um einen Klon eines vorhandenen Anzeigebaums handelt.Ich kann nicht sagen, um welches Objekt Mongo_data es sich handelt. Wenn es sich um ein Anzeigefeld handelt, das bereits Teil eines größeren Anzeigebaums ist, führt die Verwendung von Mongo_data in einem anderen Anzeigebaum zu einem Klon, da ein einzelnes Anzeigefeldobjekt nur in at existieren kann Meistens ein Fenster nach dem anderen.Manchmal ist ein Klon das, was Sie möchten, und Sie können einen Anzeigebaum auch explizit klonen, indem Sie die Methode <
// Define expression that will create a GUI
makeUI = Expr(
Panel Box( "Query Building",
V List Box(
H List Box(
Text Box( "Columns:" ),
Combo Box( {"", "option 2"} ),
Text Box( "Operator:" ),
Combo Box( {"==", "++"} )
),
Text Box( "Condition:" ),
Text Edit Box( "", <<SET width=""></SET>