On Mon, 16 Jul 2012 11:49:42 +0100 Graeme Geldenhuys <[email protected]> wrote:
> Hi, > > On 16 July 2012 11:27, Bart <[email protected]> wrote: > > > > This would make maintanance (large menu's, active devolopment of forms > > in question) lots easier. > > > What I did is to encapsulate setting up captions to a single method, > SetupCaptions, on each form. I use form inheritance, so each form > simply needs to override that method. That method is called in > FormCreate to setup all components. If the application language > changes at runtime, I ask fpgApplication so broadcast a message to all > loaded forms of the application. Those forms receive the message, and > execute the SetupCaptions method again. Works like a charm. Yes. This catches all special cases like memos, tree nodes, list views and private variables as well. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
