| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 116177 | 2011-02-20 04:37:00 | Using Delphi C++ Builder | Jstewart (16241) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 1179887 | 2011-02-20 04:37:00 | Hey guys - I am wanting to write a very simple program in Delphi for use at my work for my team to trouble shoot problems. What I need to it do is have a button that someone can click and then it will go to another screen with information or maybe another button and so no. I can got the first screen all done with all the information set up but don't know how to set up the sub windows and link the buttons to this. Would anyone be able to tell me? I know it should be very simple and have sifted through Google but can't seem to find what I am looking for. Cheers |
Jstewart (16241) | ||
| 1179888 | 2011-02-20 07:14:00 | Delphi I know about C++ I don't. From the main form this is how to open a help dialog box procedure TMainForm.HelpAbout(Sender: TObject); begin AboutBox:= TAboutBox.Create(Self); AboutBox.ShowModal; end; You may need to put the forms unit name in the Implementation/uses clause. You need to create an OnClick event for the button which will point to the code to open the new window. If you just want an ordinary window and not a dialog box just use Show instead of ShowModal. If you are interested there is FreePascal/Lazarus which is the opensource equivalent of Delphi. |
mikebartnz (21) | ||
| 1179889 | 2011-03-07 08:02:00 | It would be polite to let people know if their reply has been useful. | mikebartnz (21) | ||
| 1 | |||||