Search found 436 matches
- Thu Mar 20, 2025 10:16 pm
- Forum: Coding Questions
- Topic: Flickering in GUI application
- Replies: 11
- Views: 546
Re: Flickering in GUI application
I am using a full screen canvas so I can capture the mouse dragging. Unless there is some other way of capturing dragging?
- Thu Mar 20, 2025 10:11 pm
- Forum: Coding Questions
- Topic: Flickering in GUI application
- Replies: 11
- Views: 546
Re: Flickering in GUI application
Is there any way of capturing mouse button down (not click) on the window without a gadget?
- Thu Mar 20, 2025 10:07 pm
- Forum: Coding Questions
- Topic: Flickering in GUI application
- Replies: 11
- Views: 546
Re: Flickering in GUI application
It's OK, my entire code is ~5000 lines.
I think the problem is I am drawing a full screen canvas then drawing all my gadgets on top of that.
I will try to do it another way. And also I will try to draw to an image and paste the image on the window.
I think the problem is I am drawing a full screen canvas then drawing all my gadgets on top of that.
I will try to do it another way. And also I will try to draw to an image and paste the image on the window.
- Thu Mar 20, 2025 9:26 pm
- Forum: Coding Questions
- Topic: Flickering in GUI application
- Replies: 11
- Views: 546
Re: Flickering in GUI application
Procedure WindowResize()
Protected width.i = WindowWidth(0)
Protected height.i = WindowHeight(0)
StartDrawing(CanvasOutput(0))
Box(0, 0, 130, 300, RGB(200, 200, 200))
StopDrawing()
ResizeGadget(1, 150, 0, Width-150, height)
StartDrawing(CanvasOutput(0))
Box(0, 0, 130, 50, RGB(255, 0, 0 ...
- Thu Mar 20, 2025 9:35 am
- Forum: Coding Questions
- Topic: Flickering in GUI application
- Replies: 11
- Views: 546
Re: Flickering in GUI application
I'm making custom gadgets using drawing functions like Box() and Line() etc. When I resize parts of the application they flickers as they are being redrawn as the mouse moves. Also resizing the entire window they flicker. I could create a sample if you really want it but it would take some time.
- Thu Mar 20, 2025 7:47 am
- Forum: Coding Questions
- Topic: Flickering in GUI application
- Replies: 11
- Views: 546
Flickering in GUI application
What's the best way to stop flickering in a GUI application? Can it be double buffered and vsynced?
- Tue Mar 18, 2025 11:09 pm
- Forum: Mac OSX
- Topic: Application icon too big
- Replies: 1
- Views: 1488
Application icon too big
Why is my application icon bigger than all the other icons? Why is the PureBasic icon bigger than everything else for that matter?
- Tue Mar 18, 2025 10:05 pm
- Forum: Linux
- Topic: Detect dark mode
- Replies: 1
- Views: 1440
Detect dark mode
I've been using this code:
Procedure.i isDarkModeLinux()
Protected boolVal.i, *Settings
*Settings = gtk_settings_get_default_()
If *Settings
g_object_get_(*Settings, "gtk-application-prefer-dark-theme", @boolVal);
ProcedureReturn boolVal
EndIf
EndProcedure
But recently it's been giving ...
Procedure.i isDarkModeLinux()
Protected boolVal.i, *Settings
*Settings = gtk_settings_get_default_()
If *Settings
g_object_get_(*Settings, "gtk-application-prefer-dark-theme", @boolVal);
ProcedureReturn boolVal
EndIf
EndProcedure
But recently it's been giving ...
- Tue Mar 18, 2025 12:26 am
- Forum: Coding Questions
- Topic: Detect a keypress in an editor gadget
- Replies: 2
- Views: 230
Re: Detect a keypress in an editor gadget
Thanks firace
Code: Select all
EventType() = #PB_EventType_Change
- Mon Mar 17, 2025 11:20 pm
- Forum: Coding Questions
- Topic: Detect a keypress in an editor gadget
- Replies: 2
- Views: 230
Detect a keypress in an editor gadget
How do you detect a keypress inside an editor? Or how do you detect that the text inside the editor has changed? Preferably something cross platform.
- Sun Mar 16, 2025 4:25 pm
- Forum: Coding Questions
- Topic: Get list of installed fonts
- Replies: 1
- Views: 252
Get list of installed fonts
How do you get a list of installed fonts crossplatform?
- Mon Mar 03, 2025 4:39 am
- Forum: Coding Questions
- Topic: Writing files when application installed with installer
- Replies: 2
- Views: 279
Re: Writing files when application installed with installer
I think you can disregard this. The settings are configured in the installer software.
- Mon Mar 03, 2025 3:53 am
- Forum: Coding Questions
- Topic: Writing files when application installed with installer
- Replies: 2
- Views: 279
Writing files when application installed with installer
I made an installer for my application and then installed it for all users. Apparently this means the application cannot write to the hard disk because the application only has read access to the folder it was installed in. How do I set this up so the application can write to the folder? Windows 11 ...
- Sun Feb 23, 2025 5:47 am
- Forum: General Discussion
- Topic: Difficulty with Editor Gadget
- Replies: 13
- Views: 2161
- Sun Feb 23, 2025 4:13 am
- Forum: General Discussion
- Topic: Difficulty with Editor Gadget
- Replies: 13
- Views: 2161
Re: Difficulty with Editor Gadget
I may not have been clear, I'm trying to remove all rich text formatting from the editor gadget, but not having any luck.