elGringo Posted November 24, 2016 Share Posted November 24, 2016 i need to center it from runtime, in some moment form become not in center, so I want to fix it I usually do that like this Self.Top:=Trunc(Self.Parent.Height/2-Self.Height/2); How to do that in UniGUI? Quote Link to comment Share on other sites More sharing options...
jahlxx Posted November 24, 2016 Share Posted November 24, 2016 check position property of the form. Quote Link to comment Share on other sites More sharing options...
elGringo Posted November 24, 2016 Author Share Posted November 24, 2016 Thnks, but maybe i didnt ask correct i need to center it from runtime, in some moment form become not in center, so I want to fix it Quote Link to comment Share on other sites More sharing options...
elGringo Posted November 25, 2016 Author Share Posted November 25, 2016 I know that it could be done on ExtJS but in UniGUI that also must be a way, i need to center it relatively to a screen of browser Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted November 26, 2016 Share Posted November 26, 2016 Hello ElGringo, If i understand use : Anchor property (all by défaut). http://forums.unigui.com/index.php?/topic/5222-centered-panels-once-again/&do=findComment&comment=26802 http://forums.unigui.com/index.php?/topic/5573-form-in-upper-right-corner/&do=findComment&comment=28499 You can do a search on forum with :Anchor as key word. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.