English
Forum

pressure- / Window - trouble

 

E.T.
subesquent code Have I time from my Program "herausgeschnitten" and so one lauffähiges example prepares. The problem isn't the Print, separate the window to the Print.
drive I then with the mouse over each items, go these with of/ one completely others Font new drawn (see Appendix).

These trouble, here with a Window, affects on my entire Program with all Dialogen etc. from .

The problem exit not, if the printer-dialog aborted becomes. means shining it between StartPrint  and EndPrint  To lying.
CompileMarkSeparation
Proc Dat_Print

    Parameters Seite1%, Seite2%, Seite3%, Seite4%, Seite5%, Vorschau%, DruckDialog%

    IfNot Druckdialog%

        StartPrint "FFWV druckt..."

    ElseIf Druckdialog%

        StartPrint "*FFWV druckt..."

    EndIf

    If %Printing

        If Seite1%

            DrawText 10,10,"Seite 1"

        EndIf

        If Seite2%

            NextPage
            DrawText 10,10,"Seite 2"

        EndIf

        If Seite3%

            NextPage
            DrawText 10,10,"Seite 3"

        EndIf

        If Seite4%

            NextPage
            DrawText 10,10,"Seite 4"

        EndIf

        If Seite5%

            NextPage
            DrawText 10,10,"Seite 5"

        EndIf

        EndPrint

    EndIf

EndProc

Declare Btn1&, Btn2&, Btn3&, Btn4&, Ausw_1&, Ausw_2&, Ausw_3&, Ausw_4&, Ausw_5&, Ausw_6&, Ausw_7&
declare Params%[], HelpWin_Ende%, FrameFont&
Def @GetSysColor(1) !"USER32","GetSysColor" dem Aussehen wegen...
WindowStyle 1024 + $800 + 16
Window (%MaxX-200),(%MaxY-200)-1,1
CLS @GetSysColor(15)
Usefont "MS Sans Serif",14,1,0,0,0
FrameFont& = @Create("Font","MS Sans Serif",14,1,1,0,0)
Setdialogfont FrameFont&
@Create("GroupBox",%HWnd,"Bitte wählen Sie aus, was gedruckt werden soll : ",10,10,370,220)
@Create("GroupBox",%HWnd,"Druck - Einstellungen : ",10,240,370,80)
Setdialogfont 1
Ausw_1& = @Create("CheckBox",%HWnd,"SEITE 1 : Persönliche Daten",20,40,300,20)
Ausw_2& = @Create("CheckBox",%HWnd,"SEITE 2 : Lehrgänge && Auszeichnungen",20,70,300,20)
Ausw_3& = @Create("CheckBox",%HWnd,"SEITE 3 : Beförderungen",20,100,300,20)
Ausw_4& = @Create("CheckBox",%HWnd,"SEITE 4 : Persönliche Ausrüstung",20,130,300,20)
Ausw_5& = @Create("CheckBox",%HWnd,"SEITE 5 : Sonstiges / Text",20,160,300,20)
Ausw_6& = @Create("CheckBox",%HWnd,"Druck - Vorschau verwenden",20,260,300,20)
EnableWindow Ausw_6&,0
Ausw_7& = @Create("CheckBox",%HWnd,"Drucker-Auswahl-Dialog",20,290,300,20)
SetCheck Ausw_1& ,1
SetCheck Ausw_2& ,1
SetCheck Ausw_3& ,1
SetCheck Ausw_4& ,1
SetCheck Ausw_5& ,1
SetCheck Ausw_7& ,1
Btn1& = @Create("Button",%HWnd,"DRUCKEN",40,340,150,25)
Btn2& = @Create("Button",%HWnd,"Abbrechen",210,340,150,25)
Btn3& = @Create("Button",%HWnd,"Alles AN",80,190,100,25)
Btn4& = @Create("Button",%HWnd,"Alles AUS",220,190,100,25)

WhileLoop 200

    SetWindowPos %HWnd=(%MaxX/2-200),(%MaxY/2-200) - &loop*2,&loop*2,-1

EndWhile

Clear HelpWin_Ende%

