Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

SciTE Customization GUI -- [01/06/2015] B

SciTE Themes AutoIt Color Schemes Abbreviation Manager User Calltip Manager MVC Model View Controller Information Hiding

  • Please log in to reply
168 replies to this topic

Poll: Helpfile (10 member(s) have cast votes)

Should I write a detailed helpfile for this script?

  1. Yes. (9 votes [90.00%] - View)

    Percentage of vote: 90.00%

  2. No. (0 votes [0.00%])

    Percentage of vote: 0.00%

  3. I don't know. (0 votes [0.00%])

    Percentage of vote: 0.00%

  4. I don't care. (1 votes [10.00%] - View)

    Percentage of vote: 10.00%

Vote Guests cannot vote

#161 TheSaint

TheSaint

    *** Devil's Advocate ***

  • MVPs
  • 6,272 posts

Posted 10 January 2015 - 04:26 PM

Not having much luck so far.

It may be clever code, but it is badly formatted and messy as hell, with many variables not declared.

Reminds me of why I've only done the minimal updating.

I discovered that filenames were in wrong case as well, though Windows/AutoIt seems to cope with that.

 

EDIT

I've given up (certainly for tonight), there is obviously something at play that I don't understand, and for some reason the icon library file (.icl) is not being parsed or read correctly. I've varied the numbers both positively and negatively, and nothing changes. I used variables instead of the magic number, though it should equate to the same thing. Tomorrow, I might extract the icons and have them applied individually and see what happens.


Edited by TheSaint, 10 January 2015 - 05:36 PM.

Make sure brain is in gear before opening mouth! Ignoring those who try to divert conversation with irrelevancies. If I put effort into communication, I expect you to read properly & fully, or just not comment. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox








#162 jaberwacky

jaberwacky

    RegExp("\m/")

  • Active Members
  • PipPipPipPipPipPip
  • 3,303 posts

Posted 10 January 2015 - 06:07 PM

When I run the .au3 and move my mouse then this line will fail with @error 1.

  1. $cursorInfo = GuiGetCursorInfo()

 Not sure what @error 1 is supposed to mean here.



#163 jaberwacky

jaberwacky

    RegExp("\m/")

  • Active Members
  • PipPipPipPipPipPip
  • 3,303 posts

Posted 10 January 2015 - 06:09 PM

I fixed the undeclared and unused and general formatting but it still needs work: attachment=45920:GuiBuilder.au3

dl: 14


Edited by jaberwacky, 19 January 2015 - 08:40 AM.


#164 mLipok

mLipok

    thinking does not hurt, ........ .......... but it takes time

  • Active Members
  • PipPipPipPipPipPip
  • 2,720 posts

Posted 10 January 2015 - 09:40 PM

Can we open new topic for GuiBuilder.au3 ?


My contribution:
Debenu Quick PDF Library - UDF
Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX ViewerRTF Printer - UDF * XZip - UDFNEW 14-12-2014: TeamViewer API - UDF_sql.au3 UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * _AutoIt_RequiredVersion() * AppCompatFlags UDFNEW 30-12-2014: Writing DPI Awareness App - workaround

 

Other useful stuff - click the following Show button:

Spoiler

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute"  Donald Knuth

:naughty:  :ranting: be  :)


#165 TheSaint

TheSaint

    *** Devil's Advocate ***

  • MVPs
  • 6,272 posts

Posted 11 January 2015 - 05:19 AM

When I run the .au3 and move my mouse then this line will fail with @error 1.

  1. $cursorInfo = GuiGetCursorInfo()

 Not sure what @error 1 is supposed to mean here.

Yep, that caused me to go back to that earlier version of AutoIt to run the au3.

I have tried to detect the icon issue, and compiled it a dozen times at least with all sorts of variations, even fixing a little of the formatting and globalizing some variables, especially some undeclared ones. I even gave it some INI entries so I could adjust things on the fly without the need to recompile every time, as I'm going back and forth between my Win XP and Win 7 machines.

The script is such a mess though and a real mind-bender to a hobbyist like me.

It has an absurd mix of Dim, Global and Local declarations all over the place.

No doubt all Dims probably need to become Global, and all Globals placed at the start of the script.

AutoIt has changed a lot since the inception of GUIBuilder, so there is certain to be some function etc that does things differently.

It really needs to be tidied up and all variable declarations and external functions checked.

 

Oops, just noticed the content of your other reply.

 

I fixed the undeclared and unused and general formatting but it still needs work:

Will check it out.

 

 

Can we open new topic for GuiBuilder.au3 ?

Anyone has always been welcome to do that.

It has had other topics and off-shoot topics for it in the past, including mine (?), but they are all pretty old now.

 

EDIT

I had to add 20 to GUI width plus 10 for height, and add 10 to the left plus 5 to top for GuiCtrlCreateRadio to get the menus to line up correctly on my Win 7 (6.1 in reality) machine, and look a bit better.

$toolbar = GuiCreate("Choose Control Type", 170, 420, 10, @DesktopHeight/2-175, 0x00C00000, -1, $main) $type[$i] = GUICtrlCreateRadio("foo", 10 + ($col * 50), 5 + ($row * 50), 50, 50, $BS_PUSHLIKE + $BS_ICON)

I noticed that $type was declared twice, once in a Global scope and then again in Local for a different purpose. In my latest version, not shown above, I changed all $type[$i] and similar to $contype[$i].


Edited by TheSaint, 11 January 2015 - 05:36 AM.

Make sure brain is in gear before opening mouth! Ignoring those who try to divert conversation with irrelevancies. If I put effort into communication, I expect you to read properly & fully, or just not comment. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox


#166 TheSaint

TheSaint

    *** Devil's Advocate ***

  • MVPs
  • 6,272 posts

Posted 11 January 2015 - 07:52 AM

I've had some success and managed to fix some things so GuiBuilder au3 will now run in v3.3.0.0.

(the version linked to in Post #163 above, did not work for me, still had cursor error, now fixed, etc)

 

Need to do a little more, then I will test on WIN 7.

Just had to reboot the XP PC so a little holdup, which is why I'm typing this.

 

The cursor issue was fixed by making the following line relevant to the correct GUI, instead of not having it assigned to either.

$cursorInfo = GuiGetCursorInfo($main)

There was a magic number, that also made a control ID way into the negatives, so caused a crash when a control was clicked. So I changed the magic number to 13, and they all now work.

 $CurrentType = $tip[$ref-4101]  ;the magic number! ; is now  $CurrentType = $tip[$ref-13]  ;the magic number!

I may have fixed the Icon issue, but not yet tested on WIN 7, by using the following

 GUICtrlSetImage(-1, @ScriptDir & "\iconSet.icl", -($i + 1))

I also had an issue with setting properties (control text), but I had nearly finished checking my fix for that when the PC needed to be rebooted. Seems there was just an error that I'm at a loss to explain how it worked for most controls as it was ... probably AutoIt was just more forgiving in earlier versions.

 

EDIT

Had no luck with icons again, and to top that off, no controls are saved in template or GUI au3 files.

No more time to play right now, until probably tomorrow, so here's what I've got to so far, which others can work on if they wish.

Attached File  GuiBuilder.au3   62.94KB   17 downloads

 

P.S. I'm thinking the icons may be wrong resolution for WIN 7? They need to be extracted and tested, etc.


Edited by TheSaint, 11 January 2015 - 09:06 AM.

Make sure brain is in gear before opening mouth! Ignoring those who try to divert conversation with irrelevancies. If I put effort into communication, I expect you to read properly & fully, or just not comment. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox


#167 TheSaint

TheSaint

    *** Devil's Advocate ***

  • MVPs
  • 6,272 posts

Posted 11 January 2015 - 09:06 AM

As mLipok said, I think we should start a new topic for GuiBuilder.


Make sure brain is in gear before opening mouth! Ignoring those who try to divert conversation with irrelevancies. If I put effort into communication, I expect you to read properly & fully, or just not comment. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox


#168 mLipok

mLipok

    thinking does not hurt, ........ .......... but it takes time

  • Active Members
  • PipPipPipPipPipPip
  • 2,720 posts

Posted 11 January 2015 - 09:46 AM

So maybe Melba23 can split this topic ?

Of course if @jaberwacky confirm my sugestion .


My contribution:
Debenu Quick PDF Library - UDF
Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX ViewerRTF Printer - UDF * XZip - UDFNEW 14-12-2014: TeamViewer API - UDF_sql.au3 UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * _AutoIt_RequiredVersion() * AppCompatFlags UDFNEW 30-12-2014: Writing DPI Awareness App - workaround

 

Other useful stuff - click the following Show button:

Spoiler

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute"  Donald Knuth

:naughty:  :ranting: be  :)


#169 jaberwacky

jaberwacky

    RegExp("\m/")

  • Active Members
  • PipPipPipPipPipPip
  • 3,303 posts

Posted 11 January 2015 - 04:19 PM

OK, sure, let's split it off into its own topic.   Sounds top notch to me, matey.







Also tagged with one or more of these keywords: SciTE, Themes, AutoIt, Color Schemes, Abbreviation Manager, User Calltip Manager, MVC, Model View Controller, Information Hiding

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users