Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Overriding the drawer window border (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Re: REALbasic-NUG Digest #8965
Next thread: Multiple inheritence?


Re:Print file using MS Word on PC   -   Troy A. Dix
  Overriding the drawer window border   -   Maury McCown
   Re: Overriding the drawer window border   -   Mars Saxman
    Re: Overriding the drawer window border   -   Maury McCown
     Re: Overriding the drawer window border   -   Mars Saxman
      Re: Overriding the drawer window border   -   Maury McCown
      Re: Overriding the drawer window border   -   Will Leshner

Overriding the drawer window border
Date: 01.08.03 00:19 (Thu, 31 Jul 2003 18:19:13 -0500)
From: Maury McCown
Hey everyone

Long time - no list email! =)

I'm putting the finishing touches on a new program, and I'm wondering if
anyone has figured out how to override the forced borders/gutters in RB5's
drawer windows.

Since the RB5 drawers look nothing like the real ones, I thought I'd be
sneaky and place an image of a Project Builder drawer into a canvas that
filled the entire window. This looked great until I ran the project and
realized that RB had placed an un-requested border around all sides.

Anyone have any tips or ideas?

Thanks,
Maury
===========================================
RAILhead Design: ³Giving the planet a makeover²
news | icons | desktops | fonts | software | more
< http://www.railheaddesign.com/ >
===========================================


---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Re: Overriding the drawer window border
Date: 01.08.03 00:51 (Thu, 31 Jul 2003 16:51:28 -0700)
From: Mars Saxman
<email address removed> wrote:

> Since the RB5 drawers look nothing like the real ones, I thought I'd be
> sneaky and place an image of a Project Builder drawer into a canvas that
> filled the entire window. This looked great until I ran the project and
> realized that RB had placed an un-requested border around all sides.

Drawers in a REALbasic application are as real as any other drawers, and
RB's window class does not insert any special border.

When Apple added Carbon drawers to 10.2, they gave them a different
appearance than the older Cocoa drawers. At first the story was that this
was the new drawer look and that Cocoa would be updated in 10.3; now it
appears that they've decided to switch back to the older look. In any case,
it's the system that determines the drawer appearance, so you'll have to
wait for 10.3 for Apple to finish sorting out this little mess.

Mars Saxman
REAL Software

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Re: Overriding the drawer window border
Date: 01.08.03 02:40 (Thu, 31 Jul 2003 20:40:40 -0500)
From: Maury McCown
On 7/31/03 6:51 PM, Mars Saxman uttered the following:

>> Since the RB5 drawers look nothing like the real ones, I thought I'd be
>> sneaky and place an image of a Project Builder drawer into a canvas that
>> filled the entire window. This looked great until I ran the project and
>> realized that RB had placed an un-requested border around all sides.
>
> Drawers in a REALbasic application are as real as any other drawers, and
> RB's window class does not insert any special border.
>
> When Apple added Carbon drawers to 10.2, they gave them a different
> appearance than the older Cocoa drawers. At first the story was that this
> was the new drawer look and that Cocoa would be updated in 10.3; now it
> appears that they've decided to switch back to the older look. In any case,
> it's the system that determines the drawer appearance, so you'll have to
> wait for 10.3 for Apple to finish sorting out this little mess.

Hm, I'm not seeing what you're seeing on my system, then.

As for the borders, are you saying that the OS is adding the 12 to 14px
borders around my drawer windows when I fill the entire area with a white
canvas? Seems like RB is doing that, because the OS doesn't draw any other
Aqua drawer windows with a border that size.

Second, if you look at apps like Mail or Transmit -- or the default Aqua
drawer you see when using Interface Builder -- the RB5 drawer looks nothing
similar. The closest match would be the brushed metal ticker tape drawer of
the Calculator. The Aqua drawers look more like an image well rather than a
round-cornered window.

Are you saying the RB isn't doing that, but the OS is? If so, then why do
Mail, Transmit, and other Aqua-drawer apps have different looking drawer
windows -- and why can't we control it in RB?

Maury
===========================================
RAILhead Design: ³Giving the planet a makeover²
news | icons | desktops | fonts | software | more
< http://www.railheaddesign.com/ >
===========================================


---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Re: Overriding the drawer window border
Date: 01.08.03 02:56 (Thu, 31 Jul 2003 18:56:49 -0700)
From: Mars Saxman
<email address removed> wrote:

> Are you saying the RB isn't doing that, but the OS is? If so, then why do
> Mail, Transmit, and other Aqua-drawer apps have different looking drawer
> windows -- and why can't we control it in RB?

Yes, that's what I meant. Mail's UI code uses Cocoa, so its drawers get the
Cocoa appearance. REALbasic's window class uses Carbon, so its drawers get
the Carbon appearance. The system itself has two different sets of drawing
code for drawers. The only way to get the other appearance is to use the
other UI framework.

It's not a particularly good situation, and I'm sure it's just the result of
some deadline crunch at Apple. All we can do is wait for them to deal with
it in the next OS version.

Mars Saxman
REAL Software

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Re: Overriding the drawer window border
Date: 01.08.03 02:57 (Thu, 31 Jul 2003 20:57:34 -0500)
From: Maury McCown
On 7/31/03 8:56 PM, Mars Saxman uttered the following:

>> Are you saying the RB isn't doing that, but the OS is? If so, then why do
>> Mail, Transmit, and other Aqua-drawer apps have different looking drawer
>> windows -- and why can't we control it in RB?
>
> Yes, that's what I meant. Mail's UI code uses Cocoa, so its drawers get the
> Cocoa appearance. REALbasic's window class uses Carbon, so its drawers get
> the Carbon appearance. The system itself has two different sets of drawing
> code for drawers. The only way to get the other appearance is to use the
> other UI framework.
>
> It's not a particularly good situation, and I'm sure it's just the result of
> some deadline crunch at Apple. All we can do is wait for them to deal with
> it in the next OS version.

Ahh, ok -- I see.

Thanks for clearing that up for me! =)

Maury
===========================================
RAILhead Design: ³Giving the planet a makeover²
news | icons | desktops | fonts | software | more
< http://www.railheaddesign.com/ >
===========================================


---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Re: Overriding the drawer window border
Date: 01.08.03 04:20 (Thu, 31 Jul 2003 20:20:26 -0700)
From: Will Leshner
This actually came up at WWDC in one of the Q&A sessions. I wonder if
I'm violating my NDA by talking about it :) Anyway, the Apple engineer
answered the question as to the difference by saying "oh yes, the
carbon drawers had the newer look before cocoa got them".

On Thursday, July 31, 2003, at 06:56 PM, Mars Saxman wrote:

> <email address removed> wrote:
>
>> Are you saying the RB isn't doing that, but the OS is? If so, then
>> why do
>> Mail, Transmit, and other Aqua-drawer apps have different looking
>> drawer
>> windows -- and why can't we control it in RB?
>
> Yes, that's what I meant. Mail's UI code uses Cocoa, so its drawers
> get the
> Cocoa appearance. REALbasic's window class uses Carbon, so its drawers
> get
> the Carbon appearance. The system itself has two different sets of
> drawing
> code for drawers. The only way to get the other appearance is to use
> the
> other UI framework.
>
> It's not a particularly good situation, and I'm sure it's just the
> result of
> some deadline crunch at Apple. All we can do is wait for them to deal
> with
> it in the next OS version.


---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>