Tavion1 Posted August 19, 2007 Share Posted August 19, 2007 Maybe I'm just missing something here. I want to use the button templates from the \Buttons location, but I'm not sure how I'm supposed to tell my script to use those. XSkinButton( "text", left, top, width, height, "function") and it works fine, but it generates a default skin for the button. Then example in the help file doesn't mention anything about choosing a button skin. When I ran the demo .exe, it showed that it could change but button styles, but didn't show how... A point in the general directly would help a lot, Link to comment Share on other sites More sharing options...
Achilles Posted August 19, 2007 Share Posted August 19, 2007 (edited) Maybe I'm just missing something here. I want to use the button templates from the \Buttons location, but I'm not sure how I'm supposed to tell my script to use those. XSkinButton( "text", left, top, width, height, "function") and it works fine, but it generates a default skin for the button. Then example in the help file doesn't mention anything about choosing a button skin. When I ran the demo .exe, it showed that it could change but button styles, but didn't show how... A point in the general directly would help a lot, Welcome to the forums! Do you mind posting your code? I'm going to go look at XSkin quick to see if I can find an answer Alright, here's an example I took out... Try changing this part: @ScriptDir & "\Skins\Black-Yellow" to whatever you want... #Include <XSkin.au3> ; folder of skin $Skin_Folder = @ScriptDir & "\Skins\Black-Yellow";***CHANGE HERE*** $XSkinGui = XSkinGUICreate( "My GUI", 400, 450, $Skin_Folder) GUISetState() While 1 Sleep(10) WEndDoes this help? Edited August 19, 2007 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Tavion1 Posted August 19, 2007 Author Share Posted August 19, 2007 Welcome to the forums! Do you mind posting your code? I'm going to go look at XSkin quick to see if I can find an answer Alright, here's an example I took out... Try changing this part: @ScriptDir & "\Skins\Black-Yellow" to whatever you want... #Include <XSkin.au3> ; folder of skin $Skin_Folder = @ScriptDir & "\Skins\Black-Yellow";***CHANGE HERE*** $XSkinGui = XSkinGUICreate( "My GUI", 400, 450, $Skin_Folder) GUISetState() While 1 Sleep(10) WEndDoes this help? That part actually works fine. I probably wasn't too clear, hehe. When I change that, the skin changes properly, but it still uses a generic button skin/style. I want to use the button style in \Skins\Buttons\Style_15b. When I use the XSkinButton as below, there's nothing to indicate which style to use: $btnHwReq = XSkinButton( "Hardware Req", 38, 88, 80, 25, "btnHwReqClick") Is that supposed to be specified in skin.dat? If you still have the XSkin_Demo it shows it can change the button styles... this boggles me. When I first started trying, I thought it may have had something to do with changing the $Skin_Folder location, but that still doesn't reference the button style folders. lol, I'm wondering if I'm still making since... I've been at this for a while. I know where I'm lost at, not sure if I'm conveying it properly Link to comment Share on other sites More sharing options...
Tavion1 Posted August 19, 2007 Author Share Posted August 19, 2007 Oh, and thanks for the welcome!!! Link to comment Share on other sites More sharing options...
Achilles Posted August 20, 2007 Share Posted August 20, 2007 (edited) That part actually works fine. I probably wasn't too clear, hehe. When I change that, the skin changes properly, but it still uses a generic button skin/style. I want to use the button style in \Skins\Buttons\Style_15b.When I use the XSkinButton as below, there's nothing to indicate which style to use: $btnHwReq = XSkinButton( "Hardware Req", 38, 88, 80, 25, "btnHwReqClick") Is that supposed to be specified in skin.dat? If you still have the XSkin_Demo it shows it can change the button styles... this boggles me. When I first started trying, I thought it may have had something to do with changing the $Skin_Folder location, but that still doesn't reference the button style folders. lol, I'm wondering if I'm still making since... I've been at this for a while. I know where I'm lost at, not sure if I'm conveying it properly I don't really know what to say... I haven't used xskin much at all. I posted a link to this here so that maybe the creator of xskin can help you Edited August 20, 2007 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Valuater Posted August 21, 2007 Share Posted August 21, 2007 to make "ease of use"... use the EzSkin file it has the buttons you are wanting built-inEzSkin8) Link to comment Share on other sites More sharing options...
Tavion1 Posted September 4, 2007 Author Share Posted September 4, 2007 Sorry for the late reply. Thanks for the assistance. I think I've got it going Link to comment Share on other sites More sharing options...
ToyleY Posted November 17, 2007 Share Posted November 17, 2007 Me too - I can't use the fancy buttons. XSkinButton just does squares. I have tried this normal code: $button_4 = GUICtrlCreateButton ("my picture button", 10,20,40,40, $BS_BITMAP) GUICtrlSetImage ($button_4, "0.bmp") to make picture buttons but I have no idea how to do 'rollover' picture change and 'press' colour changes. The XSkin example does fancy buttons but the source code for the example does not exist? Oh well! 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