Search found 2777 matches

by Danilo
Wed May 20, 2020 7:25 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
Replies: 42
Views: 12952

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

Some simple raygui controls are now available: Label, Button, LabelButton, ImageButton, CheckBox, ProgressBar, Slider, SliderBar, Toggle, ToggleGroup, StatusBar, GroupBox, Panel https://raw.githubusercontent.com/D-a-n-i-l-o/raylib-purebasic/master/examples/raygui/screenshots/raygui_buttons.png https...
by Danilo
Sat May 16, 2020 3:54 pm
Forum: Coding Questions
Topic: DrawVectorText() can also multiline output
Replies: 20
Views: 6121

Re: DrawVectorText() kann auch mehrzeilige Ausgabe

Saki wrote:Hi Danielo,
make a try, its because,
the height calculating is a litte strange
It works on macOS, but maybe you get strange results because you loaded font "". Try to use a font name like "Arial".
by Danilo
Sat May 16, 2020 3:26 pm
Forum: Coding Questions
Topic: DrawVectorText() can also multiline output
Replies: 20
Views: 6121

Re: DrawVectorText() can also multiline output

@Saki: You need to change

Code: Select all

AddPathBox(x-padding, y - padding, VectorTextWidthPro(text$) + padding * 2, VectorTextHeightPro(text$))
to

Code: Select all

AddPathBox(x-padding, y - padding, VectorTextWidthPro(text$) + padding * 2, VectorTextHeightPro(text$) + padding * 2)
(2 times)
by Danilo
Sat May 16, 2020 6:27 am
Forum: Announcement
Topic: A new PureBasic YouTube channel
Replies: 8
Views: 5882

Re: A new PureBasic YouTube channel

For the voice, I used http://onlinetonegenerator.com/voice-generator.html with the Google US English voice. No such selection for me. Did they remove it? The voice selections all sound like robots now. Fred is a robot! ;) I think Daniel, Lee, Oliver, and Tom are pretty okay for english male voices.
by Danilo
Sat May 16, 2020 5:40 am
Forum: Coding Questions
Topic: DrawVectorText() can also multiline output
Replies: 20
Views: 6121

Re: DrawVectorText() can also multiline output

For multiline: Procedure DrawVectorTextPro(text$) ; ; Multi-line DrawVectorText(). Lines separated by #LF$. ; Protected count = CountString(text$,#LF$) Protected height.d = VectorTextHeight(text$) Protected i, x = PathCursorX(), y = PathCursorY() For i = 0 To count MovePathCursor(x,y+(i*height)) Dra...
by Danilo
Sat May 16, 2020 5:25 am
Forum: Coding Questions
Topic: VectorTextWidth funktioniert nicht mit Zeilenumbruch 5.72
Replies: 6
Views: 2780

Re: VectorTextWidth funktioniert nicht mit Zeilenumbruch 5.7

Saki probably means multi-line: Procedure.d VectorTextWidthPro(text$, flags=#PB_VectorText_Default) ; ; Returns the VectorTextWidth() of the longest line (separated by #LF$) ; Protected i, width.d, result.d = 0.0, count = CountString(text$,#LF$) For i = 0 To count width = VectorTextWidth(StringField...
by Danilo
Fri May 15, 2020 5:52 am
Forum: Feature Requests and Wishlists
Topic: Support of ARM CPU
Replies: 60
Views: 22542

Re: Support of ARM CPU

derschutzhund wrote:Is there a plan when the first version of PB can be tested for the Pi?
Nobody said officially that PB is coming to Raspberry Pi.
by Danilo
Wed May 13, 2020 11:57 am
Forum: Off Topic
Topic: What is the best free basic compiler ?
Replies: 25
Views: 17012

Re: What is the best free basic compiler ?

BlitzBASIC? (by the way, is it free?, where to download?) The Blitz-Research products Blitz3D, BlitzPlus, and BlitzMax are at github and itch.io BlitzMax is continued by the community as „Blitzmax NG“: blitzmax.org , github Cerberus-X is Blitz-Research‘s „Monkey-X“ continuation by the community: ce...
by Danilo
Tue May 12, 2020 4:10 pm
Forum: General Discussion
Topic: 32K Image limit, canvas and DPI aware ?
Replies: 3
Views: 1709

Re: 32K Image limit, canvas and DPI aware ?

You should write a tile system, so you don‘t need to use 1 big image of 64.000 x 64.000 pixels in the future. If the 64k x 64k image is in one big file, you also need to write an image loader that does not load the whole file into memory. Instead it loads only tiles into memory. If you see only 4.00...
by Danilo
Mon May 11, 2020 6:19 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
Replies: 42
Views: 12952

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

Added 17 interesting examples to the category ‚textures‘ today.
by Danilo
Mon May 11, 2020 3:21 pm
Forum: Coding Questions
Topic: Best approach for placing a gadget above all other
Replies: 8
Views: 2076

Re: Best approach for placing a gadget above all other

If you need it for the Windows OS only, you could probably just add a child gadget (container for example) to the main window and set the z-order to topmost using SetWindowPos_().
by Danilo
Mon May 11, 2020 10:43 am
Forum: Coding Questions
Topic: Best approach for placing a gadget above all other
Replies: 8
Views: 2076

Re: Best approach for placing a gadget above all other

Use another borderless window and attach it to the parent window.
by Danilo
Sun May 10, 2020 6:58 pm
Forum: Coding Questions
Topic: Why is HideGadget not working?
Replies: 3
Views: 1047

Re: Why is HideGadget not working?

DisableGadget() and HideGadget() are different things.
by Danilo
Sun May 10, 2020 6:08 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
Replies: 42
Views: 12952

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

Examples 40 (text_font_filters) and 41 (text_font_loading) require re-compiled helper libs.
If you can‘t re-compile yourself, just ignore this examples. They crash without re-compiling.
by Danilo
Sat May 09, 2020 6:23 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
Replies: 42
Views: 12952

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

It looks like Example 19 (core_storage_values.pb) may not work on all platforms. It doesn‘t work on macOS. The libs that come with the raylib distribution are probably compiled without the flag ‚SUPPORT_DATA_STORAGE‘. But hey, it shouldn‘t be a problem to save high-scores using PB‘s file functions. ...