PlanetSquires Forums

Support Forums => PlanetSquires Software => Topic started by: Paul Squires on November 02, 2019, 03:00:00 PM

Title: WinFBE Suite 1.9.6 (November 2, 2019)
Post by: Paul Squires on November 02, 2019, 03:00:00 PM
Version 1.9.6 (November 2, 2019)
- Added: ListView HitTest method. Determines what (if any) ListView Item and/or SubItem has been clicked on. HitTest( iItem, iSubItem )
- Fixed: Removed "TextChanged" event from the ListView.
- Fixed: ListView Events were not firing due to missing integration code.

https://github.com/PaulSquires/WinFBE/releases
Title: Re: WinFBE Suite 1.9.6 (November 2, 2019)
Post by: SeaVipe on November 02, 2019, 03:40:08 PM
Hi Paul, using this code:


Function frmMain_Initialize( ByRef sender As wfxForm, ByRef e As EventArgs ) As LRESULT

   Dim i as Long
   
   i = frmMain.ListView1.Columns.Add( "Column 1", 100, TextAlignment.Left )
   i = frmMain.ListView1.Columns.Add( "Column 2", 100, TextAlignment.Center )
   i = frmMain.ListView1.Columns.Add( "Column 3", 100, TextAlignment.Right )
   
   for ii as long = 0 to 99
      i = frmMain.ListView1.Items.Add( "Line " & ii )
      frmMain.ListView1.Item(i).SubItems.Add( "L" & ii & "Sub1" )
      frmMain.ListView1.Item(i).SubItems.Add( "L" & ii & "Sub2" )
   next

   frmMain.ListView1.Item(0).SubItem(0).ForeColor = colors.Red
   frmMain.ListView1.Item(0).SubItem(2).ForeColor = colors.Red
   
   frmMain.ListView1.Item(2).ForeColor = colors.Blue
   frmMain.ListView1.Item(2).BackColor = colors.Yellow
   frmMain.ListView1.Item(2).SubItem(1).ForeColor = colors.Green
   
   frmMain.ListView1.SelectedIndex = 0
   
   Function = 0

End Function



I get the ListView populated as shown in the attached image.
The mouse is hovering over Column 1 header.
Title: Re: WinFBE Suite 1.9.6 (November 2, 2019) Observations
Post by: SeaVipe on November 02, 2019, 05:50:19 PM
Hi Paul,

ListView:
No Click Event. frmMain_ListView1_Click does not fire.
No sender.hWindow or sender.HitTest. They can both be typed manually and appear to function correctly. See image.

I am unable to populate the control with items as per my previous post image.

TrackSelect (FF ListView property) appears to be enabled. Click a header and move the mouse cursor to a row and that row becomes the selected row.
Title: Re: WinFBE Suite 1.9.6 (November 2, 2019)
Post by: Paul Squires on November 02, 2019, 06:07:08 PM
Hi Clive,

I have updated the codetip popup file (see attached). It should now show the missing properties/methods.

I am not sure why the rows are not displaying for you. Could you try this:
(1) Create a new project and only include a ListView.
(2) Try creating the project using 32 bit and 64 bit to see if it makes a difference.

Thanks!
Title: Re: WinFBE Suite 1.9.6 (November 2, 2019)
Post by: Paul Squires on November 02, 2019, 06:09:04 PM
....looks like it is failing with 64 bit.
32 bit seems to work okay.

Title: Re: WinFBE Suite 1.9.6 (November 2, 2019)
Post by: Paul Squires on November 02, 2019, 06:36:19 PM
Okay, I was storing the notification code in a LONG and it should have been a UINT. That is why it was failing on 64 bit.
I thought that I had previously tested this on 64 bit....I guess I did not.

(EDIT: Unzip and copy the attached archive into the \WinFBE_Suite-Editor\FreeBASIC-1.07.1-gcc-5.2\inc\WinFormsX folder and replace the files that are already there.)
Title: Re: WinFBE Suite 1.9.6 (November 2, 2019)
Post by: SeaVipe on November 02, 2019, 07:33:05 PM
Hi Paul, All is good!
I downloaded both files. Now codetip popup is working great and compile to 64 bit populates the ListView according to your test code. Thanks.