XBrowse - EDIT_GET_LISTBOX

XBrowse - EDIT_GET_LISTBOX

Postby David Williams » Sun Sep 15, 2013 4:37 pm

Hello Everyone,

Has anyone a sample that shows how to select items from a dbf when editing a cell in XBrowse? I can use arrays with EDIT_LISTBOX/EDIT_GET_LISTBOX but want to select from a file without building an array, should I try EDIT_GET_BUTTON? Also how do I put a bitmap/image on the button.

I searched fwh\samples but I didn't find anything.

TIA
David
User avatar
David Williams
 
Posts: 82
Joined: Fri Mar 03, 2006 6:26 pm
Location: Ireland

Re: XBrowse - EDIT_GET_LISTBOX

Postby nageswaragunupudi » Sun Sep 15, 2013 5:14 pm

Use oCol:nEditType := EDIT_BUTTON

You need to specify oCol:bEditBlock := { |nRow,nCol,oCol,nKey| MyEditFunc( nRow, nCol, oCol, nKey )

In this function you can browse the other table.
If selected return the value to be written in the browsed table.
If not selected you should return NIL
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: XBrowse - EDIT_GET_LISTBOX

Postby David Williams » Mon Sep 16, 2013 1:01 pm

Thank you Rao :)
User avatar
David Williams
 
Posts: 82
Joined: Fri Mar 03, 2006 6:26 pm
Location: Ireland


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 89 guests