Page 2 of 2

Re: How do I trigger a Left-Click event?

Posted: Mon Jul 04, 2011 5:03 pm
by RASHAD
It seems that you are not using the proper command

Code: Select all

  If OpenWindow(0, 0, 0, 355, 180, "TreeGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    TreeGadget(0, 10, 10, 160, 160,#PB_Tree_AlwaysShowSelection)
      For a = 0 To 10
        AddGadgetItem (0, -1, "Normal Item "+Str(a), 0, 0)
      Next
      SetActiveGadget(0)
      SetGadgetState(0,4)
      Debug GetGadgetText(0)
    Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf