PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Chris Bristow on April 05, 2004, 12:08:09 PM

Title: SI Grid DLL v3.1
Post by: Chris Bristow on April 05, 2004, 12:08:09 PM
Software Innovators is proud to provide the first 3rd Party control to support the FireFly SDK Designer.
SI Grid DLL v3.1

SI Grid is a DLL based grid control written entirely
in PB/WIN 7.0 and the Win32 API.

Some features of the SI Grid 3.1 are:
Also Includes...
For more details and grid samples see our website:
www.SoftwareInnovators.com (http://www.softwareinnovators.com)
Title: SI Grid DLL v3.1
Post by: Jean-pierre Leroy on April 05, 2004, 02:05:25 PM
I have used SiGrid in a number of applications in the past and to be honest it
was a bit of a pain to set up. Used it today with FF and cannot believe how simple it now is, although it still needs a few function calls to fine tune it, for setting col widths etc.

Michael
Title: SI Grid DLL v3.1
Post by: Chris Bristow on April 05, 2004, 02:39:29 PM
Quote from: Michael ShillitoI have used SiGrid in a number of applications in the past and to be honest it
was a bit of a pain to set up. Used it today with FF and cannot believe how simple it now is, although it still needs a few function calls to fine tune it, for setting col widths etc.

Michael

Hi Michael,

For setting column widths, siSetColWidth would be the simplest function to use.  Also you can change width by using the new siSetupColumns function.

The SI_GRID_MSG_COL_RESIZE notification message provides control over user resizing.  There is also the SI_GRID_MSG_ROW_RESIZE to control rows.

Is there something else you would like to see added?
Title: SI Grid DLL v3.1
Post by: Haakon Birkeland on April 05, 2004, 03:02:27 PM
You have SiGridsave that works saving to a file. How about a command to save to a 2 dimension array of string.

bert mercier
Title: SI Grid DLL v3.1
Post by: Jean-pierre Leroy on April 05, 2004, 03:17:01 PM
Chris

Just read your reply over at PB land. I had not spotted that the Caption property could be used to set the column widths. Just so used to doing it
the hard way

Thanks

Michael
Title: SI Grid DLL v3.1
Post by: Haakon Birkeland on April 05, 2004, 04:20:45 PM
Seems like the CurRowForeColor and CurRowBackColor properties in the properties dialog has been switched around.. :blink:
Title: SI Grid DLL v3.1
Post by: Chris Bristow on April 05, 2004, 08:29:15 PM
Quote from: Haakon BirkelandSeems like the CurRowForeColor and CurRowBackColor properties in the properties dialog has been switched around.. :blink:

Thanks for pointing that out Haakon.  This was really a grid problem and had nothing to do with FireFly.  I have sent an updated sigrid.dll file to Paul that will fix this problem.  

Thanks,
Title: SI Grid DLL v3.1
Post by: Haakon Birkeland on April 06, 2004, 05:16:07 AM
QuoteThis was really a grid problem and had nothing to do with FireFly.
I guessed so, as I know FF doesn't make up the properties for the controls.
Title: SI Grid DLL v3.1
Post by: Chris Bristow on April 06, 2004, 11:37:59 AM
Quote from: Haakon Birkeland
QuoteThis was really a grid problem and had nothing to do with FireFly.
I guessed so, as I know FF doesn't make up the properties for the controls.

Well, actually FireFly does make up the properties.  This is one of the neat things about FireFly's 3rd Party Control support.  It allows properties to be created where before there was only a function to call.  FireFly presents a list of properties and then converts those properties to the appropriate SDK code.  

In the case of the CurRowFore and CurRowBack color, SI Grid was using 10 for fore and 9 for Back and FireFly was using the opposite.  A change could have been made in FireFly's sigrid.xml file to fix the problem, but I decided to change the colors in sigrid.dll instead.  

This capability of FireFly allows it to provide any number of Properties for a control.  It was very well throught out by Paul.