Solved

Interface <Borland C++ Builder>

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

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. …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

856 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