
Form Designer 5.10
- captain_skank
- Enthusiast
- Posts: 639
- Joined: Fri Oct 06, 2006 3:57 pm
- Location: England
-
- Enthusiast
- Posts: 356
- Joined: Thu Jul 02, 2009 5:42 am
Re: Form Designer 5.00 beta 2.3
A compile/preview mode would be an awesome feature 

- Arctic Fox
- Enthusiast
- Posts: 609
- Joined: Sun Dec 21, 2008 5:02 pm
- Location: Aarhus, Denmark
Re: Form Designer 5.00 beta 2.3
Great tool, Polo!
*thumbs up*
I think there is a bug in the undo feature:
When deleting a gadget and undoing this particular action, the list of objects does not update properly.
*thumbs up*

I think there is a bug in the undo feature:
When deleting a gadget and undoing this particular action, the list of objects does not update properly.
- VB6_to_PBx
- Enthusiast
- Posts: 627
- Joined: Mon May 09, 2011 9:36 am
Re: Form Designer 5.00 beta 2.3
i'm using "Courier New" font in the PureBasic IDE
and i know i can Copy + Paste your Form Designer's code into PureBasic IDE
and it will convert to "Courier New" or whatever Font i desire in the IDE ,
but the default "Courier" Font in Form Designer would look much better
using "Courier New" font instead of just plain "Courier" font like it has now.
Maybe adding ability to choose your own Fonts inside Form Designer' code viewer would be a nice option
and i know i can Copy + Paste your Form Designer's code into PureBasic IDE
and it will convert to "Courier New" or whatever Font i desire in the IDE ,
but the default "Courier" Font in Form Designer would look much better
using "Courier New" font instead of just plain "Courier" font like it has now.
Maybe adding ability to choose your own Fonts inside Form Designer' code viewer would be a nice option
PureBasic .... making tiny electrons do what you want !
"With every mistake we must surely be learning" - George Harrison
Re: Form Designer 5.00 beta 2.3
Thanks all!
I wont add preferences for the source viewer but I can change the font on windows to courier new
I wont add preferences for the source viewer but I can change the font on windows to courier new

Re: Form Designer 5.00 beta 2.3
Great done, I think it has the potential to become the best of all pb designer sw.
Most of all I love its clarity and structure.
Please look at this: It's a window with statusbar and an editorgadget locked to all 4 sides.
StatiusbarHeight isn't correct, first in line with editor_0 = ...., second in ResizeGdaget(..
Thanks
harry
Most of all I love its clarity and structure.
Please look at this: It's a window with statusbar and an editorgadget locked to all 4 sides.
StatiusbarHeight isn't correct, first in line with editor_0 = ...., second in ResizeGdaget(..
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
harry
Re: Form Designer 5.00 beta 2.3
Hi, polo, I stumbled just now, on playing around with the designer, over some possible bug.
Look at the code, i did the buttons with "Dublicate".
btw: it would be a nice feature to choose wether the dublicated gadget is arranged below the original (like now) or on the right side, to create bars...!? Only a thought.
thanks
Harry
Look at the code, i did the buttons with "Dublicate".
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
thanks
Harry
Re: Form Designer 5.00 beta 2.3
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
Save the position, width and hight of the Form Designer window before closing.
The designer now will be opened with the last parameters on screen.
michel51
Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
Re: Form Designer 5.00 beta 2.3
The actual FD window or the drawing window?
Re: Form Designer 5.00 beta 2.3
Both, so you can't forgot some 

Re: Form Designer 5.00 beta 2.3
Well the FD window position and size are already saved - need to add the same for the drawing area 

Re: Form Designer 5.00 beta 2.2
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.

What do you mean by a re-size gadget function?
All reported bugs should be fixed for next beta, thanks a lot for testing!

Re: Form Designer 5.00 beta 2.3
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
Another question: where I have to store the translated german catalog file? If I run the PB-version from IDE, it works, because this file is stored within the folder PB is using.
But the compiled application is missing such folder.
EDIT: DONE! Found the location (a folder "Catalogs" has to be created)

Generally: this is a great tool. Thanks for sharing.
michel51
Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
- Mindphazer
- Enthusiast
- Posts: 456
- Joined: Mon Sep 10, 2012 10:41 am
- Location: Savoie
Re: Form Designer 5.00 beta 2.3
Working for me.michel51 wrote: Hmm...it seems not. On my Mac FD always starts with the same (default) size (compiled application).
Window position and size are saved.
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
...and unfortunately... Windows at work...
Re: Form Designer 5.00 beta 2.3
One more major flaw is the code the designer generates. The two functions for events and re-size don't even work, let alone we prefer to code our own event loops. Something simple like a GUI with a listicongadget results in long messy code like so.
When it should only be this simple. Utilize Enumeration, and there isn't really a need to set variables for every single gadget.
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
Its Not A Bug, Its An Undocumented Feature!
Relax Its All Just Ones And Zeros
There Is No Place Like 127.0.0.1 Except ::1
I do things TO my computer, not WITH my computer... I am a nerd.
Relax Its All Just Ones And Zeros
There Is No Place Like 127.0.0.1 Except ::1
I do things TO my computer, not WITH my computer... I am a nerd.