/*==================================================================== Sample 7.def ©1996 Yosuke "Basuke" Suzuki. Simple button based on tbPopupButton. It displays simple popup when tapping, then display another popup for result of the first popup. ====================================================================*/ partData := { // // Actual button is defined in afterscript of "Sample 7.t" // Actual pref panel is defined in afterscript of "Pref 7.t" // }; InstallScript := func(partFrame,removeFrame) begin // // register button // call kRegTapBarButtonFunc with (kAppSymbol, partFrame.partData.button); // // register preference panel // call kRegTapBarPrefFunc with (kAppSymbol, partFrame.partData.pref); end; RemoveScript := func(removeFrame) begin // // unregister preference panel // call kUnRegTapBarPrefFunc with (kAppSymbol); // // unregister button // call kUnRegTapBarButtonFunc with (kAppSymbol); end;