Solved

How to give focus to a child window

Posted on 2003-11-14
3
386 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
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
andrewjb earned 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Dynamic linking by leaving Packages/BuildWithRuntimePackages ticked, but I can't remember offhand which you need. The help tels you, though.
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

One of the frequent problems with the installations is when some file or registry entry is not removed from the system upon un-installation of the product. Clean removal is always highly desirable. One major reason for that is badly authored inst…
Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
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 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.

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

9 Experts available now in Live!

Get 1:1 Help Now