oder so
Code: Alles auswählen
Procedure StaticSep(id,x,y,cx,cy,parent,flag)
Protected style.l
If flag = #true
style = #SS_ETCHEDHORZ|#WS_CHILD|#WS_VISIBLE
Else
style = #SS_ETCHEDVERT|#WS_CHILD|#WS_VISIBLE
EndIf
CreateWindowEx_(0,"static","",style,x,y,cx,cy,parent,id,0,0)
EndProcedure
hwnd = OpenWindow(0,0,0,200,200,1|#WS_SYSMENU,"")
CreateGadgetList(hwnd)
StaticSep(2,64,14,80,20 ,hwnd)
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
V4
Code: Alles auswählen
Procedure StaticSep(id,x,y,cx,cy,parent,flag=0)
Protected style.l
If flag = #True
style = #SS_ETCHEDHORZ|#WS_CHILD|#WS_VISIBLE
Else
style = #SS_ETCHEDVERT|#WS_CHILD|#WS_VISIBLE
EndIf
CreateWindowEx_(0,"static","",style,x,y,cx,cy,parent,id,0,0)
EndProcedure
hwnd = OpenWindow(0,0,0,200,200,"")
CreateGadgetList(hwnd)
StaticSep(2,64,14,80,20 ,hwnd,1)
StaticSep(3,64,40,20,80 ,hwnd)
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow