![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 9 of 9 total |
![]() |
Wed, Oct 12 2016 8:26 PM | Permanent Link |
TD Advanced Data Systems, Inc. | Attached is a screen capture that shows what is happening. When I added the two forms to my project originally the units had Form1 and Form2. I used these for a short period of time then I went into the units and renamed the forms frmMain and frmEquipment. There will eventually be 25+ forms in this project so I need names that tell me what they go with.
As you can see in the attached screen capture, the IDE is still using the old names of Form1 and Form2 and as such I cannot select a "Main Form" for the project. When I run the project with no Main Form the browser screen is just blank. What do I need to do to fix this? Thanks, TD Attachments: project_options.jpg |
Wed, Oct 12 2016 8:38 PM | Permanent Link |
Raul ![]() | On 10/12/2016 8:26 PM, TD wrote:
> Attached is a screen capture that shows what is happening. When I added the two forms to my project originally the units had Form1 and Form2. I used these for a short period of time then I went into the units and renamed the forms frmMain and frmEquipment. There will eventually be 25+ forms in this project so I need names that tell me what they go with. > > As you can see in the attached screen capture, the IDE is still using the old names of Form1 and Form2 and as such I cannot select a "Main Form" for the project. When I run the project with no Main Form the browser screen is just blank. > > What do I need to do to fix this? Not seeing it here. What did you rename - form name in design mode using object inspector or in the code ? One think to try is to make sure project compiles (this is just to ensure parsing logic completes OK) and try rename : - compile - make sure OK - open frmEquipment in design mode - change name property to frmEquipmentNew - save - change name property to frmEquipment - save and then check project options (better yet close and reopen project before checking) Raul |
Wed, Oct 12 2016 11:33 PM | Permanent Link |
Alan Questell Richmond Community College | I think I've seen this before.
Create a new project and save it with any name you wish, and then add those files to the project. I think it fixed it. I can't remember if this was exactly the same problem. TD wrote: Attached is a screen capture that shows what is happening. When I added the two forms to my project originally the units had Form1 and Form2. I used these for a short period of time then I went into the units and renamed the forms frmMain and frmEquipment. There will eventually be 25+ forms in this project so I need names that tell me what they go with. As you can see in the attached screen capture, the IDE is still using the old names of Form1 and Form2 and as such I cannot select a "Main Form" for the project. When I run the project with no Main Form the browser screen is just blank. What do I need to do to fix this? Thanks, TD |
Fri, Oct 14 2016 2:31 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | TD,
<< Attached is a screen capture that shows what is happening. When I added the two forms to my project originally the units had Form1 and Form2. I used these for a short period of time then I went into the units and renamed the forms frmMain and frmEquipment. There will eventually be 25+ forms in this project so I need names that tell me what they go with. >> My question is the same as Raul's: *how* did you rename the forms ? Tim Young Elevate Software www.elevatesoft.com |
Sun, Oct 16 2016 9:40 PM | Permanent Link |
TD Advanced Data Systems, Inc. | Tim Young [Elevate Software] wrote:
My question is the same as Raul's: *how* did you rename the forms ? Tim Young Elevate Software www.elevatesoft.com OK, I renamed the physical files on the disk and then removed the old versions of these files from project explorer then added them back with their new names. I then went into each of the form units and renamed the references to the old form name to the new form name. Attached is a screen capture of the project explorer in EWB2 for this project. Below is the content of each of the project files: fireservicereporting.wbc fireservicereporting.wbp project fireservicereporting; contains Main, Equipment; uses WebForms, WebCtrls; begin Application.Title := ''; Application.LoadProgress := False; Application.CreateForm(TfrmMain); Application.CreateForm(TfrmEquipment); Application.Run('frmMain'); end. ------------------ main.wbf main.wbs unit Main; interface uses WebCore, WebUI, WebForms, WebCtrls, WebCtnrs, WebBtns, WebLabels; type TfrmMain = class(TForm) pnlMainBtns: TPanel; Button1: TButton; Button3: TButton; Button4: TButton; Button7: TButton; Button5: TButton; Button6: TButton; Button2: TButton; Button8: TButton; Button9: TButton; HeaderPanel1: THeaderPanel; Label1: TLabel; private { Private declarations } public { Public declarations } end; var frmMain: TfrmMain; implementation uses Equipment; end. ------------------ equipment.wbf equipment.wbs unit Equipment; interface uses WebCore, WebUI, WebForms, WebCtrls; type TfrmEquipment = class(TForm) private { Private declarations } public { Public declarations } end; var frmEquipment: TfrmEquipment; implementation end. Attachments: project explorer.jpg |
Sun, Oct 16 2016 9:50 PM | Permanent Link |
Trinione | TD:
I don't know if this would help or is what you are looking for, but when I need to rename a form or even add one with the same name as a 'base', this is what I do: 1 - Copy form1.wbs and form1.wbf files to formNew.wbs / .wbf 2 - Import formNew into the project 3 - Open formNew and rename the form's Name property to 'frmFormNew'. 4 - In source (F12) go to the top and change the unit name to 'unit formNew'. Again, don't know if this is what you are trying to accomplish, but its what I do to use a file as a base. |
Mon, Oct 17 2016 8:36 AM | Permanent Link |
Raul ![]() | On 10/16/2016 9:40 PM, TD wrote:
> OK, I renamed the physical files on the disk and then removed the old versions of these files from project explorer then added them back with their new names. I then went into each of the form units and renamed the references to the old form name to the new form name. Attached is a screen capture of the project explorer in EWB2 for this project. Below is the content of each of the project files: Unless you rename everything offline (before re-adding to IDE) this could be causing this. I use the following steps myself : 1. open form in EWB IDE 2. Save As new name 3. in design view use object inspector to update form name property 4. then you can remove old files from folder > main.wbf > equipment.wbf What are the name property values in the wbf files ? Those need to be updated as well. Raul |
Mon, Oct 17 2016 1:25 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | << OK, I renamed the physical files on the disk and then removed the old versions of these files from project explorer then added them back with their new names. I then went into each of the form units and renamed the references to the old form name to the new form name. >>
Yeah, that's the problem - you need to make sure to change the unit name *inside* of the unit itself, in addition to the file name. Otherwise, the old unit name will be used when it's added into the project. Tim Young Elevate Software www.elevatesoft.com |
Mon, Oct 17 2016 9:00 PM | Permanent Link |
TD Advanced Data Systems, Inc. | Raul wrote:
What are the name property values in the wbf files ? Those need to be updated as well. Raul That was the problem. I edited the .wbf files by updating the name property and now all is well. The next time I'll do it the way you and Tim suggest. Thanks for everyone helping! TD |
This web page was last updated on Wednesday, August 14, 2024 at 03:12 PM | Privacy Policy![]() © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |