How to make a Dialog transparent ?

Discussions related to Visual Prolog
User avatar
Tonton Luc
VIP Member
Posts: 500
Joined: 16 Oct 2001 23:01

How to make a Dialog transparent ?

Unread post by Tonton Luc » 23 Aug 2012 13:49

Hi,

Is it possible to make a Dialog (or a Form) transparent but not the titlebar and the borders ?

dominique f pannier
VIP Member
Posts: 98
Joined: 23 Sep 2002 23:01

Unread post by dominique f pannier » 24 Aug 2012 14:09

Hi Tonton,
I suppose you have to build it entirely from a drawControlSupport package:
As I know, it's the one and only package which supports the setTransparent() predicate.

http://discuss.visual-prolog.com/viewto ... ransparent
Regards
Dominique Pannier

User avatar
Tonton Luc
VIP Member
Posts: 500
Joined: 16 Oct 2001 23:01

Unread post by Tonton Luc » 24 Aug 2012 14:53

Hi Dominique,

And how to put (or to build) a Dialog (or a Form) in a DrawControl ? ...if I unserstand well.

dominique f pannier
VIP Member
Posts: 98
Joined: 23 Sep 2002 23:01

Unread post by dominique f pannier » 24 Aug 2012 16:20

Hum ! :roll:
It was just a suggestion ! I never did it.

The problem is that a drawControlSupport, in the interface tree, cannot inherit the properties of a container window : then it's impossible to add into it current controls like into a standard form.

But if I got to study this problem, I would investigate about ContainerControl which may be can accept such controls. But I never opened a containerControl : if it is a pure structure, the solution is easy :

containerControl accepts the controls, an the superimposed drawControlSupport allows the design of the container (border and titlebar) of the set of tools...

But may be all that is a pure speculation...:?:
Regards
Dominique Pannier

dominique f pannier
VIP Member
Posts: 98
Joined: 23 Sep 2002 23:01

Unread post by dominique f pannier » 24 Aug 2012 16:50

Forgive an error ! :oops:

Don't use drawControlSupport, but userControlSupport, wchich supports ContainerControl : you can add current controls directly into it.
This control supports too the setTransparent() predicate.
Regards
Dominique Pannier

User avatar
Tonton Luc
VIP Member
Posts: 500
Joined: 16 Oct 2001 23:01

Unread post by Tonton Luc » 27 Aug 2012 12:01

Hi,

Do I need to create a new Control (inherits userControlSupport) and do I need to put it in a Custom control (and put this Custom in a Dialog) ?

David Snook
VIP Member
Posts: 79
Joined: 6 Feb 2003 0:01

Unread post by David Snook » 2 Sep 2012 19:10

Hi Tonton,

Have you looked at layered Windows? (http://msdn.microsoft.com/en-us/library ... in_topic2a).

Regards,

David

Post Reply