[PD] Zooming bangs, toggles and arrays. WAS: Bug Zooming Bangs and Toggles

Fred Jan Kraan fjkraan at xs4all.nl
Sat Oct 1 20:06:30 CEST 2016


On 2016-09-30 11:16 PM, Miller Puckette wrote:
> Just a quick comment...  I've updated the git repository to try to fix at least
> the worst of the problems... but I haven't ehceked how arrays inside GOPs
> deal with zooming.
> 
> I can't put out a new bug-fix release just now because my testing machines
> are all in San Diego (and I'm not).

The parts I attempted to fix were the sizes of the inlets and outlets,
the size at creation and the font size of the label text.

The inlet and outlet sizes were changed to IEMGUI_ZOOM(x) * IOWIDTH and
IEMGUI_ZOOM(x) * IOHEIGHT. IOWIDTH is defined in g_canvas.h and IOHEIGHT
locally added to get cleaner sys_vgui arguments.

The object and font size were changed by applying IEMGUI_ZOOM(x) to the
relevant parameters in bng_new(). The object size issue is solved in the
current github version (at least for tgl*).

About the arrays; in a GOP, it zooms, directly on the main canvas it
doesn't (xubuntu 14.04-64).

*) For tgl, the zoomed inlet is three pixels high, and the zoomed outlet
is two pixels. The IOHEIGHT constant does make the calculation simpler.
> 
> cheers
> Miller

Greetings,

Fred Jan
> 
> On Fri, Sep 30, 2016 at 10:51:14PM +0200, Fred Jan Kraan wrote:
>> Hi Jaime,
>>
>>> Hi Fred, All,
>>>
>>> I have also noticed that some arrays resize properly and some don’t. Can’t explain why. Arrays shown in GOP will not resize. 
>>>
>> So far, I didn't look into the GUI specifics of array, [bng] and [tgl]
>> have an iemgui heritage, the graphical array is a straight vanilla object.
>>
>>> I think it has something to do with creating objects then resizing, and/or resizing then creating objects. both work fine for you?
>>>
>> Indeed the interaction between creation, editing and zooming is where it
>> gets 'interesting'. On xubuntu 32 + 64-bit it is simple; no resizing
>> happens at all. But I'll stick to studying the vanilla/iemgui objects
>> for now, leaving array to (maybe) later.
>>
>>> best,
>>>
>>> J
>>
>> Greetings,
>>
>> Fred Jan
>>>
>>>
>>>> On Sep 30, 2016, at 3:57 PM, Fred Jan Kraan <fjkraan at xs4all.nl> wrote:
>>>>
>>>> Hi All,
>>>>
>>>> For at least [bng], I got a version that works as expected with zoom,
>>>> including the font size. I'll test some more platforms than just Linux
>>>> 32-bit Ubuntu 14.04 before I produce a patch. [tgl] will probably work
>>>> too. I haven't looked at the other objects yet.
>>>>
>>>> Greetings,
>>>>
>>>> Fred Jan
>>>>
>>>> On 2016-09-15 03:17 AM, Miller Puckette wrote:
>>>>> Yeah, number2 doesn't zoom... the font selection is set up in a way that 
>>>>> isn't zoomable.
>>>>>
>>>>> Sounds like I need to do some more checking for the other gui objects.
>>>>>
>>>>> cheers
>>>>> Miller
>>>>>
>>>>> On Wed, Sep 14, 2016 at 06:46:16PM +0200, baptiste chatel wrote:
>>>>>> ubuntu 16.04 / Pd 0.47-1
>>>>>>
>>>>>> Same behaviour here with vsl, hsl, vradio, hradio, tgl.
>>>>>>
>>>>>> A cnv created when zoomed in get a size property of 14 instead of 30
>>>>>>
>>>>>> Weirder : numbox2 is never zoomed in.
>>>>>>
>>>>>> a vu created when zoomed in appears broken, but is ok after reopening the
>>>>>> patch.
>>>>>>
>>>>>> vradio and hradio does not appear identical before closing the patch and
>>>>>> after reopening it.
>>>>>>
>>>>>>
>>>>>> 2016-09-14 15:44 GMT+02:00 Jaime Oliver <jaime.oliver2 at gmail.com>:
>>>>>>
>>>>>>> This also happens in Ubuntu with Pd 047-1
>>>>>>> best,
>>>>>>> J
>>>>>>>
>>>>>>>> On Sep 13, 2016, at 11:27 PM, Jaime Oliver <jaime.oliver2 at gmail.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> If you create a bang or toggle and then zoom it zooms fine.
>>>>>>>> If however you zoom in and then create the bang, the bang will not be
>>>>>>> created at the zoomed proportions and I get the message:
>>>>>>>>
>>>>>>>> Bad arguments for message ‘zoom’ to object ‘big'
>>>>>>>>
>>>>>>>> Curiously, if you save the patch and then open it again, it will show up
>>>>>>> as zoomed out, smaller in size than regular boxes.
>>>>>>>>
>>>>>>>> This is in OS X 10.11.2 and Pd 0.47-1
>>>>>>>>
>>>>>>>> I can test in Linux tomorrow.
>>>>>>>>
>>>>>>>> best,
>>>>>>>>
>>>>>>>> J
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Pd-list at lists.iem.at mailing list
>>>>>>> UNSUBSCRIBE and account-management -> https://lists.puredata.info/
>>>>>>> listinfo/pd-list
>>>>>>>
>>>>>
>>>>>> _______________________________________________
>>>>>> Pd-list at lists.iem.at mailing list
>>>>>> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Pd-list at lists.iem.at mailing list
>>>>> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
>>>>>
>>>>
>>>> _______________________________________________
>>>> Pd-list at lists.iem.at mailing list
>>>> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
>>>
>>>
>>
>> _______________________________________________
>> Pd-list at lists.iem.at mailing list
>> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
> 



More information about the Pd-list mailing list