PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 24 → Window border color
Window border color
Iniciado por Antonino, ago., 21 2019 9:27 AM - 4 respostas
Publicado em agosto, 21 2019 - 9:27 AM
Hi Gents,

is there a way to change the default window border color for a specific window in Windev 24? I can't see such an option in the description of the window and can't see any tip in the help to do this programmatically.

Any suggestion?


Thank you all for your time and care.

BR.
Membro registado
6 mensagems
Publicado em agosto, 22 2019 - 11:41 AM
Hi,

I just discovered the tool any windev user has : wdapi.exe
it contains a lot of api info.
I am checking it out..
Publicado em agosto, 22 2019 - 4:29 PM
Hi Gents,

I have been trying to use this, it should change the background color of a window, but it does not work. Any suggestion?

CONSTANT
COLOR_WINDOW = 5
END


// Arrays.
garrElements is array of 1 int = [COLOR_WINDOW]
garrColors is array of 1 int = [RGB(0x80, 0x00, 0x80)]

// Booleans.
gbBOOL is boolean


// Set background color.
gbBOOL = API("USER32", "SetSysColors", ArrayCount(garrElements), garrElements[1], garrColors[1])



BR
Publicado em agosto, 23 2019 - 3:32 PM
Hi, changing the background color of a window is easy! Example:

MyWindow..BackGroundColor = iPastelRed
Publicado em agosto, 26 2019 - 9:35 AM
Guenter Predl wrote:
Hi, changing the background color of a window is easy! Example:

MyWindow..BackGroundColor = iPastelRed



Hi Guenter,

this changes the background color of the window but not the border color or the color of the title bar which is what I am trying to achieve.