Solved

Interface <Borland C++ Builder>

Posted on 2002-03-03
5
754 Views
Last Modified: 2009-07-29
I'm trying to create an interface like borland's c++ builder, how do I create those forms? jsut showing one in the OnCreate gives errors :/

(Several forms that is, one for the menu, one for messages etc. etc.)

Some code would be appreciated, though absolutely not neccesary
0
Comment
Question by:Fearum
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 1

Expert Comment

by:wolfpackinc
ID: 6837953
The Top form like in C++ Builder is the mainform of the project.

void __fastcall TMainForm::FormShow(TObject *Sender)
{
//set the position etc of the mainform
MainForm->Left = 0;
MainForm->Top = 0;
MainForm->Width = Screen->Width;
MainForm->Height = 104;
}
//----

on the other forms that you have added to the project...if you want them visible at the time of opening the application, make sure they have there visible property set to true.Then...

void __fastcall TAnotherForm::FormShow(TObject *Sender)
{
//set the position etc of the other forms
AnotherForm->Left = 0;
AnotherForm->Top = 105;
AnotherForm->Width = 200;
AnotherForm->Height = (Screen->Height - 134);
}
//---




0
 
LVL 1

Expert Comment

by:wolfpackinc
ID: 6837959
The Top form like in C++ Builder is the mainform of the project.

void __fastcall TMainForm::FormShow(TObject *Sender)
{
//set the position etc of the mainform
MainForm->Left = 0;
MainForm->Top = 0;
MainForm->Width = Screen->Width;
MainForm->Height = 104;
}
//----

on the other forms that you have added to the project...if you want them visible at the time of opening the application, make sure they have there visible property set to true.Then...

void __fastcall TAnotherForm::FormShow(TObject *Sender)
{
//set the position etc of the other forms
AnotherForm->Left = 0;
AnotherForm->Top = 105;
AnotherForm->Width = 200;
AnotherForm->Height = (Screen->Height - 134);
}
//---




0
 
LVL 11

Expert Comment

by:griessh
ID: 6955243
Dear Fearum

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "wolfpackinc"

comment(s) as an answer.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 1

Accepted Solution

by:
wolfpackinc earned 100 total points
ID: 6970073
The Top form like in C++ Builder is the mainform of the project.

void __fastcall TMainForm::FormShow(TObject *Sender)
{
//set the position etc of the mainform
MainForm->Left = 0;
MainForm->Top = 0;
MainForm->Width = Screen->Width;
MainForm->Height = 104;
}
//----

on the other forms that you have added to the project...if you want them visible at the time of opening
the application, make sure they have there visible property set to true.Then...

void __fastcall TAnotherForm::FormShow(TObject *Sender)
{
//set the position etc of the other forms
AnotherForm->Left = 0;
AnotherForm->Top = 105;
AnotherForm->Width = 200;
AnotherForm->Height = (Screen->Height - 134);
}
//---
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 6979016
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

705 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