squishy Posted September 9, 2007 Posted September 9, 2007 Hello, I upgraded to the new version tonight and after running my script, my listviews wouldn't show up in the GUI anymore. Here is a sample of the code... $lvJMMainPositionFunctions = GUICtrlCreateListView("",15, 170, 240, 420, BitOR($LVS_LIST,$WS_BORDER)) GUICtrlSetFont(-1, 10, 400, 0, "Tahoma") GUICtrlSetOnEvent(-1, "lvJMMainPositionFunctionsClick") _GUICtrlListViewSetColumnWidth(-1,0,220) GUICtrlSetState(-1, $GUI_HIDE) $lvJMMainPositionPrograms = GUICtrlCreateListView("",270, 170, 240, 420, BitOR($LVS_LIST,$WS_BORDER)) GUICtrlSetFont(-1, 10, 400, 0, "Tahoma") GUICtrlSetOnEvent(-1, "lvJMMainPositionProgramsClick") _GUICtrlListViewSetColumnWidth(-1,0,220) GUICtrlSetState(-1, $GUI_HIDE) And later on in the code, I set the state... GUICtrlSetState($lvJMMainPositionFunctions,$GUI_SHOW) GUICtrlSetState($lvJMMainPositionPrograms,$GUI_SHOW) I saw that in that in this release they "Fixed: Incorrect listview creation with GUICtrlCreateListView()", and I am sure here lies my issue, but couldn't find anything else on the subject. Any help would be appreciated. Thanks in advance!
squishy Posted September 9, 2007 Author Posted September 9, 2007 I now see that my problem was not having at least one column. Thanks to Bowmore, gafrost and jpm!
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