It is currently Sat Dec 07, 2019 7:45 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Bug in Form (code/design view)
PostPosted: Thu Nov 21, 2019 11:13 am 
Offline
New User
New User

Joined: Wed Nov 06, 2019 10:28 am
Posts: 7
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 ?


Top
 Profile  
Reply with quote  
 Post subject: Re: Bug in Form (code/design view)
PostPosted: Thu Nov 21, 2019 3:26 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Feb 08, 2014 3:26 pm
Posts: 717
Quote:
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:

_________________
(English is not my native language, I use an online translator)
Windows 10 Family x64 + Linux (Slackware, Debian on Oracle VirtualBox 6.0) + Raspberry Pi


Top
 Profile  
Reply with quote  
 Post subject: Re: Bug in Form (code/design view)
PostPosted: Thu Nov 21, 2019 3:57 pm 
Offline
New User
New User

Joined: Wed Nov 06, 2019 10:28 am
Posts: 7
Yep I read that. But I thought indentation would not be a problem.


Top
 Profile  
Reply with quote  
 Post subject: Re: Bug in Form (code/design view)
PostPosted: Tue Nov 26, 2019 1:21 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13640
Location: France
It's the expected behaviour, we don't plan to keep user formatting in this generated output


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye