I just want to develop a gtk program in python which contains two basic widgets (treeview and Notebook) like pygtk-demo program.Left side is the treeview and right side could display the each item's content of treeview.
Now I want to add a scrolledwindow to the treeview to make it scrollable, I tried several ways but unfortunately all of them didn't work.
So I raise a question here, could anyone help working on it ? Any comments would be appreciated.
Using the Hpaned widget instead of the hbox to make the treeview scrollable.
Related
I have been using the Karate framework Robot component for desktop UI automation. With it, I need to click on a button in each row item of a data grid and using click() doesn't work when the item is not in view/is offscreen. As such I'm trying to figure out how to scroll down to the items I need so I can click the button. I noticed with the driver there is an option to scroll() but I haven't been able to find one with Robot.
Is there a workaround for this or are there plans to add a scroll() function for karate-robot in the future?
Scroll certainly sounds like it may be missing from the existing API. Please do consider investigating and contributing to the code, which will just make it faster to release.
Meanwhile here are the possible workarounds:
see if using the TAB key auto-scrolls to the element
if you get a reference to the button you can call invoke() on it which is supported by a range of windows components
P.S. please do consider contributing code, the code base is actually quite simple. And here is where you can implement the Scroll pattern: link.
I am using bootstrap collapse panel and I'm having trouble fitting the panel on the same line as the label.
Basically when there are more than one company, I would like to show it as shown in my example. If there's another way or better way of doing it, please let me know
Here's an example of what is happening
http://www.bootply.com/TliniBg50r
Thank you
I am looking for a user control that implements the behavior that can be seen in various settings related pages in Windows 8 (e.g. in "PC Settings"\"PC and devices"\"Devices"): a list consisting of icons and a label, where an item is expanded when clicked upon, showing a button that provides an item related action.
Is there a suitable control available for Windows store apps? If not, what would be the most efficient way to implement this behavior?
are you looking for something similar to TreeView in WinrtXAMLToolkit ?
You can use FlyOut component.
Also you can find "in list flyout example" on internet.
Where can I find alternative button controls for vb.net Winform?
Not sure what you mean since you can just choose the font so that it's any size you want and I've not seen anyone else mention this problem so I'm not sure if anyone will have written any specific controls for it. However, if you want to customize the look other options would be to override the OnPaint and draw it yourself or create an image that contains the text and show that image instead of the text.
Vendors that offer button controls with more options than standard WinForms:
infragistics.com
telerik.com
devexpress.com
I'd recommend downloading trial versions and see if you can make their controls do what you are failing to accomplish with the built in button control
Or, you could create an image that shows the text you want and attach it to the button instead of text. This is not as ideal as if you can find a small readable font though!
A little bit late but it could be useful for other:
http://namtuk.com/mycommandbutton_DOTNET.aspx
It supports a lot of button style like Office 2010, Windows 8 Metro, ...
I have encountered a problem in a Flex application.
I have implemented drag and drop support from a List to a Canvas, and I DragManagers doDrag() - with.a proxy-image. In my custom DragDrop event handler, i place a new item on the Canvas. I use the event.localX/localY to position the new item.
It is working ok, but the problem is that I want the "new" image to appear exactly where the proxy-image is when i release the mouse button (x/y -wise).
Can I somehow get the proxys X,Y location. I thought that DragManager would have a reference to it but I can´t find it.
Thanks
/C
Even though I save a ref to the proxy-object, it´s values are reset (naturally) in the drag-drop method.
I have found the answer by using the event.localX/Y variables.