English
Source / code snippets

inquire Show Farbauswahldialog

 

Source watts on the 15.07.2007 from the MMJ-Quellcodesammlung (Dietmar horn) in The Babyklappe on XProfan.Com stored:
Farbauswahldialog Show and inquire
Def Choosecolor(1) !COMDLG32,ChooseColorA
Declare Choosecolor#,Customcolors#,Colors&[16],Button&,Ok&

Proc Colordialog

    Parameters Color&,Options&,Inifile$,Result&,name$
    Declare I%
    Dim Choosecolor#,36
    Dim Customcolors#,64
    Settruecolor 1

    While Lt(I%,16)

        Long Customcolors#,Mul(I%,4)= Colors&[I%]
        Inc I%

    Wend

    Long Choosecolor#,0=36
    Long Choosecolor#,4=Getactivewindow()
    Long Choosecolor#,8=0
    Long Choosecolor#,12=Rgb(192,192,192)
    Long Choosecolor#,16=Customcolors#
    Long Choosecolor#,20=3CC_RGBINIT(1) + CC_FULLOPEN(2)
    Long Choosecolor#,24=0
    Long Choosecolor#,28=0
    Let name$=Fensterfarbe dial!
    Long Choosecolor#,32=0
    Let Ok&=@Choosecolor(Choosecolor#)

    If Ok&<>0

        Let I%=0

        While Lt(I%,16)

            Let Colors&[I%]=Long(Customcolors#,Mul(I%,4))
            Inc I%

        Wend

    Endif

    Let Result&=@Long(Choosecolor#,12)
    Dispose Choosecolor#
    Dispose Customcolors#
    Return Result&

Endproc

Windowstyle 31
Windowtitle colour select
Window 0,0-640,440
Settruecolor 1
Let Button&=@Createbutton(%Hwnd,colour dial,20,300,200,30)

While 0=0

    Waitinput

    If @Getfocus(Button&)

        Colordialog
        Case Ok&<>0 : Cls @&(0)

    Endif

Wend

 
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.212 Views

Untitledvor 0 min.
ByteAttack11/07/15
GDL08/24/14
liveFamilie01/24/12
Joachim Bethke10/20/11

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