Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
suggestions
#4
If F2 does not start renaming, possible reasons are:
The list control is not focused.
F2 is assigned to a menu item.
F2 is used as a global hotkey in some app. For example a trigger.

Again errors in example code. Correct codes:
C# code:
ADialog.ShowTextInputEx("Example", flags: DFlags.CommandLinks, buttons: "OK|Cancel|10 Browse\nSets edit control text.",
    onButtonClick: e => { if(e.Button == 10) { e.EditText = "text"; e.DontCloseDialog = true; } });

ADialog.ShowTextInputEx("Example", "Try to click OK while text is empty.", onButtonClick: e =>
{
    if(e.Button == 1 && Empty(e.EditText)) {
        ADialog.Show("Text cannot be empty.", owner: e.hwnd);
        e.dialog.EditControl.Focus();
        e.DontCloseDialog = true;
    }
});

C# code:
var d = ADialog.ShowNoWaitEx("Another example", "text", "1 OK|2 Cancel", y: -1, secondsTimeout: 30);
2.s(); //do something while the dialog is open
d.Send.ChangeText2("new text", false);
2.s(); //do something while the dialog is open
d.ThreadWaitForClosed(); Print(d.Result); //wait until the dialog is closed and get result. Optional, just an example.


Messages In This Thread
suggestions - by Kevin - 12-12-2019, 05:01 AM
RE: suggestions - by Gintaras - 12-12-2019, 07:28 AM
RE: suggestions - by Start_Learning - 12-12-2019, 04:30 PM
RE: suggestions - by Gintaras - 12-12-2019, 05:08 PM
RE: suggestions - by Start_Learning - 12-12-2019, 05:28 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)