Mixing raylib components and raygui controls in a single window instance. #2497
Replies: 1 comment 1 reply
-
Not sure if I understand the issue. Of course you can mix raylib and raygui drawing, actually raygui functions just call
Yes.
I don't understand the question. There is no "focus" concept, you just draw things where you want in the screen.
Yes, raylib does not support child window, neither raygui (because raygui uses raylib and raylib does not support child windows). In any case, you can customize raylib to support child windows if desired, it's explained in the Wiki. |
Beta Was this translation helpful? Give feedback.
-
Hi Ray
I have been searching around in an attempt to confirm if it is possible to mix raylib and raygui. I have encountered some ambiguity in my search for a conclusive answer to this.
An example would be a simple paint like drawing application with a draw pad using the raylib API and common controls from the raygui (such as buttons (Save-Open-Clear), colour picker control),
My first "assumption" was that I would be able to mix the 2 APIs, but have seen suggestions that I can't do this.
Q1. Can I mix raylib and raygui components in a single window instance?
Q2. If yes, would It be best to give focus to raylib or raygui? (Both appear to use InitWindow() so I would guess it wouldn't matter)
Q3. I read that raylib/gui does not support child windows (As a second window instance, not MDI style). Is this correct?
(It is C so ultimately I should be able to start a second InitWindow() process).
I know I am preempting some questions before testing them in the IDEs, but I need to get a reasonable picture before I start as I will be coding all examples I do in C, FreeBASIC and Python3 at the same time on Windows and Ubuntu and have to set myself up to make my life as easy as I can. Writing books with step by step and pictures as well creating all of the example in each environment is a time consuming and taxing exercise :)
( I still have to keep up with daily life commitments as well as my tertiary submissions all while dealing with chronic heart failure. Life wasn't meant to be easy someone said lol)
Best regards
Axle
P.S. I did see some examples at https://github.com/Demizdor/ so I am guessing I can mix drawing and GUI components.
Beta Was this translation helpful? Give feedback.
All reactions