[Prev][Next][Index][Thread]

Re: updating an icon label in DUIM



Hi John,

This works for me.   The "o" is changed to an "x" when I push the
button.

define frame <my-frame> (<simple-frame>)
  pane led (frame)
     make(<label>, label: "o");
  pane
    [LOTS OF STUFF OMITTED]
end;

define function run-button-callback (gadget :: <gadget>) => ()
  let frame = sheet-frame(gadget);
  frame.led.gadget-label := "x"; // or an instance of <image>
end;


Also, regarding your programming style, explicit use of "-setter"
functions is not necesssary.  You can use := as I do with
frame.led.gadget-label := "x"


Sent via Deja.com http://www.deja.com/
Before you buy.



Follow-Ups: References: