Jump to content

Recommended Posts

Posted

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

  • Solution
Posted
#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

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
×
×
  • Create New...