Page 27 of 45

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 1:27 am
by Polo
ts-soft wrote:One small bug (others will follow :mrgreen: ), you should store x, y, w and h of designer in normalmode, not in maxmode (only the state).
If you have a maximized window and restores it, it is to large :wink:
Understood and changed ;)
luciano wrote:I found some problem in Menu , separators and sub-menu after re-opening the file.
I will try to replicate the bug and attach some example code.
I'm not so surprised as this whole menu handling was a bit hard to create. Let me know when you have some code :)

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 1:32 am
by ts-soft
The next one: Missing support of #PB_Ignore for statusbarfields! (Yes, i am the #PB_Ignore Man :mrgreen: )

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 2:25 am
by Warmonger
Getting better, tho may I suggest putting the tools into their own tab alongside the Objects tabs. And move the properties into the bottom box (currently the toolbox), and also divide it up into sub menu's exactly like Visual Studio does (the more it feels like Visual Studio the more people will enjoy using it).

See mockup here => http://i45.tinypic.com/jjo9ya.png
And the ToolBox menu's => http://www.techotopia.com/images/1/10/V ... oolbox.jpg

Also it would be a nice bonus if you could eradicate the scrollbars in the design view when the form isn't larger then the design view. That would free up space (no sense in having scrollbars that don't work). And have them shown only when the designed window exceeds either direction. Tho this isn't critical as it only free's up extra work space. Other then that the only other thing that bugs me is how the properties box contents doesn't scroll along with the scroll bars. It only updates position when you un-click from the scroll bar. Also lastly, im not sure if its OS specific but on Windows XP the 3DFrame captions are black (im guessing the background) so you cant even view the text. Example below.

Image

Lastly, like I said before it seems like some of your loops are too tight. You wouldn't imagine a form designer to max out 2.4GHz single core just to resize or move a control.

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 2:28 am
by IdeasVacuum
the more it feels like Visual Studio the more people will enjoy using it
I use Visual Studio every day and I hate it! Awful design. :shock:

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 2:32 am
by Warmonger
IdeasVacuum wrote:
the more it feels like Visual Studio the more people will enjoy using it
I use Visual Studio every day and I hate it! Awful design. :shock:
Depends on which you use, tho the general layout of Visual Studio is great for productivity. Other then the piles of crap Microsoft throws in with it. A miniscule and light weight version of Visual Studios form designer = win.

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 8:52 am
by luciano
Gaetan,
Here is what I found in the latest version:
menu
when a pbf file is re-opened in FD, some enumeration constants used in menu are turned into strings (e.g. the ones under the menu title);
statusbar and toolbar re-open correctly

statusbar
after some time I cannot select "firmly" its objects as the property panel returns to window values,
if I add another gadget in the main window then I can work correctly on the status bar (for a while)
this problem does not affect the toolbar which seems ok

re-opened file:

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 Option_0, TrackBar_0, Button_0, Spin_0, Image_0

Global Img_0, Img_1

Enumeration #PB_Compiler_EnumerationValue
  "MenuItem3"
  #MenuItem_4
  #MenuItem_11
  #MenuItem_12
  #MenuItem_6
  #MenuItem_8
  #MenuItem_13
  #MenuItem_10
  "MenuItem15"
  #MenuItem_18
  #MenuItem_19
  #MenuItem_24
  #MenuItem_25
  #MenuItem_26
  #MenuItem_27
  #MenuItem_28
  #MenuItem_30
  #MenuItem_31
  #MenuItem_32
  #MenuItem_33
  #MenuItem_34
  #MenuItem_35
  #MenuItem_36
  #MenuItem_20
  #MenuItem_16
  #MenuItem_36
  #MenuItem_37
  #MenuItem_38
  #MenuItem_39
  #MenuItem_40
  #MenuItem_41
  #MenuItem_42
  #MenuItem_43
  #MenuItem_44
  #MenuItem_45
EndEnumeration

UsePNGImageDecoder()

Img_0 = LoadImage(#PB_Any,"C:\ZZZZ_Ardi_Go\Explorer\22.png")
Img_1 = LoadImage(#PB_Any,"C:\ZZZZ_Ardi_Go\Explorer\Google-Notebook-64.png")

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)
  CreateStatusBar(0, WindowID(Window_0))
  AddStatusBarField(50)
  StatusBarProgress(0, 0, 0)
  AddStatusBarField(50)
  StatusBarImage(0, 1, ImageID(Img_0))
  CreateMenu(0, WindowID(Window_0))
  MenuTitle("MenuTitle")
  MenuItem("MenuItem3","")
  OpenSubMenu("MenuItem3")
  MenuItem(#MenuItem_4,"MenuItem4")
  MenuBar()
  MenuItem(#MenuItem_11,"MenuItem11")
  MenuItem(#MenuItem_12,"MenuItem12")
  MenuBar()
  CloseSubMenu()
  MenuItem(#MenuItem_6,"MenuItem6")
  MenuBar()
  MenuItem(#MenuItem_8,"MenuItem8")
  MenuItem(#MenuItem_13,"MenuItem13")
  MenuBar()
  MenuItem(#MenuItem_10,"MenuItem10")
  MenuTitle("MenuTitle")
  MenuItem("MenuItem15","")
  OpenSubMenu("MenuItem15")
  MenuItem(#MenuItem_18,"MenuItem18")
  OpenSubMenu("MenuItem19")
  MenuItem(#MenuItem_24,"MenuItem24")
  MenuItem(#MenuItem_25,"MenuItem25")
  MenuBar()
  MenuItem(#MenuItem_27,"MenuItem27")
  MenuItem(#MenuItem_28,"MenuItem28")
  MenuBar()
  MenuItem(#MenuItem_31,"MenuItem31")
  OpenSubMenu("MenuItem32")
  MenuItem(#MenuItem_33,"MenuItem33")
  MenuItem(#MenuItem_34,"MenuItem34")
  MenuBar()
  MenuItem(#MenuItem_36,"MenuItem36")
  MenuBar()
  CloseSubMenu()
  MenuItem(#MenuItem_16,"MenuItem16")
  MenuBar()
  MenuTitle("MenuTitle")
  MenuItem(#MenuItem_36,"MenuItem36")
  MenuItem(#MenuItem_37,"MenuItem37")
  MenuItem(#MenuItem_38,"MenuItem38")
  MenuItem(#MenuItem_39,"MenuItem39")
  MenuBar()
  MenuItem(#MenuItem_41,"MenuItem41")
  MenuItem(#MenuItem_42,"MenuItem42")
  MenuItem(#MenuItem_43,"MenuItem43")
  MenuItem(#MenuItem_44,"MenuItem44")
  MenuBar()
  Option_0 = OptionGadget(#PB_Any, 270, 40, 30, 20, "")
  TrackBar_0 = TrackBarGadget(#PB_Any, 270, 80, WindowWidth - 290, 40, 0, 50, #PB_TrackBar_Ticks)
  Button_0 = ButtonGadget(#PB_Any, 270, 120, 60, 30, "TEST")
  Spin_0 = SpinGadget(#PB_Any, 340, 120, 240, 30, 0, 0)
  Image_0 = ImageGadget(#PB_Any, 10, 10, 64, 64, ImageID(Img_1))
EndProcedure

Procedure ResizeGadgetsWindow_0()
  Protected WindowWidth, WindowHeight
  WindowWidth = WindowWidth(Window_0)
  WindowHeight = WindowHeight(Window_0)
  ResizeGadget(Option_0, 270, 40, 30, 20)
  ResizeGadget(TrackBar_0, 270, 80, WindowWidth - 290, 40)
  ResizeGadget(Button_0, 270, 120, 60, 30)
  ResizeGadget(Spin_0, 340, 120, 240, 30)
  ResizeGadget(Image_0, 10, 10, 64, 64)
EndProcedure

Procedure Window_0_Events(event)
  Select event
    Case #PB_Event_Gadget
      Select EventGadget()
      EndSelect
  EndSelect
EndProcedure

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 9:16 am
by luciano
I forgot to mention the new "undo" feature
:D
WOW
:lol:

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 9:25 am
by Bisonte
Feature-Request ;)

If using an image, an option of IncludeBinary or Data Statements would be nice...
I mean the same method that ts-soft's Bin2Data use.

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 10:34 am
by Polo
Bisonte wrote:Feature-Request ;)

If using an image, an option of IncludeBinary or Data Statements would be nice...
I mean the same method that ts-soft's Bin2Data use.
There's already includebinary ;)
For data statement i will see (the trouble being to reload it!)

Thanks for other suggestions and reports I'll look at it soon hopefully - off to repair the laptop...

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 12:33 pm
by Polo
ts-soft wrote:The next one: Missing support of #PB_Ignore for statusbarfields! (Yes, i am the #PB_Ignore Man :mrgreen: )
Added.

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 12:38 pm
by Polo
Warmonger wrote:Also lastly, im not sure if its OS specific but on Windows XP the 3DFrame captions are black (im guessing the background) so you cant even view the text. Example below.
Fixed.

Thanks for all your testing and suggestions. Scrollbars being not live is due to PB Event Handling, might add a workaround.
I've added all you said to my list and will try to see what can be done :)

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 12:56 pm
by Polo
luciano wrote:Gaetan,
Here is what I found in the latest version:
menu
when a pbf file is re-opened in FD, some enumeration constants used in menu are turned into strings (e.g. the ones under the menu title);
statusbar and toolbar re-open correctly
Fixed, my parser wasn't strong enough! It's improved now.
luciano wrote:statusbar
after some time I cannot select "firmly" its objects as the property panel returns to window values,
if I add another gadget in the main window then I can work correctly on the status bar (for a while)
this problem does not affect the toolbar which seems ok
I'm afraid I cannot reproduce that? Must be hard to find out, but if you find a precise list of actions that makes you unable to select items that'd help a lot! ;)

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 1:08 pm
by Polo
Warmonger wrote:Depends on which you use, tho the general layout of Visual Studio is great for productivity. Other then the piles of crap Microsoft throws in with it. A miniscule and light weight version of Visual Studios form designer = win.
As you've probably realised, I do try to take the best of the Visual C# form designer, while trying to stick to the "pure" concept. There's no way I can make something as good as what the folks at Microsoft did, I'm only one guy and I'm not very skilled, but I'm doing my best! :)

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 1:26 pm
by luciano
...I'm only one guy and I'm not very skilled, but I'm doing my best!
I am 51, in my working experience in designing electronic equipment, I met many software developers, but I can assure you that just a very few have the mix of speed, efficiency, creativity and good taste as you have.
There are companies with tens of people in staff which commonly have to ask the right person to do what they all together have not been able to make.
I made a living this way :D

I am testing bars and menus, I'll be back quickly.

Re: Form Designer 5.00 beta 2.2

Posted: Sun Sep 09, 2012 1:40 pm
by Polo
luciano wrote:I am 51, in my working experience in designing electronic equipment, I met many software developers, but I can assure you that just a very few have the mix of speed, efficiency, creativity and good taste as you have.
There are companies with tens of people in staff which commonly have to ask the right person to do what they all together have not been able to make.
They don't use Purebasic - I cannot imagine how many line code I'd have to write to have the same product running on the three OSes, and ending up with a 1mb executable :)

I'll have much less time from tomorrow onward as I'm starting my job conversion, though no need to worry, no matter what I do I'm basically always doing something on purebasic everyday :lol: