Recent

Author Topic: [CLOSED] BGRAControls  (Read 550124 times)

lainz

  • Guest
Re: BGRAControls
« Reply #240 on: August 01, 2011, 04:05:22 am »
Good job you too! We have 15 controls.  :o

Develping visual controls I've learned something about object oriented programming-

Sora-Kun

  • Full Member
  • ***
  • Posts: 162
  • I can smell your presence ...
    • Sora-Kun
Re: BGRAControls
« Reply #241 on: August 02, 2011, 12:13:24 pm »
Hi all,
   You people are amazing, this project is growing so fast :O.
I want to tell you, that, when I add bgrabuttons to a project, i leave them as they are, and i change their appearance later in Code Right ?
However, in reality, the application displays the buttonsas I created them, then it changes their appearance, doesn't that takes some times, maybe you people could find a solution about that it's just a matter of optimizations. The thing is that I'm making an Application heavily based on BGRAControles (you can find the link in my sig below), and when the application loads, I see in few ms that the application starts in Black Color (check the attached image). After that, the application starts normally. The application has a lot of BGRAButtons and BGRAPanels everywhere.

Thanks a lot,
Cheers,
KingXerXes
« Last Edit: August 02, 2011, 01:23:12 pm by KingXerxes »
if nothing suites you, make it your self!
The Revolution, Genesis. The next generation IDE.
If you want to help, PM me.

Made in Lazarus.
Soon, in The WWW.

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: BGRAControls
« Reply #242 on: August 02, 2011, 06:27:13 pm »
I want to tell you, that, when I add bgrabuttons to a project, i leave them as they are, and i change their appearance later in Code Right ?
You can do that. You can set their appearence on design too.

Quote
However, in reality, the application displays the buttonsas I created them, then it changes their appearance, doesn't that takes some times
You can change the parameters of the buttons before there are showed, in the Create procedure for example.

Does this fix your problem ?
Conscience is the debugger of the mind

Sora-Kun

  • Full Member
  • ***
  • Posts: 162
  • I can smell your presence ...
    • Sora-Kun
Re: BGRAControls
« Reply #243 on: August 02, 2011, 06:52:28 pm »
Hi,
  onCreate procedure, of the main form or of each button ?
if nothing suites you, make it your self!
The Revolution, Genesis. The next generation IDE.
If you want to help, PM me.

Made in Lazarus.
Soon, in The WWW.

lainz

  • Guest
Re: BGRAControls
« Reply #244 on: August 02, 2011, 07:14:09 pm »
Hi,
  onCreate procedure, of the main form or of each button ?

On the Main Form, there is no OnCreate event for buttons.

See the testbgracontrols project (included in the package).

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: BGRAControls
« Reply #245 on: August 02, 2011, 07:27:26 pm »
Nice work lainz! The package is developing well.  I plan to add a new component (something like DrawGrid)

I really love your work, guys. It is looking better & better by the day. Please keep it up & who knows, maybe one day your library & its controls may be part of the default Lazarus installation.
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

Sora-Kun

  • Full Member
  • ***
  • Posts: 162
  • I can smell your presence ...
    • Sora-Kun
Re: BGRAControls
« Reply #246 on: August 02, 2011, 09:15:04 pm »
Hi,
Yes that's what I was doing already,
 did you find a solution about the black components at start up ?

Thanks a lot!
Cheers,,
KingXerxes
if nothing suites you, make it your self!
The Revolution, Genesis. The next generation IDE.
If you want to help, PM me.

Made in Lazarus.
Soon, in The WWW.

Sora-Kun

  • Full Member
  • ***
  • Posts: 162
  • I can smell your presence ...
    • Sora-Kun
Re: BGRAControls
« Reply #247 on: August 02, 2011, 09:51:53 pm »
Hi, again,
Also please note that the BGRALabelFX is not very dynamic, i mean let's say the following code:
Code: [Select]
procedure ...
var
  lblTitle: TBGRALabelFx;
begin
   lblTitle.Caption := Edit2.Text;
end

actually, the Caption will not change until the windows is resized or moved.
Also, can you please the onMouseMove, onMouseUp, and others basic events.
Thanks a lot.
Sincerely,
KingXerxes.
if nothing suites you, make it your self!
The Revolution, Genesis. The next generation IDE.
If you want to help, PM me.

Made in Lazarus.
Soon, in The WWW.

lainz

  • Guest
