kuldeep Posted December 10, 2012 Share Posted December 10, 2012 Hi, I am creating a GUI in which i need a button. I have created the button using following code. $btn[1] = GUICtrlCreateButton("Fix this Issue", 395, 88, 100,37,$BS_BITMAP) GUICtrlSetImage($btn[1],"C:\autoit\img.bmp",0) In this i am using an image on button. When i click on button, it just get clicked but don't give the effect of push button. I want to give a push button effect to this button. Can anyone help me, please? Link to comment Share on other sites More sharing options...
Andreik Posted December 10, 2012 Share Posted December 10, 2012 Maybe using $BS_PUSHLIKE style. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
orbs Posted December 10, 2012 Share Posted December 10, 2012 you need to create a checkbox instead of a button, and combine the style $BS_PUSHLIKE. this makes the button looks pushed when the actual checkbox is ticked. Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff 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