User Activity

  • Posted a comment on discussion Open Discussion on ObjectListView

    Old question, but here is a way of determining if the scrollbars are showing: [DllImport("user32.dll", EntryPoint = "GetWindowLong", CharSet = CharSet.Auto)] public static extern IntPtr GetWindowLong32(IntPtr hWnd, int nIndex); [DllImport("user32.dll", EntryPoint = "GetWindowLongPtr", CharSet = CharSet.Auto)] public static extern IntPtr GetWindowLongPtr64(IntPtr hWnd, int nIndex); private bool HasHorizontalScrollBar(ListView lv) { const int GWL_STYLE = -16; const int WS_HSCROLL = 0x00100000; return...

  • Posted a comment on discussion Help on ObjectListView

    Old question, but here is the answer in case somebody else needs it: [DllImport("user32.dll", EntryPoint = "GetWindowLong", CharSet = CharSet.Auto)] public static extern IntPtr GetWindowLong32(IntPtr hWnd, int nIndex); [DllImport("user32.dll", EntryPoint = "GetWindowLongPtr", CharSet = CharSet.Auto)] public static extern IntPtr GetWindowLongPtr64(IntPtr hWnd, int nIndex); private bool HasHorizontalScrollBar(ListView lv) { const int GWL_STYLE = -16; const int WS_HSCROLL = 0x00100000; return (GetWindowLong(lv.Handle,...

  • Posted a comment on discussion Open Discussion on ObjectListView

    OK, so apparently, there is an undocumented method called DrawToBitmap that does MORE OR LESS what I need. It does, however, just draw the TreeView with scrollbar, so I need to figure out how I get it to render the entire content. There also seem to be a but in the routine, because it doesn't render the expansion boxes and the treelines.... :-( Tips are still very welcome! TIA! :-)

  • Posted a comment on discussion Open Discussion on ObjectListView

    OK, so this may sound strange, and it may be hard to explain, but let me give it a try: I have a TreeListVew containing a large tree, and because of the form size, it has scroll bars. I want to save this view as an image, but I want to save the entire tree without scrollbar, not just the nodes that are currently visible on the form. I have no idea where to start vith this. I think I need to find out how to do two things: 1) Find out the dimensions of the rendered tree without cropping 2) Use that...

  • Posted a comment on discussion Open Discussion on ObjectListView

    OK, so this may sound strange, and it may be hard to explain, but let me give it a try: I have a TreeListVew containing a large tree, and because of the form size, it has scroll bars. I want to save this view as an image, but I want to save the entire tree without scrollbar, not just the nodes that are currently visible on the form. I have no idea where to start vith this. I think I need to find out how to do two things: 1) Find out the dimensions of the rendered tree without cropping 2) Use that...

  • Posted a comment on discussion Open Discussion on ObjectListView

    I want to filter out models in my ObjectListView that: 1) One of the properties contains a specific text (this is easily done on itself with a TextMatchFilter of course) OR 2) The OLVListItem is checked OR 3) The OLVListItem is selected As far as I can see, creating a custom modelfilter works on the objects themselves, thus the corresponding OLVListItem is not available to combine with that. If I could create a custom ModelFilter that keeps all checked and selected items, I realize that I can combine...

  • Posted a comment on discussion Open Discussion on ObjectListView

    I'm trying to change TileSize programmatically for an objectlistview that is in Tile mode. The items change the size correctly, but the position is not changed until the mouse moves over the listview. That means that if the TileSize has been doubled, the tiles are overlapping each other, and if it has been halved, they have a tile's space between them. When the mouse moves over the listview, they "pop" into place. I've tried calling ObjectListView.Invalidate() and ObjectListView.Refresh() after the...

  • Modified a comment on discussion Open Discussion on KeePass

    Does anybody know if it's possible to show the database name in the tabs instead of the file name? After all, why give it a descriptive name if it's not used? Cheers, Johnny J.

View All

Personal Data

Username:
johnnyjorgensen
Joined:
2007-03-30 10:01:35

Projects

  • No projects to display.

Personal Tools