Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 48115 invoked from network); 15 Nov 2010 00:01:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Nov 2010 00:01:31 -0000 Received: (qmail 85444 invoked by uid 500); 15 Nov 2010 00:02:02 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 85427 invoked by uid 500); 15 Nov 2010 00:02:02 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 85419 invoked by uid 99); 15 Nov 2010 00:02:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Nov 2010 00:02:02 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.158 is neither permitted nor denied by domain of ChesStrategy@gmail.com) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Nov 2010 00:01:54 +0000 Received: from ben.nabble.com ([192.168.236.152]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1PHmVp-0001R2-Pb for user@pivot.apache.org; Sun, 14 Nov 2010 16:01:33 -0800 Date: Sun, 14 Nov 2010 16:01:33 -0800 (PST) From: ChesStrategy To: user@pivot.apache.org Message-ID: <1289779293769-1902028.post@n3.nabble.com> Subject: Setting a minimum (enforced) size for the Display MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I've currently using Pivot for my project, after I decided to abandon Swing. I prematurely apologize if this is a dumb question, since I've only recently started using Pivot. Basically, I was wondering if I could enforce a minimum size (width and height) for the display of my Pivot Desktop Application; that is: In the event that the user resizes the Display to something smaller than the minimum size and height of the child Window, that the Display will remain at the minimum size of the enclosed child window. If the user has a large monitor, and sizes the Display to anything larger, all the child elements and display will scale to the larger size. Currently, I've tried to add a ComponentListener to the Display passed in startup(). The componentListener has the sizeChanged() function implemented to call DesktopApplicationContext.sizeToFit() on the child Window. However, doing this causes the window to "seize" and flicker everytime the Display is resized by the user to a size smaller than the minimum size; thus this solution is not ideal. Any tips and advice would be appreciated; however, I personally prefer to do this completely programmatically in Java, and would not like to use WTKX (for now), unless using a WTKX source with my application is the only solution. Thanks, Dave -- View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Setting-a-minimum-enforced-size-for-the-Display-tp1902028p1902028.html Sent from the Apache Pivot - Users mailing list archive at Nabble.com.