Solved

How to give focus to a child window

Posted on 2003-11-14
3
389 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
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

One of the major drawbacks of deploying applications by GPO is the complete lack of any centralized reporting. After a normal deployment, there are two ways to find out if it was successful – by looking in the event log, and by looking in the log of…
If you don't know how to downgrade, my instructions below should be helpful.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

791 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