FormDesigner

Post bugs related to the IDE here
Saladlam
New User
New User
Posts: 2
Joined: Wed Mar 21, 2018 12:04 pm

FormDesigner

Post by Saladlam »

1. The Form Designer does not accept the equals sign ($3d) in the Text$ parameter of TextGadget (and probably other Gadgets too). When you created a Form like

Code: Select all

;
; This code is automatically generated by the FormDesigner.
; Manual modification is possible to adjust existing commands, but anything else will be dropped when the code is compiled.
; Event procedures needs to be put in another source file.
;

Enumeration FormWindow
  #Window_0
EndEnumeration

Enumeration FormGadget
  #Text_0
EndEnumeration


Procedure OpenWindow_0(x = 0, y = 0, width = 110, height = 40)
  OpenWindow(#Window_0, x, y, width, height, "Test", #PB_Window_SystemMenu)
  TextGadget(#Text_0, 15, 10, 75, 20, "Equals sign =")
EndProcedure
saved it and quit PureBasic, it reopens like this:

Code: Select all

;
; This code is automatically generated by the FormDesigner.
; Manual modification is possible to adjust existing commands, but anything else will be dropped when the code is compiled.
; Event procedures needs to be put in another source file.
;

Global TextGadget(#Text_0, 15, 10, 75, 20, "Equals sign

Enumeration FormWindow
  #Window_0
EndEnumeration


Procedure OpenWindow_0(x = 0, y = 0, width = 110, height = 40)
  OpenWindow(#Window_0, x, y, width, height, "Test", #PB_Window_SystemMenu)
  TextGadget(#Text_0, 15, 10, 75, 20, "Equals sign = TextGadget(#PB_Any, 15, 10, 75, 20, "Equals sign =")
EndProcedure
2. IncludeFile does not work with Unicode file names (e.g. files with Russian or Greek names). It would be nice, if the IDE would support not only Utf-8, but Utf-16, too.