English
Forum

Question SETWINDOWPOS

 

Stephan
Sonneborn
Hello together,

understand I The Help wrong or has the SETWINDOWPOS-commands one small trouble get:
CompileMarkSeparation
DECLARE Flag% , dx%, dy%
CLS
dx% = WIDTH(%HWND)
dy% = HEIGHT(%HWND)
Flag% =1
Print "Ende mit ALT+F4"

WHILENOT %KEY = 2

    WAITINPUT

    IF Flag%

        SETWINDOWPOS %HWND = (%MAXX-dx%)/2,(%MAXY-dy%)/2 - dx%,dy%; 0
        WINDOWTITLE "Fenster im Vordergrund"
        FLAG% = 0

    ELSE

        SETWINDOWPOS %HWND = (%MAXX-dx%)  ,(%MAXY-dy%)   - dx%,dy%;-1
        WINDOWTITLE "Fenster stets im Vordergrund"
        Flag% =1

    ENDIF

WEND

END

by me is the window always in the Vordergrund UND BLEIBT DA.
ought to it with mode n = 0 not integrally normal react, means at Anklicken one others Fensters automatically into background rutschen?
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
03/21/11  
 




Thomas
Freier
to same trouble stehend got I of others Thomas whom hint, the window first into background To send.
CompileMarkSeparation
DECLARE Flag% , dx%, dy%
CLS
dx% = WIDTH(%HWND)
dy% = HEIGHT(%HWND)
Flag% =1
Print "Ende mit ALT+F4"

WHILENOT %KEY = 2

    WAITINPUT

    IF Flag%

        SETWINDOWPOS %HWND = (%MAXX-dx%)/2,(%MAXY-dy%)/2 - dx%,dy%; 1
        SETWINDOWPOS %HWND = (%MAXX-dx%)/2,(%MAXY-dy%)/2 - dx%,dy%; 0
        WINDOWTITLE "Fenster im Vordergrund"
        FLAG% = 0

    ELSE

        SETWINDOWPOS %HWND = (%MAXX-dx%),(%MAXY-dy%) - dx%,dy%; 1
        SETWINDOWPOS %HWND = (%MAXX-dx%)  ,(%MAXY-dy%)   - dx%,dy%;-1
        WINDOWTITLE "Fenster stets im Vordergrund"
        Flag% =1

    ENDIF

WEND

END

goes certainly too yet differently.
 
Gruß Thomas
Windows XP SP2, XProfan X2
03/21/11  
 




E.T.
can I only confirm: If the window once with Setwindowpos  on "Immer in the Vordergrund" staid watts, bleibt's too there, alike what then with geg. commands setting.

Upps, with Thomas überschnitten...
 
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...
03/21/11  
 




Thomas
Freier
No Mario, if it before the Change "BOTTOM" staid becomes goes the change.
 
Gruß Thomas
Windows XP SP2, XProfan X2
03/21/11  
 




E.T.
already clear, but Setwindowpos  ought to m.E. the window there settle, where it lt. commands heard, and not a "extra Anschubser" need, circa this too To do.
i'd the well time softly-softly bow  name, because the Command makes not always exakt the, what it should...

[OFFTOPIC]has IF time again on the com rumgebaut ?? by me Gibts again Verwürflungen with div. Sonderzeichen...



[/OFFTOPIC]

5 kB
Hochgeladen:03/21/11
Downloadcounter107
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...
03/21/11  
 




Stephan
Sonneborn
Thomas suitor (21.03.11)

to same trouble stehend got I of others Thomas whom hint, the window first into background To send.


Hello Thomas,

thanks for hint! this is at least one Workaround. Perhaps ought to Roland itself whom commands once more standing...
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
03/22/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.284 Views

Untitledvor 0 min.
Matthias Arlt06/22/20
Walter03/20/19
Jörg Sellmeyer05/30/18
W.L.07/13/17
More...

Themeninformationen



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