GoDB Developer Network
Tuesday, November 29, 2005
  Styles Fonts and Icons

GoDB's Microbrowser supports customization of all the widgets and color schemes using Style Files.

Style files are standard text files with CSS extension that have the name of the colors to change and the new color value.

Ex:

TXTFLD_FG_COL=31 'Foreground color

TXTFLD_BG_COL= 65520'Background color

TXTFLD_BORDER_COL=63519'Border color
TXTFLD_SELTXT_COL= 63488 'Selected text color
TXTFLD_SEL_COL= 65504 'Selected background color
TXTFLD_SELBRDR_COL= 2016 'Selected border color


The above example shows how color scheme of a text box can be changed.

The file name of the CSS file determines which form the style is applied to. For example if you name the CSS file as home.css then the styles apply only to Home.Frm.

If the CSS file is named Global.CSS then the style applies to all the forms but can be overridden by specific CSS files (say home.css).

Starting with GoDB 3.6 you can use HTML 24 it Color formats #FE00FF

Example:

Right click in the project explorer and select Add File. Enter Home.CSS in the open dialog. Open Home.css and enter the example css data.



Compile and Run the application.



You can add global.css and copy the style contents and see that all the forms show the same style. Refer to styles section in the help for a complete list of style names.

You can also load custom fonts into godb. These fonts can be English or regional fonts. You need to use GoDB Font Converter tool to convert any standard ttf file to a file that can be used in GoDB. GoDB supports up to 20 concurrent fonts. These are numbered from 0-19 , Fonts 3, 4 and 5 are preloaded into the GoDB VM. These can be overridden to change the standard fonts in godb. GoDB also supports right to left Arabic and Hebrew Fonts.


 
Comments: Post a Comment

Links to this post:

Create a Link



<< Home
Welcome to the unofficial GoDB Developer Network. This blog is completely dedicated to GoDB platform -- a multi platform Mobile RAD tool for developing handheld and wireless applications for Windows Mobile (Pocket PC,Win CE, Smartphones), Palm, Symbian, Embedded Linux, Linux, Win 32, etc. Fellow GoDB developers can find sample codes, contribute to the blog and Mobility related news for the benefit of the mobile development community as a whole.

ARCHIVES
2005-11-20 / 2005-11-27 / 2005-12-04 / 2005-12-11 / 2006-11-05 /


Powered by Blogger