SETF

In this section:

  • INC
  • INTERNET_HYPERLINK
  • MINIMISE, MAXIMISE & RESTORE
  • PRINT_ABORT
  • PRINTER_OPEN
  • PRINTER_OPEN1
  • PRINTER_SELECT
  • PRINTER_SETUP
  • SELECT_ALL
  • SET
  • SETF
  • SOUND
  • STOP
  • SUPER_MAXIMISE
  • TEXT
  • TEXT_HISTORY
  • TILE_HORIZONTALLY
  • TILE_VERTICALLY
  • TOGGLE
  • +
  • A simple text editor
  • The SETF call-back takes two arguments each of double precision type. When the call-back is called, the first argument is set to the value of the second at the time when winio@ is called. SETF returns the value 1 so that any necessary updates take place. Here is an example.

    WINAPP
    INTEGER w,winio@,ctrl
    DOUBLE PRECISON v,x v=0d0
    x=1d0
    w=winio@('%`cn%^tt[SetF]&','SETF',v,x)
    w=winio@('%2nl%4rf&',v)
    w=winio@('%lw',ctrl)
    x=2
    END

    The variable v is initially zero and takes the value 1 (rather than 2) when the button is clicked. The SET callback performs the same operation on integers.

     

     

    Basket
    Empty
     
    Copyright © 1999-2024 Silverfrost Limited