How do I add a winbutton on ulcd-24PTU 4D systems display to my program?

Working on a storage box project, the sketch for one specific drawer on my storage bin is complete and would like to add the winbutton to my program that would initiate the movement of my stepper motors. I found this on the app notes of the genieArduino.h library.

int genieReadObj (int object, int index)
{
  struct genieReplyStruct reply ;
  uint32_t timeUp ;
  uint8_t checksum ;

// Discard any pending replys

  while (genieReplyAvail ())
    genieGetReply (&reply) ;

  genieAck = genieNak = FALSE ;

  geniePutchar (GENIE_READ_OBJ) ; checksum   = GENIE_READ_OBJ ;
  geniePutchar (object) ;         checksum  ^= object ;
  geniePutchar (index) ;          checksum  ^= index ;
  geniePutchar (checksum) ;

// Wait up to 50mS for a reply
//      Note: @9600 baud 5 characters will take 5mS!

  for (timeUp = millis () + 50 ; millis () < timeUp ;)
  {
    if (genieNak)
      return -1 ;

    if (genieReplyAvail ())
    {
      genieGetReply (&reply) ;
      if ((reply.cmd == GENIE_REPORT_OBJ) && (reply.object == object) && (reply.index == index))
        return reply.data ;
    }

    delayMicroseconds (101) ;
  }

  return -1 ;
}

My question is, do I have to add this whole code to my current sketch to make the winbutton activate the rest of my pre assembled sketch?
any information about this would be much appreciated.

Sam3408

Have you tried here http://www.4dsystems.com.au/support/ Factory Support or looked at this?... http://embeddedcomputing.weebly.com/ A library for 4D Systems And a Forum... http://4d.websitetoolbox.com/ There are several other applications available from the Mfr's website too...