Topic: buttons

how to make this type of buttons

Post's attachments

Attachment icon 111.png 150.1 kb, 78 downloads since 2021-08-27 

2 (edited by domebil 2021-08-27 14:27:12)

Re: buttons

If they fit like these in the attachment I can give you the code

Post's attachments

Attachment icon pulsanti.jpg 41.58 kb, 80 downloads since 2021-08-27 

Domebil

Re: buttons

Yes... please send... i'll use there buttons...

4 (edited by domebil 2021-08-28 06:06:13)

Re: buttons

I am sending you a small project with code and icons

https://mega.nz/file/TYt1jQwQ#klyGz0roN … 3rElo-0Q3w

Domebil

Re: buttons

Hi,
may I ask what the procedure is for, and whats the ini for ?

procedure Permesso_OnClose (Sender: TObject; Action: string);
var
    ini: TIniFile;
begin

    ini := TIniFile.Create(ExtractFilePath(Application.ExeName)+'permesso.ini');
    try
        ini.WriteString('Opzioni', 'Edit3', Permesso.Edit3.Text);

    finally
        ini.Free;
    end;
end;

Thank's

6 (edited by domebil 2021-08-28 14:15:52)

Re: buttons

you don't need the ini file you can delete it.
As you know, ini files are used to store what you type in a text field

Domebil

Re: buttons

Thanks...    domebil   

Re: buttons

Hi Domebil,

Do you mean to delete the whole procedure Promesso_Onclose?

By the wat. Very nice user interface.

9 (edited by domebil 2021-08-29 10:10:46)

Re: buttons

OnClose is only for saving the contents of edit3 to the ini file.

the project is just an example of how you can create buttons with images and also adding a little movement

Domebil