GTK only (in lib/gtk.g)

Cogent Tools Demo and Tutorials: Version 4.0
Prev | Chapter 10. Abstracted Functions | Next

# 10.5. GTK only (in `lib/gtk.g`)

## 10.5.1. Buttons - `button_messages`

       /*--------------------------------------------------------------------
        * Function:    button_messages
        * Returns:     t or nil
        * Description: Calls send_message() for 3 button callbacks.  This
        *              function is used only in GTK-specific code, so there is
        *              no Photon counterpart. The "clicked" callback is only
        *              strictly necessary for the radio buttons in the Monitor.
        *------------------------------------------------------------------*/
       function button_messages (button, msg1, msg2)
       {
         button.signal("enter", `send_message(@msg1));
         button.signal("clicked", `send_message(@msg1));
         button.signal("leave", `send_message(@msg2));
       }

Prev | Home | Next
GTK or Photon (in `lib/gtk.g`, `lib/photon.g`) | Up | Photon 1.14 or Photon 2 (in `lib/qnx4.g`, `lib/qnx6.g`)

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.