How To Make oDlg:Say Transparent

How To Make oDlg:Say Transparent

Postby acwoo1 » Wed Feb 01, 2012 4:35 am

Hi


@ 9.95, 1 BUTTON "&F" OF oDlg SIZE 5, 10 ACTION (seecustd(),;
oDlg:Say( 28, 210, space(18),,, oFont, .t.),;
oDlg:Say( 28, 210, custno1,,, oFont, .t.))

How to make it transparent

Regards

ACWoo
acwoo1
 
Posts: 173
Joined: Tue Nov 10, 2009 10:56 am

Re: How To Make oDlg:Say Transparent

Postby Enrico Maria Giordano » Wed Feb 01, 2012 9:18 am

lTransparent is the eighth parameter not the seventh as in your sample.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: How To Make oDlg:Say Transparent

Postby acwoo1 » Wed Feb 01, 2012 12:45 pm

Hi

I added the eight parameter. It is now transparent. But it does not erase the earlier entry if I click the button the second time.

@ 9.95, 1 BUTTON "&F" OF oDlg SIZE 5, 10 ACTION (seecustd(),;
oDlg:Say( 28, 210, space(18),,, oFont, .t., .t.),;
oDlg:Say( 28, 210, custno1,,, oFont, .t., .t.))

How to make it cover the earlier entry and display the latest entry so that they don't overlap.

Regards

ACWoo
acwoo1
 
Posts: 173
Joined: Tue Nov 10, 2009 10:56 am

Re: How To Make oDlg:Say Transparent

Postby Enrico Maria Giordano » Wed Feb 01, 2012 1:29 pm

Can you build a complete sample showing the problem, please?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: How To Make oDlg:Say Transparent

Postby acwoo1 » Wed Feb 01, 2012 2:35 pm

Thanks For Your Help

The sample:

function main()
#include "FiveWin.ch"

local oDlg
local lSave := .f.
local oFont
local oLbx
DEFINE FONT oFont NAME "Arial" SIZE 0, -11 BOLD

if (!file("Comname1.dbf"))
tmpdbf:= {}
AAdd(tmpdbf, {"Company1", "C", 50, 0})
AAdd(tmpdbf, {"Direct1", "C", 40, 0})
dbcreate("Comname1.dbf", tmpdbf)
dbusearea(.T., Nil, "Comname1", Nil, Nil, .F.)
Append Blank
onerror("APPEND")
Replace Company1 With "ABC Co."
Replace Direct1 With ".\data"
Append Blank
onerror("APPEND")
Replace Company1 With "PQR Co."
Replace Direct1 With ".\data2"
EndIf

if (Select("Comname1") == 0)
use Comname1 new
If (neterr())
msginfo("File is locked by another user")
Close Databases
return
endif
else
select Select("Comname1")
endif
goto top


DEFINE DIALOG oDlg FROM 0, 0 TO 26, 79 ;
TITLE "Select Company" ;
GRADIENT { { 1, nRGB( 199, 216, 237 ), nRGB( 237, 242, 248 ) } }

@ -0.361, -0.1 to 13.945, 44.714
@ -0.361, -0.1 to 12.545, 44.714
@ -0.361, -0.1 to 10.945, 44.714


@ 0.2, 0.4 LISTBOX oLbx FIELDS Comname1->Company1,;
Comname1->Direct1, "";
HEADERS "Company Name", "Directory", "";
FIELDSIZES 305, 286, 0 ;
SIZE 307, 50 OF oDlg Font oFont;
ON CLICK testabc(;
oDlg:Say( 180, 2, space(180),,, oFont, .t., .t.),;
oDlg:Say( 180, 2, Company1,,, oFont, .t., .t.))

@ 9.95, 40 BUTTON oBtn6 PROMPT "&Exit" OF oDlg ACTION ( oDlg:End()) SIZE 40, 12

ACTIVATE DIALOG oDlg CENTERED

return nil
******************************************
function testabc()

return nil
******************************************

How to modify so that when I click, they display don't overlap.

Regards

ACWoo
acwoo1
 
Posts: 173
Joined: Tue Nov 10, 2009 10:56 am

Re: How To Make oDlg:Say Transparent

Postby Enrico Maria Giordano » Wed Feb 01, 2012 2:39 pm

Sorry, I need a sample that can be compiled and run here.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: How To Make oDlg:Say Transparent

Postby acwoo1 » Wed Feb 01, 2012 11:14 pm

Thanks For Your Help

I could compile and run here with fwh1111 or later + harbour + bcc582. It is transparent. Just the display overlap.

Regards

ACWoo
acwoo1
 
Posts: 173
Joined: Tue Nov 10, 2009 10:56 am

Re: How To Make oDlg:Say Transparent

Postby Enrico Maria Giordano » Wed Feb 01, 2012 11:36 pm

Please use a SAY control instead of the Say() method. You can then use the SetText() method to change the caption of the SAY control. Or try oDlg:Refresh() before the Say() method.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: How To Make oDlg:Say Transparent

Postby acwoo1 » Thu Feb 02, 2012 2:26 am

Thanks For Your Help

oDlg:Say( x1, y1,...
and
@ x2, y2 say oSay..

is there a simple conversion factor for x1, y1 and x2, y2 ?

Thanks

Regards

ACWoo
acwoo1
 
Posts: 173
Joined: Tue Nov 10, 2009 10:56 am

Re: How To Make oDlg:Say Transparent

Postby Enrico Maria Giordano » Thu Feb 02, 2012 9:14 am

Please use the PIXEL clause of @ SAY command.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

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