PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: WinFBE Suite 2.0.0 (November 21, 2019)  (Read 1186 times)

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8941
  • Windows 10
    • PlanetSquires Software
WinFBE Suite 2.0.0 (November 21, 2019)
« on: November 21, 2019, 07:43:49 PM »

Version 2.0.0 (November 21, 2019)
- Added: New Project template options: None; Blank Document; Visual Designer; Console; Windows DLL; Static Library.
- Added: ListView sort (ascending or descending) by a specified SubItem column index. ListView.Items.SortByColumn( nSortColumn, bSortAscend ).
- Added: ListView Click event now sets e.KeyChar = 13, e.KeyCode = VK_RETURN, whenever ENTER is pressed on a selected row.
- Fixed: ListView would "automatically" select the row under the cursor even if you don't click on it. Fix required removing the ListView MouseHover event.
- Fixed: "Open Templates" menu option was disabled if no file/project was already opened.
- Fixed: Removed extra separator bar between the "Replace" and "Goto Line" top menu items.

https://github.com/PaulSquires/WinFBE/releases

Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

SeaVipe

  • Senior Member
  • ***
  • Posts: 251
  • Windows 10
Re: WinFBE Suite 2.0.0 (November 21, 2019) - ListView Early Observations
« Reply #1 on: November 21, 2019, 09:51:11 PM »

Thanks, Paul.
ListView:
The existing ListView control on my test form lost all of its Properties when the project was opened in 2.0.0. Code was still there so simply added the Events in Visual Designer; works fine.
Forecolor and Backcolor don't appear to be modifiable. All other colours display as defined in Properties or code.
On Double Click, CLICK fires first followed by MOUSEDOUBLECLICK then DOUBLECLICK. (All 3.) Probably working correctly...
MouseMove works but (as you noted earlier) MouseHover does not.
Logged
Clive Richey
There is nothing government can give you that it hasn't already taken from you in the first place. Winston Churchill

Joerg Buckel

  • Junior Member
  • **
  • Posts: 95
  • FF3 and WinFBE+WinFBX User
Re: WinFBE Suite 2.0.0 (November 21, 2019)
« Reply #2 on: November 22, 2019, 04:59:11 AM »

Hello Paul
Thank you very much for continuing to develop WinFBE.

I have adapted the current language file accordingly.
Logged
Greeting from Germany

Joerg

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8941
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Suite 2.0.0 (November 21, 2019)
« Reply #3 on: November 25, 2019, 03:00:44 PM »

Hello Paul
Thank you very much for continuing to develop WinFBE.

I have adapted the current language file accordingly.

Awesome - thanks! I will include it in the next update.

Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

SeaVipe

  • Senior Member
  • ***
  • Posts: 251
  • Windows 10
Re: WinFBE Suite 2.0.0 (November 21, 2019) - ListView Early Observations
« Reply #4 on: November 25, 2019, 05:54:56 PM »

Hi Paul,
With a listView control, .Columns.Add("") requires a corresponding .Items.Add("") or .Item(n).SubItems.Add("") otherwise the program will crash.


This works:
Code: [Select]

    i =frmMain.lvMainDB.Columns.Add( "ID",            50, TextAlignment.Center )
    i =frmMain.lvMainDB.Columns.Add( "Last Name",    200, TextAlignment.Left )



    for ii as long = 0 to 99
       
        i = frmMain.lvMainDB.Items.Add( "Row " & ii )
        frmMain.lvMainDB.Item(i).SubItems.Add( "Row " & ii & " Sub1" )


    Next ii




This will crash the program:



Code: [Select]

    i =frmMain.lvMainDB.Columns.Add( "ID",            50, TextAlignment.Center )
    i =frmMain.lvMainDB.Columns.Add( "Last Name",    200, TextAlignment.Left ) '' <- needs a matching .Item(i).SubItems.Add



    for ii as long = 0 to 99
       
        i = frmMain.lvMainDB.Items.Add( "Row " & ii )
