Search found 12 matches

by Cube8
18 Oct 2020, 20:32
Forum: ToolBarControls
Topic: Icon + Text + DropDownStyle:ddstNormal
Replies: 0
Views: 7936

Icon + Text + DropDownStyle:ddstNormal

Hi. I hope there is still some chance to fix a potential bug after so long... I don't know if it is a bug in Windows or the control itself, but anyway. I have discovered that, if a button has icon, text and DropDownStyle set to ddstNormal , the whole toolbar is vanished. The combinations that actual...
by Cube8
21 Nov 2018, 22:14
Forum: ExplorerListView
Topic: For Each <group> In .Groups bug
Replies: 1
Views: 8824

For Each <group> In .Groups bug

Hi. I have just discovered a bug that affects for...each iteration for groups. Normally, whenever I add some groups and items, the iteration works perfectly. The bug occurs whenever I call ELV.ListItems.RemoveAll . After that, although the groups are still there (they are accessible through ELV.Grou...
by Cube8
16 Mar 2017, 08:55
Forum: ButtonControls
Topic: Button and disabled icon
Replies: 11
Views: 24642

Re: Button and disabled icon

I found out why I had this problem. I did a hack, in order to show the icon to the left of the text (not the left edge of the button). Specifically, I set IconAlignment = 4 (Center) , I calculate the IconMarginRight , based on the button's text and then I pad some spaces to the left of the text. Wit...
by Cube8
14 Mar 2017, 08:23
Forum: ButtonControls
Topic: Button and disabled icon
Replies: 11
Views: 24642

Re: Button and disabled icon

Ok. So this is a windows-related bug. I could write a procedure that changes the default icon whenever I want to enable/disable a button, instead of just setting Enabled = True/False . This is an inconvenience but I want to cover the classic theme scenario. Also, what about the almost-hidden-icon bu...
by Cube8
13 Mar 2017, 15:15
Forum: ButtonControls
Topic: Button and disabled icon
Replies: 11
Views: 24642

Re: Button and disabled icon

Hmm. This is very interesting. I was working with classic theme. After switching to aero, it worked as expected. This is definitely a bug, although I don't know if it is your code or windows fault. Also, while on classic theme, I noticed that, if a button has icon+text and Enabled = True , the icon ...
by Cube8
13 Mar 2017, 08:50
Forum: ButtonControls
Topic: Button and disabled icon
Replies: 11
Views: 24642

Re: Button and disabled icon

Yes. The icon changes if I change IconIndex for the default controlState . It doesn't work for controlState = 3 and Enabled = False . Instead, it shows the default icon a bit fainted. Here is a sample, to make it clearer: With CommandButton1 .hImageList = <some image list handle> .IconIndex = <defau...
by Cube8
10 Mar 2017, 13:29
Forum: ButtonControls
Topic: Button and disabled icon
Replies: 11
Views: 24642

Re: Button and disabled icon

I don't get it. The definition is CommandButton.IconIndex([ controlState As Long = -1 ]) As Long . I thought it goes like this: There is a single hImageList for the control. IconIndex (without arguments, controlState = -1 ) uses the index provided as the default control icon. IconIndex( 3 ) means th...
by Cube8
26 Oct 2015, 18:23
Forum: ExplorerListView
Topic: Custom list items in SubItemControl (sicDropList)
Replies: 5
Views: 9286

Re: Custom list items in SubItemControl (sicDropList)

I don't understand. How am I supposed to provide my own implementation of the interface? The documentation says explicitly to not implement it because it is provided by the shell. Unless you mean to create a VB class with the same methods and parameters and pass an ObjPtr as the pPropertyDescription...
by Cube8
26 Oct 2015, 11:17
Forum: ExplorerListView
Topic: Custom list items in SubItemControl (sicDropList)
Replies: 5
Views: 9286

Re: Custom list items in SubItemControl (sicDropList)

Reading the MSDN documentation more thoroughly, I discovered that, in order to use a custom list, I will have to register a custom property schema in the system. Unfortunately, this doesn't fit my needs, because: (1) the list of values will be dynamic and (consequently, 2), since my app runs without...
by Cube8
25 Oct 2015, 19:19
Forum: ExplorerListView
Topic: Custom list items in SubItemControl (sicDropList)
Replies: 5
Views: 9286

Custom list items in SubItemControl (sicDropList)

I want to use a drop list custom subitem control with items provided by me. In your code samples, there is a note: "With some more effort, you could provide custom implementations of the IPropertyDescription interface" I searched MSDN and found that IPropertyDescription has to do with &quo...
by Cube8
06 Oct 2015, 14:23
Forum: ExplorerListView
Topic: Details/list view row/item height
Replies: 1
Views: 4539

Details/list view row/item height

Is it possible to set the row height of all items without enabling OwnerDraw?
In explorer, details/list view mode, the item height is bigger than that of the generic listview control.
I'm using 7 SP1.
by Cube8
15 Aug 2015, 16:15
Forum: ExplorerListView
Topic: SubItem Controls do not work on XP
Replies: 1
Views: 4712

SubItem Controls do not work on XP

I just tried my application on Windows XP and noticed that in-place editing of subitems (i.e. embedded subitem control) does not work at all. Is this a limitation of comctl32.dll in that OS? I'm asking because I will likely have to support this OS. If there is a limitation, I will have to create a n...