Is there a way I can have the look of the editorGadget as it looks without xp skins while retaining the xp skinned calendar appearance?
cheers
Code: Select all
;{ Windows
Enumeration
#Window_0
EndEnumeration
;}
Global gadget_0_editor
;{ Gadgets
Enumeration
#Calendar_0
#Panel_1
EndEnumeration
;}
Define.l Event, EventWindow, EventGadget, EventType, EventMenu
;}
Procedure OpenWindow_Window_0()
If OpenWindow(#Window_0, 450, 200, 400, 453, "Window_0", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar)
CalendarGadget(#Calendar_0, 35, 15, 230, 185)
PanelGadget(#Panel_1, 35, 220, 330, 225)
; Tab #1
AddGadgetItem(#Panel_1, -1, "Tab #1")
gadget_0_editor= EditorGadget(#PB_Any, 10, 10, 295, 175)
style = GetWindowLong_(GadgetID(Gadget_0_Editor), #GWL_EXSTYLE)
newstyle = style &(~#WS_EX_CLIENTEDGE)
SetWindowLong_(GadgetID(Gadget_0_Editor), #GWL_EXSTYLE, newstyle)
SetWindowPos_(GadgetID(Gadget_0_Editor), 0, 0, 0, 0, 0, #SWP_SHOWWINDOW | #SWP_NOSIZE | #SWP_NOMOVE | #SWP_FRAMECHANGED) ; required for this to work on my Win98
EndIf
EndProcedure
OpenWindow_Window_0()
;{- Event loop
Repeat
Event = WaitWindowEvent()
Select Event
; ///////////////////
Case #PB_Event_Gadget
EventGadget = EventGadget()
EventType = EventType()
If EventGadget = #Calendar_0
ElseIf EventGadget = #Panel_1
EndIf
; ////////////////////////
Case #PB_Event_CloseWindow
EventWindow = EventWindow()
If EventWindow = #Window_0
CloseWindow(#Window_0)
Break
EndIf
EndSelect
ForEver
;
;}