Well, I guess this is a tricky question.
First I have to admit that I have no idea how the OpenWindow() is working inside, so I made some assumptions.
; First
If x = #PB_Ignore
x = #CW_USEDEFAULT ; the original constant for windowsOS CreateWindowEx_()
EndIf
If y = #PB_Ignore
y = #CW ...
Search found 780 matches
- Tue Aug 19, 2025 3:20 pm
- Forum: Bugs - Windows
- Topic: PB 6.21 : #PB_Ignore BUG ?
- Replies: 2
- Views: 135
- Tue Aug 19, 2025 11:19 am
- Forum: General Discussion
- Topic: Build a text editor
- Replies: 35
- Views: 1733
Re: Build a text editor
Oh, l see. It is a desktop monitor of 28 inch. Not fancy.
You do not have to think about a solution for me. I wanted to share some of my observations, thats all.
You do not have to think about a solution for me. I wanted to share some of my observations, thats all.
- Mon Aug 18, 2025 3:57 pm
- Forum: General Discussion
- Topic: Build a text editor
- Replies: 35
- Views: 1733
Re: Build a text editor
entire (full) screen resolution: 3840 x 2160 Px
Well, you have to substract the taskbar-height and the window title height (maybe thats why onle 130 and a bit of line 131)
Well, you have to substract the taskbar-height and the window title height (maybe thats why onle 130 and a bit of line 131)
- Mon Aug 18, 2025 12:25 pm
- Forum: General Discussion
- Topic: Build a text editor
- Replies: 35
- Views: 1733
Re: Build a text editor
Hi,
I am not sure if I catched the latest?
Maybe you should add a comment with version (counter) or similar.
So in maximized mode I see 130 lines. 4K-Monitor with 96 dpi (100%).
Observation:
In my opinion, scrolling is quite unacceptable compared to other editors (slow/not smooth).
Maybe the ...
I am not sure if I catched the latest?
Maybe you should add a comment with version (counter) or similar.
So in maximized mode I see 130 lines. 4K-Monitor with 96 dpi (100%).
Observation:
In my opinion, scrolling is quite unacceptable compared to other editors (slow/not smooth).
Maybe the ...
- Fri Aug 15, 2025 4:47 pm
- Forum: The PureBasic Editor
- Topic: IDE External Tools and variables PB_TOOL_XXXXX [resolved]
- Replies: 5
- Views: 133
Re: IDE External Tools and variables PB_TOOL_XXXXX
BTW:
you can create a bat file with something like this
You will see, this is only working as a IDE Tool .... see also in the IDE -> Tools | Configure Tools....
echo PB_TOOL
echo IDE = %PB_TOOL_IDE%
echo Compiler = %PB_TOOL_Compiler%
echo Preferences = %PB_TOOL_Preferences%
echo Project ...
you can create a bat file with something like this
You will see, this is only working as a IDE Tool .... see also in the IDE -> Tools | Configure Tools....
echo PB_TOOL
echo IDE = %PB_TOOL_IDE%
echo Compiler = %PB_TOOL_Compiler%
echo Preferences = %PB_TOOL_Preferences%
echo Project ...
- Fri Aug 15, 2025 4:36 pm
- Forum: The PureBasic Editor
- Topic: IDE External Tools and variables PB_TOOL_XXXXX [resolved]
- Replies: 5
- Views: 133
Re: IDE External Tools and variables PB_TOOL_XXXXX
You compiled and configured it as a IDE-Tool, right?
Of cause!
Of cause!
- Thu Aug 14, 2025 3:29 pm
- Forum: Game Programming
- Topic: Mini Mario
- Replies: 6
- Views: 211
Re: Mini Mario
Hi threedslider,
thanks for sharing.
I'm not interested in Screen...stuff, but the mouse pointer looks like a doughnut and the window can't be closed using the close button.
Acc. to the help I added this between Repeat and ClearScreen.
Repeat
; begin
; It's very important to process all the ...
thanks for sharing.
I'm not interested in Screen...stuff, but the mouse pointer looks like a doughnut and the window can't be closed using the close button.
Acc. to the help I added this between Repeat and ClearScreen.
Repeat
; begin
; It's very important to process all the ...
- Wed Aug 13, 2025 2:40 pm
- Forum: Coding Questions
- Topic: win or Mac, this code crashes
- Replies: 6
- Views: 336
Re: win or Mac, this code crashes
......I have used enableExplicit and all variable takes 8 bytes (.I or .d). .....
Sorry, but this is not correct. .l is 4 byte and .i on 64bit or .q is 8 bytes.
BTW: The comments in your code are correct.
- Mon Aug 11, 2025 1:37 pm
- Forum: Coding Questions
- Topic: why I cannot write a procedure in the loop event
- Replies: 19
- Views: 765
Re: why I cannot write a procedure in the loop event
Ohh, well I am on windows ....
And then we are definitely in the wrong section.
Have you tried this instead of calling the proc always (on every event, not only every 10ms)?
AddWindowTimer(0, 0, 10) ; 10ms is min possible time out value on windows.
; ...
Case #PB_Event_Timer
Select ...
And then we are definitely in the wrong section.
Have you tried this instead of calling the proc always (on every event, not only every 10ms)?
AddWindowTimer(0, 0, 10) ; 10ms is min possible time out value on windows.
; ...
Case #PB_Event_Timer
Select ...
- Mon Aug 11, 2025 1:02 pm
- Forum: Coding Questions
- Topic: why I cannot write a procedure in the loop event
- Replies: 19
- Views: 765
Re: why I cannot write a procedure in the loop event
Still not compilable. Missing libs.
My observations after a quick read (without knowledge of French):
I cannot see huge differences, only different types pos.i and x.l (should not be a problem)
1. You should boil it down to the essentials.
2. Use return values on procedure calls
3. Debug some ...
My observations after a quick read (without knowledge of French):
I cannot see huge differences, only different types pos.i and x.l (should not be a problem)
1. You should boil it down to the essentials.
2. Use return values on procedure calls
3. Debug some ...
- Mon Aug 11, 2025 12:15 pm
- Forum: Coding Questions
- Topic: why I cannot write a procedure in the loop event
- Replies: 19
- Views: 765
Re: why I cannot write a procedure in the loop event
Sorry, I can't test your code. It's incomplete. The code should at least be compilable.
- Fri Aug 08, 2025 2:38 pm
- Forum: General Discussion
- Topic: [Resolved] RunProgram with CHDIR
- Replies: 2
- Views: 124
Re: RunProgram with CHDIR
I don't think you can do that.
An executable - which by definition runs in a child process - cannot change its parent process' working directory.
Maybe this work around from the old days will help. (not tested)
+ Create a batch file inside your app.
@REM Filename: %temp%\mynewworkingdir.bat
@cd ...
An executable - which by definition runs in a child process - cannot change its parent process' working directory.
Maybe this work around from the old days will help. (not tested)
+ Create a batch file inside your app.
@REM Filename: %temp%\mynewworkingdir.bat
@cd ...
- Fri Aug 08, 2025 2:11 pm
- Forum: Tricks 'n' Tips
- Topic: Uptime On Your App
- Replies: 27
- Views: 735
Re: Uptime On Your App
because it was mentioned earlier even if it is off topic (I guess the tip was about App uptime not OS uptime) ....
Import "" ; kernel32.lib
GetTickCount64()
EndImport
Debug "Windows Uptime = " + FormatDate("%HH:%II:%SS", GetTickCount64() / 1000)
Two things are important.
1. GetTickCount64 ...
Import "" ; kernel32.lib
GetTickCount64()
EndImport
Debug "Windows Uptime = " + FormatDate("%HH:%II:%SS", GetTickCount64() / 1000)
Two things are important.
1. GetTickCount64 ...
- Fri Aug 08, 2025 11:06 am
- Forum: Tricks 'n' Tips
- Topic: Uptime On Your App
- Replies: 27
- Views: 735
Re: Uptime On Your App
I couldn't resist.
Taking into account all the comments so far.....
Procedure RunningSinceStart()
Static s_dtStart = 0
Protected dtDiff
If s_dtStart = 0
s_dtStart = DateUTC()
EndIf
If s_dtStart
dtDiff = DateUTC() - s_dtStart
EndIf
ProcedureReturn dtDiff
EndProcedure ...
Taking into account all the comments so far.....
Procedure RunningSinceStart()
Static s_dtStart = 0
Protected dtDiff
If s_dtStart = 0
s_dtStart = DateUTC()
EndIf
If s_dtStart
dtDiff = DateUTC() - s_dtStart
EndIf
ProcedureReturn dtDiff
EndProcedure ...
- Thu Aug 07, 2025 3:13 pm
- Forum: Coding Questions
- Topic: Drag&Drop from Outlook (Express) - Possible?
- Replies: 93
- Views: 37835
Re: Drag&Drop from Outlook (Express) - Possible?
Perhaps you should look for a converter for MSG files to TXT files or something similar.
I found this among many other online converters.
https://www.sysinfotools.com/blog/convert-msg-to-txt/
I found this among many other online converters.
https://www.sysinfotools.com/blog/convert-msg-to-txt/