Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用我在应用程序的单独文件中创建的复合材料。我不确定如何将选项卡的控制设置为复合文件。
包:hm_forms 复合文件:Comp_HM.java 主文件:Frm_Main.java 控件:tabHM
我想它必须接近。
Composite Comp_HM = hm_Forms.Comp_HM; tabHM.setControl(Comp_HM);
Composite Comp_HM = hm_Forms.Comp_HM; tabHM.setControl(new Comp_HM());
您必须创建自定义组合的实例并将其传递给setControl方法。
setControl