Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic User data is 32-bit? (Read 4884 times)
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
User data is 32-bit?
May 10th, 2013 at 7:25pm
Print Post  
I've been using user data on tables and boxes to store pointers. Unfortunately, this doesn't work so well in x64. Is there something I'm missing or is this value still just a 32-bit long?

I've come up with a workaround, but I'm curious.
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: User data is 32-bit?
Reply #1 - May 11th, 2013 at 8:08am
Print Post  
The 64-bit version is compiled from the same source code and IDL interface definition, so the LONG UserData property is still 32bit. You can store 64-bit values in VariantTag, using the LONGLONG llVal or any pointer field of the VARIANT struct.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: User data is 32-bit?
Reply #2 - May 11th, 2013 at 1:18pm
Print Post  
Quite a bit -- thanks!
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: User data is 32-bit?
Reply #3 - May 17th, 2013 at 3:20pm
Print Post  
I'll just ask here instead of making a new topic. I could implement this myself via event handling but don't want to if I don't have to Smiley -- is there any way to have a box be dragged no matter where you clicked it? The center handle doesn't work well for the user when a box is very wide.
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: User data is 32-bit?
Reply #4 - May 17th, 2013 at 3:27pm
Print Post  
Try setting SelStyle = sstEasyMove.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: User data is 32-bit?
Reply #5 - May 17th, 2013 at 3:31pm
Print Post  
Missed that in the docs. Thanks!
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint