Wb-FreeKill 0 Posted October 26, 2004 How do i make a picture as a link in GUImenu? Share this post Link to post Share on other sites
Wb-FreeKill 0 Posted October 26, 2004 someone has to know if its possible??? Share this post Link to post Share on other sites
Jos 2,164 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. Share this post Link to post Share on other sites
scriptkitty 1 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. Share this post Link to post Share on other sites
Wb-FreeKill 0 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" Share this post Link to post Share on other sites
Jos 2,164 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. Share this post Link to post Share on other sites
Wb-FreeKill 0 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 Share this post Link to post Share on other sites
Wb-FreeKill 0 Posted October 26, 2004 The button in the buttom should contain a picture that fills the whole button... Share this post Link to post Share on other sites
Jos 2,164 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. Share this post Link to post Share on other sites
Wb-FreeKill 0 Posted October 26, 2004 okay, ill think i got it now, thx Share this post Link to post Share on other sites
the_lord_mephy 0 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] Share this post Link to post Share on other sites