Solved

RAD XE2 "tab design" missing

Posted on 2011-09-28
4
637 Views
Last Modified: 2012-05-12
Hello, since today the design tab is missing on unit1. History and code are visible. When selecting unit2 the design tab is visible. Compiling the project is no problem and the program is running okay except for the borders wich are not in place.

Any help is appriciated.

Thank you.
0
Comment
Question by:Vincentg
  • 2
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
ebob42 earned 100 total points
ID: 36716984
Can you press F12 to force the designer to show itself?

Is there still a DFM file available on disk?

Does the .pas file have a line with {$R *.DFM} inside? Did the .pas file get renamed, but the .dfm file was not renamed?

The above are some questions you may want to look at... which may solve the problem.

Groetjes, Bob Swart
0
 

Author Comment

by:Vincentg
ID: 36717188
Hello Bob, thanks for the quick reply, i checked all your options..

1. F12 will not bring up the designer.

2.  {$R *.DFM} is present.. but i did add a line {$R SOUND.RES} to the unit. The project compiled with no errors on that. After the problem started (i restarted XE2) i removed {$R SOUND.RES} to see if that caused the error. It looks now like this.
uses Unit2;
{$R *.dfm }
procedure TForm1.Button4Click(Sender: TObject);

3. There is a unit1.pas and a unit1.dfm in the project directory.

Groetjes terug ;)
0
 

Author Comment

by:Vincentg
ID: 36717263
SOLVED: as you can see in my previous post there is a space between {$R *.dfm and }
This caused the problem. Bob thanks for your input. I accept your comment.
0
 
LVL 7

Expert Comment

by:ebob42
ID: 36717288
Two {$R ...} should not have caused the problem, but it may be that the designer got unlinked.

What you can try is to right-click on Unit1.pas in the Project Manager and remove it from the project. Then, right-click on the project and add the unit back in again. That would hopefully add the .pas as wel as the associated .dfm file with designer support back in.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Machine not responding during CopyFile() 3 98
Delphi XE10, MySQL Query 4 143
Dynamically Created Query 3 55
Wincontrol not (correctly) drawn 15 37
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question