Hello Phil,
Setting the control to highlight all contents of a control is currently only achievable for text boxes and string controls. This can be done with the use of SetActiveCtrl() and two instances of SetCtrlAttribute() with the attributes Text Selection Start and Text Selection Length. This process is described in detail in the following KnowledgeBase (located on our website www.ni.com/support):
How Do I Set the Cursor Position or the Selection Length in a Text Box or String Control in LabWindows/CVI?
http://digital.ni.com/public.nsf/websearch/C7ED49C29AABA1D086256D1D00645C0F?OpenDocument
Another option could be to modify the CVI environment by using CTRL+INSERT to change the text selection mode of CVI. This process is explained in:
Text Select
ion Modes in LabWindows/CVI
http://digital.ni.com/public.nsf/websearch/76BAD0759E814ADF86256C52006EACF7?OpenDocument
One way around this for your numeric control might be to change it into a string control and then convert the string into a numeric format using commands like strtol or strtod.
Please let me know if you have any further questions on this issue. If you�d like, you can file a product suggestion for CVI at:
http://digital.ni.com/applications/psc.nsf/default?OpenForm&temp1=&node=
Scott Romine
National Instruments
Scott Romine
Course Development Engineer
National Instruments