Tk Library Source Code

View Ticket
Login
Ticket UUID: 773246
Title: snit: Multi-delegation for options
Type: RFE Version: None
Submitter: andreas_kupries Created on: 2003-07-17 20:05:59
Subsystem: snit Assigned To: duquette
Priority: 3 Low Severity:
Status: Closed Last Modified: 2013-07-04 17:25:43
Resolution: Not Applicable Here Closed By:
    Closed on:
Description:
For options it sometimes makes sense to delegate 
changes to more than one component of a megawidget.

For example: -background, -foreground of a megawidget 
may go to all components.

Currently we have no convenient way to specify such 
multi-delegation. We can do it through an 'onconfigure' 
handler, but this is inconvenient.
User Comments: duquette added on 2004-08-08 11:23:52:
Logged In: YES 
user_id=372859

After considerable though, it turns out that this isn't delegation at all, but 
propagation.  The difference is that in delegation the option's value is 
owned by a component; in propagation, the option's value rightfully 
belongs to the megawidget, while 1 or more components are constrained 
to have their options set to the same value as the component's option.

The best way to handle this at present is through a snit::macro.