To refresh the window under windows, I tried:
- The callback on the window
- UpdateWindow_
But it is not 100% effective, there is much simpler, just add the following:
SmartWindowRefresh (# WINDOW_PLAYMEDIA, 1)
And the problem is fixed ...
It's perfect now ...
******* see here ******
If OpenWindow(#WINDOW_PLAYMEDIA, 0, 0, 60, 20, "PureBasic VLC", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MaximizeGadget)
ButtonGadget(#GAD_FILE, 0, 0, 0, 0, "F")
ButtonGadget(#GAD_PLAYPAUSE, 0, 0, 0, 0, ">")
ScrollBarGadget(#GAD_TRACKBAR, 0, 0, 0, 0, 0, 1000, 1)
ContainerGadget(#GAD_MEDIACONTAINER, 0, 0, 0, 0)
; Get a drawable window dependant on which os the source was compiled on.
CompilerSelect #PB_Compiler_OS
CompilerCase #PB_OS_Linux
drawable=PBVLC_XDisplayFromWindowID(GadgetID(#GAD_MEDIACONTAINER))
CompilerCase #PB_OS_Windows
drawable=GadgetID(#GAD_MEDIACONTAINER)
SmartWindowRefresh(#WINDOW_PLAYMEDIA, 1) ; *** add this line ***