[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sc-devel] Quarks.gui
My mistake! It turns out that my laptop had an old version of
QuarksGui in the extensions dir. If I delete that, the screen size is
detected correctly and the prev/next buttons appear as they should.
I do see a kind of repainting error, though. Sometimes (50% of the
time?) when I click "next" I end up with a blank window (no quarks
shown, no prev/next buttons shown, just the 3 buttons at the bottom).
The window is then immediately repainted correctly if I resize the
window slightly using the mouse.
Dan
2008/1/30, James Harkins <jamshark70@xxxxxxxxx>:
>
> Could you insert the following debugging line into the Quarks gui method?
>
> You're right, it shouldn't be too hard to add the scroll bar (and it would
> simplify the code) -- the reason why we didn't earlier is that SwingOSC
> didn't have a scroll view, so it wouldn't have been cross platform.
>
> I'm concerned, though, that if it's reading the screen bounds incorrectly,
> even with the scroll bar, some of the window might still be out of reach. So
> if we did get some more info about what's happening with the current GUI,
> that would be great.
>
> (The critical buttons are off the bottom of the screen for you, btw.)
>
> hjh
>
>
> height = min(quarks.size * 25 + 120, GUI.window.screenBounds.height - 60);
> maxPerPage = (height - 120) div: 25;
>
>
> [height, maxPerPage].debug("Quarks.gui: height and num per page");
>
>
> window = GUI.window.new(this.name, Rect(300, 60, 550, height));
> window.view.decorator = FlowLayout( window.view.bounds );
>
>
>
>
> On Jan 30, 2008, at 5:12 AM, thor wrote:
>
>
> On 29 Jan 2008, at 23:12, James Harkins wrote:
>
>
> A scrollbar would be more intuitive, but there are currently
> previous/next page buttons in the window to get to the rest of them.
>
> Hi James
>
> Sorry about all these complaints, but I was going to show my students the
> Quarks.gui,
> the problem is that I don't understand it myself and can't use it.
>
> First, I only see parts of the available quarks. (and no previous/next
> buttons)
>
> Second, I don't know what the buttons do. I can see that installed quarks
> have a green button with "i" on it. I then click a button on an uninstalled
> quark
> and the GUI says "Quarks modified". This would make me believe that the
> quark
> has been installed in my Extensions/quarks folder. But I see no quark there.
> I recompile and would expect the quark to work, but it's not installed.
>
> (maybe there are some other buttons that I'm not seeing?)
>
> Third, it's not in alphabetical order, which makes it time consuming to look
> for
> the quark to install and to spot if a quark is installed or not.
>
> Just some late feedback on otherwise a fine tool.
>
>
>
>
> : H. James Harkins
>
> : 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-devel mailing list
> Sc-devel@xxxxxxxxxxxxxxx
> http://lists.create.ucsb.edu/mailman/listinfo/sc-devel
>
>
--
http://www.mcld.co.uk