Página 1 de 2

Status bar explanation

Publicado: Mar Feb 08, 2005 12:28 pm
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

Status bar explanation

Publicado: Mié Feb 09, 2005 10:47 am
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

Status bar explanation

Publicado: Mié Feb 09, 2005 10:47 am
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

Status bar explanation

Publicado: Mié Feb 09, 2005 10:47 am
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

Status bar explanation

Publicado: Mié Feb 09, 2005 10:47 am
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

Status bar explanation

Publicado: Mié Feb 09, 2005 10:47 am
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

Status bar explanation

Publicado: Mié Feb 09, 2005 10:47 am
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

Status bar explanation

Publicado: Mié Feb 09, 2005 10:47 am
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

Status bar explanation

Publicado: Mié Feb 09, 2005 10:47 am
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

Status bar explanation

Publicado: Mié Feb 09, 2005 10:47 am
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

Status bar explanation

Publicado: Mié Feb 09, 2005 10:47 am
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

Status bar explanation

Publicado: Mié Feb 09, 2005 1:51 pm
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

Status bar explanation

Publicado: Mié Feb 09, 2005 1:51 pm
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

Status bar explanation

Publicado: Mié Feb 09, 2005 1:51 pm
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

Status bar explanation

Publicado: Mié Feb 09, 2005 1:51 pm
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

Status bar explanation

Publicado: Mié Feb 09, 2005 1:51 pm
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

Status bar explanation

Publicado: Mié Feb 09, 2005 1:51 pm
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

Status bar explanation

Publicado: Mié Feb 09, 2005 1:51 pm
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

Status bar explanation

Publicado: Mié Feb 09, 2005 1:51 pm
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

Status bar explanation

Publicado: Mié Feb 09, 2005 1:51 pm
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

Status bar explanation

Publicado: Mié Feb 09, 2005 1:51 pm
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

Status bar explanation

Publicado: Mié Feb 09, 2005 1:53 pm
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

Status bar explanation

Publicado: Mié Feb 09, 2005 1:53 pm
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

Status bar explanation

Publicado: Mié Feb 09, 2005 1:53 pm
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

Status bar explanation

Publicado: Mié Feb 09, 2005 1:53 pm
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