Sign in to follow this  
Followers 0
Wb-FreeKill

Make picture as link

11 posts in this topic

How do i make a picture as a link in GUImenu?

Share this post


Link to post
Share on other sites



someone has to know if its possible???

Share this post


Link to post
Share on other sites

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Helpfile:

#include "GUIConstants.au3"

GUICreate("My GUI")  ; will create a dialog box that when displayed is centered

GUICtrlCreateButton ("my picture button", 10,20,40,40, $BS_ICON)

GuiCtrlSetImage (-1, "shell32.dll",22)

               

GUISetState ()

; Run the GUI until the dialog is closed

While 1

    $msg = GUIGetMsg()

   

    If $msg = $GUI_EVENT_CLOSE Then ExitLoop

Wend

button with bitmap

edit...JdeB beat me to it. slightly diferent though

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

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

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 ( ) ?


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Posted Image

The button in the buttom should contain a picture that fills the whole button...

Share this post


Link to post
Share on other sites

#9 ·  Posted (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 by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

okay, ill think i got it now, thx :)

Share this post


Link to post
Share on other sites

Happy RTFMing

rofl

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

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0