Sign in to follow this  
Followers 0
squishy

ListView has disappeared with version 3.2.8.0

2 posts in this topic

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!

Share this post


Link to post
Share on other sites



I now see that my problem was not having at least one column. Thanks to Bowmore, gafrost and jpm!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0