|
-
May 19th, 2019, 12:29 PM
#10
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
 Originally Posted by Krool
As long as the 1.3 OCX is not released I can change names. However, the names used by the vsFlexGrid are also not always intuitive.
We can agree for the in-cell editing drop-down functionality the prefix "Combo" should be used.
A normal ComboBox has a List, ListCount and ListIndex property.
So in order to assume the same output the grid's properties are then ComboList, ComboListCount and ComboListIndex.
In order to enable the drop-down functionality the property ComboEditable (or ColComboEditable) is used.
If it's empty the combo is not used, else it contains the strings used for populating the list. (separated by pipe chars)
So in fact the ComboEditable works like the ComboList property in vsFlexGrid. But I don't find ComboList intuitive, as the List property in a ComboBox returns a item by a given index.
I totally agree, vsFlexGrid's Combo* property names are not intuitive either. My point was that the people will have only one set of unintuitive properties and not two.
I'll tell you my experience: yesterday (or may be the day before), I downloaded your control to take a look to what you have added lately. I remembered you have been working in the editing feature, so I wanted to check it.
Then I went to the middle of the property window and looked for a property with "E", something like "Editable", "Edit*" . I found nothing. Then I looked really quicky to see if I saw any property name that can be for editing and I found nothing. I opened the property pages, again navigated all the pages and took a quick look to all the properties, but I found nothing that could be intended for editing.
I thought "it is still not implemented in this version".
After that, I downloaded the vsFlexGrid to study some things. I went to the "E" and found the property "Editable".
After a while, reading here this thread I found that the property was named "AllowUserEditing", that seems fine now that I think... but I didn't find it at first.
Another thing that I noticed is that your property is Boolean whilst the vs has two options for editing. From their names it seems that one is by keyboard and the other by mouse. But in practice I didn't find a difference.
Another difference that I found is that with the vbFlexGrid you require double click to enter the edit mode whilst the vs enters the edit mode with just one click.
I think it would be nice to have both options.
With the vs one Enter keystroke over a cell means to enter the Edit mode. With yours I didn't find a way to enter the edit mode with the keyboard.
In regard to property names. I see it is difficult to find good property names for these properties.
After thinking a bit, an option could be:
Editable (or EditMode) with three options: no, simple click, double click
EditDropList or EditDropPipedList or EditModeList or EditModePipedList
EditDropListCount or EditModeListCount
EditDropListIndex or EditModeListIndex
After considering, I think I prefer:
EditMode
EditModeList (but still considering EditModePipedList)
EditModeListCount
EditModeListIndex
That's my opinion.
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
|