Buenas tardes, como puedo anclar al formulario los controles de forma que al redimensionar la ventana principal, no pierda la posicion relativa respecto al mismo.En visual basic esta una caracteristica que es anchor o algo similar que ancla los cotroles a la posicion y se redimensiona sin perder la posicion relativa.Saludos Pedro
Good afternoon, how do I anchor to the form controls so that when resizing the main window, do not lose your position relative to the visual basic mismo.En this a feature that is similar to anchor or anchors applets to the position and resize without losing the position relativa.Saludos Pedro
Posiciones relativas y absolutas de controles en formulario
Moderator: Rathinagiri
-
- Posts: 7
- Joined: Wed Nov 18, 2009 6:21 pm
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Posiciones relativas y absolutas de controles en formulario
For now, there is no such functionality in HMG.PedroBarna wrote:Buenas tardes, como puedo anclar al formulario los controles de forma que al redimensionar la ventana principal, no pierda la posicion relativa respecto al mismo.En visual basic esta una caracteristica que es anchor o algo similar que ancla los cotroles a la posicion y se redimensiona sin perder la posicion relativa.Saludos Pedro
Good afternoon, how do I anchor to the form controls so that when resizing the main window, do not lose your position relative to the visual basic mismo.En this a feature that is similar to anchor or anchors applets to the position and resize without losing the position relativa.Saludos Pedro
But, it can be done. Let us try.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
-
- Posts: 7
- Joined: Wed Nov 18, 2009 6:21 pm
Re: Posiciones relativas y absolutas de controles en formulario
Bueno entonces supongo que me tendre que conformar de momento.El algoritmo de implementacion pasaria por añadir el metodo anchor a los controles y despues calcular el tamaño de la ventana nueva y en base a las coordenadas de su tamaño recalcular para cada control que tenga el metodo anchor .T. mediante una funcion estandar base.A lo mejor se pueden utilizar funciones internas del mismo sistema operativo.Echare un vistazo a ver si descubro algo.Gracias por tu respuesta.Saludos
Well then I guess I will have to settle for now.The algorithm implementations pass for anchor method to add controls and then calculate the new window size and based on the coordinates of its size to recalculate for each control that the method anchor. T. through a standard feature base.A best internal functions can use the same system operativo. I`m looking for something see if I find your algo.Thanks for your fast anwser...Regards
Well then I guess I will have to settle for now.The algorithm implementations pass for anchor method to add controls and then calculate the new window size and based on the coordinates of its size to recalculate for each control that the method anchor. T. through a standard feature base.A best internal functions can use the same system operativo. I`m looking for something see if I find your algo.Thanks for your fast anwser...Regards
- mustafa
- Posts: 1158
- Joined: Fri Mar 20, 2009 11:38 am
- DBs Used: DBF
- Location: Alicante - Spain
- Contact:
Re: Posiciones relativas y absolutas de controles en formulario
Hola Pedro , otro de Barcelona
No se si esto te puede servir ?
Yo utilizo esta función para dimensionar la ventana principal
depende la resolucion del monitor, pero los botones siguen
quedando desplazados.
*-----------*
Hola Pere, un altre de Barcelona
No se si això et pot servir?
Jo faig servir aquesta funció per dimensionar la finestra
principal depèn la resolució del monitor, però els botons
segueixen quedant desplaçats.
*-----------*
Hi Peter, another of Barcelona
Do not know if it can serve you?
I use this function to size the main window depends on
the resolution the monitor, but the buttons are being
displaced.
Regards
Mustafa
*--------------------------------------------------------------------*
PUBLIC nWIDTH , nHEIGHT
*--------------------------------------------------------------------*
nWIDTH := GetDesktopWidth()
nHEIGHT := GetDesktopHeight()
DEFINE WINDOW Win_3x ;
AT 0,0 ;
WIDTH nWIDTH ;
HEIGHT nHEIGHT ;
BACKCOLOR {023,101,012} ;
TITLE '' ;
MAIN
CENTER WINDOW Win_3x
ACTIVATE WINDOW Win_3x
RETURN NIL
No se si esto te puede servir ?
Yo utilizo esta función para dimensionar la ventana principal
depende la resolucion del monitor, pero los botones siguen
quedando desplazados.
*-----------*
Hola Pere, un altre de Barcelona
No se si això et pot servir?
Jo faig servir aquesta funció per dimensionar la finestra
principal depèn la resolució del monitor, però els botons
segueixen quedant desplaçats.
*-----------*
Hi Peter, another of Barcelona
Do not know if it can serve you?
I use this function to size the main window depends on
the resolution the monitor, but the buttons are being
displaced.
Regards
Mustafa
*--------------------------------------------------------------------*
PUBLIC nWIDTH , nHEIGHT
*--------------------------------------------------------------------*
nWIDTH := GetDesktopWidth()
nHEIGHT := GetDesktopHeight()
DEFINE WINDOW Win_3x ;
AT 0,0 ;
WIDTH nWIDTH ;
HEIGHT nHEIGHT ;
BACKCOLOR {023,101,012} ;
TITLE '' ;
MAIN
CENTER WINDOW Win_3x
ACTIVATE WINDOW Win_3x
RETURN NIL
-
- Posts: 7
- Joined: Wed Nov 18, 2009 6:21 pm
Re: Posiciones relativas y absolutas de controles en formulario
Gracias.Pero el problema esta con los controles.Tendria que programarse a nivel de formulario supongo con un array que recorra los controles disponibles y redimensionandolos en la ventana modificada tanto si es maximizada como minimizada.A ver si tengo tiempo y analizo funciones a bajo nivel del sistema operativo para hacerlas servir.
Thanks.But the problem is with the controls inside .Have to be programmed to form level I guess with an array that loops through the available controls and resizing the window is maximized if modified both as minimizada.A see if I have time and analyze low-level functions operating system to server for this work.
Thanks.But the problem is with the controls inside .Have to be programmed to form level I guess with an array that loops through the available controls and resizing the window is maximized if modified both as minimizada.A see if I have time and analyze low-level functions operating system to server for this work.
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Posiciones relativas y absolutas de controles en formulario
Hola Pedro,
Me interesó en saber cual seria la finalidad de manter la posicion del los controles con ese ancla que mencionas.
Si pudieras disponibilizar un ejemplo de eso, tambien se te lo agradece.
Un gran abrazo
Me interesó en saber cual seria la finalidad de manter la posicion del los controles con ese ancla que mencionas.
Si pudieras disponibilizar un ejemplo de eso, tambien se te lo agradece.
Un gran abrazo
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
-
- Posts: 1275
- Joined: Tue Sep 03, 2013 4:22 am
- Location: Tecámac, México
Re: Posiciones relativas y absolutas de controles en formulario
Hola Pedro
Lo que entiendo es que si tu haces la ventana más grande o más chica, los controles no se mueven de lugar en la pantalla, es eso?, si es asi, entoces si hago más chica la pantalla abra controles que no se vean del lado derecho o izquierdo o de arriba o abajo dependiendo de donde re dimensiones la pantalla?
Un ejemplo por favor, para saber lo que necesitas!
Saludos.
Lo que entiendo es que si tu haces la ventana más grande o más chica, los controles no se mueven de lugar en la pantalla, es eso?, si es asi, entoces si hago más chica la pantalla abra controles que no se vean del lado derecho o izquierdo o de arriba o abajo dependiendo de donde re dimensiones la pantalla?
Un ejemplo por favor, para saber lo que necesitas!
Saludos.
- dragancesu
- Posts: 921
- Joined: Mon Jun 24, 2013 11:53 am
- DBs Used: DBF, MySQL, Oracle
- Location: Subotica, Serbia
Re: Posiciones relativas y absolutas de controles en formulario
I suppose you are looking for something similar when you open a site in Firefox and press Ctrl+[+] or Ctrl+[-] (functions zoom-in and zoom-out)