'''     frmMain.lvMainDB.Item(i).SubItems.Add( "Row " & ii & " Sub1" ) '' <- no corresponding .Item(i).SubItems.Add()


    Next ii





Logged
Clive Richey
There is nothing government can give you that it hasn't already taken from you in the first place. Winston Churchill

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8941
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Suite 2.0.0 (November 21, 2019)
« Reply #5 on: November 26, 2019, 08:47:44 AM »

Thanks Clive,

I have fixed this by adding an additional check to ensure that the SubItem does not exceed the collection bounds.

Code: [Select]
                     if (plvdi->item.mask and LVIF_TEXT) then
                        ' Do an array bounds check because it is possible that the user
                        ' has not defined all subitems to match the number of columns.
                        if nSubItem <= pListView->Item(nItem).SubItems.Count - 1 then
                           plvdi->item.pszText = pListView->Item(nItem).SubItem(nSubItem).Text.sptr
                           plvdi->item.cchTextMax = len(pListView->Item(nItem).SubItem(nSubItem).Text)
                        end if
                     end if
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8941
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Suite 2.0.0 (November 21, 2019)
« Reply #6 on: November 26, 2019, 09:17:53 AM »

I also fixed a regression whereby clicking on a ListView row's checkbox would not toggle it. I had accidently "optimized" code and removed the toggle. Lol  :-)
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8941
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Suite 2.0.0 (November 21, 2019)
« Reply #7 on: December 04, 2019, 07:59:14 AM »

Just an update to keep you in the loop as to what I'm working on.
Still working on the next release. Here is what's done so far:

- Added: Month Calendar control.
- Added: DateTimePicker control.
- Changed: Updated German language file as provided by Joerg Buckel.
- Fixed: ListView Hover event was not removed from the Visual Designer list of selectable methods.
- Fixed: ListView GPF if number of defined subitems did not match number of defined columns.
- Fixed: ListView regression whereby mouse clicking on checkbox item was not being recognized.
- Fixed: ListView GPF if horizontal scroll bar moved to the right and then all columns deleted.

I am working on a Tab Control. Once that is finished then I'll release 2.01.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

raymw

  • Senior Member
  • ***
  • Posts: 364
Re: WinFBE Suite 2.0.0 (November 21, 2019)
« Reply #8 on: December 04, 2019, 06:46:17 PM »

Hi Paul,  are you going to be adding ToolTips?
Logged

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8941
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Suite 2.0.0 (November 21, 2019)
« Reply #9 on: December 04, 2019, 09:32:03 PM »

Hi Paul,  are you going to be adding ToolTips?

Sure, that shouldn't be too hard. I used to have a ToolTip property for controls in FireFly.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

raymw

  • Senior Member
  • ***
  • Posts: 364
Re: WinFBE Suite 2.0.0 (November 21, 2019)
« Reply #10 on: December 05, 2019, 07:43:50 AM »

That's why I asked, I used 'em there, and found useful when I couldn't remember the details of every button action when using the program six month's later. In fact, I altered it to allow more characters. (about the only time I've messed with Jose's code...)
Logged

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8941
  • Windows 10
    • PlanetSquires Software
Re: WinFBE Suite 2.0.0 (November 21, 2019)
« Reply #11 on: December 05, 2019, 02:03:35 PM »

No problem. ToolTip and ToolTipBalloon properties have now been added for most controls.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

raymw

  • Senior Member
  • ***
  • Posts: 364
Re: WinFBE Suite 2.0.0 (November 21, 2019)
« Reply #12 on: December 05, 2019, 02:34:42 PM »

Thanks Paul. That'll help in my efforts in converting my firefly code to winfbe. The winfbe code looks much neater, in particular the toolbox function code. I altered the tool tip in firefly to accept 160 characters, 80 was not enough for some of my tips. I hope you've allowed a decent number of characters.
« Last Edit: December 05, 2019, 02:41:57 PM by raymw »
Logged