Search found 174 matches

by TassyJim
Fri Feb 20, 2026 7:49 am
Forum: The PureBasic Editor
Topic: DGbasic: A Retro-Style IDE built 100% in PureBasic
Replies: 25
Views: 1562

Re: DGbasic: A Retro-Style IDE built 100% in PureBasic

Thank you for starting this project.
Recently I have seen what AI can do in the right hands.
When I see what can be achieved, it amazes/frightens me.

A few weeks ago I asked Google how to reset my modem.
The AI (?) gave me 3 choices.
1 Reset button - sorry there isn't one.
2 Dial this magic number ...
by TassyJim
Tue Dec 02, 2025 8:56 pm
Forum: Coding Questions
Topic: Simple PB code editor
Replies: 28
Views: 3259

Re: Simple PB code editor

Search the forum for GoScintilla.

I started with GoScintilla for my code editor and that will give you most of what you are looking for.
My editor is for Basic that runs on various microprocessors and is too convoluted for you to use as a start.

You will find a couple of changes are needed to run ...
by TassyJim
Wed Oct 29, 2025 9:43 pm
Forum: Coding Questions
Topic: Missing ToolBar in Wine
Replies: 3
Views: 810

Re: Missing ToolBar in Wine

Thanks.
#PB_ToolBar_Large was the first thing I tried.
by TassyJim
Wed Oct 29, 2025 7:24 am
Forum: Coding Questions
Topic: Missing ToolBar in Wine
Replies: 3
Views: 810

Missing ToolBar in Wine

Hi,
I have a number of users who prefer to use the Windows version of my software under Wine rather than the Linux version.
I have discovered that the ToolBar does not appear in Wine.
I have tried with PB6.21 and PB6.04
I have tried setting the bitmap size using SendMessage_(ToolBarID(0),#TB ...
by TassyJim
Sat Oct 11, 2025 1:02 am
Forum: Linux
Topic: PB6.21, 6.3b2 RPi Wayland WindowX() and WindowY()
Replies: 3
Views: 6392

Re: PB6.21, 6.3b2 RPi Wayland WindowX() and WindowY()

Thanks for the explanation Fred.

My application runs faster with Wayland but not being able to position the windows is not ideal.
I will have to reconsider the use of Wayland.

Thanks again
by TassyJim
Sat Sep 27, 2025 11:37 pm
Forum: Coding Questions
Topic: PB IDE font setup ...
Replies: 9
Views: 1331

Re: PB IDE font setup ...

Extended ASCII characters depend on the code page. Windows has forgotten about code pages since unicode became the standard.
For a project I wrote, this is the CP437 unicode equivalents.
; CodePage 437
[CodePage]
chr00 = $0000 ; NULL
chr01 = $263a ; START OF HEADING
chr02 = $263b ; START OF TEXT ...
by TassyJim
Sun Sep 21, 2025 8:37 am
Forum: Linux
Topic: PB6.21, 6.3b2 RPi Wayland WindowX() and WindowY()
Replies: 3
Views: 6392

PB6.21, 6.3b2 RPi Wayland WindowX() and WindowY()

With my RPi and Wayland support enabled, Windows always start centered and WindowX() and WindowY() return zero.

If OpenWindow(0, 10, 10, 300, 300, "Move me !", #PB_Window_SystemMenu | #PB_Window_SizeGadget)
Repeat
Event = WaitWindowEvent()
If event = #PB_Event_SizeWindow Or event = #PB_Event ...
by TassyJim
Wed Aug 27, 2025 8:08 am
Forum: Coding Questions
Topic: [SOLVED] FindString() with CRLF in the search?
Replies: 12
Views: 1703

Re: FindString() with CRLF in the search?

It works for me. PB6.21
search.s = #CRLF$+"Word"
filename$ = "C:\\apps\teststr.txt"
If OpenFile(0,filename$)
text.s = ReadString(0,#PB_Ascii | #PB_File_IgnoreEOL)
CloseFile(0)
EndIf
text2.s = "first line"+#CRLF$+"Word beginning second line."+#CRLF$+"last line."

Debug StringByteLength(text) ;102 ...
by TassyJim
Wed Aug 27, 2025 4:24 am
Forum: Coding Questions
Topic: Window goes to maximum after monitor turned off and on again
Replies: 10
Views: 1969

Re: Window goes to maximum after monitor turned off and on again

I think that Windows reverts to a default size of 1024 x 768 when it looses connection to the monitor.
This forces your window to full screen and then when the monitor is restored, the full screen stays full screen.

When I tried your code with 1024 x 750, it survived the monitor loss correctly ...
by TassyJim
Tue Aug 26, 2025 4:05 am
Forum: Coding Questions
Topic: Window goes to maximum after monitor turned off and on again
Replies: 10
Views: 1969

Re: Window goes to maximum after monitor turned off and on again

I could confirm the problem.
adding #PB_Window_SizeGadget fixed it for me.

If you want to prevent users resizing, you can detect the resize with #PB_Event_SizeWindow and restore the size.

Jim
by TassyJim
Tue Jul 15, 2025 8:06 am
Forum: Tricks 'n' Tips
Topic: morse code player
Replies: 12
Views: 2262

Re: morse code player


Wouldn't it be possible to just look at volume changes of the signal?
Very early morse code recordings from a telegraph are just clicks, no sine waves.

If you are listening to RF signals and have a good narrow CW filter in the radio, using signal amplitude would work well.

In my Z80 days, I ...
by TassyJim
Sun May 18, 2025 11:42 pm
Forum: Coding Questions
Topic: Round(0.51, #PB_Round_Nearest) <> {debug integer 0.51}
Replies: 17
Views: 2902

Re: Round(0.51, #PB_Round_Nearest) <> {debug integer 0.51}


Why the non-explicit double-to-integer converter has a light different behaviour, compared to the Round() native function ?


It is the same as Int(), not Round()

This function returns an integer value. To get a quad value, use the IntQ() function.

The integer part is created by cutting off ...
by TassyJim
Sat May 10, 2025 12:16 am
Forum: Bugs - Windows
Topic: [Done] Problem printing some unicode characters to canvas gadget
Replies: 11
Views: 4837

Re: Problem printing some unicode characters to canvas gadget

Thanks for trying Fred.
I can work around it for now.

Edit
The fix I implemented is
Procedure DrawTextEx(hDc,x, y, Text.s, FrontColor, BackColor)
Protected chRect.RECT
chRect\left = x
chRect\top = y
chRect\right = x + VT\CharPixelW
chrect\bottom = y + VT\CharPixelH

SetTextColor_(hdc ...
by TassyJim
Sat Apr 26, 2025 10:49 pm
Forum: Off Topic
Topic: School is not the place for hackers
Replies: 18
Views: 6083

Re: School is not the place for hackers

I remember my first day at university.
We were told "You thought you came here to learn to be engineers. Wrong. You are here to learn how to learn."
If only all school teaching had the same philosophy.

At the opposite end of the scale, a teacher once told my class "You don't need to know about that ...