ChenHaibin Posted December 4, 2013 Share Posted December 4, 2013 In unigui 0.9422,How to make loginform centered when resizing the browser? Quote Link to comment Share on other sites More sharing options...
fcarvalho4 Posted December 4, 2013 Share Posted December 4, 2013 procedure TfrmLogin.UniFormScreenResize(Sender: TObject; AWidth, AHeight: Integer);begin Self.Left := AWidth div 2 - Self.Width div 2; self.Top := AHeight div 2 - Self.Height div 2;end; i hope has solved your problem?! Quote Link to comment Share on other sites More sharing options...
ChenHaibin Posted December 5, 2013 Author Share Posted December 5, 2013 The problem is still not resolved。 Environment: Win7 64 bit + delphi 2010 Quote Link to comment Share on other sites More sharing options...
fcarvalho4 Posted December 5, 2013 Share Posted December 5, 2013 and uniGui version? Quote Link to comment Share on other sites More sharing options...
fcarvalho4 Posted December 5, 2013 Share Posted December 5, 2013 see the example on the link http://forums.unigui.com/index.php?/topic/3676-formresize/ Quote Link to comment Share on other sites More sharing options...
ChenHaibin Posted December 6, 2013 Author Share Posted December 6, 2013 0.941022 version loginform with your method does not work. But for mainform effect can be reached Quote Link to comment Share on other sites More sharing options...
fcarvalho4 Posted December 6, 2013 Share Posted December 6, 2013 i use the 0.93.1.1000 version and works well in all forms. maybe is a bug Quote Link to comment Share on other sites More sharing options...
ChenHaibin Posted December 7, 2013 Author Share Posted December 7, 2013 loginform is a new feature in 09.4 Quote Link to comment Share on other sites More sharing options...
ChenHaibin Posted December 8, 2013 Author Share Posted December 8, 2013 The OnScreenResize event of LoginForm can not be fired in 0.94.0.1024. LoginForm.rar 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.