Sign in to follow this  
Followers 0
mrbond007

Skinning the GuiCtrlCreateInput

14 posts in this topic

#1 ·  Posted (edited)

i managed to make a skin for the guictrlcreateinput, and it worked but i was wondering if there is a different way to do it

GUICreate(":(", 150, 60)
$inp1 = GUICtrlCreateInput("", 7, 20, 130, 20)
GUICtrlSetLimit($inp1, 20)
$pic = GUICtrlCreatePic("inp.gif", 5, 16, 134, 28)
GUISetState()

While 1
    GUICtrlSetState($pic, 2048)
    If GUIGetMsg() = -3 Then Exit
WEnd

PS : i came across an issue that i'm trying to solve but no luck, when another window gets the focus the Guictrlcreateinput is revealed. Any help is appreciated

Edited by mrbond007

Share this post


Link to post
Share on other sites



i need an open source exmaple

one change the gif to bmp...

two thats the best your gona get...

im looking for a way to skina progress par.. but i cant find one...

Share this post


Link to post
Share on other sites

one change the gif to bmp...

two thats the best your gona get...

im looking for a way to skina progress par.. but i cant find one...

it doesn't matter if the picture is Gif, BMP or JPG. It can be done with Visual Basic but

Share this post


Link to post
Share on other sites

heres an answer to this question:

PS : i came across an issue that i'm trying to solve but no luck, when another window gets the focus the Guictrlcreateinput is revealed. Any help is appreciated

i know it make the out like smaller put it works dont it:

GUICreate(":(", 150, 60)
$inp1 = GUICtrlCreateInput("", 5, 16, 134, 28)
GUICtrlSetLimit($inp1, 20)
$pic = GUICtrlCreatePic("inp.gif", 5, 16, 134, 28)
GUISetState()

While 1
    GUICtrlSetState($pic, 2048)
    If GUIGetMsg() = -3 Then Exit
WEnd

Share this post


Link to post
Share on other sites

no it dont...

but when the window is out of focus it just makes the out line smaller... big deal...

Share this post


Link to post
Share on other sites

ahh i fixed it and i added another input box...

here

GUICreate(":)", 223, 160)
$inp = GUICtrlCreateInput("", 7, 18, 121, 21)
$inp1 = GUICtrlCreateInput("", 5, 60, 121, 21)
GUICtrlSetLimit($inp, 20)
GUICtrlSetLimit($inp1, 20)
$pic1 = GUICtrlCreatePic("C:\Documents and Settings\Windows\Desktop\inp.gif", 5, 16, 146, 28)
$pic2 = GUICtrlCreatePic("C:\Documents and Settings\Windows\Desktop\inp1.gif", 5, 60, 148, 28,)
GUISetState()
While 1
    GUICtrlSetState($pic1, 2048)
    GUICtrlSetState($pic2, 2048)
    If GUIGetMsg() = -3 Then Exit
WEnd
do that help...

Share this post


Link to post
Share on other sites

i put it as :whistle: cus i fixed it...

Use PNG as GUI in the Example Section

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  
Followers 0