Hi,
Now that I have a working test drive of my app which is now using TsiLang, a new problem appeared. Whenever I switch to another language, the main menu bar gets a white background.
This is a known problem under XP for menus using an ImageList but usually, this is solved by assigning the ImageList dynamically during FormCreate instead of doing this at design time. In that case, this doesn't help, though.
Any fix?
Thanks in advance.
Main menu gets white background after language switch
Main menu gets white background after language switch
Patrick Philippot
www.mainsoft.fr
www.mainsoft.fr
Or re-assigning the ImageList in OnChangeLanguage event, like:
Code: Select all
MainMenu1.ImageList := nil;
MainMenu1.ImageList := ImageList1;
Hi,
This is annoying. Everything worked flawlessly but now I have this ugly menu displayed when switching the language.
This is what I did before. So I tried to assign dynamically. Same problem.isiticov wrote:May be assigning ImageList property at design-time instead of run-time will solve this issue in this case?
Doesn't work either.isiticov wrote:Or re-assigning the ImageList in OnChangeLanguage event
This is annoying. Everything worked flawlessly but now I have this ugly menu displayed when switching the language.
Patrick Philippot
www.mainsoft.fr
www.mainsoft.fr
OK. problem solved by setting the Images propertry of the main menu to nil before setting the ActiveLanguageProperty and then resetting it afterwards:isiticov wrote:Or re-assigning the ImageList in OnChangeLanguage event, like:Code: Select all
MainMenu1.ImageList := nil; MainMenu1.ImageList := ImageList1;
mnuMain.Images := nil;
siLangDispatcher.ActiveLanguage := (computed value);
mnuMain.Images := ImageList;
I guess I'm not the only one with this problem so maybe this information belongs to a FAQ.
Thanks for giving me the right direction.
By the way, I also wanted to congratulate for this outstanding product. It is really well thought out. Good job! Just, the help file needs some technical editing and fixes, just to be in sync with the high quality of the software.
--
Patrick Philippot - Microsoft MVP
Consulting Services
www.mainsoft.fr