• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to know if I'm outside a ScrollView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to know if I'm outside a ScrollView?


  • Subject: Re: How to know if I'm outside a ScrollView?
  • From: Dominik Pich <email@hidden>
  • Date: Sat, 16 Feb 2008 12:31:40 +0100

Dont know if I get you right but..
you can use [scrollview visibleRect] to see whats on screen
and scrollToRect/Point to modify scrollbar

so.
	if after downKey is pressed
		selectedItem.frame is not in scrollView.visibleRect
	{
		scrollView.scrollToRect: selectedItem.frame
	}

:)
Where you could skip the check so just:
		scrollView.scrollToRect: selectedItem.frame

Regards,
Dominik
On Feb 16, 2008, at 12:14 PM, Guillem Palou wrote:

Hi all,

I have a view embedded in a ScrollView. The thing is that I'm operating in
that view with the keyboard (actually pressing the up and down arroy keys)
so I would like the superview (the scrollview) to scroll when I get off
bounds the visible rect. I've searched around the web but found nothing.
Does anyone knows how to do it?


Many thanks to all,

Guillem
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How to know if I'm outside a ScrollView? (From: "Guillem Palou" <email@hidden>)

  • Prev by Date: How to know if I'm outside a ScrollView?
  • Next by Date: Resize box not letting clicks through
  • Previous by thread: How to know if I'm outside a ScrollView?
  • Next by thread: Resize box not letting clicks through
  • Index(es):
    • Date
    • Thread