Re: BGRAControls
« Reply #248 on: August 03, 2011, 02:50:01 am »
BGRALabelFX updated in BGRAControls git repository (you can download the latest snapshot here: http://bgracontrols.git.sourceforge.net/git/gitweb.cgi?p=bgracontrols/bgracontrols;a=snapshot;h=HEAD;sf=tgz )

Now you can do something like:

Code: [Select]
procedure TForm1.BGRALabelFX1Click(Sender: TObject);
begin
  if BGRALabelFX1.Caption = 'BGRALabelFX' then
    BGRALabelFX1.Caption := 'LabelFX'
  else BGRALabelFX1.Caption := 'BGRALabelFX';
end; 

About the black color, is because the components take some time to draw everything.

The solution can be don't show the window until all the things are drawn.. something like 'Loading...' but I have no idea if possible or the way to do that-

Edit: your app looks really nice-
« Last Edit: August 03, 2011, 02:58:05 am by lainz »

Sora-Kun

  • Full Member
  • ***
  • Posts: 162
  • I can smell your presence ...
    • Sora-Kun
Re: BGRAControls
« Reply #249 on: August 03, 2011, 03:33:06 am »
Hi,
Thanks a lot my friend,
 I'll install it and post the results ;)
Cheers,
KingXerXes
if nothing suites you, make it your self!
The Revolution, Genesis. The next generation IDE.
If you want to help, PM me.

Made in Lazarus.
Soon, in The WWW.

Sora-Kun

  • Full Member
  • ***
  • Posts: 162
  • I can smell your presence ...
    • Sora-Kun
Re: BGRAControls
« Reply #250 on: August 03, 2011, 03:41:08 am »
Hi agai,
I know .. i'm fast xD
Actually you are faster ! You quickly added the events that I asked for ..
Another small problem, it's when I change the text of the BGRALabelFx, and the AutoSize if already set to true, it's not updated in the BGRALabelFx, a screenshot is attached, please check it.
Thanks a lot mate,
Cheers,
KingXerXes.
if nothing suites you, make it your self!
The Revolution, Genesis. The next generation IDE.
If you want to help, PM me.

Made in Lazarus.
Soon, in The WWW.

lainz

  • Guest
Re: BGRAControls
« Reply #251 on: August 03, 2011, 05:08:23 am »
Hi agai,
I know .. i'm fast xD
Actually you are faster ! You quickly added the events that I asked for ..
Another small problem, it's when I change the text of the BGRALabelFx, and the AutoSize if already set to true, it's not updated in the BGRALabelFx, a screenshot is attached, please check it.
Thanks a lot mate,
Cheers,
KingXerXes.

It work's for me.

I can't see the problem with a screenshot, please upload a test project.
« Last Edit: August 03, 2011, 05:14:08 am by lainz »

Sora-Kun

  • Full Member
  • ***
  • Posts: 162
  • I can smell your presence ...
    • Sora-Kun
Re: BGRAControls
« Reply #252 on: August 03, 2011, 12:44:43 pm »
hi,
  actually, the BGRALabelFx text should be:
  E:/Python32/Lib/_phello_foo.py
Because auto sizing is not yet fixed, the text is not totally shown. I mean the BGRALabelFx size didn't change!
I attached an example, hope it helps you.
Thanks a lot.
KingXerXes
« Last Edit: August 03, 2011, 12:51:36 pm by KingXerxes »
if nothing suites you, make it your self!
The Revolution, Genesis. The next generation IDE.
If you want to help, PM me.

Made in Lazarus.
Soon, in The WWW.

lainz

  • Guest
Re: BGRAControls
« Reply #253 on: August 03, 2011, 06:02:49 pm »
hi,
  actually, the BGRALabelFx text should be:
  E:/Python32/Lib/_phello_foo.py
Because auto sizing is not yet fixed, the text is not totally shown. I mean the BGRALabelFx size didn't change!
I attached an example, hope it helps you.
Thanks a lot.
KingXerXes

The problem is AutoSize only work with Align = alNone. BGRAImageButton, BGRAImageToggleBox & BGRASpriteAnimation work the same. Needs improvement.

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: BGRAControls
« Reply #254 on: August 03, 2011, 09:25:34 pm »
I am wondering... Is any chance to separate BGRABitmap from LCL in future? I am working now on project based on FpGUI. This is very interesting lightweight interface. With BGRABitmap power, we could create some new components for it.

 

TinyPortal © 2005-2018