Jump to content
Sign in to follow this  
Ghost21

Buttons and Pictures

Recommended Posts

Ghost21

I'm trying to make it so that I have

$Form = GUICreate("Dell 2400MP", 180, 530, -1, -1,$WS_EX_TRANSPARENT)

$Pic1 = GUICtrlCreatePic("Remote.jpg", -2, -2, 180, 500, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))

$Button1 = GUICtrlCreateButton("", 108, 16, 44, 42, BitOR($BS_DEFPUSHBUTTON,$BS_PUSHBOX,$BS_CENTER,$BS_PUSHLIKE,$BS_BITMAP))

GUICtrlSetImage(-1, "Power.bmp", 0)

GUICtrlSetTip(-1, "Power ON / OFF")

GUISetState(@SW_SHOW)

So what I have is this image as a background image then I screen captured the power button.

Then used that pic to put it on a autoit button but I can't click on it with the mouse but as soon as the button is off the background picture I can click on button ?????

Plus the button has a dashed line around it which is annoying.

Posted Image

Please help

Share this post


Link to post
Share on other sites
Ghost21

That looks cool!! Please share it when completed!!

Answer...

$Pic1 = GUICtrlCreatePic("Remote.jpg", -2, -2, 180, 500, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetState( -1, $GUI_DISABLE)

8)

Thanks That worked...

Now I have a square box that outlining the button can that get tossed too ?

Share this post


Link to post
Share on other sites
Valuater

I actually did this same thing...

Posted Image

You can try "flat" buttons ect, see button styles and extended styles in the "button" help page

But, I ended up making labels under the picture!!

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
Ghost21

I actually did this same thing...

Posted Image

You can try "flat" buttons ect, see button styles and extended styles in the "button" help page

But, I ended up making labels under the picture!!

8)

Ok I have done it .... heehehe Dell 2400MP Projector Remote Over the Network.

I can control it via RS232 ... WAHOOO

SAD PART THESE BUTTONS LOOK LIKE CRAP !!!!.... HELP

Posted Image

Edited by Ghost21

Share this post


Link to post
Share on other sites
Ghost21

Looks cool though! :D

Thanks I just wish that the buttons that are there look like the physical buttons. Not this ugly square block...

The actual program runs really well..

I will be sending in awhile.

Share this post


Link to post
Share on other sites
Valuater

You did not check out the info I gave you, its all there round the corners, remove the Title...

Yes those buttons look bad, why not at least re-size them so they are conforming ....at the least

Try a little more...

8)


NEWHeader1.png

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.