On Mon, Jul 1, 2013 at 10:05 PM, Roman Haefeli <reduzent@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