In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Status bar explanation

Xailer professional forum in English
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Status bar explanation

Mensaje por Giuseppe Bogetti »

Hi all,
I have a status bar with 4 panels.
The first two with text and the third and fourth with an icon.
When I run the app and resize the window the fourth panel is automatically
resized.
Is there a way to change this behaviour and set the first panel as the one
to be resized ?
Do I have to control it programmatically usinge the OnSize event of the
window ?
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Status bar explanation

Mensaje por jfgimenez »

Giuseppe,
> Is there a way to change this behaviour and set the first panel as the one
> to be resized ?
I'm affraid it's not possible, at least automatically.
> Do I have to control it programmatically usinge the OnSize event of the
> window ?
Yes. You only need to set the nWidth property of that statuspanel whit the
correct value. I'm doing that in my own application:
METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
TPrincipal
IF ::oStatusBar1 != Nil
IF nClientWidth > 0
::oStatusBar1:aItems[1]:nWidth := nClientWidth - 210
ENDIF
ENDIF
RETURN Nil
Note that 210 is the sum of the width of the rest of panels. Note also that
it's needed to check if the statusbar already exists, because this event is
fired during the form creation too, before any control exist.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Status bar explanation

Mensaje por jfgimenez »

Giuseppe,
> Is there a way to change this behaviour and set the first panel as the one
> to be resized ?
I'm affraid it's not possible, at least automatically.
> Do I have to control it programmatically usinge the OnSize event of the
> window ?
Yes. You only need to set the nWidth property of that statuspanel whit the
correct value. I'm doing that in my own application:
METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
TPrincipal
IF ::oStatusBar1 != Nil
IF nClientWidth > 0
::oStatusBar1:aItems[1]:nWidth := nClientWidth - 210
ENDIF
ENDIF
RETURN Nil
Note that 210 is the sum of the width of the rest of panels. Note also that
it's needed to check if the statusbar already exists, because this event is
fired during the form creation too, before any control exist.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Status bar explanation

Mensaje por jfgimenez »

Giuseppe,
> Is there a way to change this behaviour and set the first panel as the one
> to be resized ?
I'm affraid it's not possible, at least automatically.
> Do I have to control it programmatically usinge the OnSize event of the
> window ?
Yes. You only need to set the nWidth property of that statuspanel whit the
correct value. I'm doing that in my own application:
METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
TPrincipal
IF ::oStatusBar1 != Nil
IF nClientWidth > 0
::oStatusBar1:aItems[1]:nWidth := nClientWidth - 210
ENDIF
ENDIF
RETURN Nil
Note that 210 is the sum of the width of the rest of panels. Note also that
it's needed to check if the statusbar already exists, because this event is
fired during the form creation too, before any control exist.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Status bar explanation

Mensaje por jfgimenez »

Giuseppe,
> Is there a way to change this behaviour and set the first panel as the one
> to be resized ?
I'm affraid it's not possible, at least automatically.
> Do I have to control it programmatically usinge the OnSize event of the
> window ?
Yes. You only need to set the nWidth property of that statuspanel whit the
correct value. I'm doing that in my own application:
METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
TPrincipal
IF ::oStatusBar1 != Nil
IF nClientWidth > 0
::oStatusBar1:aItems[1]:nWidth := nClientWidth - 210
ENDIF
ENDIF
RETURN Nil
Note that 210 is the sum of the width of the rest of panels. Note also that
it's needed to check if the statusbar already exists, because this event is
fired during the form creation too, before any control exist.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Status bar explanation

Mensaje por jfgimenez »

Giuseppe,
> Is there a way to change this behaviour and set the first panel as the one
> to be resized ?
I'm affraid it's not possible, at least automatically.
> Do I have to control it programmatically usinge the OnSize event of the
> window ?
Yes. You only need to set the nWidth property of that statuspanel whit the
correct value. I'm doing that in my own application:
METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
TPrincipal
IF ::oStatusBar1 != Nil
IF nClientWidth > 0
::oStatusBar1:aItems[1]:nWidth := nClientWidth - 210
ENDIF
ENDIF
RETURN Nil
Note that 210 is the sum of the width of the rest of panels. Note also that
it's needed to check if the statusbar already exists, because this event is
fired during the form creation too, before any control exist.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Status bar explanation

Mensaje por jfgimenez »

Giuseppe,
> Is there a way to change this behaviour and set the first panel as the one
> to be resized ?
I'm affraid it's not possible, at least automatically.
> Do I have to control it programmatically usinge the OnSize event of the
> window ?
Yes. You only need to set the nWidth property of that statuspanel whit the
correct value. I'm doing that in my own application:
METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
TPrincipal
IF ::oStatusBar1 != Nil
IF nClientWidth > 0
::oStatusBar1:aItems[1]:nWidth := nClientWidth - 210
ENDIF
ENDIF
RETURN Nil
Note that 210 is the sum of the width of the rest of panels. Note also that
it's needed to check if the statusbar already exists, because this event is
fired during the form creation too, before any control exist.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Status bar explanation

Mensaje por jfgimenez »

Giuseppe,
> Is there a way to change this behaviour and set the first panel as the one
> to be resized ?
I'm affraid it's not possible, at least automatically.
> Do I have to control it programmatically usinge the OnSize event of the
> window ?
Yes. You only need to set the nWidth property of that statuspanel whit the
correct value. I'm doing that in my own application:
METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
TPrincipal
IF ::oStatusBar1 != Nil
IF nClientWidth > 0
::oStatusBar1:aItems[1]:nWidth := nClientWidth - 210
ENDIF
ENDIF
RETURN Nil
Note that 210 is the sum of the width of the rest of panels. Note also that
it's needed to check if the statusbar already exists, because this event is
fired during the form creation too, before any control exist.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Status bar explanation

Mensaje por jfgimenez »

Giuseppe,
> Is there a way to change this behaviour and set the first panel as the one
> to be resized ?
I'm affraid it's not possible, at least automatically.
> Do I have to control it programmatically usinge the OnSize event of the
> window ?
Yes. You only need to set the nWidth property of that statuspanel whit the
correct value. I'm doing that in my own application:
METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
TPrincipal
IF ::oStatusBar1 != Nil
IF nClientWidth > 0
::oStatusBar1:aItems[1]:nWidth := nClientWidth - 210
ENDIF
ENDIF
RETURN Nil
Note that 210 is the sum of the width of the rest of panels. Note also that
it's needed to check if the statusbar already exists, because this event is
fired during the form creation too, before any control exist.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Status bar explanation

Mensaje por jfgimenez »

Giuseppe,
> Is there a way to change this behaviour and set the first panel as the one
> to be resized ?
I'm affraid it's not possible, at least automatically.
> Do I have to control it programmatically usinge the OnSize event of the
> window ?
Yes. You only need to set the nWidth property of that statuspanel whit the
correct value. I'm doing that in my own application:
METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
TPrincipal
IF ::oStatusBar1 != Nil
IF nClientWidth > 0
::oStatusBar1:aItems[1]:nWidth := nClientWidth - 210
ENDIF
ENDIF
RETURN Nil
Note that 210 is the sum of the width of the rest of panels. Note also that
it's needed to check if the statusbar already exists, because this event is
fired during the form creation too, before any control exist.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Status bar explanation

Mensaje por jfgimenez »

Giuseppe,
> Is there a way to change this behaviour and set the first panel as the one
> to be resized ?
I'm affraid it's not possible, at least automatically.
> Do I have to control it programmatically usinge the OnSize event of the
> window ?
Yes. You only need to set the nWidth property of that statuspanel whit the
correct value. I'm doing that in my own application:
METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
TPrincipal
IF ::oStatusBar1 != Nil
IF nClientWidth > 0
::oStatusBar1:aItems[1]:nWidth := nClientWidth - 210
ENDIF
ENDIF
RETURN Nil
Note that 210 is the sum of the width of the rest of panels. Note also that
it's needed to check if the statusbar already exists, because this event is
fired during the form creation too, before any control exist.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Status bar explanation

Mensaje por Giuseppe Bogetti »

In data Wed, 9 Feb 2005 10:47:26 +0100, Jose F. Gimenez ha scritto:
Thanks for the explanation.
> METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
Can you tell me please, the possible values of nSizeType ?
I've not found them in the docs.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Status bar explanation

Mensaje por Giuseppe Bogetti »

In data Wed, 9 Feb 2005 10:47:26 +0100, Jose F. Gimenez ha scritto:
Thanks for the explanation.
> METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
Can you tell me please, the possible values of nSizeType ?
I've not found them in the docs.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Status bar explanation

Mensaje por Giuseppe Bogetti »

In data Wed, 9 Feb 2005 10:47:26 +0100, Jose F. Gimenez ha scritto:
Thanks for the explanation.
> METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
Can you tell me please, the possible values of nSizeType ?
I've not found them in the docs.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Status bar explanation

Mensaje por Giuseppe Bogetti »

In data Wed, 9 Feb 2005 10:47:26 +0100, Jose F. Gimenez ha scritto:
Thanks for the explanation.
> METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
Can you tell me please, the possible values of nSizeType ?
I've not found them in the docs.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Status bar explanation

Mensaje por Giuseppe Bogetti »

In data Wed, 9 Feb 2005 10:47:26 +0100, Jose F. Gimenez ha scritto:
Thanks for the explanation.
> METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
Can you tell me please, the possible values of nSizeType ?
I've not found them in the docs.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Status bar explanation

Mensaje por Giuseppe Bogetti »

In data Wed, 9 Feb 2005 10:47:26 +0100, Jose F. Gimenez ha scritto:
Thanks for the explanation.
> METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
Can you tell me please, the possible values of nSizeType ?
I've not found them in the docs.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Status bar explanation

Mensaje por Giuseppe Bogetti »

In data Wed, 9 Feb 2005 10:47:26 +0100, Jose F. Gimenez ha scritto:
Thanks for the explanation.
> METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
Can you tell me please, the possible values of nSizeType ?
I've not found them in the docs.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Status bar explanation

Mensaje por Giuseppe Bogetti »

In data Wed, 9 Feb 2005 10:47:26 +0100, Jose F. Gimenez ha scritto:
Thanks for the explanation.
> METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
Can you tell me please, the possible values of nSizeType ?
I've not found them in the docs.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Status bar explanation

Mensaje por Giuseppe Bogetti »

In data Wed, 9 Feb 2005 10:47:26 +0100, Jose F. Gimenez ha scritto:
Thanks for the explanation.
> METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
Can you tell me please, the possible values of nSizeType ?
I've not found them in the docs.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Status bar explanation

Mensaje por Giuseppe Bogetti »

In data Wed, 9 Feb 2005 10:47:26 +0100, Jose F. Gimenez ha scritto:
Thanks for the explanation.
> METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
Can you tell me please, the possible values of nSizeType ?
I've not found them in the docs.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Status bar explanation

Mensaje por jfgimenez »

Giuseppe,
>> METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
> Can you tell me please, the possible values of nSizeType ?
> I've not found them in the docs.
- SIZE_MAXHIDE Message is sent to all pop-up windows when some
other window is maximized.
- SIZE_MAXIMIZED Window has been maximized.
- SIZE_MAXSHOW Message is sent to all pop-up windows when some
other window has been restored to its former size.
- SIZE_MINIMIZED Window has been minimized.
- SIZE_RESTORED Window has been resized, but neither the
SIZE_MINIMIZED nor SIZE_MAXIMIZED value applies.
All these constants are already available; they are declared in
xailerincludewinuser.api
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Status bar explanation

Mensaje por jfgimenez »

Giuseppe,
>> METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
> Can you tell me please, the possible values of nSizeType ?
> I've not found them in the docs.
- SIZE_MAXHIDE Message is sent to all pop-up windows when some
other window is maximized.
- SIZE_MAXIMIZED Window has been maximized.
- SIZE_MAXSHOW Message is sent to all pop-up windows when some
other window has been restored to its former size.
- SIZE_MINIMIZED Window has been minimized.
- SIZE_RESTORED Window has been resized, but neither the
SIZE_MINIMIZED nor SIZE_MAXIMIZED value applies.
All these constants are already available; they are declared in
xailerincludewinuser.api
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Status bar explanation

Mensaje por jfgimenez »

Giuseppe,
>> METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
> Can you tell me please, the possible values of nSizeType ?
> I've not found them in the docs.
- SIZE_MAXHIDE Message is sent to all pop-up windows when some
other window is maximized.
- SIZE_MAXIMIZED Window has been maximized.
- SIZE_MAXSHOW Message is sent to all pop-up windows when some
other window has been restored to its former size.
- SIZE_MINIMIZED Window has been minimized.
- SIZE_RESTORED Window has been resized, but neither the
SIZE_MINIMIZED nor SIZE_MAXIMIZED value applies.
All these constants are already available; they are declared in
xailerincludewinuser.api
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Status bar explanation

Mensaje por jfgimenez »

Giuseppe,
>> METHOD FormSize( oSender, nSizeType, nClientWidth, nClientHeight ) CLASS
> Can you tell me please, the possible values of nSizeType ?
> I've not found them in the docs.
- SIZE_MAXHIDE Message is sent to all pop-up windows when some
other window is maximized.
- SIZE_MAXIMIZED Window has been maximized.
- SIZE_MAXSHOW Message is sent to all pop-up windows when some
other window has been restored to its former size.
- SIZE_MINIMIZED Window has been minimized.
- SIZE_RESTORED Window has been resized, but neither the
SIZE_MINIMIZED nor SIZE_MAXIMIZED value applies.
All these constants are already available; they are declared in
xailerincludewinuser.api
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Responder