Git Product home page Git Product logo

Comments (9)

GuvaCode avatar GuvaCode commented on August 15, 2024 1

I use Devuan 3.1.1 as OS.

systemd is evil :)

from ray4laz.

funlw65 avatar funlw65 commented on August 15, 2024 1

:) Yeah, not evil, but not welcomed in my universe :). Well, I have nothing against others using it, it is becoming a standard and cannot be ignored. Having a machine with a systemd based linux for commercial application development is a must.

Gunko, I think you can close this issue. No matter the fpc version, I get the same behavior... And I am upset, because the application was almost finished. I tried also with 3.3.1 version... I think is because of my OS. I'll put this on hold, continue with C language, until I will be able to install something else. Thank you for this translation, it is really helpful.

from ray4laz.

GuvaCode avatar GuvaCode commented on August 15, 2024
eText := 'Spasiva!';`

or

eText := another_string_variable;

Well, everything works for me.

program Game;
{$mode objfpc}{$H+}
uses

raygui,
raylib;

const
screenWidth = 800;
screenHeight = 450;

var
eText : array [0..60] of char = '';

begin
InitWindow(screenWidth, screenHeight, 'raylib - simple project');

while not WindowShouldClose() do
begin
etext:='Hello ';
BeginDrawing();
ClearBackground(RAYWHITE);
GuiTextBox(RectangleCreate( 10, 30, 125, 30 ), @etext, 60, true);
EndDrawing();
end;
CloseWindow(); // Close window and OpenGL context
end.

from ray4laz.

funlw65 avatar funlw65 commented on August 15, 2024

Thank you, I will try to see what and where I do wrong. I use a "form" with multiple GuiTextBox fields to edit the records of the database...

from ray4laz.

funlw65 avatar funlw65 commented on August 15, 2024

Your example presents the same problem I have... I'll see if is from compiling the C library...

from ray4laz.

GuvaCode avatar GuvaCode commented on August 15, 2024

Could you show me your code?

from ray4laz.

funlw65 avatar funlw65 commented on August 15, 2024

No luck here, recompiled the GLFW 3.3.4 as shared lib, recompiled raylib 4 as shared with inclusion of raygui and physac...

Assured myself that I have the last version of your repository.

Now, as a note, I compile my app with fpc only, not using Lazarus. I have your .pas units in my folder and that is all.

In your little example, if I comment the line where:

eText := 'Hello';

then eText become editable. If not, it is only displayed, and the caret right after it, It does not move, no matter what I type.

If this will go well, I will share my app - it is intended from the start for sharing. If not, I will finish the app in C language to have an executable for everyone to play with it, and still sharing pascal sources for people that can use them.

from ray4laz.

funlw65 avatar funlw65 commented on August 15, 2024

I use Devuan 3.1.1 as OS.

from ray4laz.

funlw65 avatar funlw65 commented on August 15, 2024

Hi Gunko,

Your little example doesn't work even on your computer because you attribute the same value over and over again, no matter what you type in the GuiTextBox....

Move the attribution outside the while and the variable becomes editable.

That was my error.... now, to finish the example.

from ray4laz.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.