[4.0 final] Library viewer broken with SetWindowCallback

Post bugreports for the Windows version here
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

[4.0 final] Library viewer broken with SetWindowCallback

Post by Trond »

Code: Select all

Procedure Callback(WindowID, Message, wParam, lParam)
  Protected Result = #PB_ProcessPureBasicEvents
  
  ProcedureReturn Result
EndProcedure


OpenWindow(0, 0, 0, 640, 480, "", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
CreateGadgetList(WindowID(0))
SetWindowCallback(@Callback())
ImageHeight(0) ; Open the library viewer when the program stops here

Repeat
  Select WaitWindowEvent()
    Case #PB_Event_CloseWindow
      Break
  EndSelect
ForEver
Edit: Also, when resizing the library viewer window, the horizontal splitter should keep the size of the lower part fixed and not the upper part.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

More Library Viewer bugs (in 4.20 beta 4):

Run this:

Code: Select all

OpenWindow(0, 0, 0, 512, 384, "", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
CreateGadgetList(WindowID(0))
TextGadget(0, 40, 40, 40, 40, "")

Repeat
  Select WaitWindowEvent()
    Case #PB_Event_CloseWindow
      Break
  EndSelect
ForEver
Open and close the library viewer, then open it again. Now the window doesn't show in the list, and "Update" doesn't work. Clicking in the combobox solves it.

Select "Gadget" in the combobox and select the textgadget. The detauled information shows a "GtkWidget" property, even on Windows.

Also, the text is written in "Courier", which means it's not antialiased even when that is selected in the control panel. Better use "Courier New", as it's also more accessible since it can adjust to DPI changes better as well.
Post Reply