wiki said wd'set id wh ..' not wd'wh ..', Resizing a form depends on window manager, different desktops may behave differently, Qt can only provide hints to wm and cannot override it.
Not sure what you intended for the bin s, your code runs like this bin h bin s cc ok cc cancel bin z alternatively, you may try bin h cc ok cc cancel bin s bin z or bin h cc ok bin s cc cancel bin z BTW the first line (;:'wdbase z') copath 'base' is redundant. Вт, 17 дек 2013, Don Guinn писал(а): > T tried several numbers and letters. No change in effect. I used a short > script from WIKI Guides/J8 Standalone. I made a few minor changes. It > follows: > > (;:'wdbase z') copath 'base' > > > GETURL=: 0 : 0 > > pc geturl escclose dialog ;pn "Retrieve URL"; > > bin vh; > > minwh 40 22;cc urlsrc static right;cn "URL"; > > minwh 400 24;cc src edit; set src text http://; > > bin z; > > bin h s ; > > cc ok button;cn "&OK"; > > cc cancel button;cn "&Cancel"; > > pcenter; > > ) > > > test=: 3 : 0 > > wd GETURL > > wd'pshow' > > ) > > > geturl_cancel_button=: 3 : 0 > > wd 'pclose' > > ) > > > test '' > > > I made the form to allow resizing to better see the actions. Added a cancel > to make it easy to get rid of. Should have been able to use ESC but for > some reason it didn't work. I had to change the "wh" to "minwh" as I got > "wh : command not found: wd". I tried the form in both W7 and UBUNTU. Got > same error. Guides/JqtChildClasses lists both "wh" and "minwh" as valid. > > > In both W8 and UBUNTU if I had the "s" on the last bin the two buttons > tracked with the right side of the form and their size remained constant as > I resized the form. The size of the edit token stretched horizontally with > the form size. On W8 the form size would not resize smaller than the > minimum size of the edit token. But on UBUNTU the form size continued to > shrink and the right side of the edit token was cut off. I could even > shrink it vertically until the tokens were almost invisible. > > > I tried all sorts of number and letters which should be invalid and no > change in the way the form worked. Even tried a question mark. Never an > error. If the "s" was there the buttons moved to the right with the form > and their size was unchanged. If it was gone the buttons stretched > horizontally to fill the width of the form and shrank and stretched > horizontally as the size of the form changed. > > > From the About box. > > > Engine j701/2011-01-10/11:25 > > Library: 8.01.016 > > Qt IDE: 1.0.21/4.8.5 > > Platform: Win 64 > > > On Sun, Dec 15, 2013 at 5:52 PM, bill lam <[email protected]> wrote: > > > that refers to the remaining spaces, try place 2 stretch bin with different > > numbers to see if the factor can take effect. untested. > > On Dec 16, 2013 7:30 AM, "Don Guinn" <[email protected]> wrote: > > > > > I have been waiting for a better explanation of the s parameter for wd > > bin > > > "s". "s" can be followed by a number which is supposed to be the stretch > > > factor. I haven't found any good description yet. Any number put there > > > always gives the same result, the tokens are right justified if s is > > > present and stretched to fill if s is not present. > > > > > > Seems like there should be ways to left justify, center, right justify > > and > > > stretch to fill. And possibly have some tokens left justified and others > > > right justified. > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
