Print Page | Close Window

[BUG] Combobox Scrolling with EnableMarkup

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=17629
Printed Date: 29 April 2024 at 7:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [BUG] Combobox Scrolling with EnableMarkup
Posted By: Xander75
Subject: [BUG] Combobox Scrolling with EnableMarkup
Date Posted: 02 December 2010 at 4:01am
Hi,

I have noticed that the Combobox when scrolled using the MouseWheel while the list is shown seems to jump rather than scroll smoothly. This only happens while using "EnableMarkup = True".

It's not easy to describe, though here goes...

Fill a combobox with lets say 100 entries. Drop down the list and hover over list. Now scroll, you will notice that no matter which way you scroll the mousewheel the list appears to always move down  but then it has jumped 3 rows in the direction you were scrolling. It's very confusing to the user and to me! lol

Has anyone else come across this and know of a possible solution to resolve this?

Please Note: This works differently from the Microsoft Combobox when scrolled, the MS Combobox seems to scroll smoothly as expected.


-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)



Replies:
Posted By: Xander75
Date Posted: 07 November 2011 at 10:59am
***BUMP***

I have changed this status as it's a definite bug when working with "EnableMarkup = True", when this is not used with Markup the scrolling works fine.


-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)


Posted By: Michael S.
Date Posted: 14 June 2013 at 6:56am

This bug still persists in the ActiveX OCX 15.3.1. When scrolling the combobox with the mouse in Markup mode, then there is some additional "backwards" scrolling going on. Dragging the scrollbar slider doesn't exhibit this behavior.

Please fix this annoying scroll behavior.

Here is some VB6 code to produce such a combobox, that shows the above problem:

Private Sub CreateCombo()
    Dim s As String
    Dim k As Long
    Dim m As String

    With cb
      .Clear
      .EnableMarkup = True
      .DropDownWidth = cb.Width
    End With

    For k = 1 To 100
      cb.AddItem Format(k, "000") & " - This is item " & k
      cb.ItemData(cb.NewIndex) = k

      m = "<Grid>" & _
      " <Grid.ColumnDefinitions>" & _
      " <ColumnDefinition Width='35'/>" & _
      " <ColumnDefinition />" & _
      " </Grid.ColumnDefinitions>" & _
      " <Grid.RowDefinitions>" & _
      " <RowDefinition/>" & _
      " </Grid.RowDefinitions>" & _
      " <TextBlock TextAlignment='Left' FontFamily='Tahoma' FontSize='10' FontWeight='Bold'>" &       Format(k, "000") & "</TextBlock>" & _
      " <TextBlock TextAlignment='Left' FontFamily='Tahoma' FontSize='10' Grid.Column='1'>" & "This is item " & k & "</TextBlock>" & _
      "</Grid>"

      cb.MarkupList(cb.NewIndex) = m
    Next
End Sub



-------------
Product: Xtreme SuitePro (ActiveX) version 15.1.3
Platform: Windows 7 Prof. SP 1 x64
Language: Visual Basic 6.0


Posted By: Xander75
Date Posted: 17 June 2013 at 7:23am
Michael,

Sorry to hear this has not yet been resolved.

I am no longer using the Codejock ComboBox in my applications, simply because I needed multi-column support that worked with scrolling without the above issue. Our company have also changed from developing applications in Visual Basic 6 to C#.Net. Therefore I have been able to develop my own multi-column ComboBox that still skins properly with the Codejock SkinFramework.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net