alert custumization

alert custumization

Postby xhbcoder » Mon Oct 09, 2006 11:55 pm

Hi,

Client request to customize the color of the alert dialog. I am trying to edit the alert.prg with the following code.

setTextColor(hDC,CLR_YELLOW) but the color doesn't change.

Is this the correct approach ?

How can I get the hDC of a oDlg?

TIA,

:roll: XHBCoder

STATIC FUNCTION DlgInit(oDlg, oFont, cMsg, aOptions, cTitle, nDefault, xIcon)

Local oGet, oBtn, oIcon
Local cSay, cLine
Local nMaxWidth, nMaxHeight, nWidth, nHeight, nLines, nFor
Local nBtnWidth, nBtnOffset, nBtnHeight, nBtnLength
Local lHScroll, lVScroll
// jdd
local hDC
hDC := oDlg:GetDC()
setTextColor(hDC, CLR_YELLOW)
//
xhbcoder
 
Posts: 100
Joined: Wed Oct 04, 2006 4:50 pm
Location: USA

Postby Antonio Linares » Tue Oct 10, 2006 9:08 am

You may modify source\function\alert.prg this way:

DEFINE DIALOG oDlg TITLE cTitle FONT oFont COLOR "N/GR*"
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby xhbcoder » Fri Oct 13, 2006 10:22 pm

FW,

Thanks. Works fine.
xhbcoder
 
Posts: 100
Joined: Wed Oct 04, 2006 4:50 pm
Location: USA


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 7 guests