Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / October 2005



Tip: Looking for answers? Try searching our database.

Cocoa/Objective-C Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
razerburnnn@yahoo.com - 14 Oct 2005 14:09 GMT
Hi everyone,

Firstly I wanted to say thank you to all the contributors who have
provided good advice for myself and others to use, while some people
might not be thankful, I assure you that there are many of us out there
who really do appreciate the help given.

I have written a small cocoa app which is basically just a simple user
interface. It consists of a window with shapes that you can draw inside
it. It also has scrollbars for when the background (or image) is
smaller than the window itself. The problem I am having is that when I
click and drag a shape (to move it), it does not automatically scroll
(for example, if I click inside the shape and drag the mouse down below
the bottom of the window, it will not scroll down as I would like it
to).

Any help would be greatly appreciated.

p.s. I have googled all over the place for this but the closest thing I
have found is grab-scrolling code on this page:
http://iratescotsman.com/products/source/)

Thanks!
David Phillip Oster - 15 Oct 2005 06:03 GMT
> I have written a small cocoa app which is basically just a simple user
> interface. It consists of a window with shapes that you can draw inside
[quoted text clipped - 4 lines]
> the bottom of the window, it will not scroll down as I would like it
> to).

If the mouse is down in a drag, and it moves outside the canvas, then
start a timer to autoscroll the canvas. Cacnel the timer when conditions
change.

Signature

David Phillip Oster

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.