Jump to content


Photo

GuiControl is adding Tabs backwards


  • Please log in to reply
1 reply to this topic

#1 Tyrsius

Tyrsius
  • Members
  • 140 posts

Posted 12 March 2010 - 05:00 AM

PageCount++
GuiControl,, TabControl, Page %PageCount%

According to the documentation of GuiControl, the code above should create a new tab "to be appended at the end of the control's list."

Instead, it does the exact opposite. It adds a new tab with the given name to the beginning of the controls existing list. Even worse though is that, due to the way tabs work, the leftmost tab (the newly created one) still contains the content of the previously leftmost tab. The effect of this is that everything appears to shift down one tab, so that the old rightmost tab (still with its old name) has the contents of the newly created tab.

I am hoping that I am doing something wrong, or that there is some easy way to fix this incredibly strange behavior.

#2 Guests

  • Guests

Posted 12 March 2010 - 05:50 AM

There is a recent topic about this somewhere...omg I finally found it...
Selecting the position of tab added to existing tab control...it's probably a real bug tho...someone should test old versions of AutoHotkey & see if it was always this way...