Hello, I'm sorry for "necro-bumping" this thread, but I'm trying to do what you suggest here and It's not working for me.
I'm using Progress OpenEdge and not C#. Apparently, I can't subclass your .net objects and then refer to them in the EditorRequired event.
Long story short, I can't get a System.Type for an ABL object, so setting EditorType is something that I can't do.
What I want to do is have a custom Dialog appear when clicking the "..." button instead of the Open File Dialog.
I have subscribed to the BrowseButton's Click event, but unfortunately, the Open File Dialog pops up and my event doesn't fire until the box is closed.
in EditorInitialized()
DEF VAR vEditor AS IValueEditor NO-UNDO.
DEF VAR vtmp AS RadBrowseEditorElement NO-UNDO.
vEditor = CAST(e:EDITOR ,
"PropertyGridBrowseEditor"
).
vtmp = CAST(vEditor:EditorElement,
"RadBrowseEditorElement"
).
vTmp:BrowseButton:Click:Subscribe(field_Click) NO-ERROR.
METHOD PRIVATE VOID field_Click (sender AS CLASS System.Object, e AS CLASS System.EventArgs):
MESSAGE "YAY" VIEW-AS ALERT-BOX.
END METHOD.
I need to either override what happens when the button is clicked completely or cancel the dialog opening.