Jewtus Posted October 20, 2014 Share Posted October 20, 2014 Is there any way to create a hidden field in a list view? This is what I already have for the list view: $HitsView = GUICtrlCreateListView("", 472, 280, 420, 152,Default,0x00000004) _GUICtrlListView_InsertColumn($HitsView, 0, "Search Type", 75) _GUICtrlListView_InsertColumn($HitsView, 1, "ID", 100) _GUICtrlListView_InsertColumn($HitsView, 2, "Name", 100) _GUICtrlListView_InsertColumn($HitsView, 3, "Date", 100) _GUICtrlListView_InsertColumn($HitsView, 4, "Notes", 100) _GUICtrlListView_InsertColumn($HitsView, 5, "Hidden", 0) I was hoping that setting the size to 0 would hide it, but it does not. Any suggestions? Link to comment Share on other sites More sharing options...
MikahS Posted October 20, 2014 Share Posted October 20, 2014 (edited) Works fine for me.. #include <GUIListView.au3> #include <GUIConstantsEx.au3> Local $hGUI, $msg, $HitsView $hGUI = GUICreate("hi", 800) GUISetState() $HitsView = GUICtrlCreateListView("", 0, 0, 700, 152,Default,0x00000004) _GUICtrlListView_InsertColumn($HitsView, 0, "Search Type", 75) _GUICtrlListView_InsertColumn($HitsView, 1, "ID", 100) _GUICtrlListView_InsertColumn($HitsView, 2, "Name", 100) _GUICtrlListView_InsertColumn($HitsView, 3, "Date", 100) _GUICtrlListView_InsertColumn($HitsView, 4, "Notes", 100) _GUICtrlListView_InsertColumn($HitsView, 5, "Hidden", 0) While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd proof: Edited October 20, 2014 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Solution Jewtus Posted October 21, 2014 Author Solution Share Posted October 21, 2014 Ok, So I figured out whats going on. Its when I insert data that the column resizes. I added GUICtrlCreateListViewItem("This|Is|A|Test|Right| ", $HitsView) and the column shows up. Because there is data in the last column, I used _GUICtrlListView_SetColumnWidth($HitsView,5,0) and that seems to have fixed the issue. Link to comment Share on other sites More sharing options...
MikahS Posted October 21, 2014 Share Posted October 21, 2014 Glad you found a solution to your needs. Jewtus 1 Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now