Jump to content

XSkin.au3... Skin your GUI


Valuater
 Share

Recommended Posts

  • 1 month later...

it has been asked before, but that was way back, so ill do it again, maybe your capable of adding it now ^^

what about png support?

you said on that first post where it was asked that it would support all graphics that autoit supports, but seeying nowadays we have ways to use png on controls and gui...

I think its worth looking intoo ^^

thanx for your wonderfull script mate , cheers.

Damian666

and proud of it!!!
Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

The archive provided in the first post is not working at all and I am getting many error message?

Can you give me some light? (Actually I don't need a light, I need a fix. LOL)

Regards

Shafayat

[Not using this account any more. Using "iShafayet" instead]

Link to comment
Share on other sites

The archive provided in the first post is not working at all and I am getting many error message?

Can you give me some light? (Actually I don't need a light, I need a fix. LOL)

Regards

Shafayat

I have been waiting for anyone else with the same or a similar problem.

... Can you be a little more explicit with your explination of the problem you are having?

8)

NEWHeader1.png

Link to comment
Share on other sites

  • 3 months later...

After a quick look at EzSkin which was designed from XSkin, there is no logical way to incorporate the GDI lay-over skins. The best use I could reasonably establish is to use _ButtonHover() with the GDI and they should work together.

That lays this idea to rest perminantly... unless someone else wants to prove differently... :(

8)

NEWHeader1.png

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

Hi,

Sorry for this question, iv prob missed something although iv read through the entire thread but im gonna ask it anyhow :idea:

Iv got a few apps that i built and i thought id have a look at skinning a couple of them so iv found your Xskin, tested it & applied it to one of my apps. XSkin is a great piece of work and after messing around with the positioning of ctrl's my app's looking just fine. The only thing is that the skinned GUI does not have the ability to resize by the normal dragging of the corners ? Did i miss something ?

I did think about making an invisible button for the corners and just doing something like :-

while _IsPressed ("01")

WinMove (move corner pos to mouse pos)

wend

Sorry again if this subject was already covered, i couldn't see it.

Thx for an excellent contribution to AI

Edited by JackDinn

Thx all,Jack Dinn.

 

JD's Auto Internet Speed Tester

JD's Clip Catch (With Screen Shot Helper)

Projects :- AutoIt - My projects

My software never has bugs. It just develops random features. :-D

Link to comment
Share on other sites

Jack, I do not have much experience with xskins. But one thing is certain. Using a while loop with ispressed udf is not a good idea as it hogs CPU too much.

[Not using this account any more. Using "iShafayet" instead]

Link to comment
Share on other sites

yea but its only while a user is resizing the GUI (a sec or so) so its no prob

But im hoping someone might have a better answer , like i said maybe i missed something.

Thx all,Jack Dinn.

 

JD's Auto Internet Speed Tester

JD's Clip Catch (With Screen Shot Helper)

Projects :- AutoIt - My projects

My software never has bugs. It just develops random features. :-D

Link to comment
Share on other sites

I hope you dont mind but iv had a little tinker with your script for XSkin.au3 in particular XSkinGUICreate() as i mentioned earlier i was looking for a way to restore the ability to resize the GUI by the normal dragging the corners or sides.

So iv come up with this , its a little off but close, o and iv not tried the corner rounding yet either.

syntax :-

XSkinGUICreate("Title", width, hight ,x pos ,y pos ,Skin_location [,header [,corners]]

[REMOVED] Please note its XSkinx NOT XSkin (just so there's no muddle)

Im hoping it should do for what i want :idea: but does need tidying.

EDIT:-

this is a little better it keeps the XIcon buttons (the exit & minimize buttons) in place.

Im only using the Skinning for the GUI so i have not a clue how this would work with Skinned buttons, input boxs etc etc.

One problem i have found is that you need to set GUISetState() directly after the XSkinGUICreate( "My GUI", 400, 450, 100,100,$Skin_Folder,1,0) otherwise any controls you add dont resize properly or at all. Maybe someone can figure out why this is.

Edited by JackDinn

Thx all,Jack Dinn.

 

JD's Auto Internet Speed Tester

JD's Clip Catch (With Screen Shot Helper)

Projects :- AutoIt - My projects

My software never has bugs. It just develops random features. :-D

Link to comment
Share on other sites

I hope you dont mind but iv had a little tinker with your script for XSkin.au3...

One problem i have found is that you need to set GUISetState() directly after the XSkinGUICreate( "My GUI", 400, 450, 100,100,$Skin_Folder,1,0) otherwise any controls you add dont resize properly or at all. Maybe someone can figure out why this is.

Tinkering with XSkin is ok with me.

Secondly, The use of GuiSetState() is typical of the "Create" Function. Here is the minimal example fo XSkin

#include <XSkin.au3> 

; folder of skin
$Skin_Folder = @ScriptDir & "\Skins\Black-Yellow"
$XSkinGui = XSkinGUICreate( "My GUI", 400, 450, $Skin_Folder)

GUISetState()

While 1
    Sleep(10)
WEnd

I don't think you have a problem in that area.

8)

NEWHeader1.png

Link to comment
Share on other sites

what i was meaning was that this works when the GUISetState() if directly after the XSkinGUICreate line.

You can resize the window and the controls are ok (normal controls anyhow, but im sure i could sort it out for the skinned controls to)

#include <XSkinx.au3>
$Skin_loc = "C:\PROGRAMDATA\MY Docs\Auto It\Skins\Defacto"
$XSkinGui = XSkinGUICreate("My GUI", 400, 450, 100, 100, $Skin_loc, 1, 0)
GUISetState()
$XIcon = XSkinIcon($XSkinGui, 3);
GUICtrlCreateButton("Normal Button",20,100,100,35);im useing normal controls after creating the GUI
$button_1 = XSkinButton("Skinned Button", 145, 100, 100, 35, "Hello");test a skinned button

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $XIcon[1]
            Exit
        Case $XIcon[2]
            GUISetState(@SW_MINIMIZE, $XSkinGui)
    EndSwitch
    MouseOver() ;makes the button flash on mouseover
    Sleep(10)
WEnd
Exit
Func Hello()
    MsgBox(64, "XSkin", "Test Button 1", 3)
EndFunc   ;==>Hello

But if i try to put all the controls on before showing the GUI the resizing dont work, it messes up the ctrl's or makes them disappear all together.

#include <XSkinx.au3>
$Skin_loc = "C:\PROGRAMDATA\MY Docs\Auto It\Skins\Defacto"
$XSkinGui = XSkinGUICreate("My GUI", 400, 450, 100, 100, $Skin_loc, 1, 0)
$XIcon = XSkinIcon($XSkinGui, 3);
GUICtrlCreateButton("Normal Button",20,100,100,35);im useing normal controls after creating the GUI
$button_1 = XSkinButton("Skinned Button", 145, 100, 100, 35, "Hello");test a skinned button
GUISetState();GUIsetstate test placed after ctrl's added to GUI

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $XIcon[1]
            Exit
        Case $XIcon[2]
            GUISetState(@SW_MINIMIZE, $XSkinGui)
    EndSwitch
    MouseOver() ;makes the button flash on mouseover
    Sleep(10)
WEnd
Exit
Func Hello()
    MsgBox(64, "XSkin", "Test Button 1", 3)
EndFunc   ;==>Hello

btw, thx for the response Valuater :mellow:

Thx all,Jack Dinn.

 

JD's Auto Internet Speed Tester

JD's Clip Catch (With Screen Shot Helper)

Projects :- AutoIt - My projects

My software never has bugs. It just develops random features. :-D

Link to comment
Share on other sites

How to Hide Xskin Icon in toolbar..

I use WinGetHandle(AutoItWinGetTitle())) But not working..

#Include <XSkin.au3>

; folder of skin
$Skin_Folder = @ScriptDir & "\Skins\Black-Yellow"
$XSkinGui = XSkinGUICreate( "My GUI", 400, 450, $Skin_Folder, WinGetHandle(AutoItWinGetTitle()))
$XIcon = XSkinIcon( $XSkinGui, 2 )

GUISetState()

While 1
    $msg = GUIGetMsg()
    If $msg = $XIcon[1] Then Exit
    If $msg = $XIcon[2] Then GUISetState(@SW_MINIMIZE)
    ;If $msg = $XIcon[3] Then MsgBox(0, 0, "Help", 1)
WEnd

Thank`s To Valuater.. :mellow:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...