| |
|
|
 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
|
|
|
| |
|
|
|
 | Mach time from -1 ne 0 or. entferne this optionalen Parameter the lt. Help for Window counts. |
|
|
| |
|
|
|
 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. |
|
|
| |
|
|