AutoHotkey Community

It is currently May 27th, 2012, 11:05 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: GUI Button without Text
PostPosted: April 25th, 2007, 4:20 pm 
Offline

Joined: May 22nd, 2006, 2:01 pm
Posts: 25
Hello all,

I would like to create a GUI with a text on the left and a button on the right. So the button doesn't need to have the text inside also. The problem is that I don't know how to avoid having text in the button.
I try to visualize the problem:

----------------------------------------------------------------------

| open the excel file |button without text|

---------------------------------------------------------------------

Ok, I hope this helps a bit :)


Thanks for your help in advance

Oli


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2007, 4:28 pm 
Code:
Gui Add, Text, xm, Open Excel
Gui Add, Button, x+10 y+-19 w20 gOpenExcel
Gui Add, Text, xm, Open Word
Gui Add, Button, x+10 y+-19 w20 gOpenWord
Gui Show
Return

OpenExcel:
OpenWord:
   MsgBox Opening Office app...
Return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2007, 4:30 pm 
Offline

Joined: May 22nd, 2006, 2:01 pm
Posts: 25
Great Job and fast as hell ;)

Thanks a lot

Oli


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2007, 4:34 pm 
Code:
Gui, Add, Text,, Test
Gui, Add, Button, xp+30 w100,   ; for testing I've set an ASCII 0160 as the button text (which isn't visible)!
Gui, Show


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2007, 4:35 pm 
Offline

Joined: July 21st, 2006, 6:13 am
Posts: 558
This may get you started...

Code:
Gui, Add, Text, Section, Open the Excel file
Gui, Add, Button, Default ys gButton
Gui, Show
Return
Button:
Msgbox, Button Pressed



HTH...

EDIT: I see you have found plenty of help! :lol:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2007, 5:10 pm 
Oli00 wrote:
Great Job and fast as hell ;)
Is hell fast?
I thought it was painful and sloooow...

As someone said, eternity is long, even more toward the end...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2007, 5:12 pm 
Offline

Joined: May 22nd, 2006, 2:01 pm
Posts: 25
Hopefully no one of use will discover it :)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Edd, Exabot [Bot], Google Feedfetcher, HotkeyStick, Yahoo [Bot] and 13 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group