The following code explain everything
Best regards
StarBootics
Code: Select all
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; Project name : PanelGadget() + GetGadgetAttribute(0, #PB_Panel_...)
; File Name : PanelGadget + GetGadgetAttribute.pb
; File version: 1.0.0
; Programming : Bug Demo
; Programmed by : StarBootics
; Date : 05-06-2016
; Last Update : 06-06-2016
; PureBasic code : V5.50 B1 x64
; Platform : Windows, Linux, MacOS X
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; Bug Description
;
; GetGadgetAttribute(0, #PB_Panel_TabHeight) --> Return -1
; GetGadgetAttribute(0, #PB_Panel_ItemWidth) --> Return 1
; GetGadgetAttribute(0, #PB_Panel_ItemHeight) --> Return 1
;
; PureBasic 5.50B1 x64
; Ubuntu Gnome 16.04 x64
;
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
If OpenWindow(0, 0, 0, 322, 220, "PanelGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
PanelGadget (0, 8, 8, 306, 203)
AddGadgetItem (0, -1, "Onglet 1")
Debug GetGadgetAttribute(0, #PB_Panel_TabHeight)
Debug GetGadgetAttribute(0, #PB_Panel_ItemWidth)
Debug GetGadgetAttribute(0, #PB_Panel_ItemHeight)
PanelGadget (1, 5, 5, 290, 166)
AddGadgetItem(1, -1, "Sous-onglet 1")
AddGadgetItem(1, -1, "Sous-onglet 2")
AddGadgetItem(1, -1, "Sous-onglet 3")
CloseGadgetList()
AddGadgetItem (0, -1,"Onglet 2")
ButtonGadget(2, 10, 15, 80, 24,"Bouton 1")
ButtonGadget(3, 95, 15, 80, 24,"Bouton 2")
CloseGadgetList()
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
; <<<<<<<<<<<<<<<<<<<<<<<
; <<<<< END OF FILE <<<<<
; <<<<<<<<<<<<<<<<<<<<<<<