[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] limit window constraints?
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] limit window constraints?
- From: Chad Kirby <chad@xxxxxxxxxxxxx>
- Date: Wed, 11 Mar 2009 22:24:04 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=0iwyj3SMFsvE9+6WDlit2rRk/TidFnCz+4kNUhKrRs8=; b=pw+dZ4TAkxg698WE9ngT/k6p/qGd69FX9SiTbjjKd9xMrq3AKFQLG/pu6TfLiR/uYY bWM+ajAC3gqo/DnAEiYVxgwoZAB2j+WvhZKfyjB2Zpq8nMEb8bQnVl344oFbgSJesL+D mM/r3XijuJqMCXuig8Wis+lrN7uOHQL1pjWQc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=ZSQ9gC+5wz5+Dm8kkgxRCglYmvRJbiQ+NAZqkJ8DZVGoeWBOincNQxq1cjnGeOqLWI aoYqnA4npI2FcRBucPTiCTGJ6Dkr5V1dPxUX2eXK0VuSvDUHHTgyb+u4u9Cx+rSiW5PP i/SfsYkUYIomHeci/wH8B0bqcqb/t5N6zGBNw=
- In-reply-to: <90D108D4-FF3E-4780-B778-386E1B9DE97D@xxxxxxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <90D108D4-FF3E-4780-B778-386E1B9DE97D@xxxxxxxxxxxxxx>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
I am trying to do something similar, although in my case, I want to be
able to specify a minimum height and width. I have just started poking
around to see if this is possible.
Chad
On Fri, Mar 6, 2009 at 1:23 PM, Wouter Snoei
<mailinglists@xxxxxxxxxxxxxx> wrote:
> Hi all,
>
> I'm trying to create a window that can be resized in height, but always
> keeps a fixed width. My approach is the following:
>
> (
> w = Window( "test", Rect(100,500,200,200) ).front;
> w.drawHook = { |win| if( win.bounds.width != 200 ) { win.bounds =
> win.bounds.width_(200) }; };
> // now resize the window by hand
> )
>
> Although this does the job, it looks very ugly: the window is flashing all
> the time when the window is resized. Are there other ways to do this? Or
> could it be added to the primitive functionality of SCWindow?
>
> Other features like a settable minimum size, a fixed height and maybe a
> separate alpha setting for the window only (leaving it's contents untouched)
> would also be very welcome..
>
> cheers,
> Wouter
>
> _______________________________________________
> sc-users mailing list
>
> info (subscription, etc.):
> http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> archive: https://listarc.bham.ac.uk/marchives/sc-users/
> search: https://listarc.bham.ac.uk/lists/sc-users/search/
>
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/