Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to give focus to a child window

Posted on 2003-11-14
3
Medium Priority
?
396 Views
Last Modified: 2013-11-14
2 part question

1 - How do I give focus to a child window in an MDI application in c++Builder?

2 - What dependencies do I have to include in installshield for the C++Builder libraries?
0
Comment
Question by:auk_ie
[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
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
andrewjb earned 1000 total points
ID: 9749738
1) Given a pointer to the window, just MyChildWindow->SetFocus();

??

2) Depends how you've built it. One option:

Under project options,
 Compiler -> Click the 'Release' button
Packages -> UNclick the 'build with runtime packages'
Linker -> Unclick Use Dynamic RTL and Use debug libraries

then Project/Build.

That gives you a completely standalone .exe

(unless you've used third party components, or rely on external DLLs)

Andrew :-)
0
 

Author Comment

by:auk_ie
ID: 9749857
Thanks andrew, Can the libraries be dynamically linked. I'm not using any special libraries just thestandard c++ builder libraries. I'm guessing these are vcl and clx (These are the libraries I was looking libraries I was looking for redistributables for (ie .msm files)).

As you can probably guess I'm swapping over from MFC, There is a very usefull tool in MFC called TRACE, is there a tool in C++ Builder like this.

PS, I'm using C++Builder 6. Because I like the idea of haveing to compile code for windows, linux and unix (I don't think this can be done using visual studio). Have you seen CBuilderX yet? What a load of tripe. A java GUI is hard to gut being a C+ developer. Also I noticed the CLX libraries have dissaperared. What a shame. And the new cross platform library borland use wxWindows. I couldn't even find the option that creates a wxWindow project from the object galary.
0
 
LVL 12

Expert Comment

by:andrewjb
ID: 9750034
Dynamic linking by leaving Packages/BuildWithRuntimePackages ticked, but I can't remember offhand which you need. The help tels you, though.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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 viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

636 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