Search found 68 matches

by paulr
Sun Oct 06, 2024 7:30 pm
Forum: Bugs - Windows
Topic: ListIconGadget and SpinGadget interraction
Replies: 2
Views: 1615

ListIconGadget and SpinGadget interraction

I believe I've isolated a bug that causes touchpad double taps go undetected. It manifests in the following code, adapted from the GadgetAdvanced.pb example.

PB version: 6.12 LTS
Windows 10

Expected behaviour:
Clicking on a list item causes a corresponding message to display in the SpinGadget ...
by paulr
Wed Jun 19, 2024 5:11 am
Forum: Coding Questions
Topic: Laptop lid status
Replies: 10
Views: 2307

Re: Laptop lid status

The moment has passed for me, but kudos for answering my question after 19 years!
by paulr
Sun Oct 09, 2022 10:04 pm
Forum: Windows
Topic: Connecting to serial port activates DTR without asking
Replies: 0
Views: 866

Connecting to serial port activates DTR without asking

I'm seeing some strange behaviour while connecting to a serial port and want to see if anyone can help.

I'm working in Windows with an Arduino clone (RF-Nano type). Arduinos use a high-to-low transition of the DTR pin on their USB-TTL converters to reset them. So if I want to connect to an Arduino ...
by paulr
Tue Jun 16, 2020 11:11 am
Forum: Coding Questions
Topic: Get / set cursor position in SpinGadget
Replies: 4
Views: 1466

Re: Get / set cursor position in SpinGadget

That's great, thank you very much!
by paulr
Mon Jun 15, 2020 2:59 pm
Forum: Coding Questions
Topic: Get / set cursor position in SpinGadget
Replies: 4
Views: 1466

Get / set cursor position in SpinGadget

Is it possible to get and set the cursor position in a SpinGadget? I've only seen examples for a StringGadget so far, and they don't seem applicable.
by paulr
Thu Jun 11, 2020 2:37 pm
Forum: Coding Questions
Topic: Pressing enter in SpinGadget
Replies: 4
Views: 1314

Re: Pressing enter in SpinGadget

The beep (or more of a windows 'bling') is definitely happening for me.

RASHAD, thanks for the suggestion, that works great in your example (and eliminates the pointless beep).

I've just expanded on it here to show it working on two independent spinners.

If OpenWindow(0, 0, 0, 240, 70 ...
by paulr
Thu Jun 11, 2020 10:58 am
Forum: Coding Questions
Topic: Pressing enter in SpinGadget
Replies: 4
Views: 1314

Pressing enter in SpinGadget

Hi, I've noticed pressing enter while editing the number in a SpinGadget triggers a system beep (Windows 10). Is there a way to prevent this and instead to trigger some action in the program?
by paulr
Mon Dec 07, 2015 11:58 pm
Forum: Feature Requests and Wishlists
Topic: Select text / get selection for StringGadget/EditorGadget
Replies: 19
Views: 13551

Re: Select text / get selection for StringGadget/EditorGadge

This thread is a wish list, this feature doesn't exist yet. We can only hope it will one day!

In the meantime, Shardik's link above is helpful.
by paulr
Sat Nov 15, 2014 7:27 pm
Forum: Coding Questions
Topic: What does #PB_Window_Titlebar do?
Replies: 4
Views: 1775

Re: What does #PB_Window_Titlebar do?

I see. I was using #PB_Window_SystemMenu, so didn't see the difference. Thanks.
by paulr
Sat Nov 15, 2014 3:17 pm
Forum: Coding Questions
Topic: What does #PB_Window_Titlebar do?
Replies: 4
Views: 1775

What does #PB_Window_Titlebar do?

What does #PB_Window_Titlebar do? I can't see any difference when I use it. (On Windows 8 at least)
by paulr
Thu Sep 04, 2014 7:18 pm
Forum: Coding Questions
Topic: Cross-compiling for x86 on x64 (Windows)
Replies: 4
Views: 2010

Re: Cross-compiling for x86 on x64 (Windows)

Resurrecting an old thread here, but I discovered the minimal requirements to run a cross-compiler without installing that version of PB:

Just create a folder anywhere, and copy the following folders to it, from the PB version you'd like to cross-compile to:

Compilers
PureLibraries
Residents ...
by paulr
Fri May 30, 2014 6:06 am
Forum: Coding Questions
Topic: Cross-compiling for x86 on x64 (Windows)
Replies: 4
Views: 2010

Cross-compiling for x86 on x64 (Windows)

Hi, I'm trying to use the multi-compiler support to compile for an x86 system from my x64 machine.

I got as far as installing 32-bit PB on a 32-bit (Win7) machine, copying the contents of its 'compilers' folder onto my x64 (Win8) machine, and adding it to the compilers list in 'preferences'. But ...
by paulr
Fri Mar 28, 2014 7:15 pm
Forum: Feature Requests and Wishlists
Topic: Select text / get selection for StringGadget/EditorGadget
Replies: 19
Views: 13551

Re: Select text / get selection for StringGadget/EditorGadge

+1 from me.

Can I also suggest:

GetGadgetAttribute(#Gadget,#PB_Editor_TextLength)
...to retrieve the number of characters in the text box?

I know this can currently be achieved with Len(GetGadgetText(#Gadget)), but the above would hopefully avoid processing the whole string every time it's ...