Graphic chart for user forms

Discussion in 'AutoCAD' started by Patrick EMIN, Nov 12, 2004.

  1. Patrick EMIN

    Patrick EMIN Guest

    Any way to use a graphic chart (similar to a CSS in HTML), to harmonize User
    Forms instead of changing fonts and colors one by one?

    Thanks

    --
    /////
    (o)-(o)
    ---ooO---(_)---Ooo--------------------------
    Patrick EMIN http://www.CADxp.com
    The french CAD portal
     
    Patrick EMIN, Nov 12, 2004
    #1
  2. Patrick EMIN

    jdinardi Guest

    CSS is good stuff :)

    I'm not totally sure why you would want this in a windows application but you can do it. You can somewhat emulate CSS in any OOP model but you'd have to write a routine to apply the 'styles' when a form is loaded initially. I would probably use a module with a bunch of public constants, or at least as many as you need you have properties that you want to control. Then create a routine to loop through all the given objects on a form (buttons, text boxes, labels, etc...) and set the desired properties to the corresponding constants.

    It would be quite a bit of work to set up, but you could easily re-use it in future projects, building upon it when necessary.

    Regards,
    Jacob Dinardi
     
    jdinardi, Nov 18, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.