[futurebasic] Pushing buttons in PG

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1998 : Group Archive : Group : All Groups

From: Mark Arnold <mda515t@...>
Date: Thu, 21 May 1998 07:46:11 -0500
I need to have my program push a button for me (I'm using PG). I've
borrowed Staz's Return.FLTR code and modified it. I've been able to make
the button "flash" as if it was pushed, but nothing happens. I've stepped
through with the debugger and I can see the globals gLongAction&, gAction,
and gWhichButton being set to their correct values. But, when the program
hits the point shown below, gAction gets changed to 4. Can anyone clue me
in on what's happening.

SELECT gAction
  CASE _mainAction   :GOSUB "Action:Main"
  CASE _menuAction   :GOSUB "Action:Menu"
  CASE _buttonAction :GOSUB "Action:Button"
  CASE _mouseAction  :GOSUB "Action:Mouse"
  CASE _windowAction :GOSUB "Action:Window"
  CASE _fieldAction  :GOSUB "Action:Field"
  CASE _otherAction  :GOSUB "Action:Other"
END SELECT:RETURN                        '<<<<I lose my settings here

TIA

-mark-


Mark Arnold
Southwest Missouri State University
Springfield, Missouri

Voice: 417-836-4110
Internet: MarkArnold@...