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 behaviour

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

Status bar behaviour

Mensaje por Giuseppe Bogetti »

Hi,
I want to mimic the green/red light of Xailer IDE when a file is modified.
in the OnInitialize method I use
// Status bar
WITH OBJECT ::oBackStatus
:oImageList:Add( "BMP_LANGUAGE" )
:oImageList:Add( "BMP_CHG_ON" )
:oImageList:Add( "BMP_CHG_OFF" )
:aItems[ tSTATUS_LANG ]:nImage := 1
END WITH
in another method which checks changes to form controls I use
METHOD BackChanged( lSet ) CLASS TBackup
IF ( lSet )
IF !( ::FlChanged )
::FlChanged := TRUE
::oBackStatus:aItems[ tSTATUS_MODIFIED ]:nImage := 3
IF !( ::oBtnSave:lEnabled )
::oBtnSave:lEnabled := TRUE
IF ( ::FnStatus == tSTATUS_EDIT )
::oBtnUndo:lEnabled := TRUE
ENDIF
ENDIF
ENDIF
::oTxtOutputResult:cText := ::FoSet:cBackupFileNameX
ELSE
::FlChanged := FALSE
::oBackStatus:aItems[ tSTATUS_MODIFIED ]:nImage := 2
::oBtnSave:lEnabled := FALSE
::oBtnUndo:lEnabled := FALSE
ENDIF
RETURN Nil
Everything works ok except that the image in the status bar panel is not
shown at all.
Any hints on this ?
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Status bar behaviour

Mensaje por Giuseppe Bogetti »

In data Tue, 15 Mar 2005 18:26:17 +0100, Giuseppe Bogetti ha scritto:
I've found the solution. The status panel with a width >= 24 works OK.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Status bar behaviour

Mensaje por Giuseppe Bogetti »

In data Tue, 15 Mar 2005 18:26:17 +0100, Giuseppe Bogetti ha scritto:
I've found the solution. The status panel with a width >= 24 works OK.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Responder