Form Designer 5.10

You need some new stunning features ? Tell us here.
User avatar
captain_skank
Enthusiast
Enthusiast
Posts: 639
Joined: Fri Oct 06, 2006 3:57 pm
Location: England

Re: Form Designer 5.00 beta 2.3

Post by captain_skank »

Nice :)
spacebuddy
Enthusiast
Enthusiast
Posts: 356
Joined: Thu Jul 02, 2009 5:42 am

Re: Form Designer 5.00 beta 2.3

Post by spacebuddy »

A compile/preview mode would be an awesome feature :D
User avatar
Arctic Fox
Enthusiast
Enthusiast
Posts: 609
Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark

Re: Form Designer 5.00 beta 2.3

Post by Arctic Fox »

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.
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 627
Joined: Mon May 09, 2011 9:36 am

Re: Form Designer 5.00 beta 2.3

Post by VB6_to_PBx »

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
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer 5.00 beta 2.3

Post by Polo »

Thanks all!
I wont add preferences for the source viewer but I can change the font on windows to courier new :)
harry04
New User
New User
Posts: 2
Joined: Tue Sep 11, 2012 1:25 pm

Re: Form Designer 5.00 beta 2.3

Post by harry04 »

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(..

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
Thanks
harry
harry04
New User
New User
Posts: 2
Joined: Tue Sep 11, 2012 1:25 pm

Re: Form Designer 5.00 beta 2.3

Post by harry04 »

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".

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
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
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

Re: Form Designer 5.00 beta 2.3

Post by michel51 »

Polo wrote:Thanks all!
I wont add preferences for the source viewer but I can change the font on windows to courier new :)
If you are changing the preferences, please add the following:
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
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer 5.00 beta 2.3

Post by Polo »

The actual FD window or the drawing window?
User avatar
Bisonte
Addict
Addict
Posts: 1305
Joined: Tue Oct 09, 2007 2:15 am

Re: Form Designer 5.00 beta 2.3

Post by Bisonte »

Both, so you can't forgot some ;)
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer 5.00 beta 2.3

Post by Polo »

Well the FD window position and size are already saved - need to add the same for the drawing area ;)
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer 5.00 beta 2.2

Post by Polo »

Warmonger wrote:- When scrolling in the Properties box, the contents do not scroll along with the scroll bar.
As said live scrolling won't be added right now, as it requires specific workarounds for each platforms and it's rather messy ;)
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.
Sure, any ideas of what it should look like? :)
What do you mean by a re-size gadget function?

All reported bugs should be fixed for next beta, thanks a lot for testing! :)
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

Re: Form Designer 5.00 beta 2.3

Post by michel51 »

Polo wrote:Well the FD window position and size are already saved - need to add the same for the drawing area ;)
Hmm...it seems not. On my Mac FD always starts with the same (default) size (compiled application).

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
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 456
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Form Designer 5.00 beta 2.3

Post by Mindphazer »

michel51 wrote: Hmm...it seems not. On my Mac FD always starts with the same (default) size (compiled application).
Working for me.
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...
Warmonger
Enthusiast
Enthusiast
Posts: 156
Joined: Wed Apr 20, 2011 4:24 pm

Re: Form Designer 5.00 beta 2.3

Post by Warmonger »

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.

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
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

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.
Post Reply