Page 1 of 1

Problems with the message of the button

Posted: Wed Sep 03, 2008 4:37 pm
by marca
Problems with the message of the button

According to example below the tooltipe of the button doesn't work in case it stops with the mouse on top

REDEFINE BUTTON aBtn[1] ID 105 OF oLog;
MESSAGE to "Return to the windows"; * * * * * he/she doesn't appear
ACTION IF (! lSalva,oGet[3]:SetFocus,oLog:End ())

Posted: Wed Sep 03, 2008 4:49 pm
by Armando
Marcelo:

I'm afraid you have a wrong sintaxis, try this sample:

Code: Select all

DEFINE BUTTON oBtns[ 1] OF oBar RESOURCE "BtnAdd";
    TOOLTIP "Agregar";
    ACTION Editar(oBrw,(.T.));
    MESSAGE "Agregar nuevo cliente"
Regards

Re: Problems with the message of the button

Posted: Wed Sep 03, 2008 4:51 pm
by JC
marca wrote:Problems with the message of the button

According to example below the tooltipe of the button doesn't work in case it stops with the mouse on top

REDEFINE BUTTON aBtn[1] ID 105 OF oLog;
MESSAGE to "Return to the windows"; * * * * * he/she doesn't appear
ACTION IF (! lSalva,oGet[3]:SetFocus,oLog:End ())
Marcelo... retira o to na tua sintaxe MESSAGE to

Posted: Wed Sep 03, 2008 5:13 pm
by marca
Ola Julio

Na verdade o TO foi somente um erro de postagem meu ele nao existe na
esrcrita original

REDEFINE BUTTON aBtn[1] ID 105 OF oLog;
MESSAGE "Return to the windows"; * * * * * he/she doesn't ppear
ACTION IF (! lSalva,oGet[3]:SetFocus,oLog:End ())




Hello Armando

Sintax no this not wandered

See the esmplo in fwh\samples\dbf01.prg


REDEFINE BUTTON oBtnNew ID ID_NEW OF oDlg;
ACTION New (@ lNew, oDbf, aButtons, oDlg);
MESSAGE "Add the new customer"

Posted: Wed Sep 03, 2008 5:29 pm
by JC
É difícil usar essas mensagens na barra de status da aplicação.
Mas se não tá funfando desse jeito... experimenta usar o
( wndMain() ):setMsg( "blabla bla" )

Esse, pelo menos, nunca falhou! ;)

Posted: Wed Sep 03, 2008 5:36 pm
by Armando
Marcelo:

Yes, you are right, but you have not the TOOLTIP clause

TOOLTIP "Agregar";

Regards