Code: Alles auswählen
;
; needs PURECOLOR
; free and fast from zippyshare : http://www13.zippyshare.com/v/aEWTlfqs/file.html
;-Prepare and Declare Items, Objects
Enumeration
;{
;Objects Button 2pix
#Btn_2pix
#Btn_2pix_Frame_Left
#Btn_2pix_Frame_Right
#Btn_2pix_Frame_Top
#Btn_2pix_Frame_Bottom
;Objects Button 4pix
#Btn_4pix
#Btn_4pix_Frame_Left
#Btn_4pix_Frame_Right
#Btn_4pix_Frame_Top
#Btn_4pix_Frame_Bottom
;Objects Button Exit_1px
#Btn_Exit_1px
#Btn_Exit_1px_Frame_Left
#Btn_Exit_1px_Frame_Right
#Btn_Exit_1px_Frame_Top
#Btn_Exit_1px_Frame_Bottom
;FRAME AROUND Window
#Window_Frame_Left
#Window_Frame_Right
#Window_Frame_Top
#Window_Frame_Bottom
EndEnumeration
;}
;-MAIN WINDOW
OpenWindow(0, 732, 301, 540, 610, "", #PB_Window_ScreenCentered | #PB_Window_BorderLess)
SetWindowColor(0,RGB(4, 0, 9))
;=================================================================================================================
;=================================================================================================================
;-CREATE BUTTONS
;
;-SHOW 2px Frame around BTN 2pix
;Left
TextGadget(#Btn_2pix_Frame_Left, 15, 559, 2, 32, "") ;Frame size
SetGadgetColor(#Btn_2pix_Frame_Left, #PB_Gadget_BackColor, $454543) ;Frame Color
;Right
TextGadget(#Btn_2pix_Frame_Right, 117, 559, 2, 32, "") ;Frame size
SetGadgetColor(#Btn_2pix_Frame_Right, #PB_Gadget_BackColor, $454543) ;Frame Color
;Top
TextGadget(#Btn_2pix_Frame_Top, 16, 558, 102, 2, "") ;Frame size
SetGadgetColor(#Btn_2pix_Frame_Top, #PB_Gadget_BackColor, $454543) ;Frame Color
;Top
TextGadget(#Btn_2pix_Frame_Bottom, 16, 590, 102, 2, "") ;Frame size
SetGadgetColor(#Btn_2pix_Frame_Bottom, #PB_Gadget_BackColor, $454543);Frame Color
;BTN 2pix
Btn_2pix = ButtonGadget(#Btn_2pix, 17, 560, 100, 30, "2pix", #BS_FLAT)
;Font and Back color: BTN 2pix
PureCOLOR_SetButtonColor(#Btn_2pix, RGB(102, 104, 106), RGB(0, 0, 0), RGB(102, 104, 106), RGB(28, 28, 28))
;=================================================================================================================
;
;-SHOW 4px Frame around BTN 4pix
;Left
TextGadget(#Btn_4pix_Frame_Left, 216, 559, 4, 35, "") ;Frame size
SetGadgetColor(#Btn_4pix_Frame_Left, #PB_Gadget_BackColor, $454543) ;Frame Color
;Right
TextGadget(#Btn_4pix_Frame_Right, 320, 559, 4, 35, "") ;Frame size
SetGadgetColor(#Btn_4pix_Frame_Right, #PB_Gadget_BackColor, $454543) ;Frame Color
;Top
TextGadget(#Btn_4pix_Frame_Top, 216, 556, 108, 4, "") ;Frame size
SetGadgetColor(#Btn_4pix_Frame_Top, #PB_Gadget_BackColor, $454543) ;Frame Color
;Top
TextGadget(#Btn_4pix_Frame_Bottom, 219, 590, 102, 4, "") ;Frame size
SetGadgetColor(#Btn_4pix_Frame_Bottom, #PB_Gadget_BackColor, $454543);Frame Color
;BTN 4pix
Btn_4pix = ButtonGadget(#Btn_4pix, 220, 560, 100, 30, "4pix", #BS_FLAT)
;Font and Back color: BTN 4pix
PureCOLOR_SetButtonColor(#Btn_4pix, RGB(102, 104, 106), RGB(0, 0, 0), RGB(102, 104, 106), RGB(28, 28, 28))
;=================================================================================================================
;
;-SHOW 1px Frame around BTN Exit_1px
;Left
TextGadget(#Btn_Exit_1px_Frame_Left, 419, 559, 1, 32, "") ;Frame size
SetGadgetColor(#Btn_Exit_1px_Frame_Left, #PB_Gadget_BackColor, $454543) ;Frame Color
;Right
TextGadget(#Btn_Exit_1px_Frame_Right, 520, 559, 1, 32, "") ;Frame size
SetGadgetColor(#Btn_Exit_1px_Frame_Right, #PB_Gadget_BackColor, $454543) ;Frame Color
;Top
TextGadget(#Btn_Exit_1px_Frame_Top, 419, 559, 102, 1, "") ;Frame size
SetGadgetColor(#Btn_Exit_1px_Frame_Top, #PB_Gadget_BackColor, $454543) ;Frame Color
;Top
TextGadget(#Btn_Exit_1px_Frame_Bottom, 419, 590, 102, 1, "") ;Frame size
SetGadgetColor(#Btn_Exit_1px_Frame_Bottom, #PB_Gadget_BackColor, $454543);Frame Color
;BTN Exit_1px
ButtonGadget(#Btn_Exit_1px, 420, 560, 100, 30, "Exit 1px", #BS_FLAT)
;Font and Back color: BTN Exit_1px
PureCOLOR_SetButtonColor(#Btn_Exit_1px, RGB(102, 104, 106), RGB(0, 0, 0), RGB(102, 104, 106), RGB(28, 28, 28))
;=================================================================================================================
;=================================================================================================================
;
; GIVE THE Window A 2PX Frame
;Left 2px
TextGadget(#Window_Frame_Left, 0, 0, 2, 608, "") ;Frame size
SetGadgetColor(#Window_Frame_Left, #PB_Gadget_BackColor, RGB(102, 102, 102)) ;Frame Color
;Right 2px
TextGadget(#Window_Frame_Right, 538, 0, 2, 608, "") ;Frame size
SetGadgetColor(#Window_Frame_Right, #PB_Gadget_BackColor, RGB(102, 102, 102)) ;Frame Color
;Top 20 px
TextGadget(#Window_Frame_Top, 2, 0, 536, 20, "") ;Frame size
SetGadgetColor(#Window_Frame_Top, #PB_Gadget_BackColor, RGB(102, 102, 102)) ;Frame Color
;Bottom 2px
TextGadget(#Window_Frame_Bottom, 0, 608, 540, 2, "") ;Frame size
SetGadgetColor(#Window_Frame_Bottom, #PB_Gadget_BackColor, RGB(102, 102, 102));Frame Color
;=================================================================================================================
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_Gadget
Select EventGadget()
Case #Btn_Exit_1px
End
EndSelect
EndIf
;-MOVE WINDOW WITH MOUSE
SendMessage_(WindowID(0), #WM_NCLBUTTONDOWN, #HTCAPTION, 0)
Until Event = #PB_Event_CloseWindow