Jump to content

Drawing a circle


jayinoz
 Share

Go to solution Solved by ioa747,

Recommended Posts

Hi all,

I'm struggling here, for what is something that I know should be very simple.

I want to draw a small circle on a form, and change it's colour.

I've looked at the help, seen and tried some examples, attempted to take from these what I need and failed, repeatedly.

Does somebody have a really simple example of this I can steal?

Thanks lots,

Jason

Link to comment
Share on other sites

  • Solution
#include <GUIConstantsEx.au3>

GUICreate("My Draw", 300, 300)


GUICtrlCreateGraphic(0, 0, 300, 300)

GUICtrlSetGraphic(-1, $GUI_GR_COLOR, 0xff0000, 0xff0000)
GUICtrlSetGraphic(-1, $GUI_GR_ELLIPSE, 10, 10, 100, 100)


GUISetState(@SW_SHOW)

;**********************************
While 1
    Switch GUIGetMsg()
        Case -3 ;$GUI_EVENT_CLOSE
            ExitLoop
    EndSwitch
WEnd
;**********************************

 

I know that I know nothing

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

×
×
  • Create New...