[VD Alpha16 Linux] duplicate code
Posted: Sat Feb 02, 2008 7:10 pm
The line Openwindow() is written twice in the codeviewer tab...(for each window you may add)
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
Global Window_0
Procedure Open_Window_0()
Window_0 = OpenWindow(#PB_Any, 5, 5, 400, 200, "Window 0", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
Window_0 = OpenWindow(#PB_Any, 5, 5, 400, 200, "Window 0", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
If CreateGadgetList(WindowID(Window_0))
EndIf
EndIf
EndProcedure
Open_Window_0()
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
End
Code: Select all
If WindowsOS
causeHeadaches = 0
Else
causeHeadaches = 1
EndIfyes, that's true... and here's another duplication... created a scintilla gadget and then moved it a little... and got two lines for the creation of the Scintilla-Gadget (but not in the saved code)Berikco wrote: Edit: ha, its a cosmetic bug, this line does not show up in the saved code i think?
It looks like a PB Linux bug, so it does not show in windows.walker wrote:yes, that's true... and here's another duplication... created a scintilla gadget and then moved it a little... and got two lines for the creation of the Scintilla-Gadget (but not in the saved code)Berikco wrote: Edit: ha, its a cosmetic bug, this line does not show up in the saved code i think?
When creating the next gadget, this one has a duplicate entry (and for the previous one is only one entry left...)
It seems, that only the last created gadget (or window) has 2 lines (in the code viewer tab, not in the saved code of course) ...