Lisp HUG Maillist Archive

Fw: CAPI Look and Feel

> ----- Original Message ----- 
> From: "Edi Weitz" <edi@agharta.de>
> To: "Denis Mashkevich" <denisma@bezeqint.net>
> Cc: <lisp-hug@lispworks.com>
> Sent: Thursday, June 09, 2005 5:42 PM
> Subject: Re: CAPI Look and Feel
>
>
>> On Thu, 9 Jun 2005 18:35:47 +0200, "Denis Mashkevich" 
>> <denisma@bezeqint.net> wrote:
>>
>>> Is it possible to make CAPI look less ugly on Windows?
>>>
>>> [...]
>>>
>>>   2. To make controls take on XP styles
>>
>> Have you tried this?
>>
>>  <http://groups.google.de/group/comp.lang.lisp/msg/fc92afffb2c9c065>
>>
>> Cheers,
>> Edi.
>>
>



 Thanks , this works - with exactly the same problems John DeSoi describes -
 labels take on wrong background colour,
 transparency in button images is rendered as black etc. I'll try to fix it
 somehow (if anyone did, please share the method).

 Denis.


Re: CAPI Look and Feel

On Jun 9, 2005, at 3:09 PM, Denis Mashkevich wrote:

> Thanks , this works - with exactly the same problems John DeSoi 
> describes -
> labels take on wrong background colour,
> transparency in button images is rendered as black etc. I'll try to 
> fix it
> somehow (if anyone did, please share the method).

I never found a way to fix it. On my preferences dialog, I just made 
the group box pane background color the same (wrong) color as the 
labels. It looks a little goofy, but it is not a major interface for 
the application.

On a related topic, I'm trying to figure out how to make disabled 
toolbar buttons look better on Windows. The default algorithm basically 
just blanks out the colored area which looks really bad except for very 
simple outline type icons. I would also like to add the option for text 
labels -- something similar to Internet Explorer. Anyone already tacked 
this with the fli?


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


Re: Fw: CAPI Look and Feel

On Thu, 9 Jun 2005 21:09:58 +0200, "Denis Mashkevich" <denisma@bezeqint.net> wrote:

>> From: "Edi Weitz" <edi@agharta.de>
>>>
>>>  <http://groups.google.de/group/comp.lang.lisp/msg/fc92afffb2c9c065>
>
>  Thanks , this works - with exactly the same problems John DeSoi
>  describes - labels take on wrong background colour, transparency in
>  button images is rendered as black etc. I'll try to fix it somehow
>  (if anyone did, please share the method).

I thought about this today and searched Google a bit.  Right now my
understanding is that

a) this "manifest trick" will only get you the XP look and feel if you
   (i.e. the user of a delivered LW app) have the .NET runtime
   installed, and

b) at least some of the glitches described above are due to bugs in
   old .NET versions which are supposed to be fixed in 2.0.

See for example this article:

  <http://www.codeproject.com/csharp/dotnetvisualstyles.asp>

Checking whether my assumptions are correct would require me to remove
and/or update the .NET framework on the only XP machine that I have
and I can't do that right now due to other projects.  I might install
XP on VMWare one of these days just to check but maybe someone else
can already confirm or refute my guesses.  Specifically:

a) Will adding a manifest file as described by John DeSoi give you XP
   look and feel if you don't have .NET installed?

b) Do (some of) the problems reported by John and Denis vanish if you
   use .NET 2.0?

Thanks,
Edi.


Re: CAPI Look and Feel

On Sun, 12 Jun 2005 18:17:14 -0400, John DeSoi <desoi@pgedit.com> wrote:

> On Jun 12, 2005, at 5:03 PM, Edi Weitz wrote:
>
>> a) Will adding a manifest file as described by John DeSoi give you
>> XP look and feel if you don't have .NET installed?
>
> Yes, I'm pretty sure it does. See this article:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/
> dv_vstechart/html/
> vbtchUsingWindowsXPVisualStylesWithControlsOnWindowsForms.asp

Thanks, I stand corrected.  FWIW, I now found this article which
explains the underlying mechanism a bit (see "Side-by-side Assembly
Sharing"):

  <http://msdn.microsoft.com/msdnmag/issues/01/11/XPOver/>

> As a work-around, I still think it might be possible to get the
> correct color from the system and use it to setup the labels so they
> look right. I was not able to figure it out, but maybe some one who
> is more of a Windows guru would have better luck.

So, question to LispWorks:

Would it be possible to fix the outstanding issues as paid support
incidents such that delivered Windows apps plus manifest file are
fully "themable" in XP?

Thanks,
Edi.


Re: CAPI Look and Feel

Unable to parse email body. Email id is 4018

Updated at: 2020-12-10 08:52 UTC