Git Product home page Git Product logo

Comments (3)

lainz avatar lainz commented on May 27, 2024

Hi, you can first style a button with the IDE in a separate project for example, and then run it with a BCButton1.SaveToFile... that file you can use in any project with BCButton1.LoadFromFile... or BCButton1.AssignFromFile...

{ Save all published settings to file }
procedure SaveToFile(AFileName: string);
{ Load and assign all published settings from file }
procedure LoadFromFile(AFileName: string);
{ Assign the properties from AFileName to this instance }
procedure AssignFromFile(AFileName: string);

The one you should use is AssignFromFile.

from bgracontrols.

AlfonsoMartitegui avatar AlfonsoMartitegui commented on May 27, 2024

Lainz... WORKS like a cham. Great job dude.
And just a little question and I wont bother you again... well two questions really.
1- To create a new style can I just copy all text data in the bcbtn file and modify (some color for example) and save it (not changin name ... ) open it and do the save file and assign from file..??
2- well it depends on question 1. I guess there is no graphical editor made for button. but if it works question 1 i can arrange to build one. so firs question is the important on.

Again .. great tool

from bgracontrols.

lainz avatar lainz commented on May 27, 2024
  1. Try it, I never did that, but they are almost the same format.
    Try this: save a new file with SaveToFile and edit that file with the contents of the bcbtn with a text editor, keeping the format (naming of variables).
  2. The only graphical editor is the Object Inspector. But you can easily build one, in fact I've build one long time ago in no time, but I don't have the sources right now.

from bgracontrols.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.