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
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Nov 11, 2004 12:06 am    Post subject: Reply with quote

I'll make sure something like that is on the todo list. In addition to (or perhaps instead of) an automatic resizing mode, perhaps there can be a new automatic label such as this:

GuiSize:
; This subroutine is launched automatically whenever window size changes.
GuiControl, Move, MyEdit, %A_GuiControlEvent%
return

For the above, I'm thinking A_GuiControlEvent could contain the new size every time the user changes the window size. However, that would not be very flexible so maybe it's better just to do:

GuiSize:
GuiGet, GuiPos, pos ; Retrieves rect or coord/dimensions for client area.
GuiControl, move, MyEdit, W%GuiPosW% H%GuiPosH%
return
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Thu Nov 11, 2004 3:53 pm    Post subject: Reply with quote

Quote:
GuiSize:
; This subroutine is launched automatically whenever window size changes.

though not what i initially expected, but this i guess will be more powerful and flexible.
_________________
Back to top
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Thu Nov 11, 2004 4:04 pm    Post subject: Reply with quote

btw there can b issues like when exactly does the section launches:
-when user grabs the edge
-when edge is moved
-when edge is finally released
_________________
Back to top
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Fri Nov 12, 2004 4:26 pm    Post subject: Reply with quote

right now the edit ctrl doesn't accept a grp option... but if its possible then add one that launches the related section whenever the edit fields value 'changes' (not when the field is clicked etc.)... it has several uses, one of them is easy incremental search for scripts, another is for data forms where the totals etc. update automatically if a value is updated (like excel) without needing an 'update' etc. button to be pressed.
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Nov 13, 2004 1:18 am    Post subject: Reply with quote

I'll assume you're talking about g-labels. It's a good idea and I'll make sure it's on the list.
Back to top
View user's profile Send private message Send e-mail
Titan



Joined: 11 Aug 2004
Posts: 5026
Location: imaginationland

PostPosted: Sat Nov 13, 2004 1:31 pm    Post subject: Reply with quote

Can GUI text links be done?
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Nov 13, 2004 2:04 pm    Post subject: Reply with quote

You can simulate a text link with something like this working example:

Gui, Font, underline
Gui, Add, Text, cBlue gMyLink, This is clickable like a hyperlink.
Gui, Font, norm
Gui, Show
return

MyLink:
Run, www.google.com
return
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Wed Nov 24, 2004 9:15 pm    Post subject: Reply with quote

just wondering... why can't i add .ani files (animated cursors) in ahk guis? ..they're the next best thing to animated gifs which i guess can't be supported.
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Nov 25, 2004 2:50 am    Post subject: Reply with quote

It relies on the OS for support of the various file types. So whatever XP can do is what a script can do. Have you already tried animated gifs? They just stay stuck on the first frame?
Back to top
View user's profile Send private message Send e-mail
Jax
Guest





PostPosted: Thu Nov 25, 2004 6:43 am    Post subject: Reply with quote

See this code snipit... ANI icons do not work from resource... but will from file..

Code:
int Style=WS_CHILD|WS_VISIBLE|SS_ICON|WS_TABSTOP|WS_GROUP|SS_NOTIFY;

HWND A = CreateWindowEx(Exstyle,"static",NULL,Style,X,Y,0,0,hWnd,(HMENU)id,g_hInstance,NULL);

HICON hBitmap=LoadImage(0,szIco,IMAGE_ICON,0,0,LR_LOADFROMFILE|LR_CREATEDIBSECTION);

int   Animate=100;
SendMessage(A,(UINT)STM_SETIMAGE,(WPARAM)IMAGE_ICON,(LPARAM)hBitmap);
SendMessage(A,Animate,(WPARAM)STM_SETIMAGE,(LPARAM)IMAGE_ICON);
Back to top
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Thu Nov 25, 2004 6:58 am    Post subject: Reply with quote

yes .gif stucks on first frame.... but for eg. if i show a .ani file as an icon in au3 gui then its shown as animated, while in ahk gui it doesn't show at all.
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Nov 25, 2004 1:55 pm    Post subject: Reply with quote

Jax wrote:
ANI icons do not work from resource... but will from file..

Rajat wrote:
if i show a .ani file as an icon in au3 gui then its shown as animated, while in ahk gui it doesn't show at all.

Thanks for the info. Perhaps what should be done is to make picture controls load .ico and .ani files as though they were icons rather than generic pictures. If feasible, this would allow icons to be used on non-XP OSes that lack the GDI+ DLL file.
Back to top
View user's profile Send private message Send e-mail
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
Page 13 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