Lucas Ferreira Posted November 8 Share Posted November 8 Criei essa procedure, ela esta funcionando em partes, quando vou atribuir o Left a ela do meu segundo monitor o Valor Monitor.Left vem (1366) mas o Formulario.Left recebe somente 150, não sei oq pode ser procedure TForm1.SelecionaMonitor(Index: Integer; Formulario: TForm); var MonitorIndex: Integer; Monitor: TMonitor; begin MonitorIndex := Index; if (MonitorIndex >= 0) and (MonitorIndex < Screen.MonitorCount) then begin Monitor := Screen.Monitors[MonitorIndex]; with Formulario do begin Width := Monitor.Width; Height := Monitor.Height; Left := Monitor.Left; Top := Monitor.Top; end; end; end; Link to comment Share on other sites More sharing options...
backupnumberum Posted November 13 Share Posted November 13 (edited) tente deste jeito: primeiro torne o formulario visivel defina a nova posicao na tela BoundsRect = L, T, R, B valores FormX.Visible := true; FormX.BoundsRect := Screen.Monitors[ i ].BoundsRect; Edited November 13 by backupnumberum 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now