LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

displaying ssize_t values on an integer control

Solved!
Go to solution

Hi,

 

in a related question to my earlier post (http://forums.ni.com/ni/board/message?board.id=180&thread.id=46242) it is not obvious to me how to display ssize_t values on a numeric control.

For a numeric control, I have to decide using either int or int64, while the idea of ssize_t was that this switching will occur depending on a macro (32 bit or 64 bit compilation)...

 

Thanks!

0 Kudos
Message 1 of 4
(3,467 Views)
Solution
Accepted by topic author Wolfgang

Hi Wolfgang,

 

The only limitation is that, if you're currently relying on the UI editor to set the data type of the control, you'll need to override it programmatically:

 

    SetCtrlAttribute (panel, control,  ATTR_DATA_TYPE, VAL_SSIZE_T);

 

Luis

0 Kudos
Message 2 of 4
(3,451 Views)

ah, indeed, programmatically all the attributes are available. Good to know 🙂

 

Thanks!

0 Kudos
Message 3 of 4
(3,447 Views)

deleted

0 Kudos
Message 4 of 4
(3,062 Views)