Solved

How to give focus to a child window

Posted on 2003-11-14
3
390 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 250 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
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 viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
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.

749 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