AutoHotkey Community

It is currently May 27th, 2012, 10:12 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: October 26th, 2004, 6:24 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Here are the changes for v1.0.22: http://www.autohotkey.com/changelog/

The tab control seemed to be the most-requested control type, which is why it's in this version. Control types such as hotkey, slider, and date are planned for the next version.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 26th, 2004, 7:14 pm 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
First : thanks for this new release and for this new control : Tab
I have two question to ask about the Tab control :
1) Is there a way to activate a Tab by a command (for example the click on a button on a tab display an other Tab) ?
2) Is it possible to change the content of a control on a tab witch is not currently displayed ?
Thanks for your answer.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 26th, 2004, 10:06 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Quote:
1) Is there a way to activate a Tab by a command (for example the click on a button on a tab display an other Tab) ?
Yes, and if you assign a variable to the tab, it's easier to refer to it:
Gui, add, tab, vMyTab, First Tab|Second Tab|Third Tab
Gui, tab, 3
Gui, add, button,, Go To 1
...
return

ButtonGoTo1:
GuiControl, choose, MyTab, 1 ; Select the first tab.
return

Quote:
2) Is it possible to change the content of a control on a tab witch is not currently displayed ?
Yes, use GuiControl also:
GuiControl,, MyEdit, New text contents.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2004, 4:46 am 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
Thanks for your reply. Chris
Sorry but some few questions :
1) For that one I must say I didn't try yet : how do you hide a tab and all its contained controls with GuiControl ? "GuiControl, Hide, Tab, 2" ?
If you hide a Tab with "GuiControl, Hide", does it hides automatically all the controls in the tab or is it up to the AHK programmer to do it one by one ? (If it is, for me there is no prob but I prefer to know). Of course the same question apply to GuiControl, Show...

2) In the help file :
Quote:
Gui, Tab, 3, 2 -- Future controls will be owned by the third tab of the second tab control.
Does it means that a Tab control may have Tab controls in it ? If it is Ok how much maxi ? 256 ?
In this case, the name rule can be applied, with the limitation in the help file (Gui, Tab, Parameters, International) for example ?
Quote:
Gui, Tab, 3, 2 -- Future controls will be owned by the third tab of the second tab control.
Seems to mean that things are in this order : this is the third Tab witch is "owned" by the second one (up level) of the window. Is it the case ? If it is, isn't more logical to write Gui, Tab, 2, 3, as this is the third Tab of the second one, so the second one it at upper level ?

3) In the help file :
Quote:
Each control may have no more than 256 tabs.
What's the meaning ? A control can have Tabs ? I don't understand. Just a mistyping ?

Thanks again for your (future) replies and for this fantastic software.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2004, 1:39 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Quote:
how do you hide a tab and all its contained controls with GuiControl ? "GuiControl, Hide, Tab, 2" ?
Although you can't hide a particular tab (page) of a tab control, you can either:
1) Hide the entire tab control (which hides all its tabs).
2) Delete tabs off the end of a tab control, which effectively hides just those tabs until you later recreate them. Example:
GuiControl,, MyTab, |Tab1|Tab2 ; If there were 3 tabs before, the 3rd is now hidden.

But there is a bug which prevents method #1 from working. Thanks for finding it, it has now been fixed.

Quote:
2) In the help file :
Quote:
Gui, Tab, 3, 2 -- Future controls will be owned by the third tab of the second tab control.
Does it means that a Tab control may have Tab controls in it ?
No, I've specifically disallowed that for now because it raises doubt and complications that don't seem justified given how rarely someone would want to have a tab inside a tab. Do you think you would have a use for doing so?

Quote:
In this case, the name rule can be applied, with the limitation in the help file (Gui, Tab, Parameters, International) for example ?
If the above question is still unanswered, please clarify.

Quote:
isn't more logical to write Gui, Tab, 2, 3, as this is the third Tab of the second one, so the second one it at upper level ?
It would be more logical except for the fact that the majority of tabbed windows will have exactly one tab control. By doing it in reverse order, the last parameter can be omitted most of the time.

Quote:
3) In the help file :
Quote:
Each control may have no more than 256 tabs.
What's the meaning ? A control can have Tabs ? I don't understand. Just a mistyping ?
I've clarified that to be: "Each tab control may have no more than 256 tabs (pages)."


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2004, 2:41 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
Tab is a welcome addition. thanx.

is the planned 'date' control the same as the calendar where we get to select month/day etc.?

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2004, 3:59 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Yes, I think so.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2004, 8:09 pm 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
Quote:
GuiControl,, MyTab, |Tab1|Tab2 ; If there were 3 tabs before, the 3rd is now hidden.
OK, so is "GuiControl,, MyTab, |Tab1|Tab2|Tab3" OK to recreate Tab3 ?
Quote:
No, I've specifically disallowed that for now because it raises doubt and complications that don't seem justified given how rarely someone would want to have a tab inside a tab. Do you think you would have a use for doing so?
If I understand well, there can be more than one Tab control in a GUI, but a Tab control can't be put in an other Tab control. For me that's OK.
Quote:
Quote:
In this case, the name rule can be applied, with the limitation in the help file (Gui, Tab, Parameters, International) for example ?
If the above question is still unanswered, please clarify.
I think I understand better the command than this morning (for me). The confusion came of the fact that I was thinking that there was the ability to put a Tab control in an other (witch is not usefull for me).
Quote:
I've clarified that to be: "Each tab control may have no more than 256 tabs (pages).
That's OK for me. It's a large amount of pages. It can be usefull. Thanks again for this new control, for the prog, ......... :) :) :)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2004, 9:07 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Quote:
is "GuiControl,, MyTab, |Tab1|Tab2|Tab3" OK to recreate Tab3 ?
Yes. And because the list starts with a pipe, all existing tabs are replaced with the new list, which is three tabs.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2004, 9:10 pm 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
OK thanks a lot :) :) :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group