English
Forum

ChooseColor

 
- Page 1 -



ByteAttack
SO! After day/Nächtelanger Infinity-Hau-me-In-whom-head time ne Question XProfan under windows

gives it a SetStyle around the Farbauswahldialog "Ausgeklapp" view?

by me launch it (Win7) always so:



would have been But rather so:



beautiful weekend
 
XProfan X3
Website:  [...] 
Facebook:  [...] 
11/07/15  
 



« this Posting watts as Solution marked. »


Michael
W.
Yes, habs found (the Flag FullOpen) and three Nutzerfarben with indicated...
CompileMarkSeparation
'-Begin----------------------------------------------------------- ------
'-ExternalFunctions---------------------------------------------------
Def @ChooseColor1(1) !"COMDLG32.DLL", "ChooseColorA"
'-StructuresDefinition------------------------------------------------
Declare CHOOSECOLOR#
Struct TCHOOSECOLOR = lStructSize&, hwndOwner&, hInstance&, \
rgbResult&, lpCustColors&, Flags&, lCustData&, lpfnHook&, \
lpTemplateName&
Dim CHOOSECOLOR#, TCHOOSECOLOR
'-ConstantsDefinition-------------------------------------------------
Def &CC_ANYCOLOR $100
Def &CC_ENABLEHOOK $10
Def &CC_ENABLETEMPLATE $20
Def &CC_ENABLETEMPLATEHANDLE $40
Def &CC_FULLOPEN $2
Def &CC_PREVENTFULLOPEN $4
Def &CC_RGBINIT $1
Def &CC_SHOWHELP $8
Def &CC_SOLIDCOLOR $80
'-VariablesDefinition-------------------------------------------------
Declare UDC&[15]
Declare Res$
'-Main----------------------------------------------------------------
'-Define UserColors-------------------------------------------------
UDC&[0] = @RGB(255, 127, 255)
UDC&[1] = @RGB(255, 127, 127)
UDC&[2] = @RGB(127, 127, 127)
'-------------------------------------------------------------------

With CHOOSECOLOR#

    .lStructSize& = @SizeOf(CHOOSECOLOR#)
    .hwndOwner& = 0
    .hInstance& = 0
    .rgbResult& = @RGB(0, 255, 0)
    .lpCustColors& = @Addr(UDC&[0])
    .Flags& = &CC_FULLOPEN | &CC_ANYCOLOR | &CC_RGBINIT

EndWith

If @ChooseColor1(CHOOSECOLOR#)

    Res$ = @Str $(CHOOSECOLOR#.rgbResult&) + "\n"
    Res$ = Res$ + "Rotanteil: " + \
    @Str $(@GetRValue(CHOOSECOLOR#.rgbResult&)) + "\n"
    Res$ = Res$ + "Grünanteil: " + \
    @Str $(@GetGValue(CHOOSECOLOR#.rgbResult&)) + "\n"
    Res$ = Res$ + "Blauanteil: " + \
    @Str $(@GetBValue(CHOOSECOLOR#.rgbResult&))
    @MessageBox(Res$, "Gewählte Farbe", 64)

EndIf

Dispose CHOOSECOLOR#
'-End-------------------------------------------------------------------
End
 
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
11/07/15  
 



Yes I fürchte -

müsstest times the API-Variante find - there gives one well by
structure z.B. too The Standardfarben on.
 
11/07/15  
 




Michael
W.
Yes, habs found (the Flag FullOpen) and three Nutzerfarben with indicated...
CompileMarkSeparation
'-Begin----------------------------------------------------------- ------
'-ExternalFunctions---------------------------------------------------
Def @ChooseColor1(1) !"COMDLG32.DLL", "ChooseColorA"
'-StructuresDefinition------------------------------------------------
Declare CHOOSECOLOR#
Struct TCHOOSECOLOR = lStructSize&, hwndOwner&, hInstance&, \
rgbResult&, lpCustColors&, Flags&, lCustData&, lpfnHook&, \
lpTemplateName&
Dim CHOOSECOLOR#, TCHOOSECOLOR
'-ConstantsDefinition-------------------------------------------------
Def &CC_ANYCOLOR $100
Def &CC_ENABLEHOOK $10
Def &CC_ENABLETEMPLATE $20
Def &CC_ENABLETEMPLATEHANDLE $40
Def &CC_FULLOPEN $2
Def &CC_PREVENTFULLOPEN $4
Def &CC_RGBINIT $1
Def &CC_SHOWHELP $8
Def &CC_SOLIDCOLOR $80
'-VariablesDefinition-------------------------------------------------
Declare UDC&[15]
Declare Res$
'-Main----------------------------------------------------------------
'-Define UserColors-------------------------------------------------
UDC&[0] = @RGB(255, 127, 255)
UDC&[1] = @RGB(255, 127, 127)
UDC&[2] = @RGB(127, 127, 127)
'-------------------------------------------------------------------

With CHOOSECOLOR#

    .lStructSize& = @SizeOf(CHOOSECOLOR#)
    .hwndOwner& = 0
    .hInstance& = 0
    .rgbResult& = @RGB(0, 255, 0)
    .lpCustColors& = @Addr(UDC&[0])
    .Flags& = &CC_FULLOPEN | &CC_ANYCOLOR | &CC_RGBINIT

EndWith

If @ChooseColor1(CHOOSECOLOR#)

    Res$ = @Str $(CHOOSECOLOR#.rgbResult&) + "\n"
    Res$ = Res$ + "Rotanteil: " + \
    @Str $(@GetRValue(CHOOSECOLOR#.rgbResult&)) + "\n"
    Res$ = Res$ + "Grünanteil: " + \
    @Str $(@GetGValue(CHOOSECOLOR#.rgbResult&)) + "\n"
    Res$ = Res$ + "Blauanteil: " + \
    @Str $(@GetBValue(CHOOSECOLOR#.rgbResult&))
    @MessageBox(Res$, "Gewählte Farbe", 64)

EndIf

Dispose CHOOSECOLOR#
'-End-------------------------------------------------------------------
End
 
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
11/07/15  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.619 Views

Untitledvor 0 min.
Axel Berse01/04/23
RudiB.10/03/22
RICOSCH01/03/17
Matthias Arlt02/18/16
More...

Themeninformationen

this Topic has 3 subscriber:

Michael W. (1x)
iF (1x)
ByteAttack (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie