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.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to