Re: Interfaces without a title bar -> Window styles
Le 9/06/05 15:22, « Sean Ross » <sdr@jhb.ucs.co.za> a écrit :
> davef@lispworks.com writes:
>
>>> Is it possible to display a capi:interface without decorations?
>>> I'm trying to get rid of the title bar but can't quite
>>> figure it out.
>>
>> Try the undocumented CAPI:INTERFACE initarg :WINDOW-STYLES, like this:
>>
>> (capi:display (make-instance 'capi:interface
>> :best-width 200
>> :best-height 200
>> :title "Hi Sean"
>> :window-styles '(:borderless)
>> :x 20
>> :y 20))
> Thanks,
> That works great.
>
> Is there a list of the different window-styles somewhere
> that I can experiment with?
>
> Sean.
Hi,
I got this from the Lispworks support, but I don't now if this list is
exhaustive. This is simply the way to do a toolbar - like the toolbar on the
Mac version of Lispworks.
:window-styles
'(:hides-on-deactivate
:borderless
:internal-borderless
:ignores-keyboard-input
:always-on-top
:movable-by-window-background)
About this question of "window-styles":
I'll be very interested to now if it's possible to choose witch buttons are
visible in the title bar (for instance to make a window with just a
close-box - like dialogs on Window XP).
I'll also be interested to find a solution to remove the resize rectangle
(or grow rectangle) on Mac (right-bottom corner of the window), or the
changes on the cursor when point on the border of a window on Windows XP
and, naturally, to remove the resize button on title bar.
(Maybe something like :window-styles '(:resizable nil) ?)
Finally, I'll also be very happy to find the solution to make something like
"tools palette" (floating window with a little title bar as, for instance,
the tools in Photoshop, Finale, or many other software). But, unfortunately,
I've heard from support that this functionality (the NSPanel on COCOA) is
not supported by Lispworks...
But, any info to do something equivalent are really welcome (maybe with the
borderless window and some resources ?)
Best
Denis
----------------------------------------------------
Denis Pousseur
34 Bd de Dixmude
1000 Bruxelles, Belgique
Mail : denis.pousseur@compositeurs.be
Website : http://compositeurs.be
----------------------------------------------------