Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
suggestions
#3
I would like to be able to rename the script, right now when pressing F2 nothing happens.

I've got some errors when testing some examples from the library:

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.FocusControlOfThisThread();
        e.DontCloseDialog = true;
    }
});

Compilation: 3 errors
<open "<0x100000013>|6|68">Script15.cs(6,68): error CS1061: 'DEventArgs' does not contain a definition for 'DoNotCloseDialog' and no accessible extension method 'DoNotCloseDialog' accepting a first argument of type 'DEventArgs' could be found (are you missing a using directive or an assembly reference?)
<open "<0x100000013>|12|24">Script15.cs(12,24): error CS1061: 'AWnd' does not contain a definition for 'FocusControlOfThisThread' and no accessible extension method 'FocusControlOfThisThread' accepting a first argument of type 'AWnd' could be found (are you missing a using directive or an assembly reference?)
<open "<0x100000013>|13|5">Script15.cs(13,5): error CS1061: 'DEventArgs' does not contain a definition for 'DoNotCloseDialog' and no accessible extension method 'DoNotCloseDialog' accepting a first argument of type 'DEventArgs' could be found (are you missing a using directive or an assembly reference?)

C# code:
ADialog.ShowNoWait("Simple example");

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.ThreadWaitClosed(); Print(d.Result); //wait until the dialog is closed and get result. Optional, just an example.

Compilation: 1 errors
<open "<0x10000000E>|11|3">Script10.cs(11,3): error CS1061: 'ADialog' does not contain a definition for 'ThreadWaitClosed' and no accessible extension method 'ThreadWaitClosed' accepting a first argument of type 'ADialog' could be found (are you missing a using directive or an assembly reference?)


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)