I hadn't thought of this because I do so little windowing-based work but it sounds like a good idea. The main problem is having an established standard. Is there a place in the existing J folder hierarchy where this would naturally fit? Think about where you would look for this if you just thought of the need for it, then put it in the first place you would think of.
So, under the base J directory, we have "addons", "bin", "system", and "tools", so none of those seems particularly appropriate. In JQt, under the toolbar options Edit/Configure, we have a number of user-specific areas which seems like a step in the right direction. This points us in the direction of "system/config" under the J installation directory. Since this holds other user-specific configuration data, maybe the place to put the application-specific window information is here? On Fri, May 11, 2018 at 10:57 AM, Ian Clark <[email protected]> wrote: > Is there a vendor-recommended method of saving/restoring the last position > (and size) of a user-defined form in jqt? > > I notice a cache of XYWH in ~config/winpos.dat but I can't see any code in > ~addons that writes to it. > I only discovered it when re-using old code of mine to do the job in > question, which fortituously also uses the name: winpos. > > I always seem to be re-inventing the wheel. But I would really prefer to > use the vendor's "wheel" in this case because it's in code I may want to > distribute. > > If no such vendor-recommended method exists, can I propose it? Either as an > addon, or as part of the jqt window-driver. If it were an easy-to-use > feature I'd use it more often. > > Ian Clark > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- Devon McCormick, CFA Quantitative Consultant ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
