View Issue Details

IDProjectCategoryView StatusLast Update
0008993MMW v4Framework: Scripts/Extensionspublic2012-01-23 16:47
Reporterpeke Assigned To 
PrioritynoneSeverityfeatureReproducibilityN/A
Status resolvedResolutionno change required 
Product Version4.0.3 
Summary0008993: Add ISDBUI::NewOptionSheet
DescriptionThat will create blank Option sheet and return ID of created OptionSheet

Similar to ISDBUI::AddOptionSheet and ISDBUI::AddOptionSheetEx but without parameters that would be possible to change using 0008994

Delphi plugin Example:

procedure TForm1.btn1Click(Sender: TObject);
var
  SDB : TSDBApplication;
  TSheet : TSDBUIOptionSheet;
  ISheet : ISDBUIOptionSheet;
  i : Integer;
  path : WideString;
begin
  SDB := TSDBApplication.Create(Self);
  path := SDB.LocalPluginsPath;
  i := SDB.UI.NewOptionSheet;
  ISheet := SDB.UI.GetOptionSheet(i);
  TSheet := TSDBUIOptionSheet.Create(Self);
  TSheet.ConnectTo(ISheet);
  TSheet.OnInit := DoInit;
  TSheet.OnSave := DoSave;
  TSheet.OnCancel := DoCancel;
end;

procedure TForm1.DoInit(Sender: TObject);
begin
  // DoInit
end;

procedure TForm1.DoSave(Sender: TObject);
begin
  // DoSave
end;

procedure TForm1.DoCancel(Sender: TObject);
begin
  // DoCancel
end;
TagsNo tags attached.
Fixed in build

Relationships

related to 0008992 resolvedjiri Add SDBUIOptionSheet 
related to 0008994 resolvedjiri Add ISDBUI::GetOptionSheet 

Activities

Ludek

2012-01-20 12:48

developer   ~0029991

Last edited: 2012-01-20 12:51

It seems to be duplicate of http://www.mediamonkey.com/wiki/index.php/ISDBUI::AddOptionSheet and http://www.mediamonkey.com/wiki/index.php/ISDBUI::AddOptionSheetEx

peke

2012-01-20 22:37

developer   ~0030003

Last edited: 2012-01-20 22:38

You are right defined like that it looks like duplicate, but unlike those two it creates Blank. Maybe I'm wrong But both functions do not allow supplying no parameters. or they support but than bugs 0008994 and 0008992 needs to be fixed in order to make things complete?

I corrected Description.