Re: Form Designer 5.00 beta 2.3
Posted: Mon Sep 10, 2012 3:42 pm
Nice 

http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
Global Window_0
Global Editor_0
Declare ResizeGadgetsWindow_0()
Procedure InitWindow_0()
Protected WindowWidth, WindowHeight
Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, "", #PB_Window_SystemMenu)
WindowWidth = WindowWidth(Window_0)
WindowHeight = WindowHeight(Window_0)
CreateStatusBar(0, WindowID(Window_0))
AddStatusBarField(50)
StatusBarText(0, 0, "Label")
Editor_0 = EditorGadget(#PB_Any, 0, 55, WindowWidth - 0, StatusBarHeight(0)WindowHeight - 55)
EndProcedure
Procedure ResizeGadgetsWindow_0()
Protected WindowWidth, WindowHeight
WindowWidth = WindowWidth(Window_0)
WindowHeight = WindowHeight(Window_0)
ResizeGadget(Editor_0, 0, 55, WindowWidth - 0, StatusBarHeight(0)WindowHeight - 55)
EndProcedure
Procedure Window_0_Events(event)
Select event
Case #PB_Event_Gadget
Select EventGadget()
EndSelect
EndSelect
EndProcedure
Code: Select all
Procedure InitWindow_0()
Protected WindowWidth, WindowHeight
Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, "", #PB_Window_SystemMenu)
WindowWidth = WindowWidth(Window_0)
WindowHeight = WindowHeight(Window_0)
ButtonImage_0 = ButtonImageGadget(#PB_Any, 0, 0, 25, 25, ImageID())
ButtonImage_0_1 = ButtonImageGadget(#PB_Any, 0, 25, 25, 25, ImageID())
ButtonImage_0_2 = ButtonImageGadget(#PB_Any, 0, 50, 25, 25, ImageID())
ButtonImage_0_3 = ButtonImageGadget(#PB_Any, 0, 75, 25, 25, ImageID())
ButtonImage_0_4 = ButtonImageGadget(#PB_Any, 0, 100, 25, 25, ImageID())
ButtonImage_0_5 = ButtonImageGadget(#PB_Any, 0, 125, 25, 25, ImageID())
ButtonImage_0_6 = ButtonImageGadget(#PB_Any, 0, 150, 25, 25, ImageID())
ButtonImage_0_7 = ButtonImageGadget(#PB_Any, 0, 175, 25, 25, ImageID())
ButtonImage_0_8 = ButtonImageGadget(#PB_Any, 0, 200, 25, 25, ImageID())
ButtonImage_0_9 = ButtonImageGadget(#PB_Any, 0, 225, 25, 25, ImageID())
ButtonImage_0_10 = ButtonImageGadget(#PB_Any, 0, 250, 25, 25, ImageID())
ButtonImage_0_10_11 = ButtonImageGadget(#PB_Any, 0, 275, 25, 25, ImageID())
ButtonImage_0_10_11_12 = ButtonImageGadget(#PB_Any, 0, 300, 25, 25, ImageID())
ButtonImage_0_10_11_12_13 = ButtonImageGadget(#PB_Any, 0, 325, 25, 25, ImageID())
EndProcedure
If you are changing the preferences, please add the following:Polo wrote:Thanks all!
I wont add preferences for the source viewer but I can change the font on windows to courier new
As said live scrolling won't be added right now, as it requires specific workarounds for each platforms and it's rather messyWarmonger wrote:- When scrolling in the Properties box, the contents do not scroll along with the scroll bar.
Sure, any ideas of what it should look like?Warmonger wrote:Other then that the toolbox could use some more fancy touches to make things a bit more user friendly (visually). After that its only cosmetics like coming up with a re-size gadgets function etc.
Hmm...it seems not. On my Mac FD always starts with the same (default) size (compiled application).Polo wrote:Well the FD window position and size are already saved - need to add the same for the drawing area
Working for me.michel51 wrote: Hmm...it seems not. On my Mac FD always starts with the same (default) size (compiled application).
Code: Select all
Global Window_0
Global ListIcon_0
Declare ResizeGadgetsWindow_0()
Procedure InitWindow_0()
Protected WindowWidth, WindowHeight
Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, "", #PB_Window_SystemMenu)
WindowWidth = WindowWidth(Window_0)
WindowHeight = WindowHeight(Window_0)
ListIcon_0 = ListIconGadget(#PB_Any, 40, 60, 480, 220, "Column 1", 100, #PB_ListIcon_GridLines)
EndProcedure
Procedure ResizeGadgetsWindow_0()
Protected WindowWidth, WindowHeight
WindowWidth = WindowWidth(Window_0)
WindowHeight = WindowHeight(Window_0)
ResizeGadget(ListIcon_0, 40, 60, 480, 220)
EndProcedure
Procedure Window_0_Events(event)
Select event
Case #PB_Event_Gadget
Select EventGadget()
EndSelect
EndSelect
EndProcedure
Code: Select all
Enumeration
#Window_0
#ListIcon_0
EndEnumeration
Procedure InitWindow_0()
OpenWindow(#Window_0, 0, 0, 600, 400, "", #PB_Window_SystemMenu)
ListIconGadget(#ListIcon_0, 40, 60, 480, 220, "Column 1", 100, #PB_ListIcon_GridLines)
EndProcedure