[Solved]: BTNBMP help

[Solved]: BTNBMP help

Postby Ross_ValuSoft » Thu Oct 20, 2011 1:21 am

Hello again.

Can anyone give a sample of using the colour clause for BTNBMP please?

The online help for BTNBMP ( http://wiki.fivetechsoft.com/doku.php?i ... nds_btnbmp ) last updated 3 weeks ago does not show a colour clause. Antonio says to use BTNBMP to produce a button with a background colour, but he is obviously too busy to provide a sample.

Anyone?

Thanks,

Ross
Last edited by Ross_ValuSoft on Thu Oct 20, 2011 3:47 am, edited 1 time in total.
User avatar
Ross_ValuSoft
 
Posts: 87
Joined: Thu Dec 18, 2008 11:27 am
Location: Melbourne, Australia

Re: BTNBMP help

Postby hua » Thu Oct 20, 2011 2:00 am

Hi Ross,
I don't know the exact answer myself but perhaps these threads could help shed some light?
viewtopic.php?f=3&t=21167&start=0
viewtopic.php?f=3&t=2852&start=0
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: [Solved]: BTNBMP help

Postby Ross_ValuSoft » Thu Oct 20, 2011 3:56 am

Many, many thanks Hua. I owe you a cooling drink.

The final code that works (for others who need help) is ...
Code: Select all  Expand view
        @ 245, 85 BTNBMP oBtn PROMPT "Delete ALL" OF oWndTrash ;
            Action (  IF( MsgYesNo( 'Keep ALL data ?', 'System' ), ;
                   ( Msginfo("Nothing deleted!") ), ; // yes answer
                     ( PurgeAll(), MsgInfo("All test data DELETED"), oWndTrash:End() );  // no answer
                      ) ) SIZE 70, 25

       oBtn:SetColor( CLR_HRED, CLR_YELLOW )
 


However, if I use SetColor( CLR_HRED, CLR_YELLOW ) after the SIZE clause, the compiler complains with ...
Code: Select all  Expand view
Error E0022 Invalid lvalue: '()'


So beware ...

Cheers,

Ross
User avatar
Ross_ValuSoft
 
Posts: 87
Joined: Thu Dec 18, 2008 11:27 am
Location: Melbourne, Australia

Re: [Solved]: BTNBMP help

Postby hua » Thu Oct 20, 2011 7:15 am

Glad to be of help :). When I peruse fwce.ch, which I assume is the main header for FWPPC, it shows that the command syntax for BTNBMP doesn't support the COLOR keyword. It'd need to be done as just how you had described.
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 6 guests