PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → Use own style as default
Use own style as default
Started by James, Sep., 14 2017 1:25 PM - 1 reply
Posted on September, 14 2017 - 1:25 PM
Hello

Is it possible to somehow overwrite the default style of certain controls (the Edit Control in my case)?
I'd like to drag the edit control onto my page and it is already in the style I want without having it changed in the Description with choosing an other one.

One more question: How do I install webfonts?
I assume I have to have them in the _WEB folder and then what? Which CSS am I supposed to alter?

Greetings
Posted on September, 23 2017 - 5:07 PM
Hi James

This is what I do.

1. Place an Edit Control on your page
2. Right Click and Select "Choose a WEBDEV Style" (4th Choice from top to Bottom)
3. Select the Style you want
4. If the Style you want is not there then create your Own

1. Double click on the Control
2. Click on Style -> More Options (Appears in Blue as a Link) click it
3. Design your edit control as you desire then
4. on the right Side of the Tabs window you have some styles that comes by Default
5. On the Bottom Click on Add this Style to The Project
6. Give it Name Like for example "My_Beautiful_Edit_Control" and Click on Add.
7 Validate and exit

Now from now on when you drop an edit control you go to the above step One and select your style from there.

I believe you can do this with almost any Control.

About Importing Fonts I believe but I am not sure, is when you import Fonts into Windows, they already appear under WebDev.However, I could be wrong.
I hope this helps.

Best regards,

Carlos