Search found 49 matches

by Sergey
Sat Oct 04, 2025 12:11 am
Forum: Bugs - Windows
Topic: ResizeWindow don't work with Debugger
Replies: 3
Views: 626

Re: ResizeWindow don't work with Debugger

No one except infratec answered
freak will say I need coffee ... more coffee today :)
by Sergey
Fri Oct 03, 2025 4:34 pm
Forum: Bugs - Windows
Topic: ResizeWindow don't work with Debugger
Replies: 3
Views: 626

Re: ResizeWindow don't work with Debugger

infratec, foreground don't help me,
the window always freezes with stop on CallDebugger and Continue :|

I think this an old problem :wink:
What version of PB you tested?

And If you Insert Debug WindowX(0) the PB will lie :lol:

Debug WindowX(0)
CallDebugger
Debug WindowX(0 ...
by Sergey
Fri Oct 03, 2025 3:49 pm
Forum: Bugs - Windows
Topic: ResizeWindow don't work with Debugger
Replies: 3
Views: 626

ResizeWindow don't work with Debugger

Hi,
I took a standard source from topic "Window" and insert CallDebugger after OpenWindow command and commented two lines with MessageRequester
After run with debugger program stoped on CallDebugger line, I press Continue, but now Window don't change X and Y coordinates, only sizes
If I commented ...
by Sergey
Thu Aug 28, 2025 1:18 pm
Forum: Coding Questions
Topic: Input of floating point numeric number in a window
Replies: 8
Views: 923

Re: Input of floating point numeric number in a window

Axolotl wrote: Mon Aug 25, 2025 12:42 pm If you are on windows and not afraid of using API maybe this can be a start
Also need a check, only one ',' char may be used :wink:
by Sergey
Mon Aug 25, 2025 11:15 am
Forum: Coding Questions
Topic: Input of floating point numeric number in a window
Replies: 8
Views: 923

Re: Input of floating point numeric number in a window

Code: Select all

input.s = InputRequester("Enter a float number", "Float:", "")
If input
	float.f = ValF(input)	
	Debug "Float is " + StrF(float)
Else
	Debug "Canceled"
EndIf
Without checking of introduced characters
by Sergey
Mon Aug 25, 2025 10:47 am
Forum: Game Programming
Topic: Volumetric clouds [CODE]
Replies: 24
Views: 2703

Re: Volumetric clouds [CODE]

I can't control the camera, it constantly turns to the right. The arrows keys don't fart
Clouds look very beautiful. PureBasic 6.21 (Windows - x64)
by Sergey
Sat Aug 02, 2025 10:02 am
Forum: Coding Questions
Topic: window With no Title And With no taskbar icon?
Replies: 11
Views: 664

Re: window With no Title And With no taskbar icon?

Olli wrote: Tue Jul 29, 2025 4:56 pm No window title, no taskbar.
Ha, ha, ha ... really, no title, no taskbar :D
by Sergey
Sat Jul 12, 2025 10:21 am
Forum: Coding Questions
Topic: Order of JSON items
Replies: 9
Views: 820

Re: Order of JSON items


Hello Sergey,

your example does not work in my case.
I want to get the name in the same order as it is written, but I get Tom, Michel, Peter.

I gave you an idea how to order object members list
See Mijikai's exmaple


Interesting, here is what i came up with.

Hello, Mijikai. Yes, that's ...
by Sergey
Fri Jul 11, 2025 11:29 pm
Forum: The PureBasic Editor
Topic: IDE Tool "Jump to Marker"
Replies: 25
Views: 3899

Re: IDE Tool "Jump to Marker"

Code: Select all

CompilerIf Not #PB_Compiler_DPIAware
	MessageRequester("Warning", "Enable DPIAware", #PB_MessageRequester_Warning)
	End
CompilerEndIf
Simple check for DPIAware :wink:
by Sergey
Fri Jul 11, 2025 5:47 pm
Forum: Coding Questions
Topic: Order of JSON items
Replies: 9
Views: 820

Re: Order of JSON items

Input$ = "{ " + Chr(34) + "x" + Chr(34) + ": 10, " +
Chr(34) + "y" + Chr(34) + ": 20, " +
Chr(34) + "z" + Chr(34) + ": 30 }"

ParseJSON(0, Input$)
ObjectValue = JSONValue(0)

If ExamineJSONMembers(ObjectValue)
While NextJSONMember(ObjectValue)
Debug Str(JSONMemberValue(ObjectValue ...
by Sergey
Thu Jul 10, 2025 7:09 pm
Forum: Coding Questions
Topic: Order of JSON items
Replies: 9
Views: 820

Re: Order of JSON items

I'm used a pointer to json object in memory (from min to max), maybe this help you order json members :wink:
by Sergey
Thu Jul 10, 2025 5:00 am
Forum: The PureBasic Editor
Topic: IDE Tool "Jump to Marker"
Replies: 25
Views: 3899

Re: IDE Tool "Jump to Marker"

Michael Vogel, there 2 versions of source code
Second version starts at line 412 :wink:
Thanks, useful tool
by Sergey
Sat Jun 21, 2025 9:41 pm
Forum: Windows
Topic: WaitThread problem
Replies: 7
Views: 1519

Re: WaitThread problem

Mijikai, very very nice! You're a genius! Thank you, now works fine.
I never used PostEvent and didn't know about its existence :)
by Sergey
Sat Jun 21, 2025 7:52 pm
Forum: Windows
Topic: WaitThread problem
Replies: 7
Views: 1519

Re: WaitThread problem

Hi, jacdelad
This is a example, not working program

1) start_thread run once
2) how can I change listicon during the thread?
3) this is done specifically to show that the execution of WaitThread
does not allow to change the contents of the ListIconGadget

Procedure thread(param)
Delay(1000 ...
by Sergey
Sat Jun 21, 2025 6:26 pm
Forum: Windows
Topic: WaitThread problem
Replies: 7
Views: 1519

WaitThread problem

Hi,
when I want to change listicon text in thread it becomes unlimited
Just comment line 3 and all will be ok, multithreading is enabled
PB6.21 final Win10 x64
Both codes WaitThread or While-Wend are freezing

Procedure thread(thread_param)
Delay(1000)
SetGadgetItemText(0, 0, "Wait")
Delay(1000 ...