Search found 17 matches

by russellm72
Fri Feb 28, 2025 6:52 am
Forum: Coding Questions
Topic: Type Coercion and Math
Replies: 4
Views: 346

Re: Type Coercion and Math

Ok. Thanks.

I think what I just learned is that the simple answer is to just use doubles. It gives the kind of output I was looking for without having to define two sets of variables and determine if I am doing integer or double math, I think.

Here's my complete project now that I saw what happens ...
by russellm72
Fri Feb 28, 2025 3:12 am
Forum: Coding Questions
Topic: Type Coercion and Math
Replies: 4
Views: 346

Type Coercion and Math

I'm trying to get back up to speed with PB and I'm running into something that is make me feel rather dumb.

I was trying to create a simple calculator. I just placed two StringGadgets and one ComboBox and one TextGadget in a window with the Forms Designer, along with a button that says "Calculate ...
by russellm72
Sat Feb 22, 2025 3:56 pm
Forum: The PureBasic Form Designer
Topic: 6.20 Properties Panel - macOS & Windows ARM
Replies: 9
Views: 3838

Re: 6.20 Properties Panel - macOS & Windows ARM

Replying again to my own post.

I posted too soon before. I'm using PB 6.20 x64 on my Intel MacBook Pro and in the Forms Designer, the strange scrolling problem persists.

If I click a button, and then move the pointer over the Event Procedure field and click, it will start scrolling and scroll all ...
by russellm72
Fri Feb 21, 2025 1:51 am
Forum: The PureBasic Form Designer
Topic: 6.20 Properties Panel - macOS & Windows ARM
Replies: 9
Views: 3838

Re: 6.20 Properties Panel - macOS & Windows ARM

Replying to my own post.

I've had a chance to test this on macOS & Windows x86/x64 and it doesn't happen there.

Also, rebooted my M3 MacBook Pro and tested again in macOS ARM & Windows ARM (Parallels) and the problem persists on ARM.
by russellm72
Thu Feb 20, 2025 9:56 pm
Forum: The PureBasic Form Designer
Topic: 6.20 Properties Panel - macOS & Windows ARM
Replies: 9
Views: 3838

6.20 Properties Panel - macOS & Windows ARM

I'm running PB 6.20 on my Apple Silicon MacBook in both macOS and Windows 11 and in both OSes, there seems to be an issue with the properties panel.

If I click on a widget, like a button, and then try to click in the Event Procedure box, the Properties Panel seems to think I'm scrolling. It's ...
by russellm72
Sun Jan 22, 2023 6:05 am
Forum: Mac OSX
Topic: Respond to Quit from Application Menu
Replies: 4
Views: 1238

Re: Respond to Quit from Application Menu

I figured it out.

I made my event loop like this:

Repeat
event = WaitWindowEvent()
If event = #PB_Event_Menu
If EventMenu() = #PB_Menu_Quit
Break
EndIf

Else
Window_0_Events(event)
EndIf


Until event = #PB_Event_CloseWindow

That compiles, runs, and the app quits when choosing Quit ...
by russellm72
Sun Jan 22, 2023 5:54 am
Forum: Mac OSX
Topic: Respond to Quit from Application Menu
Replies: 4
Views: 1238

Respond to Quit from Application Menu

Hello!

This is making me feel a bit dense and frustrated.

I can't figure out how to respond and quit when Quit is chosen from the Application menu.

My app so far is super simple. I'm just trying to wrap my head around using the Forms Designer and how to created gadgets, events, and respond to ...
by russellm72
Thu Jul 21, 2022 10:15 am
Forum: Coding Questions
Topic: Cross Platform Rich Text Editor
Replies: 7
Views: 2396

Re: Cross Platform Rich Text Editor


If you have the need to change the format of a text selected with the cursor dynamically, the example code has to be expanded! Please tell me whether you need this additional feature and I might try to implement it.

If you want to change the text format of an existing text in the EditorGadget by ...
by russellm72
Wed Jul 20, 2022 4:12 pm
Forum: Coding Questions
Topic: Cross Platform Rich Text Editor
Replies: 7
Views: 2396

Re: Cross Platform Rich Text Editor

But already 5 years ago I have posted this cross-platform code example in the German forum which allows to use text tags to convert marked text into bold, italic and underlined text.

Wow! Thank you! This looks really cool. I've been reading through your code a bit trying to get familiar with it ...
by russellm72
Tue Jul 19, 2022 3:14 pm
Forum: Coding Questions
Topic: Cross Platform Rich Text Editor
Replies: 7
Views: 2396

Cross Platform Rich Text Editor

Hello!

I'm a new user, investigating transitioning from Livecode. It seems that there isn't an easy cross platform way to use rich text / styled text in the EditorGadget? Is this true? If so, what's the best way to use rich / styled text in PB?

Note: I mainly want to be able to use strikethrough ...
by russellm72
Fri Jul 15, 2022 5:03 pm
Forum: The PureBasic Form Designer
Topic: String gadget gets slightly taller after window resize
Replies: 8
Views: 8337

Re: String gadget gets slightly taller after window resize

breeze4me wrote: Fri Jul 15, 2022 6:11 am It looks like a bug related to DPI.
Thanks for the confirmation. I guess it looks like the solution, for the time being, is to set screen to 100% scaling when using the Form Designer.
by russellm72
Thu Jul 14, 2022 4:18 pm
Forum: The PureBasic Form Designer
Topic: String gadget gets slightly taller after window resize
Replies: 8
Views: 8337

Re: String gadget gets slightly taller after window resize

So, I just discovered that this behavior on Windows 10 only happens when Windows display settings are set to use scaling. I had my display set to scale to 125%. If I set the scale to 100%, this odd behavior goes away.
by russellm72
Wed Jul 13, 2022 7:38 pm
Forum: The PureBasic Form Designer
Topic: String gadget gets slightly taller after window resize
Replies: 8
Views: 8337

Re: String gadget gets slightly taller after window resize

So, here's my form:


;
; 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 Window_0

Global ...
by russellm72
Wed Jul 13, 2022 3:56 pm
Forum: The PureBasic Form Designer
Topic: String gadget gets slightly taller after window resize
Replies: 8
Views: 8337

Re: String gadget gets slightly taller after window resize

Marc56us wrote: Wed Jul 13, 2022 3:37 pm If you lock bottom AND top of a gadget, height will not change
Hmm. When I lock the top and the bottom, the string gadget does resize. It gets big instead of just keeping its position relative to the bottom of the window.
by russellm72
Wed Jul 13, 2022 3:49 pm
Forum: The PureBasic Form Designer
Topic: How do I resize components during form resizing?
Replies: 6
Views: 9740

Re: How do I resize components during form resizing?



The link posted seems to be dead now.
The link is not dead. You have to copy the link, paste it into the address line of your browser and change "http://" to "https://". When directly clicking onto the link my Firefox indeed reports "Not Found" because http links are meanwhile considered ...