Problems with the message of the button

Problems with the message of the button

Postby marca » Wed Sep 03, 2008 4:37 pm

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 Ferro da Silveira
Fwh14.04/xHarbour 1.2.3 Simplex / Bcc582 / Pelles 8
SqlLib /xMate/WS
marca
 
Posts: 117
Joined: Mon Aug 13, 2007 5:22 pm
Location: Brazil

Postby Armando » Wed Sep 03, 2008 4:49 pm

Marcelo:

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

Code: Select all  Expand view  RUN
DEFINE BUTTON oBtns[ 1] OF oBar RESOURCE "BtnAdd";
    TOOLTIP "Agregar";
    ACTION Editar(oBrw,(.T.));
    MESSAGE "Agregar nuevo cliente"


Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3229
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Problems with the message of the button

Postby JC » Wed Sep 03, 2008 4:51 pm

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
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby marca » Wed Sep 03, 2008 5:13 pm

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"
Marcelo Ferro da Silveira
Fwh14.04/xHarbour 1.2.3 Simplex / Bcc582 / Pelles 8
SqlLib /xMate/WS
marca
 
Posts: 117
Joined: Mon Aug 13, 2007 5:22 pm
Location: Brazil

Postby JC » Wed Sep 03, 2008 5:29 pm

É 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! ;)
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby Armando » Wed Sep 03, 2008 5:36 pm

Marcelo:

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

TOOLTIP "Agregar";

Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3229
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 84 guests