IonicWind Software

IWBasic => General Questions => Topic started by: Brian on August 24, 2017, 07:39:25 AM

Title: SETSELECTED in Listbox
Post by: Brian on August 24, 2017, 07:39:25 AM
Hi,
I'm using SETSELECTED in a Listbox to select a particular line, but I would also like to simulate a mouse click on that line so that it activates other controls
Any ideas how to achieve this?
Brian
Title: Re: SETSELECTED in Listbox
Post by: Andy on August 25, 2017, 12:38:20 AM
Brian,

Could you not just have an INT variable set to 1 when setselected is used, with this you could have a fast timer checking if the INT is 1.

In the timer section:

If int = 1 then
  Enablecontrol....... 1
Else
  Enablecontrol ...... 0
endif



Title: Re: SETSELECTED in Listbox
Post by: Brian on August 25, 2017, 03:10:14 AM
Thanks, Andy,

I'll look at that idea, although after sleeping on it, I may have another trick in mind

Brian