scrolling

[iPhone] Performance issues of grouped UITableView on Device

Hey guys, I am quite new to iPhone development but I am trying to build a small medical app. The app consists of tab bar controller and in the first item is a navigation controller and a grouped UITableView. The problem is that scrolling the table on my iPhone 3G is pretty slow. It is not so smooth like in the Settings app. The perform...

Scrollable JPanel

How to make a JPanel scrollable? I implemented the scrollable interface yet when adding it to the containing panel with tabbedPane.add("Editor", new JScrollPane(storeyEditor = new MNScrollablePanel())); nothing works Code: public class MNScrollablePanel extends JPanel implements Scrollable { public Dimension getPreferredScroll...

Java's setPreferredSize won't resize JPanel

Hi all, I am struggling ( ! ) with java GUI development. All these small things that make obvious sense just don't work. I'll explain what I am trying to do and where I am failing (this is quite frustrating): I've got this graphics2d object which resides inside a panel. Now this graphics draws an image, it can go on and draw forever. t...

Is this considered as using private functions in iPhone dev, and thus illegal?

I'm trying to disable scrolling for a UIWebView and the only way i found is using this way: #import <objc/runtime.h> id scroller = [[Webview subviews] lastObject]; int count; Method *method = class_copyMethodList([scroller class], &count); int i; for (i=0; i<count; i++) { if (strcmp(method_getName(method[i]), "setScrollingEnabled:"...

how to scroll asp.net textbox to bottom

I'm building a website with text box containing log messages. the log is getting updated using AJAX. <asp:UpdatePanel ID="UpdatePanel1" runat="server" > <ContentTemplate> <asp:TextBox ID="TextBox1" runat="server" onload="textbox_load" Height="110px" TextM...

How to prevent window from scrolling up on jQuery slideToggle()?

I'm using jQuery to dynamically add two divs on page load. It all works great, except, when I click the "Advanced Options" link in the first dynamically loaded div - it performs it's correct behavior (sliding the second dynamic div), BUT it resets the scroll of the window back to the top. I attempted to focus on the first input element...

Simple Scrolling with jQuery

I have an AJAX navigation and I would like to scroll the page to the main title when the user clicks a link. Let's suppose that the title has a #sampleid: I would like to do something like scrollTo #sampleid. How can I do that? ...

How to make a continuous scroll with JQuery?

Hi Guys, I have this site I am developing: http://tinyurl.com/l7uzzp - I made the scroller with the following code: $(document).ready(function() { function scrollIt() { $('#featured-brands div#scroll').animate({ marginLeft: "-4550px"}, 85000, "linear").animate({ marginTop: "-223px" }, 2...

How do I make the scrollbar's thumbtrack resize

If you open Notepad, add ten lines and resize the editor to only show nine, the thumb track (the draggable block on a scroll bar) is almost the full length of the vertical scroll bar. If you add a couple of thousand rows, the thumb track is only a few pixels high. I'd like to duplicate this bahaviour in a TCustomControl descendant where...

Is there any Visual Basic 2008 scrolling text code?

I want a code that when applied to text in Visual Basic 2008 it scrolls across the screen. I don't want anything flashy, just something basic to start off with. If you guys know of such a thing that would be great! EDIT: I would like it to cycle, hope this makes it easier! ...

jQuery scroll text side-to-side

I've seen Giva labs' marquee scroller and SerialScroll but can't figure out how to get it to scroll text in a div from side to side. My guess is I need some other type of extension. Basically, I have a div of width 100px and text that spans 200px and instead of scrolling it all the way through like a marquee, I want to scroll it left un...

WPF GridSplitter to split/resize two ListBox's?

I've got a grid that has 7 rows in it. Row 0 is a group of 2 buttons Row 1 is a ListBox of objects Row 2 is a group of 3 buttons Row 3 is a group of 2 buttons Row 4 is where my GridSplitter lives Row 5 is a group of 2 buttons Row 6 is a ListBox of objects I want the GridSplitter to slide up and down, resizing each of the two ListBox's. ...

Text in UITableViewCell missing when scroll down

I added several cells to a tableview and each cell has a textField in the right to let users input texts. I find that when I scroll down and go back, the input of the first few lines will disappear. Does anybody know what's the problem? The following is a piece of my codes: -(UITableViewCell *)tableView:(UITableView *)tableView cellFo...

Scrolling on page with object of Silverlight 3 doesn't work

Hello, I have on the aspx page some Silverlight 3 object that is pretty big. I don't want to use ScrollViewer but I want to make the page scroll. When I set up "overflow:scroll" for this object I cas see page's scrollers but they're not active. If I don't set up something like that the object is clipped stupidly if I make the browser's w...

UpdatePanel contol and moving to top of page

Hello I have an asp.net page that is using an UpdatePanel control. When you're on the page and you click the continue button, the page does a partial refresh and you're left in the same scroll position you were before the refresh. How do I ensure that on partial refreshes with the UpdatePanel control that you return to the top of the pa...

(solved) jQuery click and drag/scroll window: jagged movement

Edit: derp, using pageX/Y instead of clientX/Y -- apparently scrollBy expects input with that offset rather than the other. Jaggy movement gone. I am getting jagged movement when doing small scroll increments using the following bindings. Can anyone point me in the right direction for how to smooth this out? FYI, its intermittent. It se...

jquery vertical scroll

Now, I'm trying to create a vertical scroll. http://www.chohoh.com/pcs/test.scroll.html I have quite a few things nested which needs to remain like that but I think I'm unclear on how to tell the jquery file that it needs to scroll between two li classes "white-tikt" and "tan-tikt". I'm completely baffled why this isn't working. Even i...

Actionscript 3 TextField scrollH property gets set to 0 on click

I am populating a textfield programmatically and scrolling to the maxScrollH as the new text is added so the user can see the progression of text. This works fine, until I click the TextField, which sets scrollH back to 0 and places the caret in the text at the equivalent position. textField.setSelection( text.length, text.length ); //s...

How to catch a scroll event in a CListCtrl? MFC C++

I subclassed CListCtrl into my own class, and I use it in several dialogs and views. What I want to do is execute some code when the ClistCtrl is being scrolled vertically. I need this to be in the CListCtrl subclass itself. I can detect the scrolling triggered when interacting with the scrollbar with the method provided by demoncodemon...

Correct time to call viewDidAppear manually?

I have a UITableViewController in my app, which is added to the view hierarchy directly. After the view appears, I want to scroll to a specific cell. My solution would be to call the code for scrolling in -[viewDidAppear]. According to Apple's docs I have to call the method manually: If the view belonging to a view controller is add...