English
Forum

Setwindowpos becomes carryed out, shift lever/element but not

 

Julian
Schmidt
Presumably only one Flüchtigkeit-Error, but Why becomes the Edit in the example not moved?
Setwindowpos becomes loudly Trace carryed out! Why liegts?
Windowstyle 26
Window 100,200-180,105
User Messages 16
var tabctrl&=Create("TabCtrl",%hwnd,"Tab1",0,0,width(%hwnd),height(%hwnd))
InsertTab(tabctrl&, 1, "Tab2")
var edit&=Create("Edit",%hwnd,"",25,34,width(%hwnd)-50,30)

while 1

    waitinput
    case %umessage=16 : AppExit
    case TabChanged(tabctrl&)  : TabChange()

Endwhile

Proc TabChange

    EnableWindow tabctrl&,0
    Repaint
    locate 1,15
    print GetActiveTab(tabctrl&)

    if GetActiveTab(tabctrl&)=0

        Setwindowpos edit&=5,34 - (width(%hwnd)-50),30;-1
        locate 1,17
        print "=0"

    else

        Setwindowpos edit&=(width(%hwnd)-55),34 - (width(%hwnd)-50),30; -1
        locate 1,17
        print "<>0"

    Endif

    EnableWindow tabctrl&,1
    Return 1

ENDPROC

Proc AppExit

    end

ENDPROC

 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
11/04/11  
 



Mach time from -1 ne 0 or. entferne this optionalen Parameter the lt. Help for Window counts.
 
11/04/11  
 




Julian
Schmidt
OK without -1 functions it of course, but a important question remaining consist. Why goes not with -1? ought to still eig. alike his even if the Parameter not the element apply go can, separate only on one Window.
Perhaps can Roland the Change, that with Elementen The no Window are generally the last Parameter same 0 adopted becomes, so self the upper View source functions.
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
11/04/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

2.509 Views

Untitledvor 0 min.
Walter03/20/19
Jörg Sellmeyer05/30/18
Matthias Arlt02/18/16
gerd09/24/13
More...

Themeninformationen

this Topic has 2 subscriber:

Julian Schmidt (2x)
iF (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