Sign in to follow this  
Followers 0
PantZ4

GUICtrlCreateGraphic

5 posts in this topic

Can I make a figure like this;

Posted Image

with GUICtrlCreateGraphic/GUICtrlSetGraphic?

Thanks :whistle:

Share this post


Link to post
Share on other sites



It's not $GUI_GR_RECT nor $GUI_GR_ELLIPSE. Anyidea which one it is?

Share this post


Link to post
Share on other sites

Is this not possible?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

maybe with $GUI_GR_PIXEL and $GUI_GR_LINE but then you need many GUICtrlCreateGraphic/GUICtrlSetGraphic

maybe something to start with

#include <GUIConstants.au3>
$gui = GUICreate("Test",250,250)
$1 = GuiCtrlCreateGraphic(10,10,250,250)
$2 = GuiCtrlCreateGraphic(10,10,250,250)
$3 = GuiCtrlCreateGraphic(10,10,250,250)
$4 = GuiCtrlCreateGraphic(10,10,250,250)
GUICtrlSetGraphic($1,$GUI_GR_LINE,40,0)
GUICtrlSetGraphic($2,$GUI_GR_LINE,40,40)
GUICtrlSetGraphic($3,$GUI_GR_LINE,0,40)
GUICtrlSetGraphic($4,$GUI_GR_LINE,0,0)
GuiSetState()

Do
    $msg = GUIGetMsg()
Until $msg=$GUI_EVENT_CLOSE
Edited by Alek

[font="Impact"]Never fear, I is here.[/font]

Share this post


Link to post
Share on other sites

maybe with $GUI_GR_PIXEL and $GUI_GR_LINE but then you need many GUICtrlCreateGraphic/GUICtrlSetGraphic

maybe something to start with

#include <GUIConstants.au3>
$gui = GUICreate("Test",250,250)
$1 = GuiCtrlCreateGraphic(10,10,250,250)
$2 = GuiCtrlCreateGraphic(10,10,250,250)
$3 = GuiCtrlCreateGraphic(10,10,250,250)
$4 = GuiCtrlCreateGraphic(10,10,250,250)
GUICtrlSetGraphic($1,$GUI_GR_LINE,40,0)
GUICtrlSetGraphic($2,$GUI_GR_LINE,40,40)
GUICtrlSetGraphic($3,$GUI_GR_LINE,0,40)
GUICtrlSetGraphic($4,$GUI_GR_LINE,0,0)
GuiSetState()

Do
    $msg = GUIGetMsg()
