Search found 812 matches

by Lord
Tue Jan 20, 2026 10:36 am
Forum: Coding Questions
Topic: Detect RMB on statusbar
Replies: 6
Views: 265

Re: Detect RMB on statusbar

Hi!

Thank you Axolotl and RASHAD for replying to my request.

Both examples give me the requested behaviour.
I think I will go with Axolotl's example as it gives me more variations of mousebutton events on statusbar which I can use in the future.

Greetings

Lord
by Lord
Mon Jan 19, 2026 5:19 pm
Forum: Coding Questions
Topic: Detect RMB on statusbar
Replies: 6
Views: 265

Detect RMB on statusbar

Hi!

Short question: Is there an easier (or even better a correct) way to detect a RMB down or RMB up on a statusbar?
I came up with this:
EnableExplicit

Define sbh
Define Event

Procedure WinCallback(hWnd, uMsg, wParam, lParam)
Select uMsg
Case 528
AddGadgetItem(1, -1, "RMB")
If ...
by Lord
Mon Nov 17, 2025 1:19 pm
Forum: Windows
Topic: Make selected PanelGadget tab bold?
Replies: 10
Views: 1693

Re: Make selected PanelGadget tab bold?

Hi wombats!

Thank you editing the code.
Seems to work for me. I will incorporate this in my code.

Lord
by Lord
Sun Nov 16, 2025 11:15 am
Forum: Windows
Topic: Make selected PanelGadget tab bold?
Replies: 10
Views: 1693

Re: Make selected PanelGadget tab bold?

May I just jump in?

What if I want to have the text in tabs constantly colored?
Maybe first tab red, second blue and third green?
It should be when the PanelGadget with its tabs is created.
Is this possible?

Thanks in advance.
by Lord
Wed Aug 27, 2025 4:14 pm
Forum: Coding Questions
Topic: Window goes to maximum after monitor turned off and on again
Replies: 10
Views: 1524

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

Olli wrote: Wed Aug 27, 2025 12:16 pm ...
Could you test a softwared switch off ?
Yes, I did.
There was no problem. The window wasn't maximized.
I tried Rashads snipped above: no problem.
Also the 'normal' standby mode didn't any harm.
Only power off/on showed the problem.
by Lord
Wed Aug 27, 2025 8:27 am
Forum: Coding Questions
Topic: Window goes to maximum after monitor turned off and on again
Replies: 10
Views: 1524

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

Hi Jim!

Yes, Windows is behaving strangely. At first, it looked as if y=900 was a limit
beyond which the window would expand to its maximum size.
When I then reduced the window size again, the window was still enlarged.
I had to go back to <= 600 until I had a constant window size again.
I give up ...
by Lord
Tue Aug 26, 2025 9:00 am
Forum: Coding Questions
Topic: Window goes to maximum after monitor turned off and on again
Replies: 10
Views: 1524

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

Thank you to all of you for confirming my observation.
So its not only my system with this strange behaviour.
I will stay with WindowBounds(). It serves me as I do not need
any resizing and I do not have to intercept any events.

Another question is wether this is PB only related and maybe
a bug or ...
by Lord
Mon Aug 25, 2025 7:25 pm
Forum: Coding Questions
Topic: Window goes to maximum after monitor turned off and on again
Replies: 10
Views: 1524

Window goes to maximum after monitor turned off and on again

Hi!

Today I observed an unsual window behaviour:
OpenWindow(1, 10, 10, 1024, 920, "", #PB_Window_SystemMenu)
; WindowBounds(1, 1024, 920, 1024, 920)
Repeat
Event=WaitWindowEvent()
Until Event=#PB_Event_CloseWindow
Running this snippet and turning monitor off and on again lets
expand the window ...
by Lord
Mon Aug 18, 2025 8:45 am
Forum: Coding Questions
Topic: Problem with Filerequester
Replies: 17
Views: 2267

Re: Problem with Filerequester

$93 versus $22
by Lord
Wed Aug 13, 2025 11:30 am
Forum: General Discussion
Topic: Speed on PB is slow ?!
Replies: 14
Views: 2971

Re: Speed on PB is slow ?!

Interesting:

If I use For/Next, the execution time ist just 50% with Debugger on.
C-Backend is selected and Optimization is enabled.
31106 ms to 69440 ms
Without Debugger: both 0 ms

Win11 x64, PB6.20 x64, i5-13400F
by Lord
Wed Jul 30, 2025 4:21 pm
Forum: Coding Questions
Topic: Scrolling two (or more) ListViewGadgets synchron
Replies: 9
Views: 4199

Re: Scrolling two (or more) ListViewGadgets synchron

Hi Rashad!

Thank you for being so patient.

I seems, that your last posting includes what I was looking for.
It never came to my mind using LIG for that, because I didn't
know the existance of #LVS_NOCOLUMNHEADER.
Everything works, no "soft scroll", all lines reachable with
scroll bar and keys ...
by Lord
Wed Jul 30, 2025 11:27 am
Forum: Coding Questions
Topic: Scrolling two (or more) ListViewGadgets synchron
Replies: 9
Views: 4199

Re: Scrolling two (or more) ListViewGadgets synchron

Hi Rashad!

Sorry for my late response, but
I noticed a strange ListGadget behaviour.
I could populate the gadget with more than 65561 entries.
Starting with 65562 entries, I was not able to reach entries
greater than 65561 by moving the scroll bar knob with mouse.
The List jumps just to an entry in ...
by Lord
Tue Jul 29, 2025 11:15 am
Forum: Coding Questions
Topic: Scrolling two (or more) ListViewGadgets synchron
Replies: 9
Views: 4199

Re: Scrolling two (or more) ListViewGadgets synchron

Hello Rashad!

Thank you for responding.
Your code works as espected and needed (as always).
I'll stick to it.

Is there a way to eliminate this slow moving of list content when
clicking the scrollbar?
by Lord
Tue Jul 29, 2025 11:10 am
Forum: Coding Questions
Topic: Scrolling two (or more) ListViewGadgets synchron
Replies: 9
Views: 4199

Re: Scrolling two (or more) ListViewGadgets synchron

Hi Shardik!

Thank you for your answer.
Shardik wrote: Tue Jul 29, 2025 9:24 am ...
al90
...
This example doesn't work with LiestViewGadget.
Shardik wrote: Tue Jul 29, 2025 9:24 am...
Fluid Byte
Here you can't use mousewheel.