Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Is there any way to do a conditional compilation kind of operation in trig?

more specifically, i need to show one center key(show current time) in case of QVGA, and dont want to show in case of QCIF.

i dont want to write seperate triglets for this simple operation, but just want to invoke/hide few lines of trig code based on device pack.

thanks
cipson

Is it for the same screen??
best idea is to have different files for QVGA and QCIF, instead of bothering about conditional compilation.
Also binary generated for QVGA will contain only QVGA related data (code from QVGA files) and will not have QCIF data..Vice versa as well..

Is it for the same screen??
best idea is to have different files for QVGA and QCIF, instead of bothering about conditional compilation.
Also binary generated for QVGA will contain only QVGA related data (code from QVGA files) and will not have QCIF data..Vice versa as well..

thanks oceans
yes.. its for same screen.
but i dont wan to keep multiple files, that will increase my complexity like anything..

thanks oceans
yes.. its for same screen.
but i dont wan to keep multiple files, that will increase my complexity like anything..

cipson wrote:yes.. its for same screen.
but i dont wan to keep multiple files, that will increase my complexity like anything..
use a separate trigml file just for "center key" fragment, that has QVGA & QCIF versions and include this trigml in the main file.. In this way, you can avoid complexity...

cipson wrote:yes.. its for same screen.
but i dont wan to keep multiple files, that will increase my complexity like anything..
use a separate trigml file just for "center key" fragment, that has QVGA & QCIF versions and include this trigml in the main file.. In this way, you can avoid complexity...