PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: WinFBE Suite 1.9.6 (November 2, 2019)  (Read 999 times)

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9313
  • Windows 10
    • PlanetSquires Software
WinFBE Suite 1.9.6 (November 2, 2019)
« on: November 02, 2019, 02:30: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
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

SeaVipe

  • Senior Member
  • ***
  • Posts: 369
  • Windows 10
Re: WinFBE Suite 1.9.6 (November 2, 2019)
« Reply #1 on: November 02, 2019, 03:10:08 PM »

Hi Paul, using this code:

Code: [Select]
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.
« Last Edit: November 02, 2019, 03:12:24 PM by SeaVipe »
Logged
Clive Richey
*“You Either Have To Be Part Of The Solution, Or You’re Going To Be Part The Problem.” Eldridge Cleaver.
#StaySafe, Always  Keep A Safe #SocialDistance, #WashYourHands Often and please, #StayHome!

SeaVipe

  • Senior Member
  • ***
  • Posts: 369
  • Windows 10
Re: WinFBE Suite 1.9.6 (November 2, 2019) Observations
« Reply #2 on: November 02, 2019, 05:20: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.
« Last Edit: November 02, 2019, 05:24:07 PM by SeaVipe »
Logged
Clive Richey
*“You Either Have To Be Part Of The Solution, Or You’re Going To Be Part The Problem.” Eldridge Cleaver.
#StaySafe, Always  Keep A Safe #SocialDistance, #WashYourHands Often and please, #StayHome!

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9313
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Suite 1.9.6 (November 2, 2019)
« Reply #3 on: November 02, 2019, 05:37: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!
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9313
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Suite 1.9.6 (November 2, 2019)
« Reply #4 on: November 02, 2019, 05:39:04 PM »

....looks like it is failing with 64 bit.
32 bit seems to work okay.

Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9313
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Suite 1.9.6 (November 2, 2019)
« Reply #5 on: November 02, 2019, 06:06: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.)
« Last Edit: November 02, 2019, 06:12:12 PM by Paul Squires »
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

SeaVipe

  • Senior Member
  • ***
  • Posts: 369
  • Windows 10
Re: WinFBE Suite 1.9.6 (November 2, 2019)
« Reply #6 on: November 02, 2019, 07:03: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.
Logged
Clive Richey
*“You Either Have To Be Part Of The Solution, Or You’re Going To Be Part The Problem.” Eldridge Cleaver.
#StaySafe, Always  Keep A Safe #SocialDistance, #WashYourHands Often and please, #StayHome!