Page 42 of 42 FirstFirst ... 3239404142
Results 1,641 to 1,650 of 1650

Thread: VBFlexGrid Control (Replacement of the MSFlexGrid control)

  1. #1641
    Junior Member
    Join Date
    Apr 2022
    Posts
    21

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Attachment 196173
    When a form contains two tables, clicking the middle position between the two columns in the image causes the mouse cursor to jump immediately to the upper section.
    When you click on the upper table, it scrolls up by a small amount; when you click on the lower table, it scrolls up by a large amount.
    This issue does not occur when there is only one table in the form.
    The problem disappears after setting the Windows display scale to 100%. How can I resolve this? Thank you very much!

  2. #1642

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by fengzhongxia View Post
    Attachment 196173
    When a form contains two tables, clicking the middle position between the two columns in the image causes the mouse cursor to jump immediately to the upper section.
    When you click on the upper table, it scrolls up by a small amount; when you click on the lower table, it scrolls up by a large amount.
    This issue does not occur when there is only one table in the form.
    The problem disappears after setting the Windows display scale to 100%. How can I resolve this? Thank you very much!
    Sounds weird. Only when more than one ?! With the scale then it must be sonething with dpi scaling.
    I can't see your image. Maybe a small demo project would be good.

  3. #1643
    Junior Member
    Join Date
    Apr 2022
    Posts
    21

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by Krool View Post
    Sounds weird. Only when more than one ?! With the scale then it must be sonething with dpi scaling.
    I can't see your image. Maybe a small demo project would be good.

    VBFlexGridDemo
    https://www.kdocs.cn/l/cdNXvTmjgRSE

    Name:  ???.jpg
Views: 73
Size:  31.4 KB

    This issue only occurs after moving the window to the position shown in the illustration and then clicking; it does not occur at the default window position.

  4. #1644

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by fengzhongxia View Post
    VBFlexGridDemo
    https://www.kdocs.cn/l/cdNXvTmjgRSE

    Name:  ???.jpg
Views: 73
Size:  31.4 KB

    This issue only occurs after moving the window to the position shown in the illustration and then clicking; it does not occur at the default window position.
    When you include a new control "SplitContainer" you can not just blindly run the demo without checking the code.

    For example. I changed "VBFlexGrid1" into "SplitContainer1" in the Form_Resize event and then the problems disappeared..

    Code:
    Private Sub Form_Resize()
    Dim Width As Single, Height As Single
    Width = Me.ScaleWidth - SplitContainer1.Left - Me.ScaleX(8, vbPixels, Me.ScaleMode)
    Height = Me.ScaleHeight - (PicturePanel.Height) - Me.ScaleY(8, vbPixels, Me.ScaleMode)
    If Width > 0 Then SplitContainer1.Width = Width
    If Height > 0 Then SplitContainer1.Height = Height
    End Sub

  5. #1645
    New Member
    Join Date
    Feb 2025
    Posts
    3

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Hi Krool, I need the old version of your VBFlexGrid.ctl user control because I’d like to release a portable version of the app I’m developing (a freeware interactive first-aid simulator). I’m unable to integrate the newer controls with DataBinding into the project. Where canJ find it? Thank in advance.

  6. #1646
    Junior Member
    Join Date
    Apr 2022
    Posts
    21

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Thanks for your reply, sir. It should be an issue with the new control. I'll check it again.

  7. #1647

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by Walter_1949 View Post
    Hi Krool, I need the old version of your VBFlexGrid.ctl user control because I’d like to release a portable version of the app I’m developing (a freeware interactive first-aid simulator). I’m unable to integrate the newer controls with DataBinding into the project. Where canJ find it? Thank in advance.
    Hi Walter,

    it's better to use a new version and let's find out what your issue is in detail so it can be fixed.
    Thanks

  8. #1648
    New Member
    Join Date
    Feb 2025
    Posts
    3

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Thanks Krool for your kind and prompt reply. I downloaded the set of files from GitHub and, after OLEGuids.tlb, integrated them into a new project in this order: 2 .bas > 2.cls > .CT; then saved and closed VB6. But if I try to launch the app, even without any VBgrid, or if I try to draw one on the form, I alwayes get an error at this point:
    Private PropDataSource As MSDATASRC.DataSource, PropDataMember As MSDATASRC.DataMember, PropRecordset As Object
    Asking the AI "WHY?", its answer is: to fix this issue use the oldest version, without DataBinding, of Krool User Control (I use the simplest functions of your grid).

  9. #1649

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by Walter_1949 View Post
    Thanks Krool for your kind and prompt reply. I downloaded the set of files from GitHub and, after OLEGuids.tlb, integrated them into a new project in this order: 2 .bas > 2.cls > .CT; then saved and closed VB6. But if I try to launch the app, even without any VBgrid, or if I try to draw one on the form, I alwayes get an error at this point:
    Private PropDataSource As MSDATASRC.DataSource, PropDataMember As MSDATASRC.DataMember, PropRecordset As Object
    Asking the AI "WHY?", its answer is: to fix this issue use the oldest version, without DataBinding, of Krool User Control (I use the simplest functions of your grid).
    Ok, you got an AI answer and that mislead me..

    So, either make a reference to msdatsrc.tlb that is in C:\Windows\SysWOW64
    Or set the compilation constant ImplementDataSource to False in the .ctl file.

    Code:
    #Const ImplementDataSource = False ' True = Required: msdatsrc.tlb

  10. #1650
    New Member
    Join Date
    Feb 2025
    Posts
    3

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Dear Krool,
    I solved all problems doing with VB6.0 a new GRID User Control which meets my needs. It's light but enough powerfull for any simple app.
    Thanks for you kindness and for your valuable contribution to community

Page 42 of 42 FirstFirst ... 3239404142

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