thumbnailex GetItemSelectState always true

Discussions about GdPicture.NET usage in non managed applications built in vb6, Delphi, vfp, MFC c++ etc...
Post Reply
Isaac
Posts: 6
Joined: Fri Oct 23, 2020 9:21 am

thumbnailex GetItemSelectState always true

Post by Isaac » Fri Oct 28, 2022 2:51 am

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.

Hugo
Posts: 194
Joined: Tue Dec 18, 2018 10:09 am

Re: thumbnailex GetItemSelectState always true

Post by Hugo » Fri Oct 28, 2022 1:32 pm

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

Isaac
Posts: 6
Joined: Fri Oct 23, 2020 9:21 am

Re: thumbnailex GetItemSelectState always true

Post by Isaac » Sun Oct 30, 2022 8:06 am

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

Isaac
Posts: 6
Joined: Fri Oct 23, 2020 9:21 am

Re: thumbnailex GetItemSelectState always true

Post by Isaac » Sun Oct 30, 2022 8:29 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests