Short: X11R6 Resource Editor (updated) Author: X consortium Uploader: mlemos ua pt (Manuel Lemos) Type: misc/x11 Architecture: m68k-amigaos This is the X11 R6 resource editor compiled for Holger Kruse's AmiWin Amiga X Windows server. It allows the users to interactively view and change resource values of running X application that supports the editres protocol. The original editres protocol program of X11 release 6.0 was not complete. Peter Derr wrote a patch to complete the part of the protocol that enables an application to retrieve the resource values in text string format that may be usable directly in resource files. To get the current value of a resource of a widget, you must selected the respective resource in the resource box using the proper mouse button. Button 1 (left button) is used to select the resource without changing the contents of the text entry box. Originally button 2 (middle button) was used to retrieve the resource value into the text entry box, but I changed that in the provided application defaults file to button 3 (right button) as most of the Amiga users only have 2 button mice. The GetValues part of editres protocol will only work with applications that use this patched version the editres protocol code. Otherwise it will only retrieve for resource value the "NoValue" string. So, applications must be linked with this new code. Since AmiWin local applications use shared libraries that only Holger has the source code, only him is able to provide patched versions of the libraries. I am providing a link library that uses the patched code to add the necessary changes at runtime. All it does is to change the vendor Shell class initialization code to insert the new editres protocol message event handler. It also adds new *ToString resource converters necessary to convert resource values to text string format. Only the most used *ToString converters were added. If it shows that editres perform default from integer conversions is because the required *ToString converters are not available. The source code for editres and the editres link library are provided for your convinience. Feel free to recompile the link library with the options that you may find appropriate for you programs. In order to force the library to get linked with any SAS C compiled program, I defined the external __stack variable that is used by SAS to define the minimum stack size that a program must start with. This is also a convinience for X programs as they spend considerable ammounts of stack space. 40000 bytes is often reasonable value for the stack. Feel free to change this value according to you convinience. Manuel Lemos 31.08.1996