Paul Carvalho
2010-Mar-30 20:24 UTC
[fxruby-users] Is there a way to enforce a minimum (app) window size?
I created a simple app and need to allow the DECOR_RESIZE option. Unfortunately, it means that the user can shrink the window size to something smaller than what all the important elements require. Is there a way to enforce a minimum window size? i.e. so that the window can be resized but not smaller than, say 200x200? I googled this but didn''t turn up anything for FXRuby. Please let me know if there''s a way to do this. Thanks. Paul. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20100330/16d3a7c9/attachment.html>
Lyle Johnson
2010-Mar-30 20:59 UTC
[fxruby-users] Is there a way to enforce a minimum (app) window size?
On Tue, Mar 30, 2010 at 3:24 PM, Paul Carvalho <tester.paul at gmail.com> wrote:> I created a simple app and need to allow the DECOR_RESIZE option. > ?Unfortunately, it means that the user can shrink the window size to > something smaller than what all the important elements require. > Is there a way to enforce a minimum window size? ?i.e. so that the window > can be resized but not smaller than, say 200x200? > I googled this but didn''t turn up anything for FXRuby. ?Please let me know > if there''s a way to do this.I have not tried this, but see this question from the FOX FAQ: http://www.fox-toolkit.net/faq#TOC-How-can-I-specify-a-minimum-window- Hope this helps, Lyle
Paul Carvalho
2010-Mar-30 21:32 UTC
[fxruby-users] Is there a way to enforce a minimum (app) window size?
On 30 March 2010 16:59, Lyle Johnson wrote:> > I have not tried this, but see this question from the FOX FAQ: > > http://www.fox-toolkit.net/faq#TOC-How-can-I-specify-a-minimum-window- > > Hope this helps, > > Lyle >Cool FAQ. Thanks, Lyle. I didn''t know about that page. DECOR_STRETCHABLE works perfectly (in place of DECOR_RESIZE)! It lets me resize the window but never smaller than the minimum amount of space required by the elements in the window. I also changed the statusbar property to remove STATUSBAR_WITH_DRAGCORNER. Personally, I like that UI style, but it does some funky UI bug thing if you drag the status bar instead of the window edge. I can live without the bug.. especially since I''ll likely be passing my app onto other testers. ;) Cheers! Paul. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20100330/82d505d6/attachment.html>
Lyle Johnson
2010-Mar-31 16:15 UTC
[fxruby-users] Is there a way to enforce a minimum (app) window size?
On Tue, Mar 30, 2010 at 4:32 PM, Paul Carvalho <tester.paul at gmail.com> wrote:> I also changed the statusbar property to remove?STATUSBAR_WITH_DRAGCORNER. > ?Personally, I like that UI style, but it does some funky UI bug thing if > you drag the status bar instead of the window edge. > I can live without the bug.. especially since I''ll likely be passing my app > onto other testers. ;)That sounds like a bug in FOX itself, not the FXRuby layer. If it''s important, I''d try posting to the FOX mailing list to see if anyone has a workaround.
Paul Carvalho
2010-Mar-31 21:01 UTC
[fxruby-users] Is there a way to enforce a minimum (app) window size?
You can see the bug using the button.rb example program. Change "DECOR_ALL" to: "DECOR_TITLE|DECOR_STRETCHABLE|DECOR_CLOSE" Now, when you resize the window using the status bar drag-corner (the first time), it stops at the minimum size to show all the elements. (good) Drag the status bar corner again, and I see the window shrinks within the window. It looks ugly. (not good) I''m using an older version of Fox (1.6.28) and FXRuby (1.6.12) and I don''t have the time right now to try the example on newer/more recent versions. I''d like to, but I''m pressed for time to finish my current project. If I can, I''ll try it out on newer builds later - maybe in a few weeks. Thanks for the feedback about the mailing list. Cheers. On 31 March 2010 12:15, Lyle Johnson wrote:> On Tue, Mar 30, 2010 at 4:32 PM, Paul Carvalho wrote: > > > I also changed the statusbar property to > remove STATUSBAR_WITH_DRAGCORNER. > > Personally, I like that UI style, but it does some funky UI bug thing if > > you drag the status bar instead of the window edge. > > I can live without the bug.. especially since I''ll likely be passing my > app > > onto other testers. ;) > > That sounds like a bug in FOX itself, not the FXRuby layer. If it''s > important, I''d try posting to the FOX mailing list to see if anyone > has a workaround. > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20100331/8f5a6791/attachment-0001.html>