LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CreateMetaFont Affects Graph Control

Hi NI,

I'm developing an application using LabWindows/CVI 7.0 and I need to create meta fonts (CreateMetaFont) in order to use PlotText onto a Graph Control. This seems to work ok, but if I need to resize the panel in which the control is placed on, therefore rescaling the control, the labels of the control start to change sizes until the point they become unreadable, worse yet, it also affects the Control Attributes (ATTR_PLOT_AREA_WIDTH and ATTR_PLOT_AREA_HEIGHT), of course one would say that it's obvious that if the label size has changed also would the plot area, but having said it so, it returns values that do not correspond with the actual plot area. The hard bit here is the fact that everything seems to get affected by a simple call to CreateMetaFont. In this regard, I'm always calling it with the same first parameter "META_FONT" which also would give me the ability to let the user choose size, colour and so forth attributes.

Well I think this gives you a rough idea of the problem I have. Could you tell me if this has been noticed already by some other LabWindows user or would you have a solution for this problem. Keeping in mind that I need to have flexible fonts plus I need to use PlotText in order to associate text to plots.

Thanks for your time,

Julio Jansson.
0 Kudos
Message 1 of 3
(2,996 Views)
Hello Julio,

I was able to reproduce this behavior with or without the CreateMetaFont function call. I was able to produce an unreadable Graph label when I resize my panel to the size of the screen, reset the panel to the original dimension, and repeat this around 5 times. Please verify if this is the behavior you are seeing, so that I can file a request to get this issue resolved.


Thanks Julio.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 3
(2,972 Views)
Hi Wendy L,

Thanks for your reply. I must admit I was not able to reproduce this problem in earlier version of my implementation that didn’t call any CreateMetaFont routine. Nonetheless, I do believe something isn’t right, since it should not behave like it does (unreadable labels) for no apparent reasons.
Another issue I have found is setting the graph control attribute ATTR_SHIFT_TEXT_PLOTS to zero, does not seem to make any difference when panning a panel to the right (interesting enough it works to all other directions not panning to the right). It would be great to have a look into it as well. Unless it is the way it should work, but I would find it hard to understand way it operates in different ways depending on which direction your are panning towards.

Cheers,

Julio Jansson,
0 Kudos
Message 3 of 3
(2,965 Views)