I need to use 'options' in a dialog box like InputBox. Is it possible? ( I don't need to create a new form for it.)
Or if I apply by using PopupMenu, how can I write codes to add a new submenu?
var MI: TMenuItem;begin MI:=TMenuItem.Create(self); with MI do begin Caption:='My New Item '+inttostr(PopupMenu1.Items.Count); //also do not forget to assign some action or event end; PopupMenu1.Items.Add(MI); end;
And how can I use double click instead of right click on the control?
Image1.OnClick:=nil; Image1.OnDblClick:=@Image1Click;
Image1.OnClick:=@Image1Click; Image1.OnDblClick:=nil;