English
Forum

SetWindowPos on Controls

 

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?
CompileMarkSeparation
declare 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 ?
 
02/02/09  
 




KHR
Hello David,

you mean so:
CompileMarkSeparation
declare 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.
 
02/02/09  
 




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:
CompileMarkSeparation
declare 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  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.074 Views

Untitledvor 0 min.
H.Brill03/12/23
Jörg Sellmeyer06/23/20
RICOSCH11/23/14
Klaus Ernst01/17/11

Themeninformationen

this Topic has 3 subscriber:

KHR (4x)
iF (2x)
Jörg Sellmeyer (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