You need to save the index of the edit field in a global via something
along these lines:

global gdlg, gdlgItems
global gBrowseEditTextNdx

  ...
  temp = getItemPropList(gdlg)
  temp.value = ""
  temp.type = #editText
  append gdlgItems, duplicate(temp)
  gBrowseEditTextNdx = count(gdlgItems)
  ...

In your callback response to the Browse button, do an ItemUpdate at the
saved index with a duplicate of the edit text item...

  itemInputPropList = duplicate(gdlgItems[gBrowseEditTextNdx])
  itemInputPropList.value = MyPathReturnedFromFileDialog
  ItemUpdate gdlg, gBrowseEditTextNdx, itemInputPropList

HTH

/kp

> Hey guys,
> 
> I'm working on a dialog box with a 'Browse' button and a 
> field that displays the file chosen (Using Rav's MUI Maker). 
> Thing is, I don't know how to update field after I have 
> clicked the 'Browse' button and retrieved the value!



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to