WhileNot HelpWin_Ende%

    If @GetCheck(Ausw_1&) OR @GetCheck(Ausw_2&) OR @GetCheck(Ausw_3&) OR @GetCheck(Ausw_4&) OR @GetCheck(Ausw_5&)

        EnableWindow Btn1&,1

    ElseIf (@GetCheck(Ausw_1&)=0) AND (@GetCheck(Ausw_2&)=0) AND (@GetCheck(Ausw_3&)=0) AND (@GetCheck(Ausw_4&)=0) AND (@GetCheck(Ausw_5&)=0)

        EnableWindow Btn1&,0

    EndIf

    waitinput Print_Wahl

    If @Clicked(Btn1&)

        Params%[1] = @GetCheck(Ausw_1&)
        Params%[2] = @GetCheck(Ausw_2&)
        Params%[3] = @GetCheck(Ausw_3&)
        Params%[4] = @GetCheck(Ausw_4&)
        Params%[5] = @GetCheck(Ausw_5&)
        Params%[6] = @GetCheck(Ausw_6&)
        Params%[7] = @GetCheck(Ausw_7&)
        Dat_Print Params%[1],Params%[2],Params%[3],Params%[4],Params%[5],Params%[6],Params%[7]

    ElseIf @Clicked(Btn2&)

        HelpWin_Ende% = 1

    ElseIf @Clicked(Btn3&)

        SetCheck Ausw_1& ,1
        SetCheck Ausw_2& ,1
        SetCheck Ausw_3& ,1
        SetCheck Ausw_4& ,1
        SetCheck Ausw_5& ,1

    ElseIf @Clicked(Btn4&)

        SetCheck Ausw_1& ,0
        SetCheck Ausw_2& ,0
        SetCheck Ausw_3& ,0
        SetCheck Ausw_4& ,0
        SetCheck Ausw_5& ,0

    EndIf

EndWhile

DestroyWindow(%HWnd)
../Function-References/XProfan/deleteobject/'>DeleteObject FrameFont&
End

can there who help ??

I see, and the orig. Adobe Acrobat-printer crashes the computer ex. The problem ought to (lt. off. Profan-Forum [...]  are Version 9 fixed his...

11 kB
Hochgeladen:11/20/08
Downloadcounter65
Download
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/20/08  
 



SetFont behebt the trouble, myFnt=create("font"...; setFont hCtrl,myFnt
 
11/20/08  
 




Thomas
Freier
the Sicherste is, all Elementen one "SETFONT nnn,nnn" To miss out on. others try, whom Quell the Übels to find, have I given.
 
Gruß Thomas
Windows XP SP2, XProfan X2
11/20/08  
 




E.T.
you mean jetz but not, for each Objekt whom Font particular settle ??

Edit: upps, überschnitten with Thomas...
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/20/08  
 



This will well the Sicherste his.
CompileMarkSeparation
CLS
var HFNT&=CREATE("MS Sans Serif",10,0,0,0,0)
var MYBUT&=_SFNT(CREATE("Button",%HWND,"oO",10,10,100,100))
WAITINPUT
end

proc _SFNT

    PARAMETERS H&
    SETFONT H&,HFNT&
    RETURN H&

oc


CompileMarkSeparation
cls
long hFnt=create("MS Sans Serif",10,,,,),
myBut=_sFnt(create("Button",hWnd,"oO",10,10,100,100))
waitInput
end

_sFnt(long h){

    setFont h,hFnt
    return h

}

 
11/20/08  
 




RGH
at first glance stops I The row "SetDialogFont 1" for Übeltäter. always "SetDialogfont font&" use, means a with Create begot Font indicate. with "SetDialogFont 0" takes one again whom (sooner ugly) Systemfont for Dialogelemente.

in the Context: One UseFont affects on any subesquent expenses with DrawText from and ought to too only for uses go.
"SetDialofont 1" is a historisches Relikt and ought to fundamentally not any more akin go.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
11/20/08  
 




Thomas
Freier
and same any Tooltips with einschließen, if Rolands hint not helps.
 
Gruß Thomas
Windows XP SP2, XProfan X2
11/20/08  
 




E.T.
means in the my example hats helped .
have How follows changed:

Usefont "MS Sans Serif",14,1,0,0,0 >>>Std_Font& = @Create("Font","MS Sans Serif",14,1,0,0,0)

Setdialogfont 1 >>> Setdialogfont Std_Font&

will be the now time in that "richtige" Prog install, time look...
(is of course a while last, but naja...)

thanks, Roland and all the rest of them !! 

me self:

I see, and the orig. Adobe Acrobat-printer crashes the computer ex. The problem ought to (lt. off. Profan-Forum [...]  ) are Version 9 fixed his...


Gibts moreover yet what new ??
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/20/08  
 




E.T.
SUPER !!!
with the Solution of Roland works (with still vertretbarem hoisted)!!!

David, where can I Roland "paar Sterne" sponsoren ??
or is the abgeschafft ??
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/20/08  
 



Per the "Menü"-button which itself on each Posting under anfügt.
 
11/20/08  
 




E.T.
@IF: thanks, found

...and the Topic pdf-printer is with Rolands Solution (hopefully) too clarified!!
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/20/08  
 




E.T.
me self
...and the Topic pdf-printer is with Rolands Solution (hopefully) too clarified!!


Schade, well still not .
have now my Program moreover expanded. there now More To print is and therefore the ereichen of EndPrint  longer lasts, crashes WIN again complete ex ex.
On all others Printers funktionierts...
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/22/08  
 




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

Untitledvor 0 min.
Manfred Barei07/26/15
Georg Teles10/14/14
Peter Max Müller12/11/11
Julian Schmidt09/21/11

Themeninformationen

this Topic has 4 subscriber:

E.T. (7x)
Thomas Freier (3x)
iF (3x)
RGH (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