I know by using listview_getheader you can get the header info from the list view, but what about set the header is there any macro for that?
what I want to do is this
| Title |
|item 1 |subitem|
|item 2 |subitem|
|item 3 |subitem|
|item 4 |subitem|
|item 5 |subitem|
|item 6 |subitem|
ListView_GetHeader() gets the handle for the header.
http://msdn.microsoft.com/en-us/library/windows/desktop/bb761290(v=vs.85).aspx
Gets the handle to the header control used by a list-view control. You can use this macro or send the LVM_GETHEADER message explicitly.
With the handle, you should be able to get or set the associated text with SetWindowText().
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633546(v=vs.85).aspx
Changes the text of the specified window's title bar (if it has one). If the specified window is a control, the text of the control is changed.
Related
I would like to create an accordion header with react bootstrap, like this, with only the title section toogler.
-----------------------------------------------------
| Title | Button |
-----------------------------------------------------
The 'Title' section is only the one that make the toogling, I mean when I click in the Button section nothing happen (the accordion isn't toogled)
How can I do that ?
react-bootstrap
Visit https://react-bootstrap.github.io/components/accordion/ just import the files required from react-bootstrap into your file and use it.
if you want to reduce button size than add col-6 or something to cardheader.if you want to reduce toggle card size than add col-6 or something to card-body.
Method1
use clear:both css for both "title" and "button" divs, I think the "Title" button is covering the "Button div
Method 2
Use zindex and also try to 'Button'
menu: LUCAS base_url('lucas'). submenu: deel_1 (base_url('lucas/view/1'). In controller two functions (index($choice="all) and view($choice) are going to the same view folder/page. In this page I load the particular part(lucas_tabrow_1, 2 or lucas_tabrow_all) Only the last one works! The tqo not working are coming from the submenu! Hovering over a tabrow part shows in the status: localhost/lucas/view/1#. The correct one shows: localhost/lucas#
I tried to make a tabrow with 10 menus / dropdown menus. This is too big so I try to make 2 tabrows and only load one at the time. Clicking on topmenu Lucas goes correct, but trough submenu it doesnn't work
I am using will paginate for pagination. I have total 11 pages currently. At footer it shows all the 11 pages no matter on what page the user is. How can I display max 10 pages at footer. So if user comes on page no 5 it will show 5 pages before and after. Not all at once.
You can use the inner_window and outer_window options to control how many page links are displayed. If you only want to show 5 pages on either side of the current page, your view would look like:
<%= will_paginate #objects, inner_window: 5, outer_window: 0 %>
Though because your current page is also included, you'll have to show an odd number (1 + N * 2), so I hope you're alright with 9 or 11.
If you really want to get into it, you'll notice there's also a renderer option that lets you pass a custom link rendering class. The renderer instance needs to response to prepare and to_html like the default renderer does.
A have a CI 2 project, and in a view I have 3 box, and I have to show them on different page, different routes. Approximately on 8 different route, so where suppose I declare them?
In the view in every function( 8 of them) or in the one view file and check for the current route if it's match the criteria. The problem, that not all of them should be shown, A box only in 5 view, B box in 4 and C box in 2 example.
I would declare it where it is most centralized. Checking to load the view in every function would mean that if you were to change your condition you'd have to update it in 8 different places!! That is not fun to maintain.
By checking in one view file everythin is more centralized. This might seem silly because your conditional can get big,
if ($is_route_1 || $is_route_2 || $is_route_4 || $is_route_5) {
// display the box
}
So if you wanted to display it on another page you can add it right here in the one view.
I`m using an IShellView instance with the FVM_AUTO (-1) flag as view mode. That means the explorer should choose a viewstyle that fits the content of the displayed folder.
This works fine except the fact, that columnheaders are visible for viewstyle other than Details, e.g. Thumbnails.
The IShellView object and view window is created like this:
ShellFolder1.CreateViewObject(this.Handle,
ref IID_IShellView,
out shellViewObject));
IShellView shellView = shellViewObject as IShellView;
FolderSetting folderSettings = new FolderSetting();
folderSettings.ViewMode = (int)View; // view is FVM_AUTO = -1
folderSetting.FolderFlags = FolderFlags.NoClientEdge
| FolderFlags.ExtendedTiles
| FolderFlags.AutoArrange
// only columnheaders for view mode details
| FolderFlags.NoHeaderInAllViews;
shellView.CreateViewWindow(oldView, ref folderSettings, isb,
ref rect, ref m_ShellViewHandle);
A list of available folder flags can be found here: http://msdn.microsoft.com/en-us/library/bb762508(VS.85).aspx
Any suggestions how to tell the view that column headers should be displayed only for "details" in auto view mode? setting FolderFlags.NoColumnHeader does not change anything.
Thanks
this behavior seems to be a bug and is reported on MS connect
Additional information from MS support:
The folder controls the view. The values you pass to CreateViewWindow are merely suggestions. For the most part, these suggestions are respected, but a folder is technically allowed to ignore them.
In particular, this case overrides the suggestion for compatibility with Windows XP. If you use IShellView3::CreateViewWindow3, then this compatibility behavior does not apply, and the flags should be respected better. You can use the SV3CVW3_FORCEFOLDERFLAGS flag to make your suggestion more emphatic.
--> use IShellView3.CreateViewObject3 with the ForceFolderFlags flag