Page 35 of 45

Re: Form Designer 5.00 beta 3

Posted: Tue Sep 25, 2012 11:00 pm
by Warmonger
Could consider adding CreateImageMenu() since you already have the image handling on-board.

Re: Form Designer 5.00 beta 3

Posted: Wed Sep 26, 2012 4:54 pm
by Polo
Warmonger wrote:Could consider adding CreateImageMenu() since you already have the image handling on-board.
Added.

Re: Form Designer 5.00 beta 3

Posted: Wed Sep 26, 2012 5:20 pm
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 :-)

Re: Form Designer 5.00 beta 3

Posted: Wed Sep 26, 2012 5:27 pm
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

Re: Form Designer 5.00 beta 3

Posted: Wed Sep 26, 2012 8:26 pm
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

Re: Form Designer 5.00 beta 3

Posted: Wed Sep 26, 2012 8:27 pm
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:

Re: Form Designer 5.00 beta 3

Posted: Wed Sep 26, 2012 8:46 pm
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 ;)

Re: Form Designer 5.00 beta 3

Posted: Wed Sep 26, 2012 9:07 pm
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?

Re: Form Designer 5.00 beta 3

Posted: Wed Sep 26, 2012 9:11 pm
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.

Re: Form Designer 5.00 beta 3

Posted: Sun Sep 30, 2012 9:30 pm
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)

Re: Form Designer 5.00 beta 3

Posted: Sun Sep 30, 2012 9:39 pm
by Polo
Tried on Win7 x64, I don't get any IMA. Are you using the latest version?

Re: Form Designer 5.00 beta 3

Posted: Mon Oct 01, 2012 7:17 am
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?)

Re: Form Designer 5.00 beta 3

Posted: Mon Oct 01, 2012 7:24 am
by Polo
Ok thanks I'll have a look.
I don't know about deleting images from the list, would it really make sense?

Re: Form Designer 5.00 beta 3

Posted: Mon Oct 01, 2012 7:36 am
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.

Re: Form Designer 5.00 beta 3

Posted: Mon Oct 01, 2012 8:35 am
by Polo
I might have forgotten to update the image manager after deleting the gadget ill have a look tonight!