Re: Form Designer 5.00 beta 2.2
Posted: Sun Sep 09, 2012 9:01 pm
Hi,
I cannot remove the colors from the gadgets in the following code in FD:
I cannot remove the colors from the gadgets in the following code in FD:
Code: Select all
; Form Designer for Purebasic - 5.0
; Warning: this file uses a strict syntax, if you edit it, make sure to respect the Form Designer limitation or it won't be opened again.
Global Window_0
Global Container_0, Editor_0, ListIcon_0, ScrollArea_0, String_0, Text_0, Tree_0
Declare ResizeGadgetsWindow_0()
Procedure InitWindow_0()
Protected WindowWidth, WindowHeight
Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, "", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget)
WindowWidth = WindowWidth(Window_0)
WindowHeight = WindowHeight(Window_0)
Container_0 = ContainerGadget(#PB_Any, 0, 0, WindowWidth - 0, 80)
SetGadgetColor(Container_0, #PB_Gadget_BackColor,RGB(64,128,128))
CloseGadgetList()
Editor_0 = EditorGadget(#PB_Any, 20, 100, 90, 70)
SetGadgetColor(Editor_0, #PB_Gadget_FrontColor,RGB(128,0,128))
SetGadgetColor(Editor_0, #PB_Gadget_BackColor,RGB(128,128,128))
ListIcon_0 = ListIconGadget(#PB_Any, 120, 100, 270, 150, "", 100)
SetGadgetColor(ListIcon_0, #PB_Gadget_FrontColor,RGB(0,0,64))
SetGadgetColor(ListIcon_0, #PB_Gadget_BackColor,RGB(128,128,64))
ScrollArea_0 = ScrollAreaGadget(#PB_Any, 420, 110, 150, 190, 350, 390,1)
SetGadgetColor(ScrollArea_0, #PB_Gadget_FrontColor,RGB(0,0,64))
SetGadgetColor(ScrollArea_0, #PB_Gadget_BackColor,RGB(64,0,64))
CloseGadgetList()
String_0 = StringGadget(#PB_Any, 30, 290, 210, 60, "", #PB_String_BorderLess)
SetGadgetColor(String_0, #PB_Gadget_FrontColor,RGB(0,128,192))
SetGadgetColor(String_0, #PB_Gadget_BackColor,RGB(255,128,255))
Text_0 = TextGadget(#PB_Any, 260, 330, 110, 50, "")
SetGadgetColor(Text_0, #PB_Gadget_FrontColor,RGB(128,0,64))
SetGadgetColor(Text_0, #PB_Gadget_BackColor,RGB(128,128,128))
Tree_0 = TreeGadget(#PB_Any, 410, 320, 150, 70)
SetGadgetColor(Tree_0, #PB_Gadget_FrontColor,RGB(192,192,192))
SetGadgetColor(Tree_0, #PB_Gadget_BackColor,RGB(64,128,128))
EndProcedure
Procedure ResizeGadgetsWindow_0()
Protected WindowWidth, WindowHeight
WindowWidth = WindowWidth(Window_0)
WindowHeight = WindowHeight(Window_0)
ResizeGadget(Container_0, 0, 0, WindowWidth - 0, 80)
ResizeGadget(Editor_0, 20, 100, 90, 70)
ResizeGadget(ListIcon_0, 120, 100, 270, 150)
ResizeGadget(ScrollArea_0, 420, 110, 150, 190)
ResizeGadget(String_0, 30, 290, 210, 60)
ResizeGadget(Text_0, 260, 330, 110, 50)
ResizeGadget(Tree_0, 410, 320, 150, 70)
EndProcedure
Procedure Window_0_Events(event)
Select event
Case #PB_Event_Gadget
Select EventGadget()
EndSelect
EndSelect
EndProcedure