Search found 808 matches

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: 907

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: 907

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: 907

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: 907

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: 817

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: 706

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: 438

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: 438

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: 438

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: 438

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.
by Lord
Tue Jul 29, 2025 8:47 am
Forum: Coding Questions
Topic: Scrolling two (or more) ListViewGadgets synchron
Replies: 9
Views: 438

Scrolling two (or more) ListViewGadgets synchron

Hi!

Is there a way to scroll two or more ListviewGadgets synchron
using mousewheel, scrollbar or upper and lower scroll buttons?
Procedure ScrollSynchron()
; what to do here ???
EndProcedure

If OpenWindow(0, 10, 10, 500, 250, "Test", #PB_Window_SystemMenu)
ListViewGadget(1, 10, 10, 235, 230 ...
by Lord
Wed Jul 23, 2025 10:28 am
Forum: Coding Questions
Topic: How to compress this ?
Replies: 15
Views: 1847

Re: How to compress this ?


This code gives a numbers list, I want to compress.
I would like to reach 2 bits per number.
...

Maybe I'm totally wrong and misunderstud the problem.
What about using one bit for each number?
This is what come to my mind after reading this thread (pseudo code):
; Insert IsPrime_x64() here ...
by Lord
Thu Jun 19, 2025 7:39 am
Forum: Coding Questions
Topic: declaring a variable 2x should be an error with EnableExplicit
Replies: 8
Views: 916

Re: declaring a variable 2x should be an error with EnableExplicit

Aren't x.s and x$ two different variables?
So no error.
If so, it should stay that way.

If a varable is declared by same type a second time, it is no error.
It should yield only a warning.
by Lord
Mon Jun 16, 2025 6:53 am
Forum: Mac OSX
Topic: How can I unfold a TreeGadget?
Replies: 8
Views: 904

Re: How can I unfold a TreeGadget?

Did you try HideGadget(0, #True) and HideGadget(0, #False)?
Or was it DisableGadget()? Try it.

For Windows only:

Procedure OnExpandAll()
Protected i
SendMessage_(GadgetID(0),#WM_SETREDRAW,#False,0)
For i = 0 To CountGadgetItems(0) - 1
SetGadgetItemState(0, i, #PB_Tree_Expanded)
Next ...