|
-
Mar 22nd, 2014, 09:14 AM
#1
Lively Member
Re: CommonControls (Replacement of the MS common controls)
Using listview on some computers I have an incomprehensible situation. Text element is reduced to a certain size, and placed at the end ...

How can I fix this?
I use a view=2 'viewlist
Elements add the following code
With lvOptions.ListItems
If .Count = 0 Then
.Add 1, , strItemOptions1, , 1
.Add 2, , strItemOptions8, , 2
.Add 3, , strItemOptions2, , 3
.Add 4, , strItemOptions3, , 4
.Add 5, , strItemOptions4, , 5
.Add 6, , strItemOptions5, , 6
.Add 7, , strItemOptions9, , 7
.Add 8, , strItemOptions6, , 8
.Add 9, , strItemOptions10, , 9
End If
End With
-
Mar 22nd, 2014, 11:38 AM
#2
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Romeo91
Using listview on some computers I have an incomprehensible situation. Text element is reduced to a certain size, and placed at the end ...

How can I fix this?
I use a view=2 'viewlist
Elements add the following code
Use the 'ColumnWidth' property and set it to a higher value.
-
Mar 22nd, 2014, 12:09 PM
#3
Lively Member
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Krool
Use the 'ColumnWidth' property and set it to a higher value.
I tried, not help. No response to parameter change. Win XP, but met this and Win7
-
Mar 22nd, 2014, 02:03 PM
#4
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Romeo91
I tried, not help. No response to parameter change. Win XP, but met this and Win7
I have tried to replicate and I was only able to replicate it when setting the 'ColumnWidth' in Form_Load, but I could resolve it by placing a 'DoEvents' before setting the 'ColumnWidth'. I am not sure why this is necessary.
But please confirm that this solves your issue - for the moment.
-
Mar 23rd, 2014, 11:44 AM
#5
Lively Member
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Krool
I have tried to replicate and I was only able to replicate it when setting the 'ColumnWidth' in Form_Load, but I could resolve it by placing a 'DoEvents' before setting the 'ColumnWidth'. I am not sure why this is necessary.
But please confirm that this solves your issue - for the moment.
On both my machines problem exist in the IDE, but no in compiled-exe. In IDE doevents not help.
Tomorrow check on other computers, as I remember that the problems encountered in the project compiled, but something I doubt
***********
If I use the ColumnWidth property to compile the project, on the contrary it leads to any machine to the problem of reducing the text to the same species, regardless of the ColumnWidth.
If the property is not used, it appears not all machines
Last edited by Romeo91; Mar 23rd, 2014 at 11:05 PM.
-
Mar 25th, 2014, 02:37 PM
#6
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Romeo91
On both my machines problem exist in the IDE, but no in compiled-exe. In IDE doevents not help.
Tomorrow check on other computers, as I remember that the problems encountered in the project compiled, but something I doubt
***********
If I use the ColumnWidth property to compile the project, on the contrary it leads to any machine to the problem of reducing the text to the same species, regardless of the ColumnWidth.
If the property is not used, it appears not all machines
Does it work when setting the ColumnWidth not in the Form_Load event? For instance in a CommandButton_Click event instead?
-
Mar 25th, 2014, 11:28 PM
#7
Lively Member
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Krool
Does it work when setting the ColumnWidth not in the Form_Load event? For instance in a CommandButton_Click event instead?
If property ColumnWidth is used in the event CommandButton_Click it works correctly
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|