[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 401
  • Last Modified:

How to give focus to a child window

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
auk_ie
Asked:
auk_ie
  • 2
1 Solution
 
andrewjbCommented:
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
 
auk_ieAuthor Commented:
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
 
andrewjbCommented:
Dynamic linking by leaving Packages/BuildWithRuntimePackages ticked, but I can't remember offhand which you need. The help tels you, though.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now