I am still building small robots,
and for communicate with these things, I need to write some PC programs.
Some years ago, I left purebasic for QB64, it work very well,
but there is no QB64 forum anymore and there is no more follow up. ;-(
So I'm back to PB, 2023, new year, new start ...

I use PB 5.73 x64 LTS and now downloaded and installed PB 6.00 x64 on win 10 PRO x64 system.
And restarted a new communication program (rs232/rs485) from scratch ...
the reason i left PureBasic two years ago, was the big quantity of bugs in PB i had by developing my programs.
And yes, the frustration is here again, with my small restart program.
Code: Select all
;--------------------------------------------------------------------------------------------------
;- TEST PROGRAM FRAMEGADGET
;--------------------------------------------------------------------------------------------------
EnableExplicit
;--------------------------------------------------------------------------------------------------
Declare CreateWindow()
;--------------------------------------------------------------------------------------------------
CreateWindow()
Repeat
Delay(10)
Until WaitWindowEvent() = #PB_Event_CloseWindow
End
;--------------------------------------------------------------------------------------------------
Procedure CreateWindow()
If OpenWindow(0, 0, 0, 320, 250, "FrameGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
SetWindowColor (0, $004000)
FrameGadget(3, 10, 190, 300, 50, "", #PB_Frame_Flat)
EndIf
EndProcedure
;--------------------------------------------------------------------------------------------------
Is there someone who want to test this and send me some results please.
What am I doing wrong ??
I use FrameGadget() to draw a empty frame on the window green backcolor,
and the frames backcolor is white and not green ??
Tested on PB 5.73 x64 LTS and PB6 x64 on win 10 pro x64
Greetings,
Marco
PS: For all of you, a nice creative programming year 2023.