English
Source / code snippets

Show Fonts

 

CompileMarkSeparation
Source wurde am 15.07.2007 aus der MMJ-Quellcodesammlung (Dietmar Horn) in die Babyklappe auf XProfan.Com abgelegt:
Schriftarten anzeigen

proc dialog

    declare _ende%
    declare _dlg%
    declare FONT%
    declare Größe%
    declare fett%
    declare kursiv%
    declare unterstrichen%
    declare Ok%
    declare Ende%
    declare text%
    declare f%, u%, k%, font$, g%

    proc zeigeschrift

        let font$ = @GetText$(font%)
        let g% = @Val(@GetText$(größe%))
        let f% = @GetCheck(fett%)
        let k% = @GetCheck(kursiv%)
        let u% = @GetCheck(unterstrichen%)
        UseFont font$,g%,0,f%,k%,u%
        @sendmessage(text%,$30,%font,1)   wm_SetFont

    endproc

    let _dlg%=@create(dialog,%Hwnd,Schrift auswählen:,152,128,408,208)
    @create(text,_dlg%,Schrift,8,8,96,16)
    @create(text,_dlg%,Größe,144,8,48,16)
    @create(text,_dlg%,Stil,200,8,56,16)
    let FONT%=@create(choicebox,_dlg%,,8,32,128,112)
    let Größe%=@create(choicebox,_dlg%,,144,32,40,136)
    let fett%=@create(checkbox,_dlg%,fett,200,32,112,24)
    let kursiv%=@create(checkbox,_dlg%,kursiv,200,56,112,24)
    let unterstrichen%=@create(checkbox,_dlg%,unterstrichen,200,80,112,24)
    let Ok%=@create(button,_dlg%,&Ok,328,136,64,40)
    let Ende%=@create(button,_dlg%,&Abbruch,328,8,64,40)
    let text%=@create(text,_dlg%,123 ABC abc ÄÖÜ ß,8,112,304,64)
    clearlist
    addfonts
    @movelisttochoice(Font%)
    @sendmessage(Font%,$14E,3,0)
    @addchoice(Größe%,08)
    @addchoice(Größe%,10)
    @addchoice(Größe%,12)
    @addchoice(Größe%,14)
    @addchoice(Größe%,16)
    @addchoice(Größe%,20)
    @addchoice(Größe%,24)
    @addchoice(Größe%,32)
    @sendmessage(größe%,$14E,2,0)
    let _ende% = 0

    whilenot _ende%

        waitinput

        if %key = 2

            let _ende% = 1

        elseif @getfocus(Ok%)

            zeigeschrift

        elseif @getfocus(Ende%)

            zeigeschrift
            let _ende% = 1

        elseif @getfocus(text%)

            zeigeschrift

        endif

        zeigeschrift

    wend

    @destroywindow(_dlg%)

endproc

windowtitle Dialog-Test
cls
dialog
waitinput
end
 
07/16/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

3.656 Views

Untitledvor 0 min.

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