Hi,
I know there is a way to determine if the LV CheckBox is checked (True) or unChecked (False)...
I'm suprised that this was not included in the designed... it would have been nice.
We have FF_Control_GetCheck() - but we do not have a
FF_Control_LVGetCheck()...
Any thoughts on a solution?
Regards
Mike
Commctrl.inc already includes a function called ListView_GetCheckState.
Hi Jose,
Thanks for the info - I just switched from ListView to a Grid Control - since ListView is not one of my strong areas.
There's alot of FF_ListView - Functions and just a few missing - but those few missing - makes the control useless for me!
Please add to the wishlist!
Regards
Mike
Hi Mike,
Post a list of the missing functionality and I will add them to the list of FireFly Functions. I don't use ListViews very often either, so I don't create many new functions for it.
Hi,
Some of the others would know better than me... but I'll post the ones I think that should be added (wish list). Here's (2) that could help me in the future.
' Retrieves the State of a CheckBox in a ListView Item
' ' Returns: %TRUE if set, %FALSE if unChecked
lResult = FF_ListView_GetCheckColumn (hWndControl, iRow)
' Sets the CheckBox of a ListView Item
' iValue = %TRUE to Set or %FALSE to unCheck
' Returns: %TRUE if successful, %FALSE if already set
lResult = FF_ListView_SetCheckColumn (hWndControl, iRow, iValue)
I'm not attempting to use it for any major purpose, but wanted to try it before I added a (single OCX). I use the vsFlexgridL.ocx (version 7 Light) and weghts in at around 444Kbs. One of the easiest grid controls around, ton of features, and works perfect with FireFly.
I just needed a listview for a master listing of only 32 items by 13 columns - which changed every once in awhile. I need the checkbox portion of the listview - to allow me to see which lines where active and those that were inactive - which varies based on a due date.
Something like this - the ListView Control should be used - if I had the time to dig in and learn it (my fault) - but time is what most of us never have.
It only took me an hour to switch from LV to OCX - but now I have the 444Kbs overhead, with a ton of featuers (I don't really need) - plus I have to make sure its registered correctly - when installed on the client server.
With that said, in Visual Basic or Delphi - this application would never fit on a floppy - but this one does so with ease even with the activex.
Also note - because I use EZGUI alot - I tend to forget that FireFly - with the FF_Command(s) is not the same as EZGUI - where we EZGUIers don't have to worry about the details - just code and go! :D
I wanted the Professional Look that FireFly gave me, that EZGUI doesn't have. It's a trade off I do, when I switch between the two IDE's. FF is strick, OPTION EXPLICIT (which is very good) - which allows me to be patient, learn and explorer.
It's going to take time - but FF is more than Awesome Program - it's a great learning tool for those of us who don't use PowerBasic on a daily basis.
At work we use Delphi Professional 8 Full Time - because the RAD-IDE is the undisputed champ around here. If you know your pascal, oop and api - there's nothing you can't whip out in a few minutes or so. And if your a Net/INet Programmer - Delphi can whip them out as well with ease.
We are going to wait on the Upgrade to the Delphi 2005 - because Net is going to change again at the end of the year, and 2006 will be coming out.
Has anyone else noticed? - these upgrades are now costing a small
fortune. $460.00 to upgrade to 2005 - and who knows what 2006 will be.
Thanks All,
Mike
Hi Paul,
4 years later I was happy to find today these very valuable information in this thread on your support forum.
I think that Michael had a good idea 4 years ago; it could be nice to include two new FireFly functions :
FF_ListView_GetCheckState
FF_ListView_SetCheckState
Here the code that I propose for these new functions :
FF_ListView_GetCheckState
' Gets the Check State Of a CheckBox Of a ListView item
'
' hWndControl: Handle Of Control (e.g. HWND_FORM1_LISTVIEW1)
' iRow: The zero-based row To retrieve.
'
' Returns: %TRUE If checked Or %FALSE If unchecked
Function FF_ListView_GetCheckState(ByVal hWndControl As Dword, _
ByVal iRow As Long _
) As Long
' Do a check to ensure that this is actually a window handle
If IsWindow(hWndControl) Then
If IsTrue(ListView_GetCheckState(hWndControl,iRow)) Then Function = %TRUE
End If
End Function
FF_ListView_SetCheckState
' Sets the Check State Of a CheckBox Of a ListView item
'
' hWndControl: Handle Of Control (e.g. HWND_FORM1_LISTVIEW1)
' iRow: The zero-based row To set.
' nCheckState: <> 0 To Set checked, 0 To uncheck.
Sub FF_ListView_SetCheckState(ByVal hWndControl As Dword, _
ByVal iRow As Long, _
ByVal nCheckState As Long )
' Do a check to ensure that this is actually a window handle
If IsWindow(hWndControl) Then
ListView_SetCheckState(hWndControl,iRow, nCheckState)
End If
End Sub
Could it be an option to add these new FireFly functions (obviously if you agree) in a new (final ?) FireFly2 version and the incoming FireFly3 version.
You will find herewith a simple project to highlight what can be done with the ListView control in LVS_LIST mode; I hope it could be helpfull for other FireFly users.
Jean-Pierre
Thanks Jean-Pierre, I have added them to the FF3 Code Library.
:)