|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Arkin Terli
|
Feb 2, 2006 - 1:29 PM
|
Hi,
In my application, all things are dockable. I’m using vs 2005 style painter. When i move a resizable window, the navigator does not appear. How can i enable it?
Thank you
ps. I’m using lib 2.50
// Arkin Terli
|
|
Arkin Terli
|
Feb 3, 2006 - 11:22 AM
|
I think the problem is in project settings. I copied MainFrm.cpp and it’s header files of my testproj into SDI project directory which is in sample directory of prof-uis. SDI sample worked, which uses my testproj codes.
then i changed my testproj settings as SDI settings, but still testproj is not working.
Also, both projects, SDI and testproj, use ProfUIS252sn.lib (but i’m using prof-uis 2.50 fw version. Is it normal? I expected to use ProfUIS250sn.lib )
I couldn’t find where i made a mistake...
|
|
Arkin Terli
|
Feb 3, 2006 - 10:09 AM
|
|
|
Technical Support
|
Feb 3, 2006 - 5:45 AM
|
We need more information to come to any conclusion about why the docking markers (the guide diamond) do not appear in your application. Could you send us a test project that demonstrates the problem?
|
|
Arkin Terli
|
Feb 4, 2006 - 10:04 AM
|
OK, My env settings confused and i was suppose to use lib 2.50 The problem is more clear now: The testprojet, which i sent you, works with lib 2.50, but still does not work with lib 2.52, though...
|
|
Arkin Terli
|
Feb 4, 2006 - 3:56 AM
|
I think the problem is in project settings. I copied MainFrm.cpp and it’s header files of my testproj into SDI project directory which is in sample directory of prof-uis. SDI sample worked, which uses my testproj codes.
then i changed my testproj settings as SDI settings, but still testproj is not working.
Also, both projects, SDI and testproj, use ProfUIS252sn.lib (but i’m using prof-uis 2.50 fw version. Is it normal? I expected to use ProfUIS250sn.lib )
I couldn’t find where i made a mistake... OK, here is the test project:
http://www.kaletron.com/testproj.zip
Thank you.
|
|
Technical Support
|
Feb 4, 2006 - 10:33 AM
|
It seems you are using Prof-UIS 2.52 -- not 2.50. Any static library available in Prof-UIS 2.50 is a light-weight version of DLL libraries and has no resource dependent features. Any static library in Prof-UIS 2.52 is fully featured and you need to include Prof-UIS resources into the res/DisplayMgr.rc2 file in your project (see how it is done in any .rc2 file of any Prof-UIS sample). The DisplayMgr.rc2 file in your project may look like this: //
// DisplayMgr.RC2 - resources Microsoft Visual C++ does not edit directly
//
#ifdef APSTUDIO_INVOKED
#error this file is not editable by Microsoft Visual C++
#endif //APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
// Add manually edited resources here...
#if ( !(defined _AFXDLL && !defined __STATPROFUIS_WITH_DLLMFC__) )
#include <Resources/Resource.rc>
#endif
///////////////////////////////////////////////////////////////////////////// This improvement is essential and allows you make bitmaps of docking markers (the guide diamond) available in Prof-UIS library statically linked with your module.
|
|
Arkin Terli
|
Feb 5, 2006 - 5:39 AM
|
The old configuration method was so good. The new one needs a lot of work. Adding some lines into .rc2 files makes life hard... Now guide diamond works. PS. I prefer to use prof-uis with min configuration on MFC application like using 2.50 Thanks
|
|
Technical Support
|
Feb 6, 2006 - 11:06 AM
|
You can certainly use the old method. We provide this for compatibility with old projects. Please open Prof-UIS.h and comment the following line: #define __EXT_PROFUIS_STATIC_LINK_WITH_RESOURCES Then recompile the library. Now the library is absolutely resource-independent and works like before.
|
|