Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 676
  • Last Modified:

RAD XE2 "tab design" missing

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
Vincentg
Asked:
Vincentg
  • 2
  • 2
1 Solution
 
ebob42Commented:
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
 
VincentgAuthor Commented:
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
 
VincentgAuthor Commented:
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
 
ebob42Commented:
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now