Author |
Topic  |
|
cyrille25
3 Posts |
Posted - 29 Sep 2008 : 02:42:27
|
Hi,
I’m a beginner in C language and I’m using Quinn & Curtis . Currently I’m using the function WGSetTextByName to configure my text : BOOL WGSetTextByName (int nColor, LPCSTR lpFontName, int nSize, int nStyle). In their examples QC give TEXT_BOLD, TEXT_ITAL, and TEXT_UNDERLINE as Style. In my application I would replace these statics value by a variable as: led[j].titleText.fontUnder.
I don’t have any problems for underline and italic because there are 2 functions WGGetFontUnder and WGGetFontItalique which allows me to pick up this data but I don’t have still found a function to pick up TEXT_BOLD parameter.
I have a second question. Does it exist a variable which bring together these 3 parameters (TEXT_BOLD, TEXT_ITAL, and TEXT_UNDERLINE) and which I could pick up with a function.
Thank you for the help, Cyrille
|
|
quinncurtis
1164 Posts |
Posted - 29 Sep 2008 : 08:52:16
|
You can use the WGGetFontWeight to determine if the font is bold. Since a font can have an many different bold levels, the value it returns is an integer between 100 and 900. You can assume that if the value is greater than 550 the font is bold.
There is no function in our software which returns the italic, underline and bold properties together. Since you are setting the the font properies using WGSetTextByName, you can just save the value of the nStyle you use to initialize the font.
|
 |
|
cyrille25
3 Posts |
Posted - 30 Sep 2008 : 06:36:47
|
hi,
thank you for your answer. Do you know if it exists in your software a function which allows me to pick up the NEEDLETYPE in graph-meter. If this kind of function doesn't exist do you know how i could pick up this data (and others like NEEDLECOLOR, LABELPREC,...) if it's possible.
Thank you , Cyrille |
 |
|
quinncurtis
1164 Posts |
Posted - 30 Sep 2008 : 11:46:36
|
Sorry, but we could not find any function(s) that return the meter parameters you list.
|
 |
|
cyrille25
3 Posts |
Posted - 29 Oct 2008 : 11:03:45
|
Hi,
In my program I’m using Meter. I can create and use them but I have a question. When I click on a Meter Graph a windows displays in which I can change parameters on my Meter (Range, Arc position…). In fact I would know if it’s possible to pick up these data when I click on “Ok” button or if it isn’t possible at another moment.
Best regards,
Cyrille
|
 |
|
quinncurtis
1164 Posts |
Posted - 29 Oct 2008 : 13:34:26
|
The only data values associated with meters that you can retrieve are the ones listed in the standard WRGet... API functions. There are instances where dialog boxes process parameters that are not available using the WRGet.. functions. If you wanted to intercept the OK click you would probably need to get the source to the RT Graphics Tools (which we sell as WIN-BMC-201) and intercept it in the dialog box processing routine. |
 |
|
|
Topic  |
|
|
|