| |
|
|
Jörg Sellmeyer | If I into example from the Profanhilfe instead of one Buttons one List view einsetze, functions the Repaint not any more. have I as a Error drin or is the still one Profanbug?
deference! only XProfan11!
$H Messages.ph
$H windows.ph
$DEFINE TEST
SubClassProc
If SubClassMessage(%hWnd, ~wm_sizing)
SetStyle %hwnd, 1, GetStyle(%hwnd, 1) | $02000000
Resize
Set("WinProc", 0)
ElseIf SubClassMessage(bt&, ~wm_rbuttondown)
SetText bt&, "Autsch!"
Set("WinProc", 0)
ElseIf SubClassMessage(bt&, ~wm_rbuttonup)
SetText bt&, "Test1"
SetMenuItem 3000
Set("WinProc", 0)
ElseIf SubClassMessage(st&, ~wm_mousemove)
SetMenuItem 3001
Set("WinProc", 0)
ElseIf SubClassMessage(%hwnd, ~wm_close)
SetMenuItem 3999
Set("WinProc", 0)
EndIf
ENDPROC
Proc Resize
SetWindowPos bt& = 0, 50 - Width(%HWnd)/2, Height(%HWnd) - 75
SetWindowPos bt2& = Width(%HWnd)/2, 50 - Width(%HWnd)/2, Height(%HWnd) - 75
SetWindowPos st& = 0, 0 - 0,0; 0
SetWindowPos tb& = 0, 0 - 0,0; 0
ENDPROC
declare bt&, bt2&, st&, tb&
declare end%
cls
st& = create("StatusWindow", %HWnd, "Statuszeile")
tb& = create("Toolbar", %HWnd,0,15,1,1000,1)
bt& = create("Button", %HWnd, "Test1", 0, 50, Width(%HWnd)/2, Height(%HWnd) - 75)
$IFDEF TEST
bt2& = create("GridBox", %HWnd, "Test2",0, Width(%HWnd)/2, 50, Width(%HWnd)/2, Height(%HWnd) - 75)
$ELSE
bt2& = create("Button", %HWnd, "Test2", Width(%HWnd)/2, 50, Width(%HWnd)/2, Height(%HWnd) - 75)
$ENDIF
Var cb& = Create("CheckBox",%hwnd,"Listen random füllen",370,30,160,20)
SubClass %HWnd, 1'SubClassing the Mainwindow on
SubClass bt&, 1'SubClassing the 1. Turn Buttons
SubClass st&, 1'SubClassing the Statuszeile on
whilenot end%
waitinput
If %Key = 4
Resize
SetStyle %hwnd, 1, GetStyle(%hwnd, 1) - $02000000
ElseIf MenuItem(3000)
MessageBox("Rechtsklick on Button 1!","Test",0)
ElseIf MenuItem(3001)
SetText st&,Str $(%message)
MessageBox("Mausbewegung over Statuszeile!","Test",0)
ElseIf MenuItem(3002)
MessageBox("wm_activate","Test",0)
ElseIf MenuItem(3003)
MessageBox("wm_syscommand",st$(&sWParam),0)
ElseIf MenuItem(3999)
Case Messagebox("Wollen tappt im dunkeln the program really leave?","Frage",36) = 6 :
end% = 1
EndIf
endwhile
'Subclassing again switch off
SubClass %HWnd, 0
SubClass bt&, 0
SubClass st&, 0
end
|
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 08/26/08 ▲ |
|
|
|
|
Jörg Sellmeyer | it blockiert in the Context with the SetStyle-row (what becomes there really for a Style staid?). If the auskommentiert becomes (both Lines!), functions But it flackert How hell. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 08/26/08 ▲ |
|
|
|
|
Frank Abbing | $2000000 is same WS_CLIPCHILDREN --> Excludes the area occupied by child windows when drawing occurs within the parent window. Diese style is used when creating the parent window.
can your Program powerful ausbremsen and ought to well only on Parent-Window applied go.
by me functions it in both Make not, egalk whether with or without SetStyle. must go to work. |
|
|
| |
|
|
|
Jörg Sellmeyer | |
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 11/04/11 ▲ |
|
|
|