My guess is that your buttons are not becoming invisible, they're just slightly to the right/bottom of the visible form; In some circumstances (haven't figured out how) the form that hosts the controls gets resized and the buttons don't get a chance to change the position on screen. After this initial change in form dimensions the buttons end up outside the visible area (Button.Left > Form.Width) and when you maximize the form the button does it's best to stay anchored to the right: no matter what you do after this initial problem, the button stays outside the visible area!
Fix: Try setting Left and Top for the buttons from code (ie: don't rely on anchors). Try doing it from an button / menu item (for testing) and then figure out an event that works for you. Example: From the OnShow, OnResize. -- Cosmin Prund > -----Mesaj original----- > De la: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] În > numele chris.mo...@biuk.co.uk > Trimis: Thursday, November 19, 2009 9:25 AM > Către: Delphi@elists.org > Subiect: Disappearing buttons > > Hello List. > > I have an application with three tButtons. as certain things happen, > the buttons become enabled or disabled. But they are ALLWAYS visible, > > The applicatin is a published app on both a Citrix farm and a native MS > Terminal Server. and has worked this way for years. > > Recently I was asked to change the position of the buttons because the > application runs at full screen, and we have shiny new wide screen > lcd's. I simply changed the anchors so the buttons stick to top right. > Thats it, the ONLY change I made. > > Now this is my situation: > Application runs in the IDE = Buttons visible > Application runs on a PC = Buttons visible > Application runs in a MS Terminal session on a PC = Buttons visible > Application runs in a Citrix Terminal session on a PC = Buttons > visible > > Application runs in a MS Terminal session on a Wyse dumb terminal = > Buttons invisible > Application runs in a Citrix Terminal session on a Wyse dumb terminal = > Buttons invisible > > Can you guess how my manager wants to run the application? > > To step around the problem, I put a tMenu in the app. But I just > cannot > figure out why the buttons are disappearing. > > Can you? > > Cheers - Chris > > > _______________________________________________ > Delphi mailing list -> Delphi@elists.org > http://lists.elists.org/cgi-bin/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi