 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
rafleo
Joined: 16 Jul 2007 Posts: 42 Location: Bremen, Germany
|
Posted: Sun Dec 09, 2007 1:00 pm Post subject: my wishlist (concerning GUIs only) |
|
|
Hey Chris,
I would really enjoy having the possibility to have real
buttons with an image (and / or text) in AHK without having to use special functions or DLLs.
Also, a menu for windows would be enjoyable.
I don't know how other users think, so please post comments.
Cheers! |
|
| Back to top |
|
 |
tic
Joined: 22 Apr 2007 Posts: 1375
|
Posted: Sun Dec 09, 2007 5:23 pm Post subject: |
|
|
| This is already possible |
|
| Back to top |
|
 |
rafleo
Joined: 16 Jul 2007 Posts: 42 Location: Bremen, Germany
|
Posted: Sun Dec 09, 2007 11:35 pm Post subject: |
|
|
| well, i know that you can have some sort of fake menu and having buttons with images using special functions or dlls, but what i was looking for was a native support for this by ahk. |
|
| Back to top |
|
 |
tic
Joined: 22 Apr 2007 Posts: 1375
|
Posted: Mon Dec 10, 2007 12:03 am Post subject: |
|
|
| Code: | Gui, Add, Picture, x10 y10 w100 h-1 gMsg, Picture.jpg
Gui, Show, AutoSize
Return
Msg:
MsgBox, This is a button
Return |
|
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2436
|
Posted: Mon Dec 10, 2007 2:05 pm Post subject: |
|
|
| tic wrote: | | Code: | Gui, Add, Picture, x10 y10 w100 h-1 gMsg, Picture.jpg
Gui, Show, AutoSize
Return
Msg:
MsgBox, This is a button
Return |
| Not quite the same. Nice try though... |
|
| Back to top |
|
 |
Trikster
Joined: 15 Jul 2007 Posts: 1224 Location: Enterprise, Alabama
|
Posted: Mon Dec 10, 2007 3:29 pm Post subject: |
|
|
Search the forums for graphic buttons. _________________ ScriptPad | ~dieom | dieom | izwian2k7 | Ian | God |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Tue Dec 11, 2007 12:26 am Post subject: Re: my wishlist (concerning GUIs only) |
|
|
| rafleo wrote: | | I would really enjoy having the possibility to have real buttons with an image (and / or text) in AHK | As in, a button with an image on it, or a button with custom graphics?
| Quote: | | without having to use special functions or DLLs. | Why?
| Quote: | | Also, a menu for windows would be enjoyable. | Could you elaborate? I think windows wouldn't be very tasty.  |
|
| Back to top |
|
 |
tic
Joined: 22 Apr 2007 Posts: 1375
|
Posted: Tue Dec 11, 2007 12:52 am Post subject: |
|
|
| Quote: | | Not quite the same. Nice try though... |
Well he hasnt said what he considers a button. Does he need mouseover effects? or click effects...? Theyre all easily possible in ahk, but he just needs to elaborate more. |
|
| Back to top |
|
 |
rafleo
Joined: 16 Jul 2007 Posts: 42 Location: Bremen, Germany
|
Posted: Tue Dec 11, 2007 4:37 am Post subject: |
|
|
I was just thinking about a "real button" (like the ones you can create via gui, add, button), but simply with the possibility to have an image besides the text or simply only an image.
I just thought that this couldn't be very difficult to add, because other major programming language, like C++, has this option. And you can style your GUIs a bit more.
An external DLL or function may increase the size of the compiled EXE a lot more than if it is added to the DLLs that are included in the EXE anyway.
And for the menu - I thought of a menu at the top of a GUI, where you can have file, edit, view, help etc. The workaround made by (I forgot who made it), anyway, the MMenu method is working, but for example under win 98 the position of the menu is another than when using win xp (which is quite strange). And as we have a StatusBar now, the menu is the other element that could bring ahk GUIs forward to the possibilities of today. (You could create nider editors etc.).
I mean, it was only an idea, but I thought it would make ahk a bit better and bring nearly all the features that you'll find in VisualBasic, C++ and so on.
But keep on critizising, I'm not the master of AHK, and you may show me that I have to learn a lot (and what it is). |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Tue Dec 11, 2007 6:38 am Post subject: |
|
|
| rafleo wrote: | | II just thought that this couldn't be very difficult to add, because other major programming language, like C++, has this option. | It can be done in C++ via owner-drawn buttons or button styles/messages. You have the same options in AutoHotkey.
| Quote: | | An external DLL or function may increase the size of the compiled EXE a lot more than if it is added to the DLLs that are included in the EXE anyway. | Is 1 KB somehow unacceptable? Who's to say building it in would necessarily make it any smaller?
| Quote: | | And for the menu - I thought of a menu at the top of a GUI, where you can have file, edit, view, help etc. | Does Gui, Menu, MenuName somehow fall short of your expectations?
| Ian wrote: | Search the forums for graphic buttons.
| Have you done as Ian suggested...? The second link (atm) is Graphic Buttons. With slight modifications, the button can have text and an image. It's not even 1 KB...
| rafleo wrote: | | I thought it would make ahk a bit better and bring nearly all the features that you'll find in VisualBasic, C++ and so on. | Oh, don't worry... it's already done.  |
|
| Back to top |
|
 |
AHKnow* Guest
|
Posted: Thu Dec 13, 2007 1:28 am Post subject: |
|
|
He may be getting at colored buttons. Like a blue button, without having to make DLL calls.
AutoHotkey's method for creating GUIs is great, but you can't create the same kind of GUIs that you can in other languages yet. The colored button is an example. |
|
| Back to top |
|
 |
AHKnow* Guest
|
Posted: Thu Dec 13, 2007 1:33 am Post subject: |
|
|
| AHKnow* wrote: | He may be getting at colored buttons. Like a blue button, without having to make DLL calls.
AutoHotkey's method for creating GUIs is great, but you can't create the same kind of GUIs that you can in other languages yet. The colored button is an example. |
Oopssss. I mean not able to create GUIs at the same level of other languages without doing "workarounds", like DLL calls, etc....
I'm thinking the OP wanted this type of capability built into the standard AHK GUI language. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|