English
Source / code snippets

inquire Show Farbauswahldialog - 2

 

CompileMarkSeparation
Source wurde am 15.07.2007 aus der MMJ-Quellcodesammlung (Dietmar Horn) in die Babyklappe auf XProfan.Com abgelegt:
Farbauswahldialog anzeigen und abfragen (2)
-Begin----------------------------------------------------------- ------
-ExternalFunctions---------------------------------------------------
Def @Choosecolor(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 @Choosecolor(Choosecolor#)

    Res$ = @Str$(Choosecolor#.Rgbresult&) +
    Res$ = Res$ + Rotanteil:  +
    @Str$(@Getrvalue(Choosecolor#.Rgbresult&)) +
    Res$ = Res$ + Grünanteil:  +
    @Str$(@Getgvalue(Choosecolor#.Rgbresult&)) +
    Res$ = Res$ + Blauanteil:  +
    @Str$(@Getbvalue(Choosecolor#.Rgbresult&))
    @Messagebox(Res$, Gewählte Farbe, 64)

Endif

Dispose Choosecolor#
-End-------------------------------------------------------------------
'./../../funzione-riferimenti/XProfan/end/'>End
 
07/15/07  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.146 Views

Untitledvor 0 min.
ByteAttack11/07/15
GDL08/24/14
bloniTec05/03/13
iF12/28/12
More...

Themeninformationen

this Topic has 1 subscriber:

unbekannt (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