Sign in to follow this  
Followers 0
FMS

EZskin old script 2 new skin

4 posts in this topic

Seems realy nice this download EZskin :unsure:

but call me a noob when i say :

i just treid out ezskin and got the files ;) but how do i put it in a script if i wrote this script earlier:S

(just as i told before just call me a NOOB)

is it just some edit in the compiler or in the script?

This is what i had

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <EzSkin.au3>

$Form1 = GUICreate("Form1", 280, 270, 192, 114)
$Label1 = GUICtrlCreateLabel("IFIX geeft aan", 8, 15, 74, 25)
$Label2 = GUICtrlCreateLabel("IFIX moet zijn", 8, 45, 74, 25)
$Label3 = GUICtrlCreateLabel("Het verschil is", 8, 75, 74, 25)
$Label4 = GUICtrlCreateLabel("EGU HIGH", 8, 105, 74, 25)
$Label5 = GUICtrlCreateLabel("EGU LOW", 8, 135, 74, 25)
$Label6 = GUICtrlCreateLabel("EGU HIGH", 8, 165, 74, 25)
$Label7 = GUICtrlCreateLabel("EGU LOW", 8, 195, 74, 25)
$Input1 = GUICtrlCreateInput("", 120, 20, 145, 21)
$Input2 = GUICtrlCreateInput("", 120, 50, 145, 21)
$Input3 = GUICtrlCreateInput("", 120, 80, 145, 21)
$Input4 = GUICtrlCreateInput("3276.70", 120, 110, 145, 21)
$Input5 = GUICtrlCreateInput("-3276.70", 120, 140, 145, 21)
$Input6 = GUICtrlCreateInput("", 120, 170, 145, 21)
$Input7 = GUICtrlCreateInput("", 120, 200, 145, 21)
$Button1 = GUICtrlCreateButton("Cancel", 24, 230, 97, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Generate", 147, 230, 97, 25, $WS_GROUP)
GUISetState(@SW_SHOW)


While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            Exit
        Case $Button2
            GUICtrlSetData($Input3, GUICtrlRead($Input1) - GUICtrlRead($Input2))
            GUICtrlSetData($Input6, GUICtrlRead($Input4) + GUICtrlRead($Input3))
            GUICtrlSetData($Input7, GUICtrlRead($Input5) + GUICtrlRead($Input3))

    EndSwitch
WEnd

This is what i want :>

(or something like this because still got errors :S)

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <EzSkin.au3>



$EzGUI = EzSkinGUICreate("MyEzSkinDemo",280, 270, 192, 114)
;$Form1 = GUICreate("Form1", 280, 270, 192, 114)

$Label1 = GUICtrlCreateLabel("IFIX geeft aan", 8, 15, 74, 25)
$Label2 = GUICtrlCreateLabel("IFIX moet zijn", 8, 45, 74, 25)
$Label3 = GUICtrlCreateLabel("Het verschil is", 8, 75, 74, 25)
$Label4 = GUICtrlCreateLabel("EGU HIGH", 8, 105, 74, 25)
$Label5 = GUICtrlCreateLabel("EGU LOW", 8, 135, 74, 25)
$Label6 = GUICtrlCreateLabel("EGU HIGH", 8, 165, 74, 25)
$Label7 = GUICtrlCreateLabel("EGU LOW", 8, 195, 74, 25)
$Input1 = GUICtrlCreateInput("", 120, 20, 145, 21)
$Input2 = GUICtrlCreateInput("", 120, 50, 145, 21)
$Input3 = GUICtrlCreateInput("", 120, 80, 145, 21)
$Input4 = GUICtrlCreateInput("3276.70", 120, 110, 145, 21)
$Input5 = GUICtrlCreateInput("-3276.70", 120, 140, 145, 21)
$Input6 = GUICtrlCreateInput("", 120, 170, 145, 21)
$Input7 = GUICtrlCreateInput("", 120, 200, 145, 21)
;$Button1 = GUICtrlCreateButton("Cancel", 24, 230, 97, 25, $WS_GROUP)
;$Button2 = GUICtrlCreateButton("Generate", 147, 230, 97, 25, $WS_GROUP)
$Button1 = EzSkinButton("Cancel", 24, 230, 97, 25,$WS_GROUP) ;, $font_color)
$Button2 = EzSkinButton("Generate", 147, 230, 97, 25,$WS_GROUP) ;, $font_color)
GUISetState(@SW_SHOW)
While 1
    EzSkinOver()
    $nMsg = GUIGetMsg()
    If $nmsg = $EzIcon[1] Then Exit
    If $nmsg = $EzIcon[2] Then GuiSetstate(@SW_MINIMIZE, $EzGUI)
    If $nmsg = $Button2
            GUICtrlSetData($Input3, GUICtrlRead($Input1) - GUICtrlRead($Input2))
            GUICtrlSetData($Input6, GUICtrlRead($Input4) + GUICtrlRead($Input3))
            GUICtrlSetData($Input7, GUICtrlRead($Input5) + GUICtrlRead($Input3))
    EndIf
