Which programming language is most suitable for implementing the windows form dialog box?

But as?

I want to implement a fairly simple dialog with a few buttons.

+3
source share
2 answers

One of the easiest ways to get some simple dialogs and some related code running on Windows is AutoHotKey . It's free, like in beer, too.

This is a macro script where you can write small programs in the form of scripts (and bind them to keys so that where they get their name and original purpose).

AHK - , BASIC, . , .


/

Windows; Delphi, Java. : , . / . , .

Delphi, , ... , . 10 , , 5 .

, , , . , , "".


, script, , , , .

:

script, MsgBox. , IfMsgBox - , .

#SingleInstance
SetTimer, ChangeButtonNames, 50 
MsgBox, 4, Add or Delete, Choose a button:
IfMsgBox, YES 
    MsgBox, You chose Add. 
else 
    MsgBox, You chose Delete. 
return 

ChangeButtonNames: 
IfWinNotExist, Add or Delete
    return  ; Keep waiting.
SetTimer, ChangeButtonNames, off 
WinActivate 
ControlSetText, Button1, &Add 
ControlSetText, Button2, &Delete 
return

, ; . , AHK, , , .

, , AHK :

http://www.autohotkey.com/docs/Tutorial.htm

, , . AHK, ( ) Windows. .

script Notepad, :

RunWait Notepad
MsgBox The user has finished (Notepad has been closed).

:

MsgBox, 4, , Would you like to continue?
IfMsgBox, No
    return
; Otherwise, the user picked yes.
MsgBox You pressed YES.
+2

vb.net #.net .net framework. Windows, , , , ... visual studio beucase visual studio .

+3

Source: https://habr.com/ru/post/1727095/


All Articles