Search found 19 matches

by ccode_new
Fri Nov 03, 2023 10:01 pm
Forum: Tricks 'n' Tips
Topic: libVLC in pb (Windows Only)
Replies: 29
Views: 17536

Re: libVLC in pb (Windows Only)

Hi!

I've now tried "libvlc" to play videos.

The example from collectordave works very well, but you have to adapt the "vlc_createplayer" procedure for Linux or MacOS.


CompilerSelect #PB_Compiler_OS
CompilerCase #PB_OS_Windows
libvlc_media_player_set_hwnd( \libvlc_media_player, hwnd ...
by ccode_new
Sun Mar 05, 2023 7:53 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
Replies: 42
Views: 19704

Re: [Module] raylib-purebasic (Windows/Linux/macOS)

Hi!

A small update to "RayLib 4.2" follows.

There are still some errors in the PureBasic source code. (From me and from Mr. Krahn)

By implementing the RayLib examples (from the website) or by trying them out, you always get to know new errors.

[url=https://github.com/ccode-new/raylib-purebasic ...
by ccode_new
Wed Mar 01, 2023 9:57 pm
Forum: Feature Requests and Wishlists
Topic: OffsetOf, SizeOf, TypeOf inconsistency and feature request
Replies: 3
Views: 758

Re: OffsetOf, SizeOf, TypeOf inconsistency and feature request

Splunk wrote: Wed Mar 01, 2023 8:03 pm With the parameter "OffsetOf()" PB itself can determine which type it is.
Are you sure?
by ccode_new
Sat Feb 25, 2023 9:40 pm
Forum: The PureBasic Editor
Topic: Using Ligatures In the IDE (Scintilla.dll problem)
Replies: 1
Views: 1097

Re: Using Ligatures In the IDE (Scintilla.dll problem)

I think it's a matter of getting used to it.

Personally, I like the normal font display better.

For example, when I see this image, I personally don't want to use "ligatures".

https://github.com/tonsky/FiraCode/blob/master/extras/ligatures.png?raw=true

But I can't help you at the moment.

I ...
by ccode_new
Sat Feb 25, 2023 10:06 am
Forum: Bugs - Windows
Topic: EditorGadget vs ComboBoxGadget - Bug (Mouse pointer disappears)
Replies: 4
Views: 794

Re: EditorGadget vs ComboBoxGadget - Bug (Mouse pointer disappears)


I'm not sure if this is a bug.
It is a normal feature of the editor gadget that the mouse cursor disappears when you type text into it.
It is same in classic applications like MS Word.
When you send text with AddGadgetItem() this has the same effect.


But that is no explanation why it works in ...
by ccode_new
Sat Feb 25, 2023 8:19 am
Forum: Bugs - Windows
Topic: EditorGadget vs ComboBoxGadget - Bug (Mouse pointer disappears)
Replies: 4
Views: 794

EditorGadget vs ComboBoxGadget - Bug (Mouse pointer disappears)

When the ComboBoxGadget() is open, the mouse pointer over the gadget disappears. Error occurs with all ComboBoxGadget().

Example:

Procedure AlertThread(Parameter)

Repeat
If IsGadget(0)
AddGadgetItem(0, -1, "Zeile "+Str(Date())) :
Delay(300)
EndIf
ForEver

EndProcedure

If OpenWindow(0, 0 ...
by ccode_new
Sun Feb 19, 2023 10:32 am
Forum: Feature Requests and Wishlists
Topic: Please update PB's C runtime on Windows (e.g.: msvcrt.lib)
Replies: 4
Views: 1350

Re: Please update PB's C runtime on Windows (e.g.: msvcrt.lib)

But you can also ignore the new msvcrt.lib in the settings and link with an older version.
(If the project does not need newer features.)

This then has a higher compatibility with older Windows versions.
by ccode_new
Sun Feb 19, 2023 9:58 am
Forum: Feature Requests and Wishlists
Topic: Please update PB's C runtime on Windows (e.g.: msvcrt.lib)
Replies: 4
Views: 1350

Re: Please update PB's C runtime on Windows (e.g.: msvcrt.lib)

You can't just replace the msvcrt.lib like that.
An extended msvcrt.lib is required that includes all additional dependencies. This is then very large.


MSVCRT vs UCRT These are two variants of the C standard library on Microsoft Windows.

MSVCRT (Microsoft Visual C++ Runtime) is available by ...
by ccode_new
Wed Feb 15, 2023 2:09 am
Forum: Applications - Feedback and Discussion
Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
Replies: 42
Views: 19704

Re: [Module] raylib-purebasic (Windows/Linux/macOS)

@chi

Thanks very much!
The replacement of "msvcrt.lib" was successful.

I can now create a static library using "MS Visual Studio" and it works.


Can I tell PureBasic to use a different msvcrt.lib when linking?
So some kind of Makefile for PureBasic?
by ccode_new
Mon Feb 13, 2023 8:52 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
Replies: 42
Views: 19704

Re: [Module] raylib-purebasic (Windows/Linux/macOS)

:?:
How to statically build the "raylib" library on Windows with PureBasic compatibility? (.lib / .a)

(Using Microsoft Visual Studio C compiler or msys2)

Does anyone have experience with this?
by ccode_new
Fri Jan 13, 2023 9:25 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
Replies: 42
Views: 19704

Re: [Module] raylib-purebasic (Windows/Linux/macOS)

Hello mk-soft,

did you test this?

That's why I've renamed the structures since I first used the RayLib.

This function also only needs Vector2.

This doesn't work!

#include "raylib_pb_helper.h"
#include "rlgl.h"

void pbhelper_DrawTextPro(Font* font, const char *text, Vector2 *position, Vector2 ...
by ccode_new
Fri Jan 13, 2023 5:28 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
Replies: 42
Views: 19704

Re: [Module] raylib-purebasic (Windows/Linux/macOS)

Is there a way to use the "DrawTextPro" function without the detour:

ImageText -> LoadTextureFromImage -> DrawTextureEx

It is about the possibility of rotation of this function.

"DrawTextPro" doesn't work!

Enclosed:

I recompiled the "pbhelper" C files with this command:

"RLAPI void ...
by ccode_new
Fri Jan 13, 2023 12:11 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
Replies: 42
Views: 19704

Re: [Module] raylib-purebasic (Windows/Linux/macOS)

@idle:

But that's not particularly nice.
by ccode_new
Thu Jan 12, 2023 9:23 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
Replies: 42
Views: 19704

Re: [Module] raylib-purebasic (Windows/Linux/macOS)

Hi!

I like the RayLib.
Can you update your source code to the current RayLib version 4.2?