|
Previous Top Next |
Any developer wanting to modify any English text to alternative text or non-English should first copy the XploreEn.TRN file to say XploreYY.TRN and then modify the Xplore.TRN link file accordingly. The reason you should rename your new TRN file is to avoid overwriting a modified version when new releases of Xplore are installed. At worst, the Xplore.TRN link file will get replaced which can be easily recreated.
NOTE: It is not only possible to modify text, but also complete window/report structures. It is also possible to override any method in the Xplore Class (Xplore.INC/CLW), which are usually those showing windows; reports or dialogs.
If you wish to alter the Xplore settings at runtime (most of them), then it is possible for you to alter the local DECIMAL variable value of XploreMaskN where N is the INSTANCE value of the Browse Box template. This mask is made up of individual bits that are identified either in the XploreEn.TRN or the Xplore.TPW files. This value should be modified at the beginning of the procedure. For instance, if you wish to turn OFF the ability to show the 'Properties' menu item in the right-click menu, you must do this before the Xploren.INIT() is executed in ThisWindow.INIT() method. This can be done in the WindowManager Init embed using a PRIORITY less than 6500.
Menu items (in the right-click menu) can also be disabled by issuing the following type of command:
Xplore1.BC.Popup.SetItemEnable('PRP',False) where the PRP is the internal Xplore/Popup name for the Properties menu item. These menu items are all listed in the AddItemsToBrowsePopup method in the XploreRoot Class in XploreRt.CLW
N.B. If you populate Xplore on two or more related Browse Boxes in a single procedure, you MUST make sure that you populate them in their relationship order - Parent then Child, else you will get a constant refresh flickering.