WEnd

I think that i'm doing something wrong but dont know what :S


as finishing touch god created the dutch

Share this post


Link to post
Share on other sites



i noticed know this is the wrong place....

i'm making a new post on the GUI support :unsure:


as finishing touch god created the dutch

Share this post


Link to post
Share on other sites

here you just need to reposition the label and button

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <EzSkin.au3>

$EzGUI = EzSkinGUICreate("MyEzSkinDemo",280, 270)
;$Form1 = GUICreate("Form1", 280, 270, 192, 114)
$EzIcon = EzSkinIcon($EzGUI)
$Label1 = GUICtrlCreateLabel("IFIX geeft aan", 8, 15, 74, 25)
$Label2 = GUICtrlCreateLabel("IFIX moet zijn", 8, 45, 74, 25)
$Label3 = GUICtrlCreateLabel("Het verschil is", 8, 75, 74, 25)
$Label4 = GUICtrlCreateLabel("EGU HIGH", 8, 105, 74, 25)
$Label5 = GUICtrlCreateLabel("EGU LOW", 8, 135, 74, 25)
$Label6 = GUICtrlCreateLabel("EGU HIGH", 8, 165, 74, 25)
$Label7 = GUICtrlCreateLabel("EGU LOW", 8, 195, 74, 25)
$Input1 = GUICtrlCreateInput("", 120, 20, 145, 21)
$Input2 = GUICtrlCreateInput("", 120, 50, 145, 21)
$Input3 = GUICtrlCreateInput("", 120, 80, 145, 21)
$Input4 = GUICtrlCreateInput("3276.70", 120, 110, 145, 21)
$Input5 = GUICtrlCreateInput("-3276.70", 120, 140, 145, 21)
$Input6 = GUICtrlCreateInput("", 120, 170, 145, 21)
$Input7 = GUICtrlCreateInput("", 120, 200, 145, 21)
;$Button1 = GUICtrlCreateButton("Cancel", 24, 230, 97, 25, $WS_GROUP)
;$Button2 = GUICtrlCreateButton("Generate", 147, 230, 97, 25, $WS_GROUP)
$Button1 = EzSkinButton("Cancel", 24, 230, 97, 25,$WS_GROUP) ;, $font_color)
$Button2 = EzSkinButton("Generate", 147, 230, 97, 25,$WS_GROUP) ;, $font_color)
GUISetState(@SW_SHOW)
While 1
    EzSkinOver()
$nMsg = GUIGetMsg()
If $nMsg = $EzIcon[1] Then Exit
    If $nMsg = $EzIcon[2] Then GuiSetstate(@SW_MINIMIZE, $EzGUI)
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit
  Case $Button2
            GUICtrlSetData($Input3, GUICtrlRead($Input1) - GUICtrlRead($Input2))
            GUICtrlSetData($Input6, GUICtrlRead($Input4) + GUICtrlRead($Input3))
            GUICtrlSetData($Input7, GUICtrlRead($Input5) + GUICtrlRead($Input3))
EndSwitch
WEnd

Share this post


Link to post
Share on other sites

FMS,

i'm making a new post on the GUI support

Please do not do that - just PM a Mod to move the thread. Like this! :sorcerer:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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