Solved

Interface <Borland C++ Builder>

Posted on 2002-03-03
5
753 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

749 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