Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - .ExcludeModule
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

.ExcludeModule

 Post Reply Post Reply
Author
Message
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Topic: .ExcludeModule
    Posted: 05 March 2008 at 4:45am
In our application a form doesen't show appropriate when skinned, so I like to exclude the DLL where the form belongs to.
But the exclude method dosen't work for me. I don't see a difference when I exclude the dll.

To show the problem, I created a simple sample.
Project1 (Project1.exe) is the calling application with SkinFrameWork on it. Project2 is a DLL-Project (ExcludeMe.dll) and shouldn't be skinned when called from Project1.

uploads/20080305_044400_ExcludeModule.zip

Don't I use the method like I should?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2008 at 6:53am
Hi,
No,its not right method for you. You need RemoveWindow method.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2008 at 9:10am
In our application we don't show the form direct from the DLL like I do it in the sample. We just call a method from the DLL. So I don't have the window handle of the form.
The DLL we are using in our application is from a third party supplier. It's just a black box for me.
So I need to exclude it by it's name.
Why doesn't work my sample?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2008 at 11:33am
Hi,
 
hmm strange. actually your sample works quite good for me. I don't see any problem with form from dll...
 
What OS you tried ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2008 at 11:35am
I see - it wors for you also, but you don't want to....
 
hmm another option is set AutoApplyNewWindows to False before show form from dll and change it back to True after.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Posted: 06 March 2008 at 3:01am
Yes, the sample works: I don't get an error.
But it doesn't happen what I expected.


Win XP Pro SP2
VB6 SP6
CodeJock Suite 11.2.2

I thought that the whole frmExclude with all controls on it doesn't show with the style from Form1.

I'll try your last advice. Thank you.

I would prefer a solution with exclude a DLL because in our application there is a black box inside a black box.
I like to have the Form1 style on my "outer black box". But the inner black box should not show the style.
This doesn't work if I set AutoApplyNewWindows to false.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.