Search found 394 matches

by ZX80
Sat Jan 03, 2026 3:18 pm
Forum: Tricks 'n' Tips
Topic: Window ListIconGadget With Owner Data (Very Fast)
Replies: 45
Views: 3281

Re: Window ListIconGadget With Owner Data (Very Fast)

Thanks mk-soft.

Small comment to improve.
I noticed some slowdown when clicking on the same element twice. These are single clicks, but with a small pause between them. Maybe you need to remember the last selected item ?
by ZX80
Sat Jan 03, 2026 9:16 am
Forum: Coding Questions
Topic: Editor - once again about word wrap
Replies: 2
Views: 255

Re: Editor - once again about word wrap

Hello, RASHAD .

Thank you for your attempt. Unfortunately, this is not handled as a gadget with the #PB_Editor_WordWrap flag. This flag doesn't do the main thing I need, which is to limit the number of characters in a line. Indenting is not the way to go (margins). I added part of Axolotl code to ...
by ZX80
Fri Jan 02, 2026 6:54 pm
Forum: Coding Questions
Topic: Editor - once again about word wrap
Replies: 2
Views: 255

Editor - once again about word wrap

Hello everyone.

The user asks to limit the number of characters in a line, but we only have what the OS offers ( #PB_Editor_WordWrap ). Unfortunately, this option is not suitable. I wish I could have this in real time ("on the fly"). For this I used the Axolotl code as a basis. But this is not as ...
by ZX80
Thu Nov 20, 2025 9:02 am
Forum: Coding Questions
Topic: EditorGadget - determine selection
Replies: 2
Views: 507

Re: EditorGadget - determine selection

Axolotl, thank you !

This is what is needed.
by ZX80
Mon Nov 17, 2025 7:36 pm
Forum: Coding Questions
Topic: EditorGadget - determine selection
Replies: 2
Views: 507

EditorGadget - determine selection

Good day to all.

Maybe someone has already encountered a similar problem ? Maybe someone has already solved this ?
I have an editor gadget. The user selects one line, several lines, or all lines. It doesn't matter if it was a mouse or another method (keyboard). These questions interest me. That is ...
by ZX80
Wed Nov 12, 2025 7:47 pm
Forum: Coding Questions
Topic: EditorGadget - reset the style of the copied text.
Replies: 16
Views: 1484

Re: EditorGadget - reset the style of the copied text.

normeus

Thanks for your reply.
I think I'm starting to understand what you wanted to say. I guess this can be compared to a keyboard layout. Windows remembers the keyboard layout state for each window. It turns out that the same story applies to the clipboard. Thus, it turns out that in order to ...
by ZX80
Wed Nov 12, 2025 4:31 pm
Forum: Coding Questions
Topic: EditorGadget - reset the style of the copied text.
Replies: 16
Views: 1484

Re: EditorGadget - reset the style of the copied text.

RASHAD

Since you've touched on the topic of the pop-up menu, I have another question:

Is it possible to increase the size of the system popup menu window ?
I came across your code somewhere for increasing the font size in this menu. This is great !
But now another problem has arisen: the text of ...
by ZX80
Wed Nov 12, 2025 4:19 pm
Forum: Coding Questions
Topic: EditorGadget - reset the style of the copied text.
Replies: 16
Views: 1484

Re: EditorGadget - reset the style of the copied text.

Axolotl
Sounds strange, and I cannot explain that.
Me too ! :D


normeus
When you use PB's GetClipboardText(), you are getting text without formatting.
Okay ! Did you read my message above ? There I actually rewrite the clipboard data. Text without formatting !
How come when I paste it into ...
by ZX80
Wed Nov 12, 2025 4:14 pm
Forum: Coding Questions
Topic: EditorGadget - reset the style of the copied text.
Replies: 16
Views: 1484

Re: EditorGadget - reset the style of the copied text.

RASHAD , thank you for your reply.

But my task is not about the capabilities of EditorGadget. Okay, let me explain again.
Run your code and you will see the red bold text "RTF". Then copy it to the clipboard and paste it into MS Word. The text will be exactly the same in Word. Excellent ! Imagine ...
by ZX80
Wed Nov 12, 2025 2:55 pm
Forum: Coding Questions
Topic: EditorGadget - reset the style of the copied text.
Replies: 16
Views: 1484

Re: EditorGadget - reset the style of the copied text.

I was experimenting with the clipboard and completely by accident came up with this solution to this problem:

;...

Case #PB_Event_Menu
Select EventMenu()
Case #mPaste
Debug "Paste"
tmp$ = GetClipboardText()
SetClipboardText(tmp$)
SendMessage_(hWnd, #WM_PASTE, 0, 0)

;...

I don't ...
by ZX80
Wed Nov 12, 2025 12:44 pm
Forum: Coding Questions
Topic: [Solved] Difficulties with StatusBar
Replies: 4
Views: 723

Re: Difficulties with StatusBar

Mesa, thanks a lot !

Looks like this is what it takes !

P.S. Yes, that's it! Thanks again!
by ZX80
Wed Nov 12, 2025 8:52 am
Forum: Coding Questions
Topic: EditorGadget - reset the style of the copied text.
Replies: 16
Views: 1484

Re: EditorGadget - reset the style of the copied text.

Good time, BarryG .

Yes, you are absolutely right. I think so too. If I understand you correctly, you recommend disabling the advanced features of the gadget. Yes, I know it's off by default. To enable it, you need to use a special API function. These are obvious things. That would be too easy ...
by ZX80
Wed Nov 12, 2025 7:21 am
Forum: Coding Questions
Topic: EditorGadget - reset the style of the copied text.
Replies: 16
Views: 1484

EditorGadget - reset the style of the copied text.

Hi, all.

I have an editor in my window that has a font assigned to it that I defined. I didn't realize it would be used in this way. Problem: A person writes text in a third-party text editor, such as Word, and then pastes it into my program. The font changes according to how it was selected in ...
by ZX80
Wed Nov 12, 2025 7:12 am
Forum: Coding Questions
Topic: The problem of finding an interval and the closest points.
Replies: 4
Views: 745

Re: The problem of finding an interval and the closest points.

spikey, thanks for your version and explanations.
by ZX80
Sun Nov 09, 2025 8:23 am
Forum: Coding Questions
Topic: [Solved] Difficulties with StatusBar
Replies: 4
Views: 723

Re: Difficulties with StatusBar

skywalk , thanks for your reply !

I will consider your solution in more detail.

P.S. Such nuances and workarounds make interface development tedious and slow down the main work.
So I'd like to see native support for such basic features in future versions of PB. I hope so.
When you resize the ...