Until $msg=$GUI_EVENT_CLOSE
oÝ÷ Ûú®¢×©ä°  ^íz»(ë®*mx«ÞvÞÒ-É趫}ç-:÷«ê)Ü¢¹Þ®È³y©ÝÙh¢K0­èb¦¢·­©ðzW(ëhµ©ºÇnëjk¢÷¢µ«­¢+Ø¥¹±Õ±ÐíU%
½¹ÍѹÑ̹ÔÌÐì)U%
ÉÑ ÅÕ½ÐíQÍÐÅÕ½Ðì°ÈÔÀ°ÈÔÀ¤)}U%
Ñɱ
ÉÑÉÁ¡¥I½Õ¹ ÄÀÀ°ÄÀÀ°ÄÀ°ÄÀ¤)U%MÑMÑÑ ¤()¼(ÀÌØíµÍôU%Ñ5Í ¤)U¹Ñ¥°ÀÌØíµÍôÀÌØíU%}Y9Q}
1=M((É¥½¸}U%
Ñɱ
ÉÑÉÁ¡¥I½Õ¹(ìôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôô(ì(ìÍÉ¥ÁÑ¥½¸è$$%}U%
Ñɱ
ÉÑÉÁ¡¥I½Õ¹(ìAɵÑȡ̤è$$$ÀÌØí]¥Ñ ´Q¡Ý¥Ñ ½Ñ¡ÉÁ¡¥(ì$$$$$$$ÀÌØí!¥¡Ð´Q¡¡¥¡Ð½Ñ¡ÉÁ¡¥(ì$$$$$$$ÀÌØí`´Q¡`Á½Í¥ÍÑ¥½¸(ì$$$$$$$ÀÌØíd´Q¡dÁ½Í¥ÍÑ¥½¸(ì$$$$$$$ÀÌØí
½É¹ÉM¥é´=ÁÑ¥½¹°èQ¡½É¹ÈÍ¥é(ì$$$$$$$ÀÌØí=ÙɱÁ´=ÁÑ¥½¹°è¥Í±Ñ¡ÉÁ¡¥°Í¼½ÙȽ¹Ñɽ±Ì¸½ÙɱÀ¥Ð(ìIÅեɵ¹Ðè$$%U%
½¹ÍѹÑ̹ÔÌ(ìIÑÕɸY±Õ¡Ì¤è$%MÕÍÌè(ì$$$$$$%5­ÉÁ¡¥(ì$$$$$%¥±ÕÉè(ì$$$$$$$À(ì$$$$$%ÉɽÈè(ì$$$$$$$Àô9¼Éɽȸ(ìUÍÈ
±±Q¥Àè$$%9½¹(ìÕÑ¡½È¡Ì¤è$$%5ȸiɼ(ì9½Ñ¡Ì¤è$$$%9½¹(ì(ìôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôô)Õ¹}U%
Ñɱ
ÉÑÉÁ¡¥I½Õ¹ ÀÌØí]¥Ñ °ÀÌØí!¥¡Ð°ÀÌØí`°ÀÌØíd°ÀÌØí
½É¹ÉM¥éôØ°ÀÌØí=ÙɱÁôĤ(%%ÀÌØí
½É¹ÉM¥éôÅÕ½ÐìÅÕ½Ðì=ÈÀÌØí
½É¹ÉM¥é±ÐìÐQ¡¸ÀÌØí
½É¹ÉM¥éôØ($ÀÌØí1¥¹M¥éôÀÌØí]¥Ñ ´ ÀÌØí
½É¹ÉM¥é¨È¤(%U%
Ñɱ
ÉÑÉÁ¡¥ ÀÌØí`°ÀÌØíd°ÀÌØí]¥Ñ °ÀÌØí!¥¡Ð¤(%%ÀÌØí=ÙɱÁôÄQ¡¸U%
ÑɱMÑMÑÑ ´Ä°ÀÌØíU%}%M  1¤(($ÀÌØíѵÁ`ôÀÌØí`¬ÀÌØí
½É¹ÉM¥é($ÀÌØíѵÁdôÀÌØíd(%½ÈÀÌØí¤ôÄQ¼ÀÌØí1¥¹M¥éMÑÀÄ($%U%
ÑɱMÑÉÁ¡¥ ´Ä°ÀÌØíU%}I}A%a0°ÀÌØíѵÁ`°ÀÌØíѵÁd¤($$ÀÌØíѵÁ`ôÀÌØíѵÁ`¬Ä(%9áÐ($ÀÌØíѵÁ`ôÀÌØí`¬ÀÌØí]¥Ñ ´Ä($ÀÌØíѵÁdôÀÌØíd¬ÀÌØí
½É¹ÉM¥é(%½ÈÀÌØí¤ôÄQ¼ÀÌØí1¥¹M¥éMÑÀÄ($%U%
ÑɱMÑÉÁ¡¥ ´Ä°ÀÌØíU%}I}A%a0°ÀÌØíѵÁ`°ÀÌØíѵÁd¤($$ÀÌØíѵÁdôÀÌØíѵÁd¬Ä(%9áÐ($ÀÌØíѵÁ`ôÀÌØí`($ÀÌØíѵÁdôÀÌØíd¬ÀÌØí
½É¹ÉM¥é(%½ÈÀÌØí¤ôÄQ¼ÀÌØí1¥¹M¥éMÑÀÄ($%U%
ÑɱMÑÉÁ¡¥ ´Ä°ÀÌØíU%}I}A%a0°ÀÌØíѵÁ`°ÀÌØíѵÁd¤($$ÀÌØíѵÁdôÀÌØíѵÁd¬Ä(%9áÐ($ÀÌØíѵÁ`ôÀÌØí`¬ÀÌØí
½É¹ÉM¥é($ÀÌØíѵÁdôÀÌØíd¬ÀÌØí!¥¡Ð´Ä(%½ÈÀÌØí¤ôÄQ¼ÀÌØí1¥¹M¥éMÑÀÄ($%U%
ÑɱMÑÉÁ¡¥ ´Ä°ÀÌØíU%}I}A%a0°ÀÌØíѵÁ`°ÀÌØíѵÁd¤($$ÀÌØíѵÁ`ôÀÌØíѵÁ`¬Ä(%9áÐ($ÀÌØíѵÁ`ôÀÌØí`¬Ä($ÀÌØíѵÁdôÀÌØíd¬ÀÌØí
½É¹ÉM¥é´Ä(%½ÈÀÌØí¤ôÄQ¼ÀÌØí
½É¹ÉM¥éMÑÀÄ($%U%
ÑɱMÑÉÁ¡¥ ´Ä°ÀÌØíU%}I}A%a0°ÀÌØíѵÁ`°ÀÌØíѵÁd¤($%%ÀÌØí¤±ÐìÀÌØí
½É¹ÉM¥é´ÄQ¡¸ÀÌØíѵÁdôÀÌØíѵÁd´Ä($%%ÀÌØí¤ÐìÄQ¡¸ÀÌØíѵÁ`ôÀÌØíѵÁ`¬Ä(%9áÐ($ÀÌØíѵÁ`ôÀÌØí`¬ÀÌØí1¥¹M¥é¬ÀÌØí
½É¹ÉM¥é($ÀÌØíѵÁdôÀÌØíd¬Ä(%½ÈÀÌØí¤ôÄQ¼ÀÌØí
½É¹ÉM¥éMÑÀÄ($%U%
ÑɱMÑÉÁ¡¥ ´Ä°ÀÌØíU%}I}A%a0°ÀÌØíѵÁ`°ÀÌØíѵÁd¤($%%ÀÌØí¤±ÐìÀÌØí
½É¹ÉM¥é´ÄQ¡¸ÀÌØíѵÁ`ôÀÌØíѵÁ`¬Ä($%%ÀÌØí¤ÐìÄQ¡¸ÀÌØíѵÁdôÀÌØíѵÁd¬Ä(%9áÐ($ÀÌØíѵÁ`ôÀÌØí`¬Ä($ÀÌØíѵÁdô ÀÌØíd¬ÀÌØí!¥¡Ð¤´ÀÌØí
½É¹ÉM¥é(%½ÈÀÌØí¤ôÄQ¼ÀÌØí
½É¹ÉM¥éMÑÀÄ($%U%
ÑɱMÑÉÁ¡¥ ´Ä°ÀÌØíU%}I}A%a0°ÀÌØíѵÁ`°ÀÌØíѵÁd¤($%%ÀÌØí¤ÐìÄQ¡¸ÀÌØíѵÁ`ôÀÌØíѵÁ`¬Ä($%%ÀÌØí¤±ÐìÀÌØí
½É¹ÉM¥é´ÄQ¡¸ÀÌØíѵÁdôÀÌØíѵÁd¬Ä(%9áÐ($ÀÌØíѵÁ`ôÀÌØí`¬ÀÌØí1¥¹M¥é¬ÀÌØí
½É¹ÉM¥é($ÀÌØíѵÁdôÀÌØíd¬ÀÌØí!¥¡Ð´È(%½ÈÀÌØí¤ôÄQ¼ÀÌØí
½É¹ÉM¥éMÑÀÄ($%U%
ÑɱMÑÉÁ¡¥ ´Ä°ÀÌØíU%}I}A%a0°ÀÌØíѵÁ`°ÀÌØíѵÁd¤($%%ÀÌØí¤±ÐìÀÌØí
½É¹ÉM¥é´ÄQ¡¸ÀÌØíѵÁ`ôÀÌØíѵÁ`¬Ä($%%ÀÌØí¤ÐìÄQ¡¸ÀÌØíѵÁdôÀÌØíѵÁd´Ä(%9áÐ)¹Õ¹ìôôÐí}U%
Ñɱ
ÉÑÉÁ¡¥I½Õ¹(¹É¥½¸

Share this post


Link to post
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
Sign in to follow this  
Followers 0