How to set the index of control on a text box

Hello

I know that SetCtrlIndex does not work on a Textbox control.

However, I have to use a Textbox control to display a variable number of messages, each representing a different warning, because of the horizontal scroll bar which is not available on a ListBox (and some messages may be very long).

I want to the attention of the user on the last of these messages, so at the end of the text box, but I'm not able to do this.

Can someone help me?

Thank you

Sergio

Hi Wolfgang,.

your suggestion was very helpful because with further investigation on the SetCtrlAttribute for the text box, I discovered an attribute that seems to work

SetCtrlAttribute (Panel, control, ATTR_FIRST_VISIBLE_LINE, lastTexboxRow);

Thank you

Sergio

Tags: NI Software

Similar Questions

  • How to use the selection tool to resize a text box? Before I was able to click on the text box with the selection too in order to resize, but now I click on it and it only gives me 'path' or 'anchor' options.

    How to use the selection tool to resize a text box? Before I was able to click on the text box with the selection too in order to resize, but now I click on it and it only gives me 'path' or 'anchor' options.

    Ashley,

    What about window > show the rectangle enclosing (Ctrl / Cmd + Shift + B to toggle)?

  • How to set the font color to drop substantial text to a topic only

    I want to apply a different font color for drop-down text for a particular topic only. I tried to change the color through drop down text-> fonts-> font color-> properties apply. The selected color is displayed in the font color, but does not appear when the subject is presented as a preview. The drop-down list text appears in the color applied in style. Would appreciate advice on how to apply the drop-down menu the text color for a specific topic.

    If you have your style sheet saying you drop-down list text is blue, then it will be blue no matter what you do. It's logical. You can try using a different stylesheet for the single subject and changing the drop down to test color accordingly.

  • How to set the default English indesign when creating text

    How can I configure indesign, when you create a default text for English

    You can set default values by first closing all open documents, and then change what you need in the control panel section, the character Panel, styles to paragraph, character, object, table, color chart, stroke and many more.

    This affects defaults to application , not those already in your document, so new documents will be created with the settings but old documents will remain the same.

    If you must change the default values for an existing document, make sure that nothing is selected and change the settings in one of the panels.

  • How to set the type of entry Action Message text programmatically.

    Hello

    I am trying to create an event of PPR on a Page Standard text Message entry.

    I'm extending the controller and try to define the Type of Action to firePartialAction and event to XXXX

    Is it possible to set these properties?


    Kind regards
    Krishna

    Re: Adding the new button in the seeded page
    Re: Adding a Message page Standard OTL box and turn the...

    Thank you
    -Anil
    http://oracleanil.blogspot.com

  • How to set the TextField width to length of text loaded?

    I am loading a few texts from outside. How can I configure the TextField.width to the length of the texts that I'm loading external file?

    textField.autoSize = TextFieldAutoSize.LEFT;

  • How to set the variable when you click on text/image

    Hello

    I have the following parts of the code. What I'm trying to do is set a variable and then the new window will read this variable and show detail appropriate according to the value. I call the new window, no problem, but struggling to get all of the variable 'productidkey '...

    Image

    < td width = "202" rowspan = 2 align = "center" bgcolor = "#FFFFFF" >
    < a href = 'details.php' > < form method = "POST" action = "details.php' style =" margin-bottom: 0; ">
    < input type = "hidden" id = "productidkey" name = "productidkey" value = "6198' > < img src ="6198.JPG"width ="200"height = '133' alt ="in more detail"border = '1' >"
    < / form > < /a > < table >

    Text

    < td >
    < div align = "right" >
    < are method = "POST" action = "details.php' style =" margin-bottom: 0; ">
    < input type = "hidden" id = "productidkey" name = "productidkey" value = "6198' > < a href = 'details.php' > < span class ="TexteÉlément"> < b >... < /b >"
    </span > < / form > < / div > < table >

    It works:




  • How to set the height of row?

    How to set the height of row for my text in EA? I checked this article Edge animate help | Adding text to your project (tutorial) , but it refers to an old version of the environmental assessment.

    Hey Bruce,.

    You can set it in the user interface. Activate additional text settings in the property Panel by clicking on the arrow.

  • How to set the date and time on my HP Officejet pro 8600 more?

    How to set the date and time on my HP officejet pro 8600 more?  It just on a printed journal Jan-oo-oo fax shows 00:00 AM.  There are no instructions on how to change this.  I need proof that I sent a fax to a certain date and time.  Help, please.  Thank you

    Hello

    Below are the steps to set the Date and time for your device:

    1. On the Control Panel, press the right arrow key ( ), press Setup ( ).

  • How to locate the index z (physical) encoder

    Hello

    I'm trying to locate the Z Index of a rotary encoder. I need the counter to zero at each time 0 reached the encoder shaft this same point.

    My problem is that when I run the VI, the angular position starts at 0, no matter where the tree, and this point is used to reset the counter to 0 once occurs a revolution at 360 degrees. Therefore, whenever I run the VI, the current position of the tree is used as the Z-Index.

    Is it possible to locate the actual physical Z-Index of the encoder that is to a specific location of the tree, so that whenever the tree reaches this point, the counter is reset to 0 and this point becomes the Z-Index whenever I run the VI (and not be the location of the tree at the moment that the VI is executed)?

    Basically, I'm trying to accomplish the autoguiding technique to be resolute position of the shaft encoder and not to arbitrary locations that are in the location of the tree using the VI, that can be different each time I run the VI.

    Thank you

    R15

    You can set a Z index position which will reset the counter to 0 whenever it passes through this station.  The meter will always be preloaded with values (0, unless you change it) when you start the meter, and you go to the Z index position first of all to establish the reference position before anything else.  The angular 'Measure of Position' example shows how to set the initial counter value and activate the Z index.

  • How to set the value of a variable in a cluster in LabVIEW to c#?

    Hi guys, I'm working on a small c# program, which by using the interface provided by LabVIEW.  And I know that, with the help of lv. SetControlValue (name, value) can set a variable just on the front panel. But in my case, there are several groups on the front panel. Then it confused me how to set the variables in these groups. For example, there is a cluster named clusterA and a variable named a., I tried something like this:

    lv.SetControlValue("clusterA.valueA",1);
    

    but it totally inoperable. Everyone has some experience with this sort of thing? Thank you very much!!

    Hey guys, thanks a lot for all your response. I just found a simple way to solve this problem. For example, there is a cluster named "ClusterA", and there are only two witnesses, who are: an int value named "IntA" (default = 10 IntA value) and a string value named "StringA" (by default the StringA = 'abc'). In c#, if you call the method:

    var clusterA is vi (Array). GetControlValue ("ClusterA");

    you will get a table looks like: clusterA = {10, 'abc'}; So if you want to change IntA 123, you simply do:

    clusterA.SetValue (123, 0); 123 the value, 0 is the index of IntA in clusterA, after this clusterA table = {123, 'abc'}

    After that, simply to make the table in LabVIEW using:

    VI. SetControlValue ("ClusterA", clusterA);

    and now you see the LabVIEW, IntA is changed.

  • How to set the timeout of read when using channelReader.ReadWaveform?

    I'm using a USB-6210/a. data acquisition, and it works fine until I have to take a longer than 10 s waveform.

    When I take a longer than wave form, I get the error 200284, "some or all of the requested samples are not yet acquired.  To wait for the samples become available use longer read timeout... »

    No problem, I thought, I'll just put a longer period.  I searched through the documentation, and the timeout only I found was the watchdog timeout.  When I wanted a longer value, I get code 200452 State - specific property is not supported by the device or is not applicable to the task.

    I use the code in the example AcqVoltageSamples_IntClk.2008 .net with c# in Visual Studio 2008, .net 3.5 sp1.

    How to set the timeout so that ReadWaveform() is not the time?

    Here is the code:

    privateAnalogMultiChannelReaderchannelReader;

    privateAnalogWaveform awf;

    publicList GetWaveForm()

    {

    Try

    {

    Task getWaveform = newTask();

    getWaveform.AIChannels.CreateVoltageChannel (Channel,"", TerminalConfiguration, RangeMinimum,

    RangeMaximum, AIVoltageUnits.Volts);

    getWaveform.Timing.ConfigureSampleClock ("", SampleRate, SampleClockActiveEdge.Rising,)

    SampleQuantityMode.FiniteSamples, NumSamples);

    getWaveform.Control (TaskAction.Verify);

    channelReader = new AnalogMultiChannelReader (getWaveform.Stream);

    AnalogWaveformdata = channelReader.ReadWaveform (NumSamples);

    AWF = data [0];

    samples As new List();

    for (inti = 0; i)

    returnsamples;

    }

    catch (DaqExceptionexception)

    {

    MessageBox.Show (exception. (Message);

    }

    List of l = newList();

    return l;

    }

    Thank you

    Curt

    Hi Curt,.

    Here is a Knowledge Base that can help you to set the timeout setting in your code:

    The property using Timeout of DAQmx task in Visual Studio

  • How to determine the index of an item in a cluster?

    I have a small program that I put in place, as I'm just trying to get up to speed on Labview.  I have a boolean cluster buttons and for some reason the top button of the page is coming through as Index 3.  There are four buttons in the cluster, but for some reason, there has been a change.  The top must be Index 0.  How to do the things fixed?  I do not see how to determine the index of each button through properties.

    Thank you

    The order of items in a cluster is the same as the order that you added them. To change the order, just right click and select "rearrange controls in the group. If you use Unbundle by name, you don't care the order.

  • How to set the zoom settings menu for lecroywaverunner 6050A

    Hello

    I am trying to initialize the zoom settings of a track of the labview on a Lecroy WaveRunner 6050 A fft. I found how to set the parameters of the fft with the manual of the remote control for LeCroy scopes  http://cdn.lecroy.com/files/manuals/wm-rcm-e_rev_d.pdf ) but I have not found how to set the menu zoom settings.

    I also tried with find command using the command of automation of Lecroy. ( http://cdn.lecroy.com/files/manuals/automation_command_ref_manual_wr.pdf ). but I think that there is a problem with the settings of the commands I send to the scope.

    I just need to put the horizontal and vertical centers and scales.

    If anyone can help,

    Thank you.

    Hello

    I use F1 as my FFT here track.

    Commands to change the scales are:

    Vertical Center: VBS ' app. Math.F1.Zoom.VerCenter = XXXX"

    Portrait/div scale: VBS ' app. Math.F1.Zoom.VerScale = XXXX"

    Horizontal at the Center: VBS ' app. Math.F1.Zoom.HorCenter = XXXX"

    Horzontal scale/div: VBS ' app. Math.F1.Zoom.HorScale = XXXX"

    I also want to point you to an application on the scope that will help you.

    If you go to the file menu and select cut, to the office, there is a shortcut to an application called "XStream Browser"

    The browser is an interactive application that will present all automation methods and properties that are available on the scope.  He acually connects to the scope of the request, so you can use it to test various components to see what they do on the scope.  It is very intuitive and I use it exclusively. (this is where I went looking for the commands above for you).

    Here is a link to Chapter 1 of the manual of automation: http://cdn.lecroy.com/files/manuals/04_xstreamautomation_ch1.pdf

    Page 1 - 5 has a quick introduction to the browser and its use.

    I hope that it becomes operational.

    Kind regards

    Leonard Brown

    LeCroy sales engineer

    1-800-5LeCroy

  • How to set the clock for the hours, minutes, and seconds with Windows XP

    How to set the clock for the hours, minutes, and seconds with Windows XP

    I don't know of your question.  If you ask how to show the clock in the tray system with hours, minutes and seconds, then download & run "Tclock Light".  Windows will not natively display the seconds.

    TClock Light: <> http://homepage1.nifty.com/kazubon/tclocklight/index.html >

    HTH,
    JW

Maybe you are looking for