[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Hiding and re-showing a window?



Actually there could be a cross-platform issue here. I think the alpha
trick works on mac, but not SwingOSC. For SwingOSC:

w.visible = false;
w.visible = true;

Not sure if SCWindow supports visible_.

hjh

PS Yes, once you close a window, it's gone. w.close is permanent.


On Thu, May 7, 2009 at 2:40 PM, James Harkins <jamshark70@xxxxxxxxx> wrote:
> Set the window's alpha to 0? Then back to 1 when you need it again.
> hjh
>
> On Thu, May 7, 2009 at 3:39 PM, Batuhan Bozkurt
> <batuhan@xxxxxxxxxxxxxxxxxx> wrote:
>> Hi all,
>>
>> Stuck on something very fundamental, I can't really see how I haven't needed
>> this before but,  how should I go for hiding a window to be able to reopen
>> it later on without creating a new Window, with its state intact (i.e.
>> without reinitializing the window and widgets, the ones which I use now are
>> actually subclasses of the standard widgets and they have their own private
>> states)? I know this is also a question of design, but for now, I'd be
>> really happy if I could just close a window (or hide it) and reopen it as if
>> it was always there, just by rendering it invisible then visible... I've
>> ditched the docs and the archives but couldn't find a mention of it at all.
>> Now seems like once I close the window, its gone forever... Any pointers?


-- 
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

_______________________________________________
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/