Latest win32maxgui beta

BlitzMax Forums/BlitzMax GUI Programming/Latest win32maxgui beta

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Bug Report: SetMinWindowSize()

In some cases it isn't working correctly, i.e. allowing the user to shrink the window more than he should be (h and w wise).


SuperStrict

Local style:Int = WINDOW_TITLEBAR | WINDOW_RESIZABLE | WINDOW_CLIENTCOORDS | WINDOW_MENU | WINDOW_HIDDEN'|WINDOW_STATUS
Global MyWindow:TGadget
MyWindow:TGadget=CreateWindow(" Test", (GadgetWidth (Desktop ())-792)/2,(GadgetHeight(Desktop ())-400)/2,792,400,Null,style)
SetMinWindowSize( MyWindow,792,400)
ShowGadget(MyWindow)

While True
WaitEvent
Print ClientHeight(Mywindow)+" y: "+ ClientWidth(Mywindow)
' Print CurrentEvent.ToString()
Select EventID()
Case EVENT_WINDOWCLOSE
End
End Select
Wend



^^This code works fine, but for reasons I haven't identified
yet, I need to add "SetMinWindowSize(MyWindow,792+8,400+46)"
in order to make my main window (792,400) behave correctly. With the old module it works fine though?!?

Any ideas?