Just to give an example, from the Help documentation (and I don't know if this is a special case because they are gadget calls, but) --
Code: Select all
If OpenWindow(0, 0, 0, 322, 220, "PanelGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
PanelGadget (0, 8, 8, 306, 203)
AddGadgetItem (0, -1, "Panel 1")
PanelGadget (1, 5, 5, 290, 166)
AddGadgetItem(1, -1, "Sub-Panel 1")
AddGadgetItem(1, -1, "Sub-Panel 2")
AddGadgetItem(1, -1, "Sub-Panel 3")
CloseGadgetList()
AddGadgetItem (0, -1,"Panel 2")
ButtonGadget(2, 10, 15, 80, 24,"Button 1")
ButtonGadget(3, 95, 15, 80, 24,"Button 2")
CloseGadgetList()
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
I think that Gadgets (and other commands) where at least, you are specifically calling other commands that specifically apply to the previous command's generated results (ie AddGadgetItem implcitly adds the Gadget to the PanelGadget called above it) should definitely get indentation by default.
It's a pain to manually indent because when you hit Enter, the line immediately resets.. I'm aware we can enable a mode where it won't do this, but then IIRC you lose pretty much all auto-indentation as a result? meaning you'd have to take care to manually indent / reverse everything as you went. Which is also a pain