dcsimg
Page 56 of 56 FirstFirst ... 64653545556
Results 2,201 to 2,206 of 2206

Thread: CommonControls (Replacement of the MS common controls)

  1. #2201
    Member
    Join Date
    Jul 2017
    Posts
    33

    Re: ImageList bug report

    Quote Originally Posted by Krool View Post
    Update released.
    the event ModifyTipText works now as expected with the new update!


    Quote Originally Posted by Krool View Post
    So a flag in the property bag is anyhow needed. But of course the drawback will always then be that it would only work on new image list set's.
    Open question: Handling this issue? Or just keep it as it is as this obstacle was put up by MS.
    i vote for the new flag at the property bag!
    this will avoid the app crash under winxp!

  2. #2202
    Member
    Join Date
    Jul 2017
    Posts
    33

    Question ListView question

    I use the ListView in Report Mode with multiple columns and i want that the user can edit the cell of every column (subitems).

    LabelEdit = True let me only edit the cell of the first column.

    Is it maybe possible to add a LabelEdit for all columns?

    I also tried to write my own LabelEdit-handler for subitems
    but the Event ItemDblClick(ByVal Item As VBCCR16.LvwListItem, ByVal Button As Integer)
    only returns a DblClick of the first column item.

    Is it possible to enhance the Event ItemDblClick to return subitems too?
    Last edited by Mith; Feb 16th, 2019 at 09:57 PM. Reason: added more information

  3. #2203
    Member ScriptBASIC's Avatar
    Join Date
    Oct 2014
    Posts
    39

    Re: CommonControls (Replacement of the MS common controls)

    Krool,

    I thought I would give my VB6 OCX form control a try in Wine. I was surprise it work since I haven't had much luck with VB6 and Wine in the past. This form is using your CCR OCX which works fine under standard Windows but for some reason the checkbox background is black. The other controls seem to render and theme okay.
    Attached Images Attached Images  

  4. #2204

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2012
    Posts
    1,151

    Re: CommonControls (Replacement of the MS common controls)

    Update released.

    Replaced WM_CHANGEUISTATE with WM_UPDATEUISTATE in VisualStyles.bas.
    This change was already done in ComCtlsBase.bas since a while. (use of WM_UPDATEUISTATE instead of WM_CHANGEUISTATE)

    The difference between the two is (in short) the message travel direction. WM_CHANGEUISTATE travels the tree up, verifies if change is needed, and then issue WM_UPDATEUISTATE down the tree for all childs.
    For our needs we want for SetupVisualStyles to have all child controls the needed ui state. So WM_UPDATEUISTATE is more direct and more performant.
    Beside that, when using MDI child forms WM_CHANGEUISTATE will only work *once*. Because it travels up to the top-level window (MDI container form).
    So next time a new MDI child form is open WM_CHANGEUISTATE will not issue WM_UPDATEUISTATE as the top-level window is already marked with the needed changes.
    This is another argument why WM_UPDATEUISTATE is definitely better for VisualStyles.bas

    Quote Originally Posted by ScriptBASIC View Post
    I thought I would give my VB6 OCX form control a try in Wine. I was surprise it work since I haven't had much luck with VB6 and Wine in the past. This form is using your CCR OCX which works fine under standard Windows but for some reason the checkbox background is black. The other controls seem to render and theme okay.
    Your screenshot looks like the typical VB.Frame theme bug
    In the VisualStyles.bas this is fixed by redirecting WM_PRINTCLIENT message (for the black background drawing flaws) and WM_MOUSELEAVE (for some flicker) to DefWindowProc:
    Code:
    Private Function RedirectFrame(ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long, ByVal uIdSubclass As Long, ByVal dwRefData As Long) As Long
    Select Case wMsg
        Case WM_PRINTCLIENT, WM_MOUSELEAVE
            RedirectFrame = DefWindowProc(hWnd, wMsg, wParam, lParam)
            Exit Function
    End Select
    RedirectFrame = DefSubclassProc(hWnd, wMsg, wParam, lParam)
    If wMsg = WM_NCDESTROY Then Call RemoveRedirectFrame(hWnd, uIdSubclass)
    End Function
    Can you check if your Form uses VB.Frames ?

  5. #2205
    Member ScriptBASIC's Avatar
    Join Date
    Oct 2014
    Posts
    39

    Re: CommonControls (Replacement of the MS common controls)

    I'm using your frame control for the form. (CCR14)

    Here is a thread on my VB6 OCX Form with Script BASIC project.

    https://www.allbasic.info/forum/inde...sg5269#msg5269

  6. #2206
    Member ScriptBASIC's Avatar
    Join Date
    Oct 2014
    Posts
    39

    Re: CommonControls (Replacement of the MS common controls)

    I'm using your frame control for the form. (CCR14)

    Here is a thread on my VB6 OCX Form with Script BASIC project.

    https://www.allbasic.info/forum/inde...sg5269#msg5269

Page 56 of 56 FirstFirst ... 64653545556

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width