mariovaldez.net
http://www.mariovaldez.net/webapps/forums/

Add a column(s)
http://www.mariovaldez.net/webapps/forums/viewtopic.php?f=12&t=249
Page 1 of 1

Author:  s200 [ 11 Oct 2005, 07:59 ]
Post subject:  Add a column(s)

Hello all,
Thank you very much for this fantastic software. I modified my osc much, and I would like to know if the developers can help me to add new columns, to see more.

I program in a PASCAL, PHP, and much of others. But my english is not very good.....

Main.pas (1170, 1184 ... ???)

Author:  mvaldez [ 20 Nov 2005, 20:26 ]
Post subject:  Custom columns...

s200:

> Hello all, Thank you very much for this fantastic software.
> I modified my osc much, and I would like to know if
> the developers can help me to add new columns, to see
> more. I program in a PASCAL, PHP, and much of others.
> But my english is not very good.....
> Main.pas (1170, 1184 ... ???)

Hi. Sorry for this late answer. There are several places you will need to modify to add new colums.

I think the main places are:

* The products data records in oscpmdata.pas (opmR_Product), where the product data is stored each time the user choose a new category.

* Several procedures and functions in main.pas,
FNopm_GetProductByID (retrieve a product record from the DB)
PRopm_UpdateProduct (update the data of a product record in the DB)
opm_PopMenuItem_PAddClick (adding a new product)
PRopm_AddProduct (add a product record to the DB)

* Several visual procedures in main.pas,
PRopm_SaveConfiguration (store the column widths to the Registry)
PRopm_SetDisplay (create and set the columns)
PRopm_RenderProductDisplay (copy product records from the memory list to the visual list)
FNopm_Sort_ProductList (sort the columns)
opm_ListView_MainColumnClick (process the column header clicking for sorting)


According to the plan, by mid January the OSCPMWin application will include a custom product data feature, to allow you add your own columns to the application.


Regards,

Mario A. Valdez-Ramirez.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/