[Swingosc-devel] odd case: must .refresh a userview explicitly?
Brought to you by:
sciss
From: James H. <jam...@gm...> - 2011-02-06 12:19:46
|
Small, odd thing -- any known circumstances that would cause a user view to fail to execute the draw function on creation? I have a somewhat busy window defined here: https://github.com/jamshark70/kc_affectations/blob/e5107e8b990049766b9a5fb961744e5ed206c911/trunk/common/transports.scd At line 480, I make a user view to serve as a horizontal rule/spacer. It looks right if I explicitly refresh (screenshot #1 -- this is just part of the window). If I take out the refresh call (line 485), the spacer disappears (#2). Reducing it to the simplest test case fails to reproduce the problem. This suggests to me that the intended behavior is that I should not have to call refresh. ( var w = Window("no refresh but it draws anyway", Rect(10, 50, 120, 60)); UserView(w, Rect(0, 10, 120, 16)) .drawFunc_({ Pen.color_(Color.gray(0.3)) .fillRect(Rect(0, 7, 120, 3)); }); w.front; ) SwingOSC 0.65. Not urgent at all, and not even slightly painful to work around, but it's discrepant behavior and I thought I should bring it up. hjh -- James Harkins /// dewdrop world jam...@de... http://www.dewdrop-world.net "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman blog: http://www.dewdrop-world.net/words audio clips: http://www.dewdrop-world.net/audio more audio: http://soundcloud.com/dewdrop_world/tracks |