[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] NdefGui
The problem is buttonFuncs is an instance variable and the the NdefGUI draws itself right away.
The work around for me will be to just put controls in a window and embed the NdefGUI within that window.
Cheers,
RJK
On Jan 16, 2013, at 7:17 PM, adc wrote:
> hi ron,
>
> must have worked at some point (at least when I wrote that help file),
> but nobody seems to have used it since ;-)
>
> You could try like this (not tested):
>
> + NdefGui {
> makeZoink { |width, height|
> // add it for the lookup, quick and dirty
> buttonFuncs.put(\zoink, { this.makeZoink(buttonSizes[\zoink], height) });
>
> Button(zone, width@height).font_(font)
> .states_([[\zoink, skin.fontColor, Color.clear]])
> .action_({ arg btn, mod;
> "ZOINK".speak // or whatever else
> })
> }
> }
>
> // then this should hopefully work:
> NdefGui(options: NdefGui.audio ++ [\zoink]);
>
>
> hope that helps,
> best, adc
>
> On Jan 16, 2013, at 2:02 PM, "Kuivila, Ronald" <rkuivila@xxxxxxxxxxxx> wrote:
>
>> Hi Julian and Alberto,
>>
>> It does not appear that the "zoink" option for customizing an NdefGui works.
>> Any easy work around?
>>
>> Cheers,
>>
>> RJK
>>
>>
>> _______________________________________________
>> sc-dev mailing list
>>
>> info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
>> archive: https://listarc.bham.ac.uk/marchives/sc-dev/
>> search: https://listarc.bham.ac.uk/lists/sc-dev/search/
>
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/