| |
|
|
KHR | Hello together
would like in a Program during the Laufs The Fenstergröße change.
the ought to with SetWindowPos() klappen
for the Window GEHTS, with the move the Buttons klappst not.
what mach I wrong? CompileMarkSeparationdeclare BT_GrafikZeigen&, BT_Abbruch&
declare BT_GrafikFertig&, BT_GrafikDrucken&
window 10,10 - (%MaxX-20),480
BT_GrafikZeigen& = Create(Button,%hwnd,Graphik zeigen, 10,(@Height(%HWND)-35),160,25)
BT_Abbruch& = Create(Button,%hwnd,Auswertung beenden, 180,(@Height(%HWND)-35),180,25)
BT_GrafikFertig& = Create(Button,%hwnd,Ende, 370,(@Height(%HWND)-35),180,25)
BT_GrafikDrucken& = Create(Button,%hwnd,Drucken, 560,(@Height(%HWND)-35),180,25)
waitkey
SetWindowPos %hwnd = 10,10 - (%MaxX-20),(%MaxY-80)
@SetFocus(%hwnd)
cls
SetWindowPos BT_GrafikZeigen& = 10,(@Height(%HWND))
SetWindowPos BT_Abbruch& = 180,(@Height(%HWND))
SetWindowPos BT_GrafikFertig& = 370,(@Height(%HWND))
SetWindowPos BT_GrafikDrucken& = 560,(@Height(%HWND))
@SetFocus(BT_GrafikZeigen& )
@SetFocus(BT_Abbruch&)
@SetFocus(BT_GrafikFertig&)
@SetFocus(BT_GrafikDrucken&)
@SetFocus(%hwnd)
waitkey
end
|
|
|
| Gruß Karl-Heinz WIN XP home/Pro / XPROFAN 11 / P2CPP ATMEL + BASCOM Fan | 02/02/09 ▲ |
|
|
|
|
| And if You The normal 6 Parameter SetWindowPos-Variante uses ala setWindowPos meinButton=10,10 - 200,300;0 ? |
|
|
| |
|
|
|
KHR | Hello David,
you mean so: CompileMarkSeparationdeclare BT_GrafikZeigen&, BT_Abbruch&
declare BT_GrafikFertig&, BT_GrafikDrucken&
window 10,10 - (%MaxX-20),480
BT_GrafikZeigen& = Create(Button,%hwnd,Graphik zeigen, 10,(@Height(%HWND)-35),160,25)
BT_Abbruch& = Create(Button,%hwnd,Auswertung beenden, 180,(@Height(%HWND)-35),180,25)
BT_GrafikFertig& = Create(Button,%hwnd,Ende, 370,(@Height(%HWND)-35),180,25)
BT_GrafikDrucken& = Create(Button,%hwnd,Drucken, 560,(@Height(%HWND)-35),180,25)
waitkey
SetWindowPos %hwnd = 10,10 - (%MaxX-20),(%MaxY-80)
SetWindowPos BT_GrafikZeigen& = 10,(@Height(%HWND)),160,25;0
SetWindowPos BT_Abbruch& = 180,(@Height(%HWND)),180,25;0
SetWindowPos BT_GrafikFertig& = 370,(@Height(%HWND)),180,25;0
SetWindowPos BT_GrafikDrucken& = 560,(@Height(%HWND)),180,25;0
Gruß Karl-Heinz WIN XP home/Pro / XPROFAN 11 / P2CPP ATMEL + BASCOM Fan | 02/02/09 ▲ | |
|
|
|
|
| the dritte Parametertrennzeichen is one less, no comma. |
|
|
| |
|
|
|
KHR | Hello David,
ääääH - Mist !!
at backward weg stumbled.
but too with less instead of comma Better get going not rather. |
|
|
| Gruß Karl-Heinz WIN XP home/Pro / XPROFAN 11 / P2CPP ATMEL + BASCOM Fan | 02/02/09 ▲ |
|
|
|
|
Jörg Sellmeyer | simply only Height(%hwnd) goes naturally neither. Bischen Space ought to one whom Buttons already grant: CompileMarkSeparationdeclare BT_GrafikZeigen&, BT_Abbruch&
declare BT_GrafikFertig&, BT_GrafikDrucken&
window 10,10 - (%MaxX-20),480
BT_GrafikZeigen& = Create(Button,%hwnd,Graphik zeigen, 10,(@Height(%HWND)-35),160,25)
BT_Abbruch& = Create(Button,%hwnd,Auswertung beenden, 180,(@Height(%HWND)-35),180,25)
BT_GrafikFertig& = Create(Button,%hwnd,Ende, 370,(@Height(%HWND)-35),180,25)
BT_GrafikDrucken& = Create(Button,%hwnd,Drucken, 560,(@Height(%HWND)-35),180,25)
waitkey
SetWindowPos %hwnd = 10,10 - (%MaxX-20),(%MaxY-80)
@SetFocus(%hwnd)
cls
SetWindowPos BT_GrafikZeigen& = 10,(@Height(%HWND)-30)
SetWindowPos BT_Abbruch& = 180,(@Height(%HWND)-30)
SetWindowPos BT_GrafikFertig& = 370,(@Height(%HWND)-30)
SetWindowPos BT_GrafikDrucken& = 560,(@Height(%HWND)-30)
@SetFocus(BT_GrafikZeigen& )
@SetFocus(BT_Abbruch&)
@SetFocus(BT_GrafikFertig&)
@SetFocus(BT_GrafikDrucken&)
@SetFocus(%hwnd)
waitkey
end
|
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 02/02/09 ▲ |
|
|
|
|
KHR | thanks Jörg,
habs now in the meantime too self rausgefunden. somehow I had the -35 of @Height(%HWND)-35 with my try rausgewurschtelt.
sometimes steh I hold on the pipeline. |
|
|
| Gruß Karl-Heinz WIN XP home/Pro / XPROFAN 11 / P2CPP ATMEL + BASCOM Fan | 02/02/09 ▲ |
|
|
|