may I ask for help again please...now i am trying to style a group-box and did this:
Code: Select all | Expand
REDEFINE GROUP oGroup ID 4021 OF oDlg COLOR CLR_MSPURPLE, CLR_ORANGE TRANSPARENT
Again kind regards
Ruth
Code: Select all | Expand
REDEFINE GROUP oGroup ID 4021 OF oDlg COLOR CLR_MSPURPLE, CLR_ORANGE TRANSPARENT
Code: Select all | Expand
#include "FiveWin.ch"
#Define CLR_MSPURPLE nRGB( 0, 120, 215 ) //-> Purpura.
#Define CLR_ORANGE nRGB( 255, 165, 000 ) //-> Orange - Laranja
FUNCTION Main()
local oDlg, oGroup, oFont
// SetDlgGradient( { { 1, RGB( 199, 150, 237 ), RGB( 237, 242, 248 ) } } )
SetDlgGradient( { { 1, RGB( 000, 120, 215 ), RGB( 000, 165, 215 ) } } )
DEFINE FONT oFont NAME "Ms Sans Serif" SIZE 00, -16 BOLD
DEFINE DIALOG oDlg RESOURCE "Test"
oDlg:lHelpIcon := .F.
REDEFINE GROUP oGroup ID 4001 OF oDlg PROMPT "Ruth: This is a test" ;
COLOR CLR_ORANGE TRANSPARENT FONT oFont
ACTIVATE DIALOG oDlg CENTERED
oFont:End()
RETURN NIL
/* // FILE.RC
#include <windows.h>
#ifndef __64__
1 24 "WinXP/WindowsXP.Manifest"
#endif
test DIALOGEX DISCARDABLE 6, 18, 322, 174
STYLE DS_SHELLFONT|WS_POPUP|DS_MODALFRAME|DS_CONTEXTHELP|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
CAPTION "Dialog"
FONT 8, "Tahoma"
{
CONTROL "OK", IDOK, "Button", WS_TABSTOP, 268, 8, 45, 15
CONTROL "Cancel", IDCANCEL, "Button", WS_TABSTOP, 268, 28, 45, 15
CONTROL "Group-box", 4001, "Button", BS_GROUPBOX, 20, 80, 236, 80
}
*/
// FIN / END - kapiabafwh@gmail.com
Code: Select all | Expand
| <nClrBack> | The background color of the group. |
Code: Select all | Expand
COLOR CLR_MSPURPLE, CLR_ORANGE TRANSPARENT