Recent

Author Topic: Lazarus visual components  (Read 3250 times)

Onur2x

  • New Member
  • *
  • Posts: 30
Lazarus visual components
« on: April 05, 2022, 06:04:27 am »
Hello (Lazarus visual components) A long time ago I decided to make some components for a project. It uses BgraBitmap. It needs to be developed. Beautiful visual programs can be made. I will continue to improve as long as I am eligible. The link is below.

I write hobby code with Pascal, I love pascal language. I am never a professional, I have not received an education. I'm trying to learn something by myself.
pros
If you have a talent for drawing pictures, very nice controls can occur.
Fully customizable. It's up to your imagination.
The components all derive from the (TcustomControl or TgraphicsControl) class. (Tedit included. inspired by lazarus customdrawn)


deficiencies
More skins should be added. More controls should be added.


https://github.com/Onur2x/onurcomp

« Last Edit: March 24, 2023, 10:09:14 pm by Onur2x »

AlexTP

  • Hero Member
  • *****
  • Posts: 2118
    • UVviewsoft
Re: Lazarus visual components
« Reply #1 on: April 05, 2022, 10:30:14 am »
Why not to name the topic 'Onur's visual components'?

kupferstecher

  • Hero Member
  • *****
  • Posts: 546
Re: Lazarus visual components
« Reply #2 on: April 05, 2022, 12:10:21 pm »
Hi, a screenshot would be nice!

Onur2x

  • New Member
  • *
  • Posts: 30
Re: Lazarus visual components
« Reply #3 on: April 05, 2022, 02:46:10 pm »
I couldn't draw a good picture in a hurry. I guess I don't really have a talent for this.
I also made a small demo.

Onur2x

  • New Member
  • *
  • Posts: 30
Re: Lazarus visual components
« Reply #4 on: March 24, 2023, 10:09:32 pm »
Onpagecontrol = A component derived from TCustomcontrol. Pages are a rendered component and accept components on it.

OnGraphicsbutton = button control derived from TGraphicscontrol.

OnCropbutton = Button control derived from TCustomcontrol. With this control you can add buttons with cropped corners. Square, triangle, round or polygon etc.It can take shape according to the picture.

Onpanel = A panel derived from Tcustomcontrol. Component can be put on it. And with the crop feature, you can create panels as you wish.

Onheaderpanel = It is a derived panel from Tcustomcontrol. Component can be put on it. And with the crop feature, you can create panels as you wish.

Oncollapsedpanel = A panel derived from Tcustomcontrol. Component can be put on it. And with the crop feature, you can create panels as you wish. It also has the ability to reduce or enlarge with a button on it. You set the button position

Ongraphicspanel = A panel derived from TGraphicscontrol. Components cannot be placed on it. It is a "tshape"-like component.

OnEdit = A component derived from TCustomcontrol. Developed from Lazarus customdrawn controls. It has crop property.It can take shape according to the picture.

OnMemo = A component derived from TCustomcontrol. Developed from Lazarus customdrawn controls. It has crop property.It can take shape according to the picture.

OnSpinedit = A component derived from TCustomcontrol.It has crop property.It can take shape according to the picture.

OnCombobox = A component derived from TCustomcontrol. It has a crop feature. can take shape according to the picture.

OnListbox = A component derived from TCustomcontrol. It has a crop feature. can take shape according to the picture.

Oncolumlist = A component derived from TCustomcontrol. It has a crop feature. can take shape according to the picture.Listing is done by creating columns. can be used like listview or stringrid for example.

OnSwich = A component derived from TGraphicControl.

OnSrollbar = A component derived from TCustomcontrol. It has a crop feature. can take shape according to the picture.

OnProgressbar = A component derived from TGraphicControl.

OnTrackbar = A component derived from TGraphicControl.

OnCheckbox = A component derived from TGraphicControl.

OnRadiobutton = A component derived from TGraphicControl.

OnLABEL = A component derived from TGraphicControl.The label is created by taking the letters on the bitmap.Takes the fonts from the image.and animation can be created

OnNormalLABEL = A component derived from TGraphicControl.is a component that has a label with the font on the component. animation can be created

OnLED = A component derived from TGraphicControl. On off.

OnKnob = A component derived from TGraphicControl. Knob control.

Blaazen

  • Hero Member
  • *****
  • Posts: 3234
  • POKE 54296,15
    • Eye-Candy Controls
Re: Lazarus visual components
« Reply #5 on: March 24, 2023, 10:33:59 pm »
The prefix "On..." makes it sounds like events: OnEdit.OnEditingDone  :)
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

PeterEvans

  • New Member
  • *
  • Posts: 20
Re: Lazarus visual components
« Reply #6 on: March 26, 2023, 06:47:55 am »
Perhaps you could rename them like:

   OnGraphicsButton ==>  OnurGraphicsButton

Onur2x

  • New Member
  • *
  • Posts: 30
Re: Lazarus visual components
« Reply #7 on: March 26, 2023, 09:56:01 pm »
Thank you for your comments, I will implement it

KodeZwerg

  • Hero Member
  • *****
  • Posts: 1399
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Lazarus visual components
« Reply #8 on: March 26, 2023, 10:15:37 pm »
Cool project! (the included demo .exe does not run on my Windows 10 64bit but the skinmaker .exe tool does run)
Screenshots and skinmaker looking great!
Its really a neat project that I install one day to help supporting.

Questions:
Can the skin file be included into resource of binary and called from there or does it need to be in folder of .exe as a seperate file?
Can I switch during runtime the skins? (like "light" and "dark" for example)
« Last Edit: Tomorrow at 31:76:97 by KodeZwerg »

Onur2x

  • New Member
  • *
  • Posts: 30
Re: Lazarus visual components
« Reply #9 on: March 26, 2023, 11:31:07 pm »
You can create new skins with skin builder. you also have a chance to load "onimg1.Loadskin(filename); " at runtime. I tried a few skins, but I guess drawing really isn't for me :) I have a terrible drawing skill. I started updating in Skinbuilder, it was created very amateurishly. At least it was used to make simple skins.
also if you want opacity and color change on a single skins "onimg1.opacity:= 0 .. 255" "onimg1.mcolor:=colortostring(clred);" you can use
« Last Edit: March 26, 2023, 11:34:30 pm by Onur2x »

kirchfritz

  • Jr. Member
  • **
  • Posts: 50
  • WIN10 LAZ 2.2.2 FPC 3.2.2
Re: Lazarus visual components
« Reply #10 on: March 27, 2023, 07:57:59 am »
Cool project!
The included example does compile, but does not run, because you set the property LoadSkins of ONImg1 to a local PNG!!

 object ONImg1: TONImg
    MColor = 'clnone'
    Opacity = 255
    LoadSkins = 'D:\Onur_Yedek\mailler\lazarus\components\paketler\Onur\skins2.png'
  end

loaded

  • Hero Member
  • *****
  • Posts: 757
Re: Lazarus visual components
« Reply #11 on: March 27, 2023, 08:22:02 am »
You did a great job, congratulations.
If Ide=Lazarus 2.2.4 32 Bit and Os=Win 10 Home 64 Bit 22H2 then Get up and do something useful! Because God is the helper of those who start again;

Onur2x

  • New Member
  • *
  • Posts: 30
Re: Lazarus visual components
« Reply #12 on: March 27, 2023, 02:06:37 pm »
I'm really sorry. I updated the demo project

circular

  • Hero Member
  • *****
  • Posts: 4001
    • Personal webpage
Re: Lazarus visual components
« Reply #13 on: April 01, 2023, 03:26:14 pm »
Congrats it looks very good  :)
Conscience is the debugger of the mind

Onur2x

  • New Member
  • *
  • Posts: 30
Re: Lazarus visual components
« Reply #14 on: April 01, 2023, 04:09:52 pm »
Thank you. We also thank you for the BGRABitmap.

 

TinyPortal © 2005-2018