[PD] GOP text field / symbol which is resizeable? (was: GOP text field which sends bang?)

András Murányi muranyia at gmail.com
Tue Jul 2 12:54:54 CEST 2013


On Mon, Jul 1, 2013 at 10:05 PM, Roman Haefeli <reduzent at gmail.com> wrote:

> On Mon, 2013-07-01 at 20:56 +0200, András Murányi wrote:
> > I'm reformulating my question as the problem is evolving:
> > do we have an object that
> > - Displays and holds a text value (like Symbol or Message box),
>
> * symbolbox with width set 0 resizes dynamically
> * hsl, vsl, cnv, etc. can adjust size with 'size' message, can change
> displayed text with 'label' message
>

Very good idea, thanks Roman!
Some difficulties I'm having:
- I don't know how to set the label of [cnv]... is it possible at all?
- (ATTN: Ivica) [hsl] seems to have the bounding box (?) miscalculated in
l2ork so it doesn't GOP when it's less than 2-3px from the border of the
parent canvas. Checked in Vanilla, it works as expected ([hsl] can be
placed to the very border and it will GOP).


>
> > - is Graph-on-Parent,
>
> applies to all above solutions.
>
> > - can be resized (like Number2)? (or small enough by default?)
>
> see above.
>
> To make something send a bang, you could put some [bng] objects behind
> your whatever text displaying objects. Interestingly, hidden GUI objects
> have priority over visible objects when clicked. Another way is to use a
> construct like the following to make a slider send bangs only when
> clicked, but not when dragged:
>
> [hsl]
> |
> [t a a]
>   \/
>   /\
> [sel 0]
>
>
Interesting indeed.
Actually, I don't need the label to send a bang any more, because [pmenu]
won't pop up when the click happens inside a subpatch, so I need to put the
triggering object in the toplevel. (I might still hide it under the GOP
abstraction...)
BTW, is it theoretically possible for a GOP object to display a menu on the
toplevel (stretching over the GOP area of the subpatch where it is)? If
yes, I'd eventually try to hack the pmenu code.

András
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130702/59e087d8/attachment.htm>


More information about the Pd-list mailing list