AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Adding tabs via GuiControl

 
Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Sat Mar 13, 2010 4:35 pm    Post subject: Adding tabs via GuiControl Reply with quote

The documentation states that tabs will be appended at the end, while they are in fact appended at the beginning.
Code:
tabs = 3
Gui, Add, Tab2, vTab -wrap, 1|2|3
Gui, Add, Button, Default, Add

Gui, Show
return
GuiClose:
 ExitApp

ButtonAdd:
 GuiControl,,Tab,% ++tabs
return

The issue has come up twice recently.
1. Selecting the position of tab added to existing tab control
2. GuiControl is adding Tabs backwards

I suppose it could be fixed by changing either the code or the documentation.
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Sat Mar 13, 2010 10:19 pm    Post subject: Re: Adding tabs via GuiControl Reply with quote

I strongly recommend changing the behavior (if possible) not just changing the docs...
Back to top
Guest






PostPosted: Sun Mar 14, 2010 8:49 am    Post subject: Reply with quote

if you change the behaviour it wil break any scripts where ppl have worked around or used it as it is.

if its possible what i suggest is to in next release add an optional parameter at end of guicontrol which when used with tabs would tell it whether you want new tabs added at end or start, with 0 or absent = at the start being the default.
Back to top
Tyrsius



Joined: 09 Jul 2009
Posts: 140

PostPosted: Mon Mar 15, 2010 7:39 pm    Post subject: Reply with quote

I understand the desire not to break existing functionality, but this is a little strange. You are asking that we maintain broken behavior so that workaround fixes will still fix broken code?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group