I also added an option with a checkbox to the ProcedureBrowser in the settings. But the checkbox is cut off at the bottom. As a test I added a fifth checkbox, which is not shown.
The container #GADGET_Preferences_ToolSettingsContainer that I think is used has a height of 277 pixels, so there is enough space.
I don't understand where the error is. The dialog is created from an XML file, but I don't see an error there.
Here is a screenshot of Windows 7:
https://www.dreisiebner.at/temp/PB_Mult ... ndows7.png
Here is the code of ProcedureBrowser.pb:
Code: Select all
Procedure ProcedureBrowser_PreferenceCreate(*Entry.ToolsPanelEntry)
Top = 10
CheckBoxGadget(#GADGET_Preferences_ProcedureBrowserSort, 10, 10, 300, 25, Language("Preferences","ProcedureSort"))
CheckBoxGadget(#GADGET_Preferences_ProcedureBrowserGroup, 10, 40, 300, 25, Language("Preferences","ProcedureGroup"))
CheckBoxGadget(#GADGET_Preferences_ProcedureProtoType, 10, 70, 300, 25, Language("Preferences", "ProcedurePrototype"))
CheckBoxGadget(#GADGET_Preferences_ProcedureMulticolor, 10, 100, 300, 25, Language("Preferences", "ProcedureMulticolor")) ; PeDre
CheckBoxGadget(#GADGET_Preferences_ProcedureMulticolor2, 10, 130, 300, 25, Language("Preferences", "ProcedureMulticolor")) ; PeDre
GetRequiredSize(#GADGET_Preferences_ProcedureBrowserSort, @Width, @Height)
Width = Max(Width, GetRequiredWidth(#GADGET_Preferences_ProcedureBrowserGroup))
Width = Max(Width, GetRequiredWidth(#GADGET_Preferences_ProcedureProtoType))
Width = Max(Width, GetRequiredWidth(#GADGET_Preferences_ProcedureMulticolor)) ; PeDre
ResizeGadget(#GADGET_Preferences_ProcedureBrowserSort, 10, 10, Width, Height)
ResizeGadget(#GADGET_Preferences_ProcedureBrowserGroup, 10, 15+Height, Width, Height)
ResizeGadget(#GADGET_Preferences_ProcedureProtoType, 10, 20+Height*2, Width, Height)
; There is a display error. The checkbox is cut off at the bottom. If you make the checkbox higher, it is cut off more. ; PeDre
ResizeGadget(#GADGET_Preferences_ProcedureMulticolor, 10, 25 + Height * 3, Width, Height) ; PeDre
ResizeGadget(#GADGET_Preferences_ProcedureMulticolor2, 10, 30 + Height * 4, Width, Height) ; PeDre
Debug("Height = " + GadgetHeight(#GADGET_Preferences_ToolSettingsContainer)) ; = 277
If Backup_ProcedureBrowserSort >= 2
SetGadgetState(#GADGET_Preferences_ProcedureBrowserSort, 1)
EndIf
SetGadgetState(#GADGET_Preferences_ProcedureBrowserGroup, Backup_ProcedureBrowserSort % 2)
SetGadgetState(#GADGET_Preferences_ProcedureProtoType, Backup_DisplayProtoType)
SetGadgetState(#GADGET_Preferences_ProcedureMulticolor, Backup_ProcedureMulticolor)
EndProcedure
Maybe someone has an idea why the checkbox is not displayed correctly.
Peter