Recent

Author Topic: BGRABitmap - BGRAControls For Dummys  (Read 10027 times)

pixelink

  • Hero Member
  • *****
  • Posts: 1260
BGRABitmap - BGRAControls For Dummys
« on: July 19, 2017, 06:54:29 pm »
Okay...
I installed BGRABitmap, added uses and followed the tutorials.

Great... I have a sample project with most of tut codes. Pretty easy to figure out.
Everything works.

Now, I install the BGRAControls fine.
And I am aware there are no visible gui controls in LAZ.  ... fine (would be nice though)
I am aware that the controls have to work through the OpenGL control. (fine)

Here is the wiki page...
http://wiki.freepascal.org/BGRAControls

But, for the life of me, I can not figure out how to work with the controls.
The Wiki only shows me these awesome pretty controls but NO instructions on how to use them.

Come ON LAZ.... please make your documentation better for us DUMMY's
(after my friendly rant)   :o

So, how do I use these controls... where is the docs on this??

Thanks in Advanced
« Last Edit: July 19, 2017, 07:26:20 pm by technipixel »
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

pixelink

  • Hero Member
  • *****
  • Posts: 1260
Re: BGRABitmap - BGRAControls For Dummys
« Reply #1 on: July 19, 2017, 07:00:13 pm »
This is the instructions on that wiki page...

Quote
BGRA Controls is a set of graphical UI elements that you can use with Lazarus LCL applications. Works only through OpenGL.

That's it!??
 :(
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: BGRABitmap - BGRAControls For Dummys
« Reply #2 on: July 19, 2017, 07:08:30 pm »
Now, I install the BGRAControls fine.
And I am aware there are no visible gui controls in LAZ.  ... fine (would be nice though)

Have you installed the bgracontrols.lpk package and rebuild your IDE?

pixelink

  • Hero Member
  • *****
  • Posts: 1260
Re: BGRABitmap - BGRAControls For Dummys
« Reply #3 on: July 19, 2017, 07:12:10 pm »
Now, I install the BGRAControls fine.
And I am aware there are no visible gui controls in LAZ.  ... fine (would be nice though)

Have you installed the bgracontrols.lpk package and rebuild your IDE?

Yes, I said that above.
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

pixelink

  • Hero Member
  • *****
  • Posts: 1260
Re: BGRABitmap - BGRAControls For Dummys
« Reply #4 on: July 19, 2017, 07:16:56 pm »
Everything seems to be installed fine...
Added controls to inspector too.

The OpenGL control on right

« Last Edit: July 19, 2017, 07:25:37 pm by technipixel »
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

pixelink

  • Hero Member
  • *****
  • Posts: 1260
Re: BGRABitmap - BGRAControls For Dummys
« Reply #5 on: July 19, 2017, 07:21:12 pm »
Using just the BGRABitmap on a form works great... see screen below.

But, it's HOW DO I USE the controls.... that is what I can't seem to find tutorials on.

Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: BGRABitmap - BGRAControls For Dummys
« Reply #6 on: July 19, 2017, 07:27:55 pm »
And I am aware there are no visible gui controls in LAZ.  ... fine (would be nice though)

I have no problem with it, those icons just available after I installed it on my Lazarus 1.6.4 Linux 64-bit Gtk2. I installed it using Online Package Manager.

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: BGRABitmap - BGRAControls For Dummys
« Reply #7 on: July 19, 2017, 07:35:41 pm »
It worked for me. :D

pixelink

  • Hero Member
  • *****
  • Posts: 1260
Re: BGRABitmap - BGRAControls For Dummys
« Reply #8 on: July 19, 2017, 07:37:55 pm »
I read that there no visible controls.
I guess they were wrong...

So, why am I not seeing the controls.

I installed just like the instructions on the BRGABitmap wiki page said.
I chose "Design and Runtime" in my options before installing
I have no errors when I installed
And LAZ did recompile properly

I have LAZ 1.6
« Last Edit: July 19, 2017, 07:44:47 pm by technipixel »
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: BGRABitmap - BGRAControls For Dummys
« Reply #9 on: July 19, 2017, 07:40:18 pm »
I don't know. Perhaps your Lazarus version is too low.

Just be patient, the BGRA* developer frequently checks this forum.

pixelink

  • Hero Member
  • *****
  • Posts: 1260
Re: BGRABitmap - BGRAControls For Dummys
« Reply #10 on: July 19, 2017, 07:45:51 pm »
I don't know. Perhaps your Lazarus version is too low.

Just be patient, the BGRA* developer frequently checks this forum.

Okay... thanks
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: BGRABitmap - BGRAControls For Dummys
« Reply #11 on: July 19, 2017, 07:53:19 pm »
In case you can't wait for it, we can do some math:

Lazarus 1.6, filedate: 15-2-2016

The first next release of Lazarus (1.6.2) was file-dated: 15-11-2016

BGRAControls: master = now

So, head back to the releases:

And find bgracontrols which is before date 15-11-2016. That should (in theory) be compatible with your version of Lazarus.

So, when applying some math that would become release: BGRA Controls v4.3.1 or lower.

Don't forget to apply this for BGRABitmap as well.

Strange, as i was expecting that you would at least see an error somewhere when trying to install a too new version.
« Last Edit: July 19, 2017, 07:55:49 pm by molly »

pixelink

  • Hero Member
  • *****
  • Posts: 1260
Re: BGRABitmap - BGRAControls For Dummys
« Reply #12 on: July 19, 2017, 07:55:28 pm »
In case you can't wait for it, we can do some math:

Lazarus 1.6, filedate: 15-2-2016

the first next release (1.6.2) was file-dated: 2016-11-15

BGRAControls: master = now

So, head back to the releases:

And find bgracontrols which is before date 2016-11-15. That should (in theory) be compatible with your lazarus version.

So when applying some math that would become release: BGRA Controls v4.3.1 or lower.

Don't forget to apply this for BGRABitmap as well.

Strange, i was expecting that you would at least see an error somewhere when trying to install a too new version.

Nope.... it went perfectly smooth!

I guess I will need to update to what??  1.6.4?
I would rather wait until a stable 1.8 is released, but may not be able to

Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: BGRABitmap - BGRAControls For Dummys
« Reply #13 on: July 19, 2017, 08:10:05 pm »
Nope.... it went perfectly smooth!
I'm really stumped by that. Not dwell too long on it, apparently it seems possible this can happen ...

Note that Lazarus 1.8+ will make this much smoother because of the (integrated) Online Package manager.

Quote
I guess I will need to update to what??  1.6.4?
I would rather wait until a stable 1.8 is released, but may not be able to
Then by all means wait for the 1.8 release (i'm personally waiting for that as well).

Just install an older version of BGRAbitmap/BGRAControls that matches your Lazarus version
(i admit, it is a bit of a stretch if above instructions are actually working as BGRA-author is usually working from Lazarus trunk, but it is worth a shot).

Don't forget to first remove ll remnants from previous BGRAxxxx installations before attempting to install an older version.

Also note that i am assuming that you installed the latest version of BGRA controls, on your Lazarus 1.6 (which as handoko mentioned might not be compatible with 1.6 Lazarus).
« Last Edit: July 19, 2017, 08:14:23 pm by molly »

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: BGRABitmap - BGRAControls For Dummys
« Reply #14 on: July 19, 2017, 08:18:24 pm »
Try to use shortcut [Ctrl]+[Alt]+[P] to "view component" and check if BGRA Controls are listed on it.

 

TinyPortal © 2005-2018