Wb-FreeKill Posted October 26, 2004 Share Posted October 26, 2004 How do i make a picture as a link in GUImenu? Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted October 26, 2004 Author Share Posted October 26, 2004 someone has to know if its possible??? Link to comment Share on other sites More sharing options...
Developers Jos Posted October 26, 2004 Developers Share Posted October 26, 2004 someone has to know if its possible???<{POST_SNAPBACK}>Ofcourse you can...GUICreate("click the Icon", 200, 200) $H_INP_ICON_ICO = GUICtrlCreateIcon("C:\Program Files\AutoIt3\Icons\filetype1.ico", -1, 100, 50) GUISetState(@SW_SHOW) ; Process GUI Input ;------------------------------------------------------------------------------------------- While 1 $RC = GUIGetMsg() If $RC = -3 Then Exit If $RC = $H_INP_ICON_ICO Then RunWait(@ComSpec & ' /C explorer.exe http://www.autoitscript.com/', '', @SW_HIDE) EndIf Wend SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
scriptkitty Posted October 26, 2004 Share Posted October 26, 2004 (edited) Helpfile:#include "GUIConstants.au3"GUICreate("My GUI") ; will create a dialog box that when displayed is centeredGUICtrlCreateButton ("my picture button", 10,20,40,40, $BS_ICON)GuiCtrlSetImage (-1, "shell32.dll",22) GUISetState (); Run the GUI until the dialog is closedWhile 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoopWendbutton with bitmapedit...JdeB beat me to it. slightly diferent though Edited October 26, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted October 26, 2004 Author Share Posted October 26, 2004 I dont get it, i want a .bmp image to function as a link, but it has to be larger than an icon, lets say "340,70" Link to comment Share on other sites More sharing options...
Developers Jos Posted October 26, 2004 Developers Share Posted October 26, 2004 I dont get it, i want a .bmp image to function as a link, but it has to be larger than an icon, lets say "340,70"<{POST_SNAPBACK}>Ok ... so whats the question you have ?isn't it just a case of : replace GUICtrlCreateIcon() with GUICtrlCreatePic ( ) ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted October 26, 2004 Author Share Posted October 26, 2004 yeah maybe, but im not that good, would you plz give me an example of how to do it? i would like to use an jpg ore bmp image file, i preferre jpg, to show in a GUI window, but bigger than an icon, and it has to link to a specific homepage if you click on it... Hope you understand what im would like to do.. thx for your help Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted October 26, 2004 Author Share Posted October 26, 2004 The button in the buttom should contain a picture that fills the whole button... Link to comment Share on other sites More sharing options...
Developers Jos Posted October 26, 2004 Developers Share Posted October 26, 2004 (edited) As larry said: - take the example. - take a line at the time and look in the helpfile what it does and try to understand. - modify the example and play/learn.... It a lot more gratifying understanding and doing it yourself...... Happy RTFMing Edited October 26, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted October 26, 2004 Author Share Posted October 26, 2004 okay, ill think i got it now, thx Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 26, 2004 Share Posted October 26, 2004 Happy RTFMingrofl My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now