Results 1 to 40 of 4215

Thread: CommonControls (Replacement of the MS common controls)

Hybrid View

  1. #1
    Hyperactive Member
    Join Date
    Feb 2015
    Location
    Colorado USA
    Posts
    271

    Re: CommonControls (Replacement of the MS common controls)

    You set up the FlexGrid replacement control as a different project even though it shares a lot with this project. The thread traffic is relatively slow so I wonder if it is time to merge this project with that. It would make use a bit easier only having to mess with one set of files, whether as controls or an OCX.

  2. #2
    Lively Member
    Join Date
    Oct 2016
    Posts
    115

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by MountainMan View Post
    You set up the FlexGrid replacement control as a different project even though it shares a lot with this project. The thread traffic is relatively slow so I wonder if it is time to merge this project with that. It would make use a bit easier only having to mess with one set of files, whether as controls or an OCX.
    I agree with the above, this is a busy thread with active members, so the grid would have a proper discussion here

  3. #3
    Fanatic Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    545

    Question ListView function "FindItem" dont work

    Version: 1.4.46
    Control: ListView

    The search function "FindItem" doesnt work here.
    I tried different combination of the parameters but i never get back any ListItem.

    Can anybody check this please?

    BTW: Why does the function "FindItem" doesnt support the value-parameter (lvwText,lvwSubitem,lvwTag) ?
    See FindItem Method (ListView Control)

  4. #4
    Fanatic Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    545

    Re: ListView function "FindItem" dont work

    i cant edit my own post to add a attachment...

    attached you will find a example project to test the FindItem method of the ListView.
    Attached Files Attached Files

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,742

    Re: ListView function "FindItem" dont work

    Quote Originally Posted by Mith View Post
    i cant edit my own post to add a attachment...

    attached you will find a example project to test the FindItem method of the ListView.
    You want to search for subitems which is not supported by API LVM_FINDITEM.
    Anyway I do find the MS ListView FindItem method with lvwSubItem more or less stupid as you don't can search for a specific subitem or has an indication on which subitem the search was successful.
    That's why I have excluded the 'Where' parameter in my FindItem method.

    I could include a new function 'FindSubItem' (wrapper function) where it would be possible to specify a search on a specific subitem or when that param is missing do a search on all subitems. But that function would be performed 'manual' and not done by an API call.

    Quote Originally Posted by Karl77 View Post
    Remarks on the CommandButtonW

    Name:  CommandButton.jpg
Views: 7128
Size:  8.9 KB

    The CommandButtonW shall show a picture, so an imagelist is defined. Works fine.

    A:
    The caption starts right after the image border.
    ImageListMargin seems to work on the left edge only.
    Ok, I could make a special image for the button.
    It would be good if it would work on the right edge too.

    B:
    LabelW and other controls have the wonderful EllipsisFormat.
    Could we have it for a CommandButtonW as well?
    A: In order to work the ImageListMargin on the right edge you need to change ImageListAlignment to 'Right'.

    B: Not possible to include EllipsisFormat property to common CommandButtonW. However, it could work for a 'Graphical' Style CommandButtonW? Would that be sufficient?

    -

    Is there a need for a property page for the LabelW control? This would allow to make multiple lines of text in the caption property in design time.

    Also is there a need for a ColumnHeaders property page in the ListView control? This would allow to setup the ColumnHeaders at design-time.
    Last edited by Krool; Sep 1st, 2017 at 02:03 PM.

  6. #6
    Hyperactive Member
    Join Date
    Feb 2014
    Posts
    294

    Re: ListView function "FindItem" dont work

    Quote Originally Posted by Krool View Post
    Also is there a need for a ColumnHeaders property page in the ListView control? This would allow to setup the ColumnHeaders at design-time.
    This will be good.

  7. #7
    Fanatic Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    545

    Re: ListView function "FindItem" dont work

    Quote Originally Posted by Krool View Post
    I could include a new function 'FindSubItem' (wrapper function) where it would be possible to specify a search on a specific subitem or when that param is missing do a search on all subitems. But that function would be performed 'manual' and not done by an API call.
    Sounds good

  8. #8
    Fanatic Member
    Join Date
    Apr 2015
    Posts
    536
    Quote Originally Posted by Krool View Post
    A: In order to work the ImageListMargin on the right edge you need to change ImageListAlignment to 'Right'.
    Then the whole image is on the right side.
    I was after having a distance to the text on the right side of the image, a padding around all borders of the image.
    In the meantime I had a too simple idea to have it: A leading space in the caption. Done.

    B: Not possible to include EllipsisFormat property to common CommandButtonW. However, it could work for a 'Graphical' Style CommandButtonW? Would that be sufficient?
    No, I consider the graphical style useless at all.
    A toolbar with one button only is better, it has the Ellipsis thing.
    But it has not the appearance of a button, except VisualStyles=False, and this doesn't look good.
    In the end I think I have to fake the Ellipsis format myself (it's not so hard).

    Is there a need for a property page for the LabelW control? This would allow to make multiple lines of text in the caption property in design time.
    No.

  9. #9
    Fanatic Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    545

    ListView Enhancement - row background color

    Hi Krool,

    is there any chance that u add a background color property for a complete row (item+subitems) at the listview (report mode)?

    here you can find a code example:

    background-color-for-a-listview-item

    ...or ist this already possible? i didnt see any property for this...

  10. #10
    Fanatic Member
    Join Date
    Apr 2015
    Posts
    536

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Semke View Post
    I agree with the above, this is a busy thread with active members, so the grid would have a proper discussion here
    Me too.
    Otherwise it may be not clear that a new flexgrid is in the works.
    It would be too bad to miss it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width