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 

GUI ideas
Goto page Previous  1, 2, 3, ... 11, 12, 13  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
deguix



Joined: 26 Aug 2004
Posts: 72
Location: Everett - MA, USA

PostPosted: Tue Aug 31, 2004 3:59 pm    Post subject: Reply with quote

Quote:
Also, for control sizing, I was thinking that automatic height would be an option for static text labels. In this example, since a width is specified as w100, the height will be automatically calculated based on how much text there is and how many times it starts a new line (based on wrapping and linefeeds (`n) in the text)
This should be optional, but not required. In the future, when you make support for colors on the controls, you'll see that a program could be better looking by coloring the background of some static controls.

Quote:
Maybe the above should also be done for buttons and checkboxes.
I know it's a good feature, but sometimes we might want to make the buttons to occupy the entire dialog... Smile

You could add an option for entering special flags for controls, like the indeterminated (grayed) state of a checkbox, multi or extended selection of items in a listbox, images for normal buttons, and more... However, do the basic GUI first, then you add features like this.

Quote:
I didn't want to spend too much time initially on layout features. For example, the concept of docking a group of controls to the bottom or right sides of a window might be deferred until a later release. So might some kind of dynamic re-positioning that occurs when the user resizes the window.
Yep, this is the job for the developer to do.
_________________
Working now on:
NSIS Wiki (NSIS)
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Wed Sep 01, 2004 12:35 am    Post subject: Reply with quote

That's good info, thanks. I do plan to support the styles you mentioned. In addition, auto-calculating the control's height would only be done if it wasn't specified, so that should be flexible enough.
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Wed Sep 01, 2004 9:53 am    Post subject: Reply with quote

when can we have access to first preview of these features Chris?
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Wed Sep 01, 2004 8:53 pm    Post subject: Reply with quote

I'll try to get a test version out in a couple of days. Any testing and feedback you or others have time for might help accelerate the release.
Back to top
View user's profile Send private message Send e-mail
Atomhrt



Joined: 02 Sep 2004
Posts: 128
Location: Sunnyvale

PostPosted: Thu Sep 02, 2004 1:38 am    Post subject: Reply with quote

Chris wrote:
I'll try to get a test version out in a couple of days. Any testing and feedback you or others have time for might help accelerate the release.


Cool, I could help with that.

Any thoughts as to how big autohotkey might get with the gui stuff in it? Are you using Visual C++ or something else?
_________________
I am he of whom he speaks!
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Sep 02, 2004 2:28 am    Post subject: Reply with quote

It's all just C++ with basic API calls. There's no MFC or other "bloating" things in the code, so I don't expect it to get larger by more than 10K due to the GUI features.
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Thu Sep 02, 2004 3:44 am    Post subject: Reply with quote

Chris wrote:
I don't expect it to get larger by more than 10K due to the GUI features.

icing on the cake!

Quote:
Any testing and feedback you or others have time for might help accelerate the release.

sure!
_________________
Back to top
View user's profile Send private message
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Thu Sep 02, 2004 4:00 am    Post subject: Reply with quote

I'm always availabe for NT, 2000, and XP testing.

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Thu Sep 02, 2004 1:52 pm    Post subject: Reply with quote

It occurred to me that instead of well defined places for every parameter of GUI controls, it'd be easier and more future-proof to make it like progress cmd's flexible params.

for example instead of a cast in stone cmd like 'URLDownloadToFile, URL, Filename'
it'd be better to have it like this:
GUIcontrol, Button, MyButton, x30 y40 Font-Tahoma Color-003300
(omitted H and W as you'll support automatic formatting based on text)
Font and Color etc. can be ofcourse abbreviated.

Also directly supporting style and exStyle ($WS_EX_APPWINDOW or $WS_EX_ACCEPTFILES etc.) is I think a must, as one of my old au3 scripts heavily relies on these and I know how important they are for a proper interface.

thanx.
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Sep 02, 2004 2:28 pm    Post subject: Reply with quote

Quote:
instead of well defined places for every parameter of GUI controls, it'd be easier and more future-proof to make it like progress cmd's flexible params
Yes, my current syntax for the command is:
gui, add, control-type, options, text
... where "options" contains a flexible list as you described. I think the font will be done as a separate command. This is because some font names contain spaces and because it might be better since you only have to specify the font once to affect all text and controls from that point onward (similar to HTML).

Quote:
Also directly supporting style and exStyle ($WS_EX_APPWINDOW or $WS_EX_ACCEPTFILES etc.) is I think a must, as one of my old au3 scripts heavily relies on these and I know how important they are for a proper interface.
Although these might not make it into this upcoming version, I will plan them for sometime soon afterward. Thanks.
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Thu Sep 02, 2004 4:08 pm    Post subject: Reply with quote

just for some clarification, i never used $WS_EX_APPWINDOW or $WS_EX_ACCEPTFILES as they are, because it reqd me to FileInclude a definition file making clear what these are.

I just put the actual codes for these like this:
GUISetControl ( "edit", $TEXT, 3, 5, 284, 160, 0x50200104, 0x00000200)
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Sep 02, 2004 6:05 pm    Post subject: Reply with quote

Good point. I'm going to try to make most frequently used styles into option letters. If I discover there are too many styles and controls to realistically include options for, I'll probably add a method to apply "extra styles" to a window or its controls as they were in your example.
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Thu Sep 02, 2004 8:53 pm    Post subject: Reply with quote

Quote:
I'm going to try to make most frequently used styles into option letters.

IMHO it'd be quite cumbersome and confuse newbies. The best way, as i see it, would be a page showing various styles and exstyles and their codes (maybe with some description) in the help file linked to GUI cmd.

Quote:
If I discover there are too many styles and controls to realistically include options for, I'll probably add a method to apply "extra styles" to a window or its controls as they were in your example.

i'm afraid there're quite many!
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Sep 02, 2004 9:47 pm    Post subject: Reply with quote

I know there are a lot of styles, but it was my impression that 80% or more of them either do not apply to a particular control, or are so rarely used that mention of it could be made on a secondary page or omitted entirely. Since I don't know this for sure, anyone with time on their hands is welcome to study the styles and rank them according to expected frequency of use, perhaps proposing option letters for the most popular of them.

Option letters might not be all that easy to remember, but they're definitely easier to remember than style numbers. But as you said, those styles could be #included as pre-defined variables.
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Thu Sep 02, 2004 10:38 pm    Post subject: Reply with quote

Though i don't know quite much about the programming aspect of this but i think au3 just takes the style code and passes it on to windows APIs or whatever, so even if its a style unthought of while programming the feature, one could just get the info about it from MSDN and use it. its quite open-ended this way and suits varied needs. that's what custom interface is all about.
ofcourse u'd know better in this regard.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Goto page Previous  1, 2, 3, ... 11, 12, 13  Next
Page 2 of 13

 
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