Strange behaviour of Cursor and Frame3DGadget

You need some new stunning features ? Tell us here.
Lothar Schirm
User
User
Posts: 54
Joined: Mon Nov 26, 2012 4:57 pm

Strange behaviour of Cursor and Frame3DGadget

Post 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
nospam
Enthusiast
Enthusiast
Posts: 130
Joined: Mon Nov 12, 2012 9:15 am

Re: Strange behaviour of Cursor and Frame3DGadget

Post 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.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Strange behaviour of Cursor and Frame3DGadget

Post 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.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Strange behaviour of Cursor and Frame3DGadget

Post by Polo »

Fixed for next version.
Lothar Schirm
User
User
Posts: 54
Joined: Mon Nov 26, 2012 4:57 pm

Re: Strange behaviour of Cursor and Frame3DGadget

Post 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
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Strange behaviour of Cursor and Frame3DGadget

Post 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 :)
nospam
Enthusiast
Enthusiast
Posts: 130
Joined: Mon Nov 12, 2012 9:15 am

Re: Strange behaviour of Cursor and Frame3DGadget

Post 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.
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Strange behaviour of Cursor and Frame3DGadget

Post 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.
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2137
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Strange behaviour of Cursor and Frame3DGadget

Post 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.
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
Locked