Paleta de Colores de Windows

Paleta de Colores de Windows

Postby Willi Quintana » Sat Feb 11, 2023 11:33 pm

HOla Amigos.
Como de puede acceder a la paleta de colores de Windows y que nos devuelta los códigos RGB?
https://ibb.co/GnCgH2C
User avatar
Willi Quintana
 
Posts: 1019
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú

Re: Paleta de Colores de Windows

Postby leandro » Sun Feb 12, 2023 12:23 am

Creo que es lo que necesitas
Code: Select all  Expand view
#include "FiveWin.ch"
function Main()
    ChooseColor()
return nil
 
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1676
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

Re: Paleta de Colores de Windows

Postby Willi Quintana » Sun Feb 12, 2023 2:17 am

Gracias,,,, funciono perfecto-----
Code: Select all  Expand view

......
cColor := ""
 nColor := ChooseColor(nColor)
 If nColor > 0
    cColor := "n" + cClrToCode( nColor )
EndIf

?  cColor       ---> RGB ( xxx,xxx,xxx )
 
User avatar
Willi Quintana
 
Posts: 1019
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 34 guests