Page 1 of 1

thumbnailex GetItemSelectState always true

Posted: Fri Oct 28, 2022 2:51 am
by Isaac
the GetItemSelectState always returns for me true.

I loop through all items ( for i =0 to itemcount -1)

GetItemSelectState(i)

will always return for me true

I even tried to do a UnselectAllItems before the loop all ways a still get true

using it vfp.

Re: thumbnailex GetItemSelectState always true

Posted: Fri Oct 28, 2022 1:32 pm
by Hugo
Hi Isaac,

Thanks for your feedback.

Could you provide me a code project isolating the issue on your end please so I may run this "as is" and reproduce it on my end?

Regards,
Hugo Cudd
Technical Support

Re: thumbnailex GetItemSelectState always true

Posted: Sun Oct 30, 2022 8:06 am
by Isaac
I fixed it already.

But I believe its a bug

there was some default code in the GetItemSelectState event that once i removed it all was good
vfp when you click on a control event it will automatically add the parameters for the event in the code for you
in my case when i have clicked on the GetItemSelectState event the flowing code was preloaded.

*** ActiveX Control Method ***
LPARAMETERS itemidx


**
still not sure why this should cause a problem as it doesn't override the return value, but once i removed it all was good

Thanks

Re: thumbnailex GetItemSelectState always true

Posted: Sun Oct 30, 2022 8:29 pm
by Isaac
trying to get drag and drop work from thumbnail to other vfp control but cant get it to work.

what would be the oDataObject.GetFormat for the thumbnail draganddrop?
seems that it has oDataObject.GetFormat(50482) but not sure how to use it