|
-
Jun 3rd, 2002, 07:25 PM
#1
Thread Starter
Addicted Member
calling forms
How to call a form from another form?
-
Jun 4th, 2002, 03:54 AM
#2
Frenzied Member
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Jun 4th, 2002, 09:34 AM
#3
Thread Starter
Addicted Member
-
Jun 4th, 2002, 10:31 AM
#4
Frenzied Member
I'm not sure what you mean with Forms.. I think you mean dialogs? and what do you mean with calling them
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Jun 4th, 2002, 01:52 PM
#5
Frenzied Member
'Forms' is just what they are called in VB, purusingh. In C or C++ or pretty much any other language they're just windows. A form in VB is fundamentally just a specialised type of window with some stuff tacked on.
What are you trying to do with one window from the other?
Harry.
"From one thing, know ten thousand things."
-
Jun 4th, 2002, 07:33 PM
#6
Thread Starter
Addicted Member
Actually I want to make a database application.In which there could some forms and according to demand I want to open different form.
-
Jun 4th, 2002, 08:23 PM
#7
Frenzied Member
Please stop talking about forms, they don't exist in C++ 
Anyway, to create a new dialog from whatever window use DialogBox api, but you need to be a bit more specific for me to get you some code..
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Jun 4th, 2002, 09:03 PM
#8
I don't remember windows existing in C++ either.
-
Jun 5th, 2002, 09:06 AM
#9
Thread Starter
Addicted Member
I know to open dialog. We do
Dialog a;
a.DoModal();
In mfc there are view base on form databaseform ......
Suppose there are 2 views based on formview.
Now I want to call the second view form the first one so that both of them are visible.
-
Jun 5th, 2002, 09:12 AM
#10
Frenzied Member
Originally posted by amac
I don't remember windows existing in C++ either.
Well, no but the API you use to make GUIs in Windows is window-based.
Harry.
"From one thing, know ten thousand things."
-
Jun 5th, 2002, 11:39 AM
#11
As I suspected, he's talking about MFC. There are forms in MFC (CFormView).
You can't "call" the view, what you usually do is create a splitter window with the two views contained. Search the forum on CSplitterWnd, there was a thread a short while ago.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|