Solved

Interface <Borland C++ Builder>

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fully specialized class template function 21 129
ASP.net build a IF/Then Walkthrough Guide 1 191
Unresolved External Symbols 3 68
C++ mouse_event mouse look 7 68
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

914 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now