I am using codenameone RSSReader. On the simulator, it is difficult to use as the scrolling is quiet jumpy. if you scroll up, it will scroll and then bounce back to the previous position and it is difficult to select an item that is not within the view window. What do i need to do to make the scrolling smooth and not jumpy.
Set the form to border layout and place the reader in the center of the form.
Related
I have been working with victorycharts and it has been very helpful. I have a working chart using the https://formidable.com/open-source/victory/guides/brush-and-zoom/ and the example of having a scatter plot with brush and zoom has been very helpful. I was wondering if there was a way to have the default window scrolling active instead of zooming-on-scroll. I tried using the built in function to deactivate the zoom on scroll, but that just creates a dead zone where nothing happens when the user scrolls.
In summary, I currently have a scatterplot and a brush window that has a mini scatterplot inside of it. Currently I have two options when I scroll inside of the main scatterplot - it either zooms in to a specific part, or nothing happens. What I want is for the scrolling to ignore the scatterplot and be able to scroll inside of the page like normal.
I got a non Web application with a richtextbox and trying to do a lazy load implementation that when I got to the end of the scroll new information is added. The problem is that after I append the new information on the bottom of the scroll instead of the scroll being adjusted it scrolls all the way up. Do I have some way of adjust the scroll or jump to the last visible line so the user does not realize that there was a refresh on the richtextbox? I tried to cache the vertical scroll position before the new information is added and set it after, but for some reason, as I am doing this when the scroll is at the bottom, new "old" vertical position is the same as the "new" bottom of the scroll.
Does anyone has a clue of what can I do to fix this?
Thanks in advance.
RichText.AppendText(text);
RichText.ScrollToEnd();
I have created a usercontrol that is essentially a text editor (using Graphics.Drawstring in OnPaint).
I have set AutoScroll = true, and AutoScrollMinSize values appropriately. Everything is working how it should...
EXCEPT, i would like the control to scroll itself WHILST I am currently scrolling (i.e. click and drag the scroll bar... and whilst it is being dragged the control should be scrolling the entire time). At the moment it only scrolls when the scroll bar is released (mouse up).
I have tried implementing _Scroll and invalidating the control, but that just makes it flicker uncontrollably.
I cannot find any examples online for this, due to it being difficult to describe!
Can anyone point me in the right direction please?
Control.Invalidate() will make something flicker badly. I faced this problem drawing cross-hairs over a mouse position on a PictureBox drawing a line chart before. The trick is to use (and I cant remember which one is best to come first)
Control.Update();
Control.Refresh();
in the Scroll event. Depending on what else you are drawing in the Control and how you are drawing it this may be better for you. Also this is tested on PictureBox, Control may be another matter.
I am new to Silverlight and I am looking to create a StackPanel that scrolls by dragging it up or down, similarly to how PDF readers work. I did not know if there was anything built in or if I would have to create my own based on mouse down and up.
Hm, just catch MouseMove when LMB is down and change scrolling offset by horizontal difference between last and current points.
I currently have a Silverlight canvas that exceeds the viewable area of the screen (I'm letting the users drag the viewable areas around to navigate). I'm trying to display a modal popup that always shows up in the middle of the viewable area, and I can't seem to find any property that tells me what currently is on the screen. Basically if the user has panned down to the bottom and clicks something that causes a modal popup to appear it is stuck at the far top of the screen.
Any ideas anyone?
Thanks
~Steve
I don't think this is possible since the visibility isn't being surfaced. Perhaps with some fun JavaScript to figure out where the panning is?
Quite true. I wound up creating a holding canvas, making that full screen, and putting everything else as a child canvas within that. The modal popup now comes up in the holding canvas.
Gabriel GuimarĂ£es one works good.
App.Current.Host.Content.ActualHeight(and ActualWidth) does bring the browser size inside. Good for calculating position. And of course you can use LayoutUpdated on your main control to double check the sizes and resize stuff if need be.