Form Designer 5.10

You need some new stunning features ? Tell us here.
Warmonger
Enthusiast
Enthusiast
Posts: 156
Joined: Wed Apr 20, 2011 4:24 pm

Re: Form Designer 5.00 beta 3

Post by Warmonger »

Could consider adding CreateImageMenu() since you already have the image handling on-board.
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.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer 5.00 beta 3

Post by Polo »

Warmonger wrote:Could consider adding CreateImageMenu() since you already have the image handling on-board.
Added.
VoSs2o0o
User
User
Posts: 24
Joined: Fri Aug 06, 2010 11:46 pm

Re: Form Designer 5.00 beta 3

Post by VoSs2o0o »

One thing:
The "Caption is variable" Feature makes only sense to me, when i can have an
Procedure Parameter, or i have an "Shared xyz" in the Window procedure.

e.g.

Code: Select all

Procedure InitWindow_0()
Shared test.s

  Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, test.s, #PB_Window_SystemMenu)
EndProcedure
or

Code: Select all

Procedure InitWindow_0(test.s)
  Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, test.s, #PB_Window_SystemMenu)
EndProcedure
Apart from that, this is the best GUI-Designer so far,
and I'm lucky, that we have a working Designer again :-)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Form Designer 5.00 beta 3

Post by ts-soft »

I think, the second example is better, but in this form:

Code: Select all

Procedure InitWindow_0(test.s = "")
  Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, test, #PB_Window_SystemMenu)
EndProcedure
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer 5.00 beta 3

Post by Polo »

Fred fixed the PB bug that kept the FD from running on OSX Leopard, it's apparently working nicely now, big thanks to him! :D
RomanR
User
User
Posts: 16
Joined: Wed Jul 11, 2012 3:54 pm

Re: Form Designer 5.00 beta 3

Post by RomanR »

@ Polo

this is a screenshot (Panel / Frame3D / CheckBox) (Version from your Homepage ...)

Image

If you place the CheckBox-Gadget directly on the Panel-Gadget, it works. But if you place a Frame3D-Gadget (not a Container-Gadget) on the Panel-Gadget and then try to place any Gadget inside the Frame3D-Gadget it doesn't work. These Gadgets are placed on the window and not on the Panel ...

By the way, where is the beautiful Ribbon-Gadget from Version 2? :wink:
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer 5.00 beta 3

Post by Polo »

RomanR wrote:@ Polo

this is a screenshot (Panel / Frame3D / CheckBox) (Version from your Homepage ...)
Fixed the drawing issue, I was sure I fixed it before, apparently not! :)
RomanR wrote:If you place the CheckBox-Gadget directly on the Panel-Gadget, it works. But if you place a Frame3D-Gadget (not a Container-Gadget) on the Panel-Gadget and then try to place any Gadget inside the Frame3D-Gadget it doesn't work. These Gadgets are placed on the window and not on the Panel ...
Wow, tricky one! Should be fixed for next beta, thanks a lot for reporting that!!
RomanR wrote:By the way, where is the beautiful Ribbon-Gadget from Version 2?
It was looking nice but not that useful for this kind of app so I dropped it ;)
RomanR
User
User
Posts: 16
Joined: Wed Jul 11, 2012 3:54 pm

Re: Form Designer 5.00 beta 3

Post by RomanR »

@ Polo

Found another one :wink:

For Text-Gadgets there are missing quotation marks, if you place them. But if you copy the Text-Gadget, everything is ok:

Code: Select all

Procedure InitWindow_2()
  Window_2 = OpenWindow(#PB_Any, 0, 0, 600, 400, "", #PB_Window_SystemMenu)
  Text_0 = TextGadget(#PB_Any, 20, 20, 200, 30, Text 0)
  Text_0_Copy1 = TextGadget(#PB_Any, 20, 50, 200, 30, "Text 0")
EndProcedure
Well - I think I found the cause: "Caption is a variable" was set with "Text_0". After copying the Checkbox is cleared. There are no definitions for the variables inserted (the name "Text 0" wouldn't be correct anyhow). Maybe you could change th text "Caption" to "Variable-Name" if the Checkbox is set?
Last edited by RomanR on Wed Sep 26, 2012 9:15 pm, edited 1 time in total.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer 5.00 beta 3

Post by Polo »

RomanR wrote:@ Polo

Found another one :wink:

For Text-Gadgets there are missing quotation marks, if you place them. But if you copy the Text-Gadget, everything is ok:

Code: Select all

Procedure InitWindow_2()
  Window_2 = OpenWindow(#PB_Any, 0, 0, 600, 400, "", #PB_Window_SystemMenu)
  Text_0 = TextGadget(#PB_Any, 20, 20, 200, 30, Text 0)
  Text_0_Copy1 = TextGadget(#PB_Any, 20, 50, 200, 30, "Text 0")
EndProcedure
If you check (or have the box checked) "Caption is a variable", there won't be any quotation marks.
Salc
User
User
Posts: 11
Joined: Tue Sep 25, 2012 9:20 am

Re: Form Designer 5.00 beta 3

Post by Salc »

I've found another IMA:
- Open the Images-Box
- Push a key ('A' for example)
- Push the Tab key.
Error Message: Invalid memory access
Error Code: -1073741819
Code Address: 5046658
Target Address: 12
Sourcecode line: 1486
Sourcecode file: E:\Users\gaetandupont-panon\Documents\gdpcomputing\Purebasic\FormDesigner\include/grid.pbi
(Win 7 x64)
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer 5.00 beta 3

Post by Polo »

Tried on Win7 x64, I don't get any IMA. Are you using the latest version?
Salc
User
User
Posts: 11
Joined: Tue Sep 25, 2012 9:20 am

Re: Form Designer 5.00 beta 3

Post by Salc »

I'm using version 5.00 beta 3 from Sept. 24th.
It's only crashing if there is no entry in the grid control.

(Btw: is it possible to delete an entry from the images grid control?)
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer 5.00 beta 3

Post by Polo »

Ok thanks I'll have a look.
I don't know about deleting images from the list, would it really make sense?
Salc
User
User
Posts: 11
Joined: Tue Sep 25, 2012 9:20 am

Re: Form Designer 5.00 beta 3

Post by Salc »

I don't know about deleting images from the list, would it really make sense?
I just saw that the images are deleted if you delete the gadget. I think that's ok.
But it will only be deleted from the images list, when you change from design view to code view.

An example to make it clear:
- create a toolbar
- add a toolbar button with an image
- delete this button
- check the images list <- image is still in list
- change to code view <- no image anymore in code view or image list

I think the images list should be updated right after the button is deleted.
Just a small one but it irritated me.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer 5.00 beta 3

Post by Polo »

I might have forgotten to update the image manager after deleting the gadget ill have a look tonight!
Post Reply