FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problems with the message of the button
Posts: 117
Joined: Mon Aug 13, 2007 05:22 PM
Problems with the message of the button
Posted: Wed Sep 03, 2008 04: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
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Problems with the message of the button
Posted: Wed Sep 03, 2008 04:49 PM
Marcelo:

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

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
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Re: Problems with the message of the button
Posted: Wed Sep 03, 2008 04: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
Posts: 117
Joined: Mon Aug 13, 2007 05:22 PM
Problems with the message of the button
Posted: Wed Sep 03, 2008 05: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
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Problems with the message of the button
Posted: Wed Sep 03, 2008 05: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
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Problems with the message of the button
Posted: Wed Sep 03, 2008 05: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

Continue the discussion