scroller

Add scrollbars in wxpython, but it doesn't appear

久未见 提交于 2019-12-11 04:25:26
问题 I saw a lot of scrollbars on the web, but my situation is different, with more wx.FlexGridSizer objects.The scoller dosen't appear. class MPL_Frame(wx.Frame): """MPL_Frame可以继承,并可修改,或者直接使用""" # global task def __init__(self, title="MPL_Frame Example In wxPython", size=(1300, 500)): wx.Frame.__init__(self, parent=None, title=title, size=size) self.scroller = wx.ScrolledWindow(self, -1) self.scroller.SetScrollbars(1, 1, 640, 400) self.grid = DataGrid(self, (17, 16)) ship_grid = DataGrid(self,

jquery horizontal scroll

こ雲淡風輕ζ 提交于 2019-12-11 02:10:04
问题 i would like to use the scroller of jquery UI : http://jqueryui.com/demos/slider/#side-scroll but with a mouseover event, i looked everywhere, i think i can do it by binding the event, but i dont really know, i need some help. I found exactly what i want but it's with mootools : http://woork.blogspot.com/2008/03/using-css-and-mootools-to-simulate.html Cheers 回答1: hoverscroll or smooth div scroll will do the trick 来源: https://stackoverflow.com/questions/6122635/jquery-horizontal-scroll

Flex Mobile textInput in scroller text lag

给你一囗甜甜゛ 提交于 2019-12-10 21:47:47
问题 I have been seeing a weird lag in the text that is input into a textInput container in my flex mobile app. The issue occurs when I type in some text into a textInput then scroll in any direction. The entire screen and all objects seem to move, except for the text in the textInput. This becomes a really big issue when I select the textInput to begin typing and the softkeyboard appears and shifts the input which then places the cursor and the typed text somewhere else on the screen. It looks

【安卓深度控件开发(1.3)】Creating Custom Views (官方示例文档汉化版)(3)

假如想象 提交于 2019-12-09 15:03:57
<h2>创建视图交互</h2> <p>图形用户界面只是创建自定义视图的一部分。您还需要使视图以模仿现实世界行动相似的方式响应用户输入。对象始终应像真正对象做的一样。例如,图像应不立即弹出并重现在某个地方别的地方,因为在现实世界中的对象不会这样做。相反,图像应从一个位置移动到另一个位置。</p> <p>用户也感觉到细微的行为或界面上响应最佳模仿现实世界中的细微之处。例如,当用户甩动一个 UI 对象,他们应该感觉动作继续,摩擦然后在最终停止,最后的位置超出甩动发生时的位置。</p> <p>这节课演示如何使用 Android 框架的功能,将这些真实世界的行为添加到您的自定义视图。</p> <h3>处理输入的手势</h3> <p>像许多其他 UI 框架,android 系统支持输入的事件模型。用户操作都变成触发回调的事件,您可以重写自定义您的应用程序如何响应用户的回调。在 Android 系统中最常见的输入的事件是触摸,而触发 <a href="http://developer.android.com/reference/android/view/View.html#onTouchEvent(android.view.MotionEvent)" target="_blank">onTouchEvent(android.view.MotionEvent)</a>。重写此方法以处理事件:</p

Scroller background not transparent in NSScrollView

耗尽温柔 提交于 2019-12-09 12:07:27
问题 Hi! I am using an NSScrollView which has a view-based NSTableView. Whenever the table adds a table cell the scrollers show up which is fine until you see that the scrollers don't have a transparent background. For some reason it's background is white as you can see on the image. I used IB to set up the NSScrollView and NSTableView and I cannot find any option where I can disable the scroller's background. Any ideas what may have cause this? Update: Settings for my NSScrollView in Xcode 回答1:

Vertical fling scrolling of text line in Android

有些话、适合烂在心里 提交于 2019-12-09 04:59:51
问题 I have implemented the editor code from the Android Note Pad sample code. Now I would like to add the ability to vertically fling scrolls the lines of text. An example of what I want to accomplish is the fling scrolling of the option lines in the Andorid I Googled for examples of scroller and fling but I can not find anything that fits what I need to to. I have not found anything that even remotely fits what I am trying to do. 回答1: I have developed the answer to my question through blood,

How could you increase the screen brightness in Android using a seek bar?

家住魔仙堡 提交于 2019-12-08 14:19:46
问题 I would like to increase the brightness of the screen using a seek bar within my Android application, but I'm not sure how to do this. How can I add this functionality? 回答1: Using this you can set the screen brightness: WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness = 100 / 100.0f; getWindow().setAttributes(lp); Now, as you want to implement progress bar like control, i would suggest you to implement SeekBar, so using this you can easily increase/decrease

HTML5 scrollbar that doesn't actually scroll

萝らか妹 提交于 2019-12-08 09:14:11
问题 I'm making a custom component that shows a part of huge dynamic content that changes frequently so I can't append and remove it all the time to the document . A scrollbar with onScrollBegin , onScrollEnd , onScrollUpdate and scrollTop and scrollMax values without scroll-content functionality would be great. I don't want the scroller to scroll the content for me. I need to get the current scrollTop value and do my staff without creating a content div with height. What do you suggest ? $('

scroller.scrollTo in Sencha Touch don't work if not launched manually just before

我是研究僧i 提交于 2019-12-06 10:54:55
问题 I encounter a problem when i want to use the scrollTo function of the scroller component. When i execute this command (by a button located on an another panel) : myPanel.scroller.scrollTo({x: 0, y: 200}, true); My panel is scrolling only if just before , i have scroll it manually by touching the screen. It's like i have lost focus on the scroller. Someone have an idea of where is the problem ? Thank you. 回答1: That's because the scoller doesn't know the boundaries of its wrapped widget.

How to use Scroller in ViewGroup (android)

社会主义新天地 提交于 2019-12-06 08:14:51
I have a custom ViewGroup and would like to add scrolling ability to it. Is it possible to use a Scroller object and link it up with view group? I have read somewhere that Scroller does not do any actual scrolling. That means it must be delegating the scrolling responsibility back to ViewGroup. thanks The ScrollView object is what allows for scrolling. Basically, most Views are able to be scrolled, but they have no way of propagating touch events to the View class. A ScrollView handles this for the user, so should be wrapped around a View whenever you would like to enable Scrolling for a that