Solved

Interface <Borland C++ Builder>

Posted on 2002-03-03
5
745 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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…

762 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

11 Experts available now in Live!

Get 1:1 Help Now