WINDOW with Brush and SAY

WINDOW with Brush and SAY

Postby Otto » Fri Aug 22, 2008 3:32 pm

Hello Antonio,

I tried to insert a say control into the
Testgrad.prg from the samples but I get an error.
Regards,
Otto



@ 111,20 say oSay PROMPT "Datensicherung - Datenvereichnis: "


Error description: Error BASE/1070 Argument error: ==
Args:
[ 1] = N 15790320
[ 2] = C N/W

Stack Calls
===========
Called from: .\source\classes\BRUSH.PRG => (b)TBRUSH:NEW(0)
Called from: => ASCAN(0)
Called from: .\source\classes\BRUSH.PRG => TBRUSH:NEW(0)
Called from: .\source\classes\WINDOW.PRG => TSAY:SETCOLOR(0)
Called from: .\source\classes\SAY.PRG => TSAY:NEW(0)
Called from: c:\fwhtests\200807\testgrad.prg => MAIN(85)
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Gradient

Postby ukoenig » Fri Aug 22, 2008 3:39 pm

Hello Otto,

It seems, you mixed the Color-values

[ 1] = N 15790320
[ 2] = C N/W

the first color is ok
the second color has to be numeric as well.

Color White => 16777215

Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Otto » Fri Aug 22, 2008 4:37 pm

Thank you, UWE. You are right.
The window is defined like that:

Code: Select all  Expand view  RUN
DEFINE WINDOW oWnd TITLE "FWH - Office 2007 look in your ButtonBars, MsgBar and Menus" ;
       FROM 0,0 TO 800,1024 PIXEL;
     MENU BuildMenu();
     COLOR 0, "N/W" BRUSH oBrush 


Changing "N/W" to a value resolved the problem.
Regards,
Otto
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

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