Strange behavior with button gadget
Posted: Thu Oct 18, 2012 6:00 pm
I have noticed something strange with ButtonGadget : in the code below, both gadgetbuttons have the same width (60). One is 25 height, and the other one have 20 height.
Once they are drawn, they don't seem to have the same width :

If someone can explain, i would be delighted !!
Code: Select all
If OpenWindow(#PB_Any, 0, 0, 200, 150, "Test", #PB_Window_SystemMenu | #PB_Window_WindowCentered)
Button_25 = ButtonGadget(#PB_Any, 50, 50, 60, 25, "...")
Button_20 = ButtonGadget(#PB_Any, 50, 80, 60, 20, "...")
EndIf
Repeat
Event = WaitWindowEvent()
Until event = #PB_Event_CloseWindowIf someone can explain, i would be delighted !!