Jump to content
Sign in to follow this  
eJan

$GUI_GR_RECT

Recommended Posts

When i run "SyntaxCheck Ctrl+F5" I've got following error message:

C:\Documents and Settings\%USERNAME%\Desktop\FXP.au3(150,53) : ERROR: GUICtrlSetGraphic() [built-in]called with wrong number of args.

GUICtrlSetGraphic ($grp, $GUI_GR_RECT, 0, 0, 221, 81)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

Compiled script works normally, I need help to resolve problem.

Scite4Autoit: May 18, 2005

AutoIt: AutoIt3.1.1.41.zip 27-May-2005 14:28

Part of script:

#include "GUIConstants.au3"

GUICreate("FXP", 226, 88)

$grp = GuiCtrlCreateGraphic (2, 4, 221, 81, 0)

GUICtrlSetGraphic ($grp, $GUI_GR_COLOR, 0x000000)

GUICtrlSetGraphic ($grp, $GUI_GR_RECT, 0, 0, 221, 81) ; ??

$text = GUICtrlCreateLabel("FXP", 8, 10, 209, 29, $SS_SUNKEN)

GUICtrlSetBkColor($text, 0xF0EDE3)

Share this post


Link to post
Share on other sites

When i run "SyntaxCheck  Ctrl+F5" I've got following error message:

Compiled script works normally, I need help to resolve problem.

Scite4Autoit: May 18, 2005

AutoIt: AutoIt3.1.1.41.zip      27-May-2005 14:28

Part of script:

<{POST_SNAPBACK}>

THe .zip files have to be carefully installed. Mainly replace the current release.

If you want to have a cohabitation it is better to use the beta .exe which will setup what is needed for Scite. :(

Share this post


Link to post
Share on other sites

I have also tried with "setup" version, updated Scite definitions, but same error.

Script and capture pics: FlashFXP.rar

EDIT:

When I edit "GUI_GR_RECT x,y,w,h Draw a rectangle. If w=h it will be a square.", and remove "x, y" cordinates Syntax check finish wihout errors

GUICtrlSetGraphic ($grp, $GUI_GR_RECT, 0, 0, 221, 81) = with errors

Posted Image

GUICtrlSetGraphic ($grp, $GUI_GR_RECT, 221, 81) = without errors

Posted Image

Edited by eJan

Share this post


Link to post
Share on other sites

I have also tried with "setup" version, updated Scite definitions, but same error.

Script and capture pics: FlashFXP.rar

<{POST_SNAPBACK}>

I see your point with small example you put your first post.

I was thinking it was related with Ctrl-F5 which was referencing the official release.

But it is the same with Alt-F5 that' reference the beta environment.

We need JdeB to help us. Perhaps my environment is wrong as yours :(

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...