Search found 7 matches

by RBart
Sat May 24, 2025 3:45 pm
Forum: The PureBasic Form Designer
Topic: OpenNameWindow() not working
Replies: 8
Views: 1048

Re: OpenNameWindow() not working


You must change the name of the variable or of the gadgets. Then you don't have to search and replace.
I also don't like the setting that #PB_Any is used. I prefer to work with constants
The global settings for form can be found in the Preferences menu.

Maybe you should not start with the Form ...
by RBart
Sat May 24, 2025 2:59 pm
Forum: The PureBasic Form Designer
Topic: OpenNameWindow() not working
Replies: 8
Views: 1048

Re: OpenNameWindow() not working

To change the name in the code can be done by changing it in the Properties under Variable
by RBart
Sat May 24, 2025 1:25 pm
Forum: The PureBasic Form Designer
Topic: OpenNameWindow() not working
Replies: 8
Views: 1048

Re: OpenNameWindow() not working

got the second form working too.
You need to change all the naming in the code or use the automatic generated names in the code. Would be nice if the name of the file was used when automatic generating the code file for a form.

Find/Replace speeds up de change of default naming to more reasonable ...
by RBart
Sat May 24, 2025 12:51 pm
Forum: The PureBasic Form Designer
Topic: OpenNameWindow() not working
Replies: 8
Views: 1048

Re: OpenNameWindow() not working

ok. I figured it out, the name of the file is different from the dimensioned name in the code:
XIncludeFile "MainWindow.pbf" ; Include the first window definition
; XIncludeFile "DateWindow.pbf" ; Include the second window definition

OpenWindow_0() ; Open the first window. This procedure name is ...
by RBart
Sat May 24, 2025 12:39 pm
Forum: The PureBasic Form Designer
Topic: OpenNameWindow() not working
Replies: 8
Views: 1048

Re: OpenNameWindow() not working

changed line 4 to: OpenWindow_0() ; Open the first window. This procedure name is always 'Open' followed by the window name
Error message is gone but form is not visible.
by RBart
Sat May 24, 2025 12:35 pm
Forum: The PureBasic Form Designer
Topic: OpenNameWindow() not working
Replies: 8
Views: 1048

Re: OpenNameWindow() not working

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

Global Window_0

Global Button_0


Procedure ...
by RBart
Sat May 24, 2025 12:01 pm
Forum: The PureBasic Form Designer
Topic: OpenNameWindow() not working
Replies: 8
Views: 1048

OpenNameWindow() not working

Hi,

I am trying out PureBasic.
So I want to work with multiple forms.
I created a project and added two files, Main.pb and a MainWindow.pbf just like the example.
The second form is not created yet so I commented it out. I would think that by running the Main.pb the form MainWindow.pbf would open ...