Page 1 of 1

Strange behaviour of Cursor and Frame3DGadget

Posted: Sun Dec 09, 2012 10:32 am
by Lothar Schirm
The Cursor in the Toolbox of the Form Designer 5.00 beta 3 seems to have no function. Should it be used to group gadgets, e.g. in order to move them together to another position?

On the other hand, the Frame3DGadget seems to have something like a grouping function, in contradiction to the PureBasic Help document. According to this document, the Frame3DGadget is only intended to have a decorative function. But in the Design View of the Form Designer, it is not possible to rearrange gadgets within a Form3DGadget. If you click on a gadget and try to move it, you move also the Frame3DGadget and sometimes other gadgets within the Frame3DGadget too. You can only move the gadgets if you move the Frame3DGadget to on other position. Please test the following example:

Code: Select all

Enumeration #PB_Compiler_EnumerationValue
  #Window_0
EndEnumeration

Enumeration #PB_Compiler_EnumerationValue
  #Text_0
  #String_0
  #Frame3D_0
EndEnumeration

Procedure InitWindow_0()
  OpenWindow(#Window_0, 0, 0, 600, 400, "Test.pbf", #PB_Window_SystemMenu)
  TextGadget(#Text_0, 150, 130, 180, 20, "Enter some text here:", #PB_Text_Border)
  StringGadget(#String_0, 150, 160, 180, 20, "")
  Frame3DGadget(#Frame3D_0, 110, 80, 280, 130, "")
EndProcedure

Re: Strange behaviour of Cursor and Frame3DGadget

Posted: Sun Dec 09, 2012 11:19 am
by nospam
Lothar Schirm wrote:in contradiction to the PureBasic Help document.
The behaviour you describe is occuring because your code shows you drew the Frame3D over the top of the other gadgets. It only seems like they are grouped because the beta form designer doesn't have the smarts to know that you want to select one of the gadgets underneath the frame.

Edit the .pbf and move the Frame3D code to before the code that generates the other gadgets. You should then be able to move the gadgets.

I won't use the beta designer. It's terrible, imo, and should never have been released. I run Linux so I design my forms using PB 4.6.1 inside a virtual machine running Window$. If you're doing any serious form design I suggest you consider using PB 4.6.1 for the forms.

Re: Strange behaviour of Cursor and Frame3DGadget

Posted: Sun Dec 09, 2012 12:57 pm
by Polo
Lothar Schirm wrote:On the other hand, the Frame3DGadget seems to have something like a grouping function, in contradiction to the PureBasic Help document. According to this document, the Frame3DGadget is only intended to have a decorative function. But in the Design View of the Form Designer, it is not possible to rearrange gadgets within a Form3DGadget. If you click on a gadget and try to move it, you move also the Frame3DGadget and sometimes other gadgets within the Frame3DGadget too. You can only move the gadgets if you move the Frame3DGadget to on other position. Please test the following example:
Thanks for the report, it looks like a bug.
nospam wrote:I won't use the beta designer. It's terrible, imo, and should never have been released. I run Linux so I design my forms using PB 4.6.1 inside a virtual machine running Window$. If you're doing any serious form design I suggest you consider using PB 4.6.1 for the forms.
Then shut up and stop posting in the Form Designer forum, if you don't have anything constructive to say.

Re: Strange behaviour of Cursor and Frame3DGadget

Posted: Sun Dec 09, 2012 1:27 pm
by Polo
Fixed for next version.

Re: Strange behaviour of Cursor and Frame3DGadget

Posted: Sun Dec 09, 2012 7:32 pm
by Lothar Schirm
Dear nospam,

thank you for your advice regarding the Frame3DGadget. This will be a workaround until to the new version.

Regarding the quality of the Form Designer, may be that it has been delivered a little bit too early, but I can work with it. I wrote my first programs in QuickBASIC 4.5, and consequently I changed to FreeBASIC six years ago, but more and more I missed the possibility to create GUI applications in a simple way. Since May 2012 I use PureBasic, it's the perfect solution for me. I was quite happy with the good old Visual Designer, though it did not support all gadgets and flags, and also with PureForm, but I think the Form Designer has a large potential, and if I report bugs, I do that in order to support this project. The Form Designer has the strong feature that it produces PB code that can be directly used as an include file, and that it is able to create a Design View from existing code, so that older program code can be updated with the Form Designer, if the code for a window and its gadgets is written into a file regarding the appropriate syntax. This is only possible partially with PureForm and not at all with the Visual Designer. And the Form Designer will be directly integrated into the PB Editor. That's great! :D

Re: Strange behaviour of Cursor and Frame3DGadget

Posted: Sun Dec 09, 2012 7:59 pm
by Polo
Lothar Schirm wrote:if I report bugs, I do that in order to support this project.
Indeed, with feedback and bug reports the form designer will improve quickly :)

Re: Strange behaviour of Cursor and Frame3DGadget

Posted: Sun Dec 09, 2012 8:31 pm
by nospam
Polo wrote:Then shut up and stop posting in the Form Designer forum,
I am entitled to my opinion. How dare you try to deprive me of it and prevent me from voicing it.
if you don't have anything constructive to say.
I did have something constructive to say viz. your form designer is a bug-riddled piece of amateurish crap that should never have seen the light of day so, if your income depends on PB, avoid the designer like the bubonic plague and use the original designer instead.

See? Very constructive, and based entirely on provable fact.

Re: Strange behaviour of Cursor and Frame3DGadget

Posted: Sun Dec 09, 2012 8:59 pm
by luis
nospam wrote:your form designer is a bug-riddled piece of amateurish crap that should never have seen the light of day
LOL, I knew the outcome the instant I read the the apology:
nospam wrote:It has been brought to my attention that my manner is brusque and has put some people off-side. I apologise for any offence. I will try not to be so blunt.

Re: Strange behaviour of Cursor and Frame3DGadget

Posted: Sun Dec 09, 2012 9:17 pm
by Andre
@nospam:
We are open also to controversial opinions (unlike in many other forums!).

But please consider the (rude) tone of your remarks!
nospam wrote:... bug-riddled piece of amateurish crap that should never have seen the light of day...
We are here in a public area - such attacks going into the personal direction will not be tolerated.

It's up to Fred to take further actions, but this thread will be closed now.