Re: widget as label

On Dec 28, 2005, at 3:38 AM, Beast wrote:

Is it posible to use widget as a label for radiobutton? any example?

(*) Forever
( ) Duration [ spin button] minutes

It is possible, but for what you've drawn, that's not actually what you want.

Just use an HBox and pack the spinbutton and another label after the radio button.

  Radiobutton ("Forever")
     Radiobutton ("Duration")
     Label ("minutes")

This also gives you the opportunity to hook up things such that the spinbutton is disabled whenever its corresponding radio option is inactive.

Holy crap, dude, we have kids!
    -- Elysse, six days after giving birth to twins

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]