Re: How to fill rectangle under vertical scroller?

2009-06-22 Thread Chris Suter
Hi Quincey, On Mon, Jun 22, 2009 at 2:33 PM, Quincey Morrisquinceymor...@earthlink.net wrote: FWIW, the small gotcha in the sample code you linked to (AFAICT, since I never tried it) is that it places the placard in the area normally occupied by a scroll bar. The corner rect that the OP wants

Re: How to fill rectangle under vertical scroller?

2009-06-21 Thread Uli Kusterer
Am 19.06.2009 um 04:23 schrieb Sumin Kim: the area under the vertical scroller and right to horizontal scroller still remains white. I tried to set different origin and frame size for the view that is supposed to be drawn the area, but the results have not changed. Where in the window

Re: How to fill rectangle under vertical scroller?

2009-06-21 Thread Graham Cox
On 21/06/2009, at 9:18 AM, Sumin Kim wrote: Hi, Graham, I think I finally got what you said. I referred your linked sample, and implemented my source as follows.(I enclose my source for anyone who has same problem with many thanks to this list.) I also needed to add some code to

Re: How to fill rectangle under vertical scroller?

2009-06-21 Thread Quincey Morris
On Jun 21, 2009, at 20:39, Graham Cox wrote: What I meant was to create a small view that is just the size of that small corner and use the -tile method to position it in the corner where you want it. This is what the sample code I pointed to is doing, albeit positioning a placard view in

Re: How to fill rectangle under vertical scroller?

2009-06-20 Thread Sumin Kim
You need to place a view here and do the custom drawing in the view. To place the view, you need to subclass NSScrollView and override the -tile method to place the view in that corner. The scrollview subclass will also typically own the custom view. Here's an example from the archives

Re: How to fill rectangle under vertical scroller?

2009-06-18 Thread Sumin Kim
Thanks for the information. Those frameworks seems very helpful for the future even though they are not solving my problem right now. Incidentally, I found out that I know the writer of HIMBIkAppKit personally. ;-) Thanks, On Thu, Jun 18, 2009 at 6:15 AM, Scott Andrew

Re: How to fill rectangle under vertical scroller?

2009-06-18 Thread Sumin Kim
You need to place a view here and do the custom drawing in the view. To place the view, you need to subclass NSScrollView and override the -tile method to place the view in that corner. The scrollview subclass will also typically own the custom view. Here's an example from the archives

Re: How to fill rectangle under vertical scroller?

2009-06-18 Thread Quincey Morris
On Jun 18, 2009, at 19:23, Sumin Kim wrote: Thanks for your information. I read your linked article, and tried to do the same thing. But, I am still in the problem. Where I want to draw a color is the area under vertical scroller but for the some reason, it seems that my new view is drawn

Re: How to fill rectangle under vertical scroller?

2009-06-17 Thread Scott Andrew
Have you looked at a couple of frameworks that already do this? The two i can think of fare. BWToolkit and HMBlkAppKit. Source is available for both. Scott On Jun 16, 2009, at 9:40 PM, Sumin Kim wrote: That's not part of the scroller. Assuming you're working with NSTableView, this

Re: How to fill rectangle under vertical scroller?

2009-06-17 Thread Andrew Farmer
On 16 Jun 2009, at 21:40, Sumin Kim wrote: That's not part of the scroller. Assuming you're working with NSTableView, this is the cornerView, which you can set up separately. Yes, you are right. I am working with table. Of course I tried to use cornerView. But as far as I understood

How to fill rectangle under vertical scroller?

2009-06-16 Thread Sumin Kim
Hi, all. I am drawing custom scroller for my application and could change color and looks of knob, arrows, and knob slot. But I still cannot change the color of a rectangle located in right bottom corner under vertical scroller. I could not find out how to handle the area. Any advice will be

Re: How to fill rectangle under vertical scroller?

2009-06-16 Thread Graham Cox
On 17/06/2009, at 9:43 AM, Sumin Kim wrote: I am drawing custom scroller for my application and could change color and looks of knob, arrows, and knob slot. But I still cannot change the color of a rectangle located in right bottom corner under vertical scroller. I could not find out how

Re: How to fill rectangle under vertical scroller?

2009-06-16 Thread Andrew Farmer
On 16 Jun 2009, at 16:43, Sumin Kim wrote: I am drawing custom scroller for my application and could change color and looks of knob, arrows, and knob slot. But I still cannot change the color of a rectangle located in right bottom corner under vertical scroller. I could not find out how to

Re: How to fill rectangle under vertical scroller?

2009-06-16 Thread Sumin Kim
That's not part of the scroller. Assuming you're working with NSTableView, this is the cornerView, which you can set up separately. Yes, you are right. I am working with table. Of course I tried to use cornerView. But as far as I understood with my experience dealing with cornerView, it