Search found 147 matches

by rndrei
Fri May 16, 2025 11:03 am
Forum: Linux
Topic: Memory of another process
Replies: 2
Views: 1320

Memory of another process

How to read the memory of another process?
It doesn't work!

Code: Select all

*buffer = $004005
If *buffer
  value = PeekB(*buffer + 9)
  MessageRequester("read memmory " , Str(value)) 
  FreeMemory(*buffer)
Else
  MessageRequester("error","not work")
EndIf
by rndrei
Sun May 04, 2025 4:18 pm
Forum: Linux
Topic: Lead time
Replies: 3
Views: 1377

Lead time

How to find out the time of execution of a piece of code? You can read the current time and time after the event, but this is second () seconds. And I need to at milisecond!?
by rndrei
Fri May 02, 2025 3:17 am
Forum: Coding Questions
Topic: Mouse LeftClick
Replies: 3
Views: 507

Mouse LeftClick

Why doesn't the left mouse button not work? System: Linux Ubuntu
OpenWindow(0,0,0,600,600,"")
ScintillaGadget(1,0,0,600,500,#Null)
Repeat
event=WaitWindowEvent()
Select Event
Case #PB_Event_Gadget
Select EventGadget()
Case 1
Select EventType()
Case #PB_EventType_LeftClick : Debug "Click ...
by rndrei
Wed Apr 30, 2025 8:32 am
Forum: Coding Questions
Topic: 2DDrawing Box
Replies: 3
Views: 657

2DDrawing Box

How to draw an unnecessary square?
You can draw lines, but I think maybe there is a built -in solution?
#canvas=1
If Not OpenWindow(0, 0, 0, 1900, 900, "Gadget BOX", #PB_Window_SystemMenu)
End
EndIf
CanvasGadget(#canvas, 0, 0, 1000, 900)
If StartDrawing(CanvasOutput(#canvas))
Box(0,0,100,200 ...
by rndrei
Mon Apr 28, 2025 9:50 am
Forum: Linux
Topic: ListViewGadget color selected
Replies: 3
Views: 2065

Re: ListViewGadget color selected

For some reason it doesn't work SetSelectColor - FrontColor?

Code: Select all

  gtkgadgetcolor::SetSelectedColor(#PB_Gadget_FrontColor, RGB(0,0,0))
by rndrei
Mon Apr 28, 2025 9:45 am
Forum: Coding Questions
Topic: If in_IDE
Replies: 4
Views: 1133

If in_IDE

How to find out the program in IDE or not?
I thought it would be, something like that!?

Code: Select all

CompilerIf Not #PB_Compiler_Debugger
CompilerEndIf
by rndrei
Sun Apr 27, 2025 8:16 pm
Forum: Linux
Topic: ListViewGadget color selected
Replies: 3
Views: 2065

ListViewGadget color selected

How to change the color of the highlighted element?
Found in GTK, function:

Code: Select all

void
gtk_color_selection_set_current_color (
  GtkColorSelection* colorsel,
  const GdkColor* color
)
If it is she, how to perform it in Purebasic?
by rndrei
Sat Apr 26, 2025 2:49 pm
Forum: Coding Questions
Topic: ASCII ReadFile
Replies: 18
Views: 1810

Re: ASCII ReadFile

infratec wrote: Sat Apr 26, 2025 1:02 pm For something like that, I don't use a font which needs to be installed,
I use a hex viewer:

https://www.purebasic.fr/english/viewtopic.php?t=78858
What you need! I will study!
by rndrei
Fri Apr 25, 2025 11:27 am
Forum: Coding Questions
Topic: ASCII ReadFile
Replies: 18
Views: 1810

Re: ASCII ReadFile



I understand, I will understand, it probably still depends on the font!?

Yes, it also depends on the font. If the font has printable characters for all of the ASCII codes from 0-255 then you would see something different than these squares with hexadezimal numbers in it. But no usual font as ...
by rndrei
Fri Apr 25, 2025 11:16 am
Forum: Coding Questions
Topic: *MemoryBuffer
Replies: 19
Views: 1769

Re: *MemoryBuffer

Thanks for the different options, but I have never found documentation about reading the right byte from the buffer!
And I drank cappuccino!
by rndrei
Thu Apr 24, 2025 6:31 pm
Forum: Coding Questions
Topic: *MemoryBuffer
Replies: 19
Views: 1769

*MemoryBuffer

Tell me how to read the right byte from memory?

Code: Select all

*buffer = AllocateMemory(1000)
byte=*buffer(10)
byte2=*buffer[50]
by rndrei
Thu Apr 24, 2025 3:52 am
Forum: Tricks 'n' Tips
Topic: Canvas based Grid gadget
Replies: 93
Views: 65500

Re: Canvas based Grid gadget

What is the white square in the upper left corner of the table?
by rndrei
Thu Apr 24, 2025 3:30 am
Forum: Coding Questions
Topic: GridGadget
Replies: 8
Views: 1088

Re: GridGadget

I can't figure it out!How to hide the title on X?
On y found

Code: Select all

 ShowRowNumbers () 
And what kind of square is hanging in the upper left corner?
by rndrei
Wed Apr 23, 2025 7:10 pm
Forum: Coding Questions
Topic: GridGadget
Replies: 8
Views: 1088

Re: GridGadget



Here is a very good grid gadget by said: https://www.purebasic.fr/english/viewtopic.php?p=408428#p408428


And for said's grid gadget a few updates: https://www.purebasic.fr/english/viewtopic.php?p=601094#p601094 ;)


I can’t understand how to get the coordinates of X, Y tables in the window ...
by rndrei
Wed Apr 23, 2025 12:07 pm
Forum: Coding Questions
Topic: GridGadget
Replies: 8
Views: 1088

Re: GridGadget

Thank you, working code!