| View previous topic :: View next topic |
| Author |
Message |
Fry
Joined: 01 Nov 2007 Posts: 628
|
Posted: Fri Dec 14, 2007 11:50 pm Post subject: In a GUI guiclose is not needed |
|
|
i hate having to go into every one of my guis and having to type in
GuiClose:
Exitapp
do you think you could make it default _________________ check out my site
www.eliteknifesquad.com |
|
| Back to top |
|
 |
Trikster
Joined: 15 Jul 2007 Posts: 1187 Location: Enterprise, Alabama
|
Posted: Fri Dec 14, 2007 11:58 pm Post subject: |
|
|
But what if you come to a GUI, that when a window is closed you don't want it to stop executing? _________________ ScriptPad/~dieom/dieom/izwian2k7/Ian/God
 |
|
| Back to top |
|
 |
Andreone
Joined: 20 Jul 2007 Posts: 257 Location: Paris, France
|
Posted: Sat Dec 15, 2007 12:25 am Post subject: |
|
|
| How many GUIs do you have to become so lazy? |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6070
|
Posted: Mon Dec 17, 2007 7:27 pm Post subject: |
|
|
I agree with Fry.
Gui Close button should ExitApp when GuiClose: does not exist.
But this could break existing scripts.. so maybe in V2.
 |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6804 Location: Pacific Northwest, US
|
Posted: Mon Dec 17, 2007 7:31 pm Post subject: |
|
|
I disagree. how is AHK to know if this is what you want? what if the gui is pulled up via hotkey?
You could maybe say that a Gui, Show inside an Autoexecute section has this behavior, but one called by hotkey does not, but that makes a debugging nightmare. Also, how would a Gui called by SetTimer act?
I vote against. Would anyone mind if I edit the OP to add a poll? _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6070
|
Posted: Mon Dec 17, 2007 7:36 pm Post subject: |
|
|
| engunneer wrote: | | I disagree. how is AHK to know if this is what you want? what if the gui is pulled up via hotkey? |
From the view point of an end-user, it is intuitive for them that the "Close button" should ExitApp.
This is the reason I had to type that label in hundreds of short examples I had posted.
 |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5107 Location: eth0 ::1
|
Posted: Mon Dec 17, 2007 7:38 pm Post subject: |
|
|
I support the motion. Chris also likes this kind of intuitive behavior. _________________
RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
DerRaphael
Joined: 23 Nov 2007 Posts: 508 Location: Heidelberg, Germany
|
Posted: Mon Dec 17, 2007 11:09 pm Post subject: |
|
|
maybe this can be triggered with some directive command?
something like #GuiExit
but just to be backward compatibel, this parameter should be off by default, so older scripts dont possibly break
my 2 cents
derRaphael _________________
|
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6804 Location: Pacific Northwest, US
|
Posted: Tue Dec 18, 2007 12:30 am Post subject: |
|
|
it's tough to make this not break existing scripts, but also default to having it work as requested. If the point is to have it on by default (to reduce typing), then having a directive negates the effort.
I will admit that I am being swayed to want this, but I don't see a way to make it default without breaking existing scripts. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
|