#1 2013-01-12 10:24:20

esmondb
Member
From: London
Registered: 2010-07-20
Posts: 299

mORMotUIEdit embedding in a form

Would it be possible to make TRecordEditForm embeddable in another TForm? Using this technique: http://stackoverflow.com/questions/4385 … ther-tform

The only obvious problem I can see is that the 'save' and 'cancel' buttons set the form's ModalResult

Also I'm getting a AV when creating a TRecordEditForm without a ribbon in line 248 of mORMotUIEdit. It needs something like:

if Ribbon = nil then RibbonParams := nil else RibbonParams := Ribbon.GetParameter(aRecord.RecordClass);

Offline

Board footer

Powered by FluxBB