Bug in Form (code/design view)

You need some new stunning features ? Tell us here.
tatanas
Enthusiast
Enthusiast
Posts: 199
Joined: Wed Nov 06, 2019 10:28 am
Location: France

Bug in Form (code/design view)

Post by tatanas »

I just found a strange behaviour when we make code with the form designer.
I made my gui without touching anything in the code then I change the indentation format in the preferences (the 2 spaces was not enough for me).
When I get back to the generated gui code, I applyed the new indentation format and when I switched back to the form designer... nothing
So I discovered that we can't change the spaces/indentation in this code.

Is it a bug or a limitation ? Could it be fixed/improved ?
Windows 10 Pro x64
PureBasic 6.04 x64
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: Bug in Form (code/design view)

Post by Marc56us »

I just found a strange behaviour when we make code with the form designer.
I made my gui without touching anything in the code then I change the indentation format in the preferences (the 2 spaces was not enough for me).
When I get back to the generated gui code, I applyed the new indentation format and when I switched back to the form designer... nothing
So I discovered that we can't change the spaces/indentation in this code.
Is it a bug or a limitation ? Could it be fixed/improved ?
This is not a bug, this is the normal behavior of the Form Designer.
The source code is only the saving of the state of the objects at runtime. It is therefore rewritten in its entirety each time you press F5 (like JSON data files, XML)
All manual changes are therefore ignored (Indentation, order, comment)
The only changes that will be kept are the numerical values and the content of the character strings.

:wink:
tatanas
Enthusiast
Enthusiast
Posts: 199
Joined: Wed Nov 06, 2019 10:28 am
Location: France

Re: Bug in Form (code/design view)

Post by tatanas »

Yep I read that. But I thought indentation would not be a problem.
Windows 10 Pro x64
PureBasic 6.04 x64
Fred
Administrator
Administrator
Posts: 16618
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Bug in Form (code/design view)

Post by Fred »

It's the expected behaviour, we don't plan to keep user formatting in this generated output
Post Reply