How to use PriTextBoxF4 in V10?

0

Good morning. Which of the 2 components should we use in V10? The PritextboxF4Net100 or PritextboxF4100?

In previous releases there was an OpenListF4 event that opened the list when you pressed F4 or with the mouse on the F4 button. In the new version does not exist. Do we have to use KeyUp?

    
asked by anonymous 30.07.2018 / 11:44

1 answer

2

As previously stated, the% dll of% is only used for internal use, so you should use the other, PriTexBoxF4NET100 .

As for the PriTextBoxF4100 event, it will have to be accessed in a different way (since the control OpenListF4 where this event is triggered is "integrated" in the main control):

private void InicializaControlos()
{
    try
    {
        Control[] controls = txtF4.Controls.Find("_txtF4Net", false);

        if (controls[0] is PriTextBoxF4NET100.PriTextBoxF4)
        {
            var txtPriTextBoxF4 = controls[0] as PriTextBoxF4NET100.PriTextBoxF4;
            txtPriTextBoxF4.OpenListF4 += TxtPriTextBoxF4_OpenListF4;
        }
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.Message);
    }
}

private void TxtPriTextBoxF4_OpenListF4()
{
    // código específico aqui...
}

The control F4 is the control txtF4 added to PriTextBoxF4100 .

    
30.07.2018 / 15:39