Jump to content
Sign in to follow this  
Valuater

XSkin.au3... Skin your GUI

Recommended Posts

Look at this screens, i'm getting a line on the mesagebox with some skins.

yes this is possible... the way to work with that is

#1

change the display size in the Skin.ini settings

[settings]; Setting information header

size=50 ; Set the displayed size of the all the images that make the skin

#2

Because this is a message box that YOU defined...

Change the message box size

In all cases you can be sure that once the settings are corrected, they will display correctly on all systems

8)

Edited by Valuater

Share this post


Link to post
Share on other sites

Valuater i need just the OK button, is it possible to do?

Try this code, it's just a quick hack of Valuater's UDF.

It adds:

XSkinMsgBoxOK($MBTitle, $MBText)

(@Valuater: Hope you don't mind)

Dick

XSkin.au3

Share this post


Link to post
Share on other sites

Hey,

just wondering.. is there a way to hide a XSkinButton? I realized

GuiCtrlSetState($example, $GUI_HIDE)

Didn't work. Sorry if this is a noob question, as you can see by my number of posts, i am still indeed a NOOBIE

With a little addition to XSkin.au3

Another quick hack (Sorry Valuater, do with it what you like)

If you use the attached version of XSkin.au3 then you can use this new command:

XSkinGuiCtrlSetState($XSkinButton, state)

This ONLY works for buttons created with XSkinButton

state can be $GUI_HIDE or $GUI_SHOW

Dick

XSkin.au3

Share this post


Link to post
Share on other sites

With a little addition to XSkin.au3

Another quick hack (Sorry Valuater, do with it what you like)

If you use the attached version of XSkin.au3 then you can use this new command:

XSkinGuiCtrlSetState($XSkinButton, state)oÝ÷ Ù8b°ãKc
+Çè­»­¶ìr·µçpØWJH§ëm¢{-j×jvÞÓ~PÈJ+Ó~P9`ârOêº^6k¡¹^ØZK¢»azË©¦íòØb²+ ¢ZºÚ"µÍ[ÈÚÚ[ÙÐÞÒÊ ÌÍÓP]K   ÌÍÓP^
BÚÚ[ÙÐÞ
    ÌÍÓP]K   ÌÍÓP^    ][ÝÉ][ÝË
B[[

and this ok too...

XSkinGuiCtrlSetState($XSkinButton, state)

but, how about we rename it to ...

XSkinButtonSetState($XSkinButton, state)

Since it is made for buttons only???

8)

Share this post


Link to post
Share on other sites

but, how about we rename it to ...

XSkinButtonSetState($XSkinButton, state)

Since it is made for buttons only???

I Agree. Sounds good.

And thanks for this UDF. Already used it for some programs in our company.

Some people tend to judge programs for the look, not the functionality. And this UDF help.

Dick

Share this post


Link to post
Share on other sites

am havin problems with xskin.au3 when i try to run i get an error message well a couple error messages

C:\Documents and Settings\Geico\Desktop\skins\XSkin.au3(119,148) : WARNING: $GUI_WS_EX_PARENTDRAG: possibly used before declaration.

GUICtrlCreatePic($elements[1], ($tile_size * ($XS_i + 1)), 0, $tile_size, $tile_size, BitOR($SS_NOTIFY, $WS_CLIPSIBLINGS), $GUI_WS_EX_PARENTDRAG )

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Geico\Desktop\skins\XSkin.au3(169,66) : WARNING: $GUI_BKCOLOR_TRANSPARENT: possibly used before declaration.

GUICtrlSetBkColor($XSkinID[$XS_s], $GUI_BKCOLOR_TRANSPARENT)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Geico\Desktop\skins\XSkin.au3(119,148) : ERROR: $GUI_WS_EX_PARENTDRAG: undeclared global variable.

GUICtrlCreatePic($elements[1], ($tile_size * ($XS_i + 1)), 0, $tile_size, $tile_size, BitOR($SS_NOTIFY, $WS_CLIPSIBLINGS), $GUI_WS_EX_PARENTDRAG )

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Geico\Desktop\skins\XSkin.au3(169,66) : ERROR: $GUI_BKCOLOR_TRANSPARENT: undeclared global variable.

GUICtrlSetBkColor($XSkinID[$XS_s], $GUI_BKCOLOR_TRANSPARENT)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Geico\Desktop\skins\XSkin.au3(118,50) : ERROR: Ceiling(): undefined function.

For $XS_i = 0 To (Ceiling($XS_width / $tile_size)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Geico\Desktop\skins\XSkin.au3 - 3 error(s), 2 warning(s)

thats the error i get when runnin it in my editor, i dont see the function Ceiling defined

Share this post


Link to post
Share on other sites

Newbie

*

Group: Members

Posts: 1

Joined: Today, 09:50 AM

Member No.: 17,084

Warn: (0%) -----

am havin problems with xskin.au3 when i try to run i get an error message well a couple error messages

C:\Documents and Settings\Geico\Desktop\skins\XSkin.au3(119,148) : WARNING: $GUI_WS_EX_PARENTDRAG: possibly used before declaration.

GUICtrlCreatePic($elements[1], ($tile_size * ($XS_i + 1)), 0, $tile_size, $tile_size, BitOR($SS_NOTIFY, $WS_CLIPSIBLINGS), $GUI_WS_EX_PARENTDRAG )

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Geico\Desktop\skins\XSkin.au3(169,66) : WARNING: $GUI_BKCOLOR_TRANSPARENT: possibly used before declaration.

GUICtrlSetBkColor($XSkinID[$XS_s], $GUI_BKCOLOR_TRANSPARENT)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Geico\Desktop\skins\XSkin.au3(119,148) : ERROR: $GUI_WS_EX_PARENTDRAG: undeclared global variable.

GUICtrlCreatePic($elements[1], ($tile_size * ($XS_i + 1)), 0, $tile_size, $tile_size, BitOR($SS_NOTIFY, $WS_CLIPSIBLINGS), $GUI_WS_EX_PARENTDRAG )

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Geico\Desktop\skins\XSkin.au3(169,66) : ERROR: $GUI_BKCOLOR_TRANSPARENT: undeclared global variable.

GUICtrlSetBkColor($XSkinID[$XS_s], $GUI_BKCOLOR_TRANSPARENT)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Geico\Desktop\skins\XSkin.au3(118,50) : ERROR: Ceiling(): undefined function.

For $XS_i = 0 To (Ceiling($XS_width / $tile_size)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Geico\Desktop\skins\XSkin.au3 - 3 error(s), 2 warning(s)

thats the error i get when runnin it in my editor, i dont see the function Ceiling defined

Share this post


Link to post
Share on other sites

Thanks for the help Valuator and Dick.

But I'm still not very good with UDF's and such :lmao: . So what exactly would be the code for setting the state of the button?

Func XSkinGuiCtrlSetState($XSkinButton, )
;Does anything go here?
EndFunc

Cheers,

Kurt

Share this post


Link to post
Share on other sites

for "right now only"

use the XSkin.au3 from Dick ( above )

XSkinGuiCtrlSetState($XSkinButton, state) ; this is not a function use, it is a state-set use

This ONLY works for buttons created with XSkinButton

state can be $GUI_HIDE or $GUI_SHOW

( this will be changed shortly )

8)

Edited by Valuater

Share this post


Link to post
Share on other sites

Oct. 26, 2006

XSkin.au3 v1.3.5 *** UpDated ***

* Added - XSkinButtonSetState() - Show or Hide

* Added - Skinned Message Box OK - ok button only

Thanks to Dickb

***************

Thanks for the support gafrost and Fossil Rock

8)

You change your avatar more than a woman changes her mind. :whistle:


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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  

×
×
  • Create New...