scrollbar

create a scrollbar in a submenu qt?

限于喜欢 提交于 2019-12-12 17:07:44
问题 I have a map application and a submenu which has dynamically added objects (i.e. points on a map) added to the submenu, depending on the layer that is loaded. I have the ability to hide each individual objects (i.e. a point) by clicking on the corresponding submenu item. Is there any way to organize the submenu? When there are a lot of points (i.e. 100) the entire submenu takes up the screen. Can I add a scrollbar to a submenu? I looked in the documentation, but couldn't find anything that

Scrolling panel using horizontal scroll bar

南楼画角 提交于 2019-12-12 15:13:59
问题 How can I apply a horizontal scroll bar to a Panel? I'm working on 2d tiled map editor and I'm using a Panel to hold the contents. When my map is bigger than my panel it just goes off and becomes invisible, would it be possible to apply custom scroll bars? 回答1: The Panel is derived from ScrollableControl. So there is a property AutoScroll. Just set it to true and the rest will be done automagically. 回答2: While this no longer applies as the question has been clarified to target winforms, in

CSS background color is erased by scroll bar on Chrome browser

99封情书 提交于 2019-12-12 14:39:07
问题 I have a container with specified height, and inside it items are stacked. By default, I set overflow items as hidden and once mouse hover I enable the container to show scroll bar. The HTML #container { width: 200px; background-color: gray; height: 200px; overflow-y: hidden; } #container:hover { overflow-y: auto; } .item { margin-top: 2px; margin-bottom: 2px; background-color: yellow; } <div id="container"> <div class="item">Item 1</div> <div class="item">Item 2</div> <div class="item">Item

Thumb doesn't match up with progress (seekbar)

时光总嘲笑我的痴心妄想 提交于 2019-12-12 14:35:20
问题 I have a bug after loading my seek bars. The thumb doesn't match with the progress value. After clicking the first time on the progress bar, the thumb moves correctly. Is there any solution for this problem? Thanks for help! Screenshot: 回答1: Check that your thumb offset in not set android:thumbOffset="-10dp" 回答2: You haven't provided much in the way of detail. I've found with Android 2.3 and earlier that if I modify the thumb within my code I then need the following sequence: int progress =

Flex - Change position of scrollbar to the top of a HorizontalList component

只谈情不闲聊 提交于 2019-12-12 13:31:31
问题 By default, the Horizontal ScrollBar of a HorizontalList component will be at the bottom. Is there a way to reposition it so it is at the top? Just for clarity, I do not mean moving the scroll position using either scrollToIndex or horizontalScrollPosition or similar, but the actual physical position of the scrollbar component. Any suggestions would be very appreciated! 回答1: I was looking for something similar myself a while ago and found this post. I eventually ended up solving my problem in

Tooltip in swing

一个人想着一个人 提交于 2019-12-12 13:25:54
问题 I made to tool tip for comportment in swing using some html tags _graph.setToolTipText("<html><div style=\"width: 300px; height: 100px;" + " overflow: auto; border: 0;<p style=\"padding:2 5 2 5;\"></div>Please Wait..."); Here _graph is object of component. Problem is, if data is exceeds I need to scroll but it is not happening.please anyone suggest me to make scrollbar. 回答1: Default tooltips are very basic: simply a lable-like component, even limited to text-only (except html). As I already

Scroll bar not appearing?

别来无恙 提交于 2019-12-12 13:10:35
问题 I'm developing a theme for Tumblr and the scrollbar isn't appearing for some reason? This is the url for the blog. The code for the theme can be found on the page source from the right click (all but the html as it gets messed up by Tumblr filling in the {} blanks) <body> <div id="titlebox"> <div id="title"><b>{Title}</b><div> {block:IfHeaderImage}<img src="{image:Header}" class="avatar"/>{/block:IfHeaderImage} <div id="description">{Description}</div> {block:Pages}{block:HasPages}<div id=

jQuery datepicker causes page overflow

一世执手 提交于 2019-12-12 12:28:29
问题 I am using the datepicker control from jQuery-ui 1.8. from-date is a text input. I am attaching a very simple datepicker: $('#from-date').datepicker(); This causes the page to overflow (vertical scrollbar), which I am trying to avoid. As soon as I click the from-date, the datepicker control appears, and the scrollbar dissapears. After dismissing the datepicker, the scrollbar doesn't appear anymore. The text field is inside a div that has overflow:auto and a fixed height and width. I suspect

JavaFX TextArea - unwanted ScrollBars when resizing

假装没事ソ 提交于 2019-12-12 12:11:36
问题 I have a problem with resizing update/event of TextArea in JavaFX. For illustration I created empty JavaFX project through IntelliJ Idea with AnchorPane as root pane and that AnchorPane contains TextArea with propecties AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" in sample.fxml file (in a short: TextArea takes all space of scene). Problem description: I launch application and it starts in a small window (300 x 275). I just

WS_VSCROLL, CreateWindow style works, SetWindowLong doesnt

佐手、 提交于 2019-12-12 11:18:43
问题 When i do wnd = CreateWindow("EDIT", 0, WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN, x, y, w, h, parentWnd, NULL, NULL, NULL); everything is fine, however if i remove the WS_VSCROLL and WS_HSCROLL then do the below, i do not get them thus have incorrect window. Why? Not only do i get an incorrect window it is unusable if both WS_VSCROLL and WS_HSCROLL are missing style = WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | ES