Jump to content

Need Help ( Simple calculator )


Recommended Posts

I Have a Problem

i Want To Make asimple Calculator like the photo

Posted Image

i want to complet my code to do it

my code is

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>

GUICreate("Calculator", 220, 291, -1, -1)
GuiCtrlCreateButton(" The Result", 70, 180, 100, 30) 


$Input1 = GUICtrlCreateInput("This is Input Box", 16, 72, 185, 21)
$Input2 = GUICtrlCreateInput("This is Input Box", 16, 102, 185, 21)
$Input3 = GUICtrlCreateInput("This is Input Box", 16, 142, 185, 21)

GUISetState(@SW_SHOW)

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit



EndSwitch
Wend

and i want to Change The Main Icon , But How???

Link to comment
Share on other sites

@SpecialCoder - Welcome the the Forum! Already most if not all of the functions you'll need for this project have been stated in this thread, so from the example codes in the Help file, put some code together and when (if?) you run into problems, ask away here and you'll get all kinds of replies! I suggest you look at as well .. Well I was gonna say Conditional and Loop statements (and Operators) in the Help file, but now I'll just say the whole Language Reference section.. Actually you know, the whole Help file is good reading..

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...