J'ai fusionné deux fenêtres en utilisant Tab Box() comme indiqué par le code suivant. Mais rend une partie de la boîte à boutons non fonctionnelle. Ils fonctionnent très bien dans une boîte individuelle. Une idée de ce que la référence d'objet manque?
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" );

Ci-dessous se trouve la fenêtre de l'onglet Mongo individuellement.

Il semble que ce que vous avez est un clone d'un arbre d'affichage existant.Je ne peux pas dire ce qu'est l'objet Mongo_data - s'il s'agit d'une boîte d'affichage qui fait déjà partie d'un arbre d'affichage plus grand, l'utilisation de Mongo_data dans un autre arbre d'affichage entraîne un clone, car un seul objet de boîte d'affichage ne peut exister que dans au plus une fenêtre à la fois.Parfois, un clone est ce que vous voulez, et vous pouvez également cloner explicitement un arbre d'affichage en utilisant la méthode <
// 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>