| View previous topic :: View next topic |
| Author |
Message |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Thu Nov 11, 2004 12:06 am Post subject: |
|
|
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 |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Thu Nov 11, 2004 3:53 pm Post subject: |
|
|
| 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 |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Thu Nov 11, 2004 4:04 pm Post subject: |
|
|
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 |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Fri Nov 12, 2004 4:26 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sat Nov 13, 2004 1:18 am Post subject: |
|
|
| 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 |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5026 Location: imaginationland
|
Posted: Sat Nov 13, 2004 1:31 pm Post subject: |
|
|
| Can GUI text links be done? |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sat Nov 13, 2004 2:04 pm Post subject: |
|
|
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 |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Wed Nov 24, 2004 9:15 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Thu Nov 25, 2004 2:50 am Post subject: |
|
|
| 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 |
|
 |
Jax Guest
|
Posted: Thu Nov 25, 2004 6:43 am Post subject: |
|
|
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
|
Posted: Thu Nov 25, 2004 6:58 am Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Thu Nov 25, 2004 1:55 pm Post subject: |
|
|
| 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 |
|
 |
|