![]() ![]() If my understanding of your aim is correct, Option 1 is the right approach. ![]() Me.CellStyle(r, c) = styleBgColorAlt // apply style to all rows note:: You cannot drag rows on a ListBox with expandable rows. An insertion line indicator appears when dragging within the DesktopListBox to provide you with visual feedback as to where the row would be dropped if you release the mouse button. solid background color for all (populated) rows If True, you can reorder rows within the DesktopListBox by dragging rows. Or Option 2: solid background color for all (populated) rows… Me.CellStyle(r, c) = Nil // apply no style Me.CellStyle(r, c) = styleBgColorAlt // apply style to alternate row solid background color for alternate (populated) rowsįor c As Integer = 0 To Me.ColumnCount - 1 Dim Cols() As Variant All ColumnValues in own Arrays. Option 1: solid background color for alternate (populated) rows… codedim LST as weblistbox the Listbox to sort dim HeaderIndex as Integer ’ the Index of the clicked header. Then in the Open and/or Shown event for your WebListBox, place the following code: In my example code below I have named my WebStyle “styleBgColorAlt” (you can name it anything you like, however please remember to alter your code for the name of your WebStyle). Set the color property to the color you wish to apply to the alternate rows in your WebListBox. However, I find the visual scrolling of the weblistbox while the search is happening to be distracting. for i 0 to listbox1.rowcount -1 listbox1.Selected(i). Gets or sets the number of rows in the WebListBox, not including the header row. RowCount Supported for all project types and targets. CoryHefner (Cory Hefner) December 29, 2013. RowCount new Integer Value or Integer Value a WebListBox. reading data from single column weblistbox. I find this odd: when passing x,y coords (as obtained in MouseMove or MouseDown events in a listbox) to ColumnFromXY, you get -1 for the column index unless the cursor is over non-empty rows. The routing works okay and the records are being found as expected. I am experimenting with the weblist box controller and the mapviewer control in XOJO. Create a WebStyle and add a background (color) property only. I’ve got a weblistbox that I’m using a recursive search routine to find records. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |