Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Windows
 Charting and Real-Time Graphics Tools for Windows
 problems with QC functions

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List

* Forum Code is ON
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]


T O P I C    R E V I E W
cyrille25 Posted - 29 Sep 2008 : 02:42:27

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:

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,

5   L A T E S T    R E P L I E S    (Newest First)
quinncurtis 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.
cyrille25 Posted - 29 Oct 2008 : 11:03:45

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,

quinncurtis Posted - 30 Sep 2008 : 11:46:36
Sorry, but we could not find any function(s) that return the meter parameters you list.
cyrille25 Posted - 30 Sep 2008 : 06:36:47

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 ,
quinncurtis 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.

Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07