Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Didn’t Delphi/Visual Studio do this as well when using corn designer / property inspector?


Last time I tried, Delphi had no concept of "outlet", every widget is accessible by the form class that contains it. On the Anjuta+Glade integration, you double click the widget on the inspector to add it to "private" struct, so you can access it on the callbacks.

I know that because I implemented it: https://gitlab.gnome.org/GNOME/anjuta/-/commit/5abe8fd3a97d8...


Yes - Delphi and C++Builder's Object Inspector still does this. Double-click a control, and the default event handler (OnClick) will be created. There's a link auto-set between the button instance's event handler (method pointer) and the method, which is auto-created in the form the button belongs to.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: