Jump to content

Obje nin clientevents listesini bulmak.


aliemre

Recommended Posts

Eklerdeki ekran resimlerinden daha iyi anlaşılacağını umarak. Delphi nin Object Inspector ında olduğu gibi (3. resimde kırmızı alan) clientside event isimlerini run-time da nasıl bulabilirim. 

 

Not: İçine function yazılmış olanları kastetmiyorum. Bir obje tipi için olası clienteventlistesini bulmak istiyorum.

post-5660-0-57705800-1510686107_thumb.png

post-5660-0-45159800-1510686160_thumb.png

post-5660-0-90782100-1510686459_thumb.png

Link to comment
Share on other sites

Buradan lazım olacak olursa diye çözümü paylaşmış olayım.

 

post-5660-0-02357700-1511270657.png

procedure LoadStringListFromResource(const ResName: string;SL : TStringList);
var
  RS: TResourceStream;
begin
  RS := TResourceStream.Create(HInstance, ResName, RT_RCDATA);
  try
    SL.LoadFromStream(RS);
  finally
    RS.Free;
  end;
end;


procedure TMainForm.UniBitBtn1Click(Sender: TObject);
var
  sl:TStringList;
begin
  sl:=TStringList.Create;

  LoadStringListFromResource('EXTJS_' + uniedit1.JSControl.JSClassName.Replace('.','_') ,sl);
end;

post-5660-0-02357700-1511270657_thumb.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...