WOW TI-994A
I neven look that at that way. But its work i try it.
Thanks for this. That is the short comming in the manual.
I did found BindEvent and that is working to.
BindEvent(#PB_Event_SizeWindow,@Resize_All())
This piece of code called the procedure Resize_All() (I did wrote it myself ...
Search found 121 matches
- Tue Sep 17, 2024 3:23 pm
- Forum: The PureBasic Form Designer
- Topic: Tutorial: events handling with the Form Designer
- Replies: 28
- Views: 117826
- Mon Sep 16, 2024 9:31 am
- Forum: The PureBasic Form Designer
- Topic: Tutorial: events handling with the Form Designer
- Replies: 28
- Views: 117826
Re: Tutorial: events handling with the Form Designer
Thanks for the replay.
I did look at your video. And it does look very good. But there was one tiny glitch. When saving a file you can click on the save file icon but you can not press F5 to save the file. But this is a tiny glitch.
When a file is saved and keep the extension PBF. the file still ...
I did look at your video. And it does look very good. But there was one tiny glitch. When saving a file you can click on the save file icon but you can not press F5 to save the file. But this is a tiny glitch.
When a file is saved and keep the extension PBF. the file still ...
- Tue Sep 10, 2024 8:39 am
- Forum: The PureBasic Form Designer
- Topic: Tutorial: events handling with the Form Designer
- Replies: 28
- Views: 117826
Re: Tutorial: events handling with the Form Designer
Hei.
Almost 10 years later. But for me its pretty new. I did user Pure Basic already more then 10 years. But more to give students a handle to learn programming. And always i did it in PB itself. And never used the from designer.
Now i want to use the forms to start a program to make a tile ...
Almost 10 years later. But for me its pretty new. I did user Pure Basic already more then 10 years. But more to give students a handle to learn programming. And always i did it in PB itself. And never used the from designer.
Now i want to use the forms to start a program to make a tile ...
- Mon May 01, 2023 8:44 pm
- Forum: Coding Questions
- Topic: reading integer give a random number
- Replies: 5
- Views: 886
Re: reading integer give a random number
Thanks for the information. I did not notice it by miself that i did write it wrong.
- Sat Apr 29, 2023 10:05 pm
- Forum: Coding Questions
- Topic: reading integer give a random number
- Replies: 5
- Views: 886
Re: reading integer give a random number
Forgot to mentiom that i am running on a AMD 64 bit system 3.8 Ghz windows 11 Pro
AMD Ryzen 7 5800X 8 core
Nvidea GF RTX 3060 TI 8 GB
Memory 32 GB
This information may help
AMD Ryzen 7 5800X 8 core
Nvidea GF RTX 3060 TI 8 GB
Memory 32 GB
This information may help
- Sat Apr 29, 2023 9:59 pm
- Forum: Coding Questions
- Topic: reading integer give a random number
- Replies: 5
- Views: 886
reading integer give a random number
i use this code:
Procedure SRivPlop()
Protected X.i,
Dim SRivMatrix.i(5)
Restore SRiv
For X = 0 To 5
Read.i SRivMatrix(x)
Next
CallDebugger
Sriv:
DataSection
Data.i 0, 0, 3, 3, 0, 0
EndDataSection
EndProcedure
SRivPlop()
This code gives no errors but when the data is ...
Procedure SRivPlop()
Protected X.i,
Dim SRivMatrix.i(5)
Restore SRiv
For X = 0 To 5
Read.i SRivMatrix(x)
Next
CallDebugger
Sriv:
DataSection
Data.i 0, 0, 3, 3, 0, 0
EndDataSection
EndProcedure
SRivPlop()
This code gives no errors but when the data is ...
- Wed Nov 30, 2022 12:27 pm
- Forum: Feature Requests and Wishlists
- Topic: For - Next - Step
- Replies: 4
- Views: 1204
For - Next - Step
In the documentation the step must be an constand. But in many Basic programs i see is that the step is not a constant but a integer variable.
Why is this in PureBasic a constant. Can it be made to an Integer variable.
This I found out becaus i try to use the step with a variable but PB will not ...
Why is this in PureBasic a constant. Can it be made to an Integer variable.
This I found out becaus i try to use the step with a variable but PB will not ...
- Fri Sep 09, 2022 4:14 pm
- Forum: Coding Questions
- Topic: Structure field name confuse variable name
- Replies: 4
- Views: 857
Re: Structure field name confuse variable name
This topic mayt be closed. I did not notice that the program was clearing the variable in the structure.
When in debug mode the variable is not reconiced as a variable from the structure. That the only problem. I had a long piece of code and needed to reset the value a couple of times.
That was ...
When in debug mode the variable is not reconiced as a variable from the structure. That the only problem. I had a long piece of code and needed to reset the value a couple of times.
That was ...
- Wed Sep 07, 2022 8:56 pm
- Forum: Coding Questions
- Topic: Structure field name confuse variable name
- Replies: 4
- Views: 857
Re: Structure field name confuse variable name
Sorry to give the version its PB 6.00 LTS 64 bits
- Wed Sep 07, 2022 8:55 pm
- Forum: Coding Questions
- Topic: Structure field name confuse variable name
- Replies: 4
- Views: 857
Structure field name confuse variable name
I am trying to program a packman version for study class.
When i use a variable called Direction en i use a structure e.g. Pinky()'\Direction. the Pinky()\Direction is seen as a variable Direction.
Code example
#Left =1
#Right = 2
Global Direction.i = 0
Structure Pink
Direction.i
Endstructure ...
When i use a variable called Direction en i use a structure e.g. Pinky()'\Direction. the Pinky()\Direction is seen as a variable Direction.
Code example
#Left =1
#Right = 2
Global Direction.i = 0
Structure Pink
Direction.i
Endstructure ...
- Sun Apr 17, 2022 6:47 pm
- Forum: Coding Questions
- Topic: [ LTS 5.73 X64 Win 10] #PI give a syntax error
- Replies: 4
- Views: 677
Re: [ LTS 5.73 X64 Win 10] #PI give a syntax error
I did read the documentation on the wrong way. That is becaus i am dyslexis. That give me sometime the wrong impression. After carefully checking and reading the reply i figure it out.
The Constant is already defined. So when i redefine the constant i got a error. When ik defining e.g. #PI its a ...
The Constant is already defined. So when i redefine the constant i got a error. When ik defining e.g. #PI its a ...
- Thu Apr 14, 2022 11:19 am
- Forum: Coding Questions
- Topic: [ LTS 5.73 X64 Win 10] #PI give a syntax error
- Replies: 4
- Views: 677
[ LTS 5.73 X64 Win 10] #PI give a syntax error
I try to use the constant #PI but the compiler rejects this. By giving a syntax error
#PI
Then i did somthing realy weerd. And give the constant an value.
#PI = 3.14
This is also rejected by saying Constant already declared.
Is this a real bug or is there somthing wrong here
// Moved ...
#PI
Then i did somthing realy weerd. And give the constant an value.
#PI = 3.14
This is also rejected by saying Constant already declared.
Is this a real bug or is there somthing wrong here
// Moved ...
- Wed Jan 12, 2022 10:22 pm
- Forum: Game Programming
- Topic: What does the value returned by 'LoadSound()' represent?
- Replies: 3
- Views: 5985
Re: What does the value returned by 'LoadSound()' represent?
I do not know if i do this on the right way. But if you want to know the adress of a loaded sound. But i use the following methode:
*Position is now a memeory pointer to the sound file.
Code: Select all
#My_Sound = 1
Global Position.i
LoadSound(#My_Sound,"The_Sound.wav")
*Position = @#My_Sound
- Tue Dec 28, 2021 4:26 pm
- Forum: Coding Questions
- Topic: Double events
- Replies: 8
- Views: 1126
Re: Double events
Thank you all for the extra information.
It's helped me a lot.
bart.
It's helped me a lot.
bart.
- Tue Dec 28, 2021 4:02 pm
- Forum: Coding Questions
- Topic: Double events
- Replies: 8
- Views: 1126
Re: Double events
hello netmaestro
I tested this on differend machines and using 3 differend versions of PB . i don't think this is a bug. But you never can tell, if it's do. But if all versions do the same, i think that PB is just reading the information Windows is troughwing. So if windows is giving a double event ...
I tested this on differend machines and using 3 differend versions of PB . i don't think this is a bug. But you never can tell, if it's do. But if all versions do the same, i think that PB is just reading the information Windows is troughwing. So if windows is giving a double event ...