Font size with a decimal point
I've been making a Safety Manual for a company that I am working for and for the past month everything has been going smoothly, for the most part. That is until today. As usual I am changing my font size and it all of the sudden won't let me change the size,
I put my cursur there and it is black and makes a beep (the beep that means you are doing something wrong). Please help me, as I'm on my last 3 pages.
Thanks,
Chantal
Hi,
Was the decimal number created by yourself? If not, please try to paste the number in notepad first, then copy paste the numbers to your document.
You mentioned, everything was fine till today. Was there any changes in your OS or office?
Also do you mind to share me a copy (keep just the decimal part which you can’t change font size) to:
[email protected]? So I can test it from my side. Please use thread link or the subject of this post as mail subject.
Thank you.
Similar Messages
-
LSMW field with 5 decimal points
Hi All,
I need to pass a field in the LSMW with 5 decimal points.
we cannot pass the data type as "PAC5". can any one suggest how this can be done in LSMW.
Also, I am passing the currency key as USDN in the LSMW using Idoc method. But it is taking only as USD even though the length of the field is 5 chars. But I am able to acheive this if I manually post it as USDN.
please suggest on the above 2 issues.
Helpful answers will definitely be rewarded.
Thanks in Advance,
Asif Ali Khanhi khan,
see the below link
http://www.abapcode.sapbrainsonline.com/2008/03/write-output-formatting-options-abap.html
http://www.abapcode.sapbrainsonline.com/2008/03/types-abap-keyword.html
sapabap.iespana.es/manuales/pdf/lsmw.pdf
abapprogramming.blogspot.com/2008/03/sap-abap-syntax-for-assign.html - 122k
abapprogramming.blogspot.com/2008/03/sap-abap-syntax-for-assign.html - 122k
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90cef248-29e0-2910-11bb-df8dece7e22c
thanks
karthik -
Working With Prices/Decimal Points
I've recently figured out how to perform calculations on values by assigning them to variables in a click function however I'm working with prices in my app and it seems difficult to get prices/decimal points to claculate properly. At the moment my app looks like this:-
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
<![CDATA[
private function getTotal():void{
var addon1Int:int = parseInt(addon1.text);
var addon1Float:Number = parseFloat(addon1.text);
var addon1Number:Number = new Number(addon1.text);
var addon2Int:int = parseInt(addon2.text);
var addon2Float:Number = parseFloat(addon2.text);
var addon2Number:Number = new Number(addon2.text);
var addon3Int:int = parseInt(addon3.text);
var addon3Float:Number = parseFloat(addon3.text);
var addon3Number:Number = new Number(addon3.text);
var addon4Int:int = parseInt(addon4.text);
var addon4Float:Number = parseFloat(addon4.text);
var addon4Number:Number = new Number(addon4.text);
var addon5Int:int = parseInt(addon5.text);
var addon5Float:Number = parseFloat(addon5.text);
var addon5Number:Number = new Number(addon5.text);
var quantityNumber:Number = new Number(quantity.value);
total.data = (addon1Number + addon2Number + addon3Number + addon4Number + addon5Number) * (quantityNumber);
]]>
</mx:Script>
<mx:Text id="addon1" text="5.99"/>
<mx:Text id="addon2" text="6.99"/>
<mx:Text id="addon3" text="8.99"/>
<mx:Text id="addon4" text="4.99"/>
<mx:Text id="addon5" text="3.99"/>
<mx:NumericStepper id="quantity"/>
<mx:Button label="Button" click="getTotal();"/>
<mx:Text id="total"/>
</mx:Application>
It works ok if the numbers in the text areas are whole numbers like 8 or 4 but if I use numbers like 02.99, 05.09 the result comes out a bit srange. For example the result of the numbers that I have in there now if I set the value to 2 in the numeric stepper is 61.900000000000006 when I know from using a real calculator it should be 61.9. Is there any way perhaps of rounding this code to the nearest decimal point so it appears as 61.90?
Are there any good tutorials that any of you know of when working with prices/decimal points in flex?I've managed to find the solution for this - the currency formatter. If anyone's interested or has similar problems her's the code that solves it for me:-
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
<![CDATA[
import mx.formatters.NumberBaseRoundType;
private function getTotal():void{
var addon1Int:int = parseInt(addon1.text);
var addon1Float:Number = parseFloat(addon1.text);
var addon1Number:Number = new Number(addon1.text);
var addon2Int:int = parseInt(addon2.text);
var addon2Float:Number = parseFloat(addon2.text);
var addon2Number:Number = new Number(addon2.text);
var addon3Int:int = parseInt(addon3.text);
var addon3Float:Number = parseFloat(addon3.text);
var addon3Number:Number = new Number(addon3.text);
var addon4Int:int = parseInt(addon4.text);
var addon4Float:Number = parseFloat(addon4.text);
var addon4Number:Number = new Number(addon4.text);
var addon5Int:int = parseInt(addon5.text);
var addon5Float:Number = parseFloat(addon5.text);
var addon5Number:Number = new Number(addon5.text);
var quantityNumber:Number = new Number(quantity.value);
var total:Number = (addon1Number + addon2Number + addon3Number + addon4Number + addon5Number) * (quantityNumber);
totalAmount.text=currencyFormatter.format(total);
]]>
</mx:Script>
<mx:CurrencyFormatter id="currencyFormatter" precision="2" rounding="none" decimalSeparatorTo="." thousandsSeparatorTo="," useThousandsSeparator="true" useNegativeSign="true" currencySymbol="£" alignSymbol="left"/>
<mx:TextInput id="addon1" text="5.99"/>
<mx:TextInput id="addon2" text="06.99"/>
<mx:TextInput id="addon3" text="08.99"/>
<mx:TextInput id="addon4" text="04.99"/>
<mx:TextInput id="addon5" text="03.99"/>
<mx:NumericStepper id="quantity"/>
<mx:Button label="Button" click="getTotal();"/>
<mx:Text id="totalAmount"/>
</mx:Application> -
How do I change the font size of a data point label on a cfchart?
I know I can control the x axis and y axis font with the font="" attribute of the cfchart tag. But I want to change the font size of the data label in the chart series. Is that possible?
To specifically and fully answer your question, no, you absolutely cannot change the “font size” as a function of print.
First of all, there isn't a single “font size” associated with a PDF file (and we assume you are referring to a PDF file since this is an Acrobat forum).
Secondly, PDF is a final form file format meaning that the content is static in terms of location, size, etc. on the page. To change the point size of any particular text, you really need to go back to the source document and make the changes there.
- Dov -
I'm still puzzled by why LV has a default 15pt font on some newer installs and newer OS's. I don't know what exactly the condition for this is. Is it the LabVIEW version, the OS version, some graphical setting within the OS?
I had pretty much resigned myself to the reality that new installations of LabVIEW on W7 or W8 would have 15pt font by default. However, I've recently installed LV 2014 on my W7 machine. When I open a new VI, it says the default font is 13pt! If I go into the Tools/Options, under "Environment", it says that I am using the default fonts. When I open the LabVIEW.ini file in a text editor, I don't see any keys related to font size. So how come this installation of LV thinks that LV 2014 on W7 should use 13pt fonts?
I would have assumed that I would like this situation, since I've got a lot of code that was developed on XP using 13 pt fonts, so I generally reconfigure LV for 13pt fonts as soon as I install it. But now I'm working with someone else on a set of code, and her machine (W7) installed LV 2014 with a 15 pt font default! So now when we move code between us, it gets all mucked up.
Can anyone clarify this?
Thanks,
Dave
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
There are 10 kinds of people: those who understand binary, and those who don't.Thanks for the additional info. This is consistent with my understanding of the situation. Though my understanding of the situtation does have some gaps... Which is why I'm here in the forum.
Howevver, two issues remain:
1) Why is LV 2014 on my W7 machine showing application font size 13, but on my colleague's it shows size 15? Up until this install of LV 2014, I had seen size 15 as the default on all W7 and later OS's. Your reply, and others, imply that all W7 installs should use size 15. But on my machine, LV 2014, it shows 13, and the options still show that I'm using LabVIEW's defaults. E.g. is there some OS setting, such that even on W7, it is possible that LV will decide to use 13?
2) I half like your suggestion that we just define a specifi font, like Tahoma 13. I'm not sure how that will translate to the customer's machine, though. If they open a VI we created, I assume they'll see Tahoma 13 fonts on the front panel items. But if they edit those VI's, will their LV setting prevail, such that they get 15 point font on new controls, or will our settings continue to be applied to VI's that we created and which they edit? (Granted, I can figure out this second question with a little more testing, which I'll try to do soon...)
Thanks again,
DaveT
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
There are 10 kinds of people: those who understand binary, and those who don't. -
Change Font Size with PDF attachment via e--mail
Hi experts,
I want to send mail with PDF attachment . Now the attachment is ok but only the font size in PDF is a little small.
Is that possible to Change the font size of PDF
Below is my code:
first the data comes from an internal table, then changed to an ABAP Pool.
* Create a new spool from the data in gt_data_pdf
new-page print on
destination c_local "<<== my printer
cover text text-027 "<<== Title or Spool req. name
list name space
list dataset space
immediately space " X means print now
keep in spool c_checked " X means keep spool
new list identification c_checked
line-size 255
line-count 65
no dialog .
loop at gt_data_pdf.
write: / gt_data_pdf-line.
endloop.
new-page print off.
lv_spoolid = lv_spdel-rqident = sy-spono.
lv_spdel-sys = sy-sysid.
*Convert ABAP Spool to PDF
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = lv_spoolid
no_dialog = c_checked
importing
pdf_bytecount = lv_pdf_fsize
tables
pdf = lt_pdf_table
exceptions
others = 0.
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = lv_doc_chng
put_in_outbox = space
commit_work = c_checked
tables
packing_list = lt_objpack
object_header = lt_objhead
contents_bin = lt_objbin
contents_txt = lt_objtxt
receivers = lt_reclist
exceptions
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
others = 99.
Anyone could help me?
Thanks a lot.
Sincerely
JulieHi,
we don´t have many options for setting the font type and size in an ABAP list. One option is that you print the output using either SmartForms or AdobeForms, where you can control font type as well as size. This one requires additional work.
Another option is to use the instruction Print-Control:
NEW-PAGE PRINT ON.
PRINT-CONTROL FONT 1 SIZE 1 LPI 6 CPI 10.
WRITE: /10 'FONT 1 size 1 LPI 6 cpi 10'.
SKIP.
PRINT-CONTROL FONT 1 SIZE 5 LPI 6 CPI 5.
WRITE: /10 'FONT 1 size 5 LPI 6 cpi 5'.
SKIP.
PRINT-CONTROL FONT 2 SIZE 5 LPI 6 CPI 10.
WRITE: /10 'FONT 2 size 5 LPI 6 cpi 10'.
SKIP.
NEW-PAGE PRINT OFF. -
How to get reasonable font size with higher screen resolution
I'm using my new Mac Mini as living room PC with 42" plasma screen and tv itself seems to support quite well the 'better' resolutions like 1024x768. Unfortunately then text is too small to read from sofa (which is about 3 meters away from tv). I have switched back to 800x600 resolution where font sizes are almost ok but many programs complaint about the resolution (e.g. Google Earth) and need to change the resolution back and worth to get some OK button pressed which is glumsy.
I have also found pretty good Tinkertool to finetune font sizes but it does not affect all font sizes like I want. So question is there any better solution how I could find theme that suites better for living room purpose (have not find any theme possibilities for MacOSX). In Linux I could finetune X fontserver, in WIndows I could fine tune the theme used to have bigger fonts, how do I do it in this cool mac?I hear you! I would also like to see an answer for this. I am running Leopard on a Mac Mini on my 50 inch display in the living room. I have set the resolution to 1080p so that the video and photos are as sharp as possible. (man the videos look great)...
But, I have a very hard time reading the menu bar, as well as safari and mail from this machine. I realize that there are ways to increase the font sizes, but:
1) when I restart safari, I have to change the settings each time
2) when I restart mail, I have have to change the setting each time
3) I cannot figure out a way to make the menu bar larger
I really don't want to bring the mac mini down to a resolution like 800X600 - I think it would look horrible on the large screen.
What is a big screen lover to do?
Any help would be most appreciated...
Cheers! -
Flex Spark Datagrid - Scalable (font size) with No scroll Bars
I was wondering what would be the most optimized way to scale (increase/decrease) the fonts size in a Spark DataGrid with NO Scroller, so as to make it when the User Resizes the DataGrid, the Fonts inside the Grid would increase/decrease.
Is there a way to listen for the size change of the DataGrid?
I would probably need to change the font size to increase/decrease as the event gets fired on Datagrid Resize.
Any suggestions?I've pasted as much code as I can legally can. What i would like to achieve is that when the the window resizes, the Content & the DataGrid Scales. I am also aware of scalemode on the VBox, though it scale oddly with width more than height (this is internal).
Else, I tried:
protected function vgroup1_addedToStageHandler(event:Event):void
//stage.scaleMode = StageScaleMode.EXACT_FIT;
stage.scaleMode = StageScaleMode.SHOW_ALL;
stage.align = StageAlign.TOP_LEFT;
scaleX = .5;
scaleY = .5;
/* if(stage.stageWidth != (event.currentTarget as VGroup).width || stage.stageHeight != (event.currentTarget as VGroup).height)
var scaling:Number = 1;
if(width>height)
scaling = stage.stageWidth / (event.currentTarget as VGroup).width;
else
scaling = stage.stageHeight / (event.currentTarget as VGroup).height;
scaleX = scaleY = scaling;
== THIS IS All I can Post ==
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:components="components.*"
viewSourceURL="srcview/index.html">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
import mx.events.ResizeEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.xml.SimpleXMLDecoder;
import mx.utils.ArrayUtil;
import mx.utils.ObjectUtil;
import spark.components.ResizeMode;
import spark.effects.Resize;
// Skin Colors
private const ALTERNATING_GRID_COLOR:Array = [ 0xF5F5F0 , 0xE7E4E9 ];
private const ROLL_OVER_COLOR:int = 0x6D9960;
private const SELECTION_COLOR:int = 0x668F59;
private const TEXT_FONT_SIZE:int = 11;
private const TEXT_COLOR:int = 0x080808;
private const SUMMARY_TEXT_COLOR:int = 0xFAAFFF;
// First column width
private var collectiveFirstColumnWidth:int = 160;
private var collectiveValuesColumnWidth:int = 50;
// XML data
[Bindable] private var portfolioSummary1:XMLList;
[Bindable] private var reconstructedAC:ArrayCollection;
private function convertXmlToArrayCollection(file:String):ArrayCollection {
var xml:XMLDocument = new XMLDocument(file);
var decoder:SimpleXMLDecoder = new SimpleXMLDecoder();
var data:Object = decoder.decodeXML(xml);
var array:Array = ArrayUtil.toArray(data);
return new ArrayCollection(array);
private function convertToAC():void {
var ac1:ArrayCollection = convertXmlToArrayCollection(psr1)
trace(ObjectUtil.toString(ac1));
//reStructureAC(ac1);
private function restructureXMLIntoHierarchicalAC():void {
private function addProperty(obj:Object, attribute:String, value:String):Object {
var o:Object = obj;
o[attribute] = value;
return o;
protected function httpservice1_resultHandler(event:ResultEvent):void
portfolioSummary1 = event.result.Analytics.Side.Analytic as XMLList;
trace('-----\nSide: Sell' + ObjectUtil.toString(event.result.Analytics.Side.(@name=='Sell')));
trace('-----\nSide: Buy: Analytic Values : \n' + ObjectUtil.toString(event.result.Analytics.Side.(@name=='Buy').Analytic.@value));
//dg.dataProvider = new XMLListCollection(portfolioSummary1);
//dg.requestedRowCount = dg.dataProviderLength;
protected function vgroup1_addedToStageHandler(event:Event):void
//stage.scaleMode = StageScaleMode.EXACT_FIT;
stage.scaleMode = StageScaleMode.SHOW_ALL;
stage.align = StageAlign.TOP_LEFT;
scaleX = .5;
scaleY = .5;
/* if(stage.stageWidth != (event.currentTarget as VGroup).width || stage.stageHeight != (event.currentTarget as VGroup).height)
var scaling:Number = 1;
if(width>height)
scaling = stage.stageWidth / (event.currentTarget as VGroup).width;
else
scaling = stage.stageHeight / (event.currentTarget as VGroup).height;
scaleX = scaleY = scaling;
protected function vgroup1_resizeHandler(event:ResizeEvent):void
(event.currentTarget as VGroup).resizeMode = ResizeMode.SCALE;
]]>
</fx:Script>
<fx:Declarations>
<fx:XML id="psr1" source="data/PortfolioSummaryResponse1.xml" />
<fx:XML id="psr2" source="data/PortfolioSummaryResponse2.xml" />
<fx:XML id="psr3" source="data/PortfolioSummaryResponse3.xml" />
<s:XMLListCollection id="headXMLListCol"
source="{psr1.children()}" />
<s:HTTPService id="portfolio_HS" result="httpservice1_resultHandler(event)"
resultFormat="e4x" url="data/PortfolioSummaryResponse1.xml" />
</fx:Declarations>
<s:VGroup id="vbox" width="100%" height="100%" top="0" left="0" bottom="0" gap="0" addedToStage="vgroup1_addedToStageHandler(event)">
<!-- First DataGrid -->
<components:ExpandableDataGrid5 id="dg"
color="{TEXT_COLOR}"
rollOverColor="{ROLL_OVER_COLOR}"
alternatingRowColors="{ALTERNATING_GRID_COLOR}"
selectionColor="{SELECTION_COLOR}"
skinClass="skins.ResizableDataGridSkin"
>
<components:columns>
<s:ArrayList>
<s:GridColumn id="field1" dataField="dataField1" headerText="Portfolio Summary"
itemRenderer="itemRenderers.LeftAlignGridItemRenderer"
headerRenderer="itemRenderers.HeaderGridItemRenderer"
/>
<s:GridColumn id="field2" dataField="dataField2" headerText="Buy"
itemRenderer="itemRenderers.RightAlignGridItemRenderer"
headerRenderer="itemRenderers.RightAlignHeaderGridItemRenderer"
/>
<s:GridColumn id="field3" dataField="dataField3" headerText="Sell"
itemRenderer="itemRenderers.RightAlignGridItemRenderer"
headerRenderer="itemRenderers.RightAlignHeaderGridItemRenderer"
/>
<s:GridColumn id="field4" dataField="dataField4" headerText="Total"
itemRenderer="itemRenderers.RightAlignGridItemRenderer"
headerRenderer="itemRenderers.RightAlignHeaderGridItemRenderer"
/>
</s:ArrayList>
</components:columns>
<components:dataProvider>
<s:ArrayCollection>
<fx:Object dataField1="data1" dataField2="data2" dataField3="data2" dataField4="data16"></fx:Object>
<fx:Object dataField1="data2" dataField2="data3" dataField3="data3" dataField4="data17"></fx:Object>
<fx:Object dataField1="data3" dataField2="data2" dataField3="data2" dataField4="data16"></fx:Object>
<fx:Object dataField1="data4" dataField2="data3" dataField3="data3" dataField4="data17"></fx:Object>
<fx:Object dataField1="data5" dataField2="data2" dataField3="data2" dataField4="data16"></fx:Object>
<fx:Object dataField1="data6" dataField2="data3" dataField3="data3" dataField4="data17"></fx:Object>
<fx:Object dataField1="data7" dataField2="data2" dataField3="data2" dataField4="data16"></fx:Object>
<fx:Object dataField1="data8" dataField2="data3" dataField3="data3" dataField4="data17"></fx:Object>
<fx:Object dataField1="data9" dataField2="data2" dataField3="data2" dataField4="data16"></fx:Object>
<fx:Object dataField1="data10" dataField2="data3" dataField3="data3" dataField4="data17"></fx:Object>
<fx:Object dataField1="data11" dataField2="data2" dataField3="data2" dataField4="data16"></fx:Object>
<fx:Object dataField1="data12" dataField2="data3" dataField3="data3" dataField4="data17"></fx:Object>
<fx:Object dataField1="data13" dataField2="data3" dataField3="data3" dataField4="data17"></fx:Object>
<fx:Object dataField1="data14" dataField2="data3" dataField3="data3" dataField4="data17"></fx:Object>
<fx:Object dataField1="data15" dataField2="data3" dataField3="data3" dataField4="data17"></fx:Object>
</s:ArrayCollection>
</components:dataProvider>
</components:ExpandableDataGrid5>
<!-- Summary Totals -->
<components:SummaryRow >
<s:Label text="Summary Totals" fontWeight="bold" color="{SUMMARY_TEXT_COLOR}"/>
<s:Spacer width="100%" />
<s:ButtonBar click="convertToAC()">
<mx:ArrayCollection>
<fx:String>Convert to AC</fx:String>
<fx:String>CPS</fx:String>
</mx:ArrayCollection>
</s:ButtonBar>
<s:ButtonBar click="restructureXMLIntoHierarchicalAC()">
<mx:ArrayCollection>
<fx:String>Parse XML</fx:String>
<fx:String>15% POV</fx:String>
</mx:ArrayCollection>
</s:ButtonBar>
</components:SummaryRow>
<!-- Second Datagrid -->
<components:ExpandableDataGrid5 id="dg2"
color="{TEXT_COLOR}"
rollOverColor="{ROLL_OVER_COLOR}"
selectionColor="{SELECTION_COLOR}"
alternatingRowColors="{ALTERNATING_GRID_COLOR}"
skinClass="skins.HeadlessDataGridSkin"
>
<components:columns>
<s:ArrayList>
<s:GridColumn dataField="dataField1"
itemRenderer="itemRenderers.LeftAlignGridItemRenderer"
/>
<s:GridColumn dataField="dataField2"
itemRenderer="itemRenderers.RightAlignGridItemRenderer"
/>
<s:GridColumn dataField="dataField3"
itemRenderer="itemRenderers.RightAlignGridItemRenderer"
/>
<s:GridColumn dataField="dataField4"
itemRenderer="itemRenderers.RightAlignGridItemRenderer"
/>
</s:ArrayList>
</components:columns>
<s:ArrayList>
<fx:Object dataField1="data16" dataField2="data2" dataField3="data2" dataField4="data16"></fx:Object>
<fx:Object dataField1="data17" dataField2="data3" dataField3="data3" dataField4="data17"></fx:Object>
</s:ArrayList>
</components:ExpandableDataGrid5>
<!-- Summary Totals - values -->
<components:SummaryRow>
<s:Label text="Summary Totals - Values" width="100%" fontWeight="bold" color="{SUMMARY_TEXT_COLOR}"/>
</components:SummaryRow>
<!-- Third Datagrid -->
<components:ExpandableDataGrid5 id="dg3"
color="{TEXT_COLOR}"
rollOverColor="{ROLL_OVER_COLOR}"
selectionColor="{SELECTION_COLOR}"
alternatingRowColors="{ALTERNATING_GRID_COLOR}"
skinClass="skins.HeadlessDataGridSkin"
>
<components:columns>
<s:ArrayList>
<s:GridColumn dataField="dataField1"
itemRenderer="itemRenderers.LeftAlignGridItemRenderer"
/>
<s:GridColumn dataField="dataField2"
itemRenderer="itemRenderers.ToolTipItemRenderer"
/>
<s:GridColumn dataField="dataField3"
itemRenderer="itemRenderers.ToolTipItemRenderer"
/>
<s:GridColumn dataField="dataField4"
itemRenderer="itemRenderers.ToolTipItemRenderer"
/>
</s:ArrayList>
</components:columns>
<s:ArrayList>
<fx:Object dataField1="data18" dataField2="data2" dataField3="data3" dataField4="data16"></fx:Object>
<fx:Object dataField1="data19" dataField2="data3" dataField3="data3" dataField4="data17"></fx:Object>
</s:ArrayList>
</components:ExpandableDataGrid5>
<!-- Percent of Tops -->
<components:SummaryRow>
<s:Label text="Percent of Tops" color="{SUMMARY_TEXT_COLOR}" width="100%" fontWeight="bold"/>
</components:SummaryRow>
<!-- Fourth DataGrid -->
<components:ExpandableDataGrid5 id="dg4"
color="{TEXT_COLOR}"
rollOverColor="{ROLL_OVER_COLOR}"
selectionColor="{SELECTION_COLOR}"
alternatingRowColors="{ALTERNATING_GRID_COLOR}"
skinClass="skins.HeadlessDataGridSkin"
>
<components:columns>
<s:ArrayList>
<s:GridColumn dataField="dataField1"
itemRenderer="itemRenderers.LeftAlignGridItemRenderer" />
<s:GridColumn dataField="dataField2"
itemRenderer="itemRenderers.RightAlignGridItemRenderer"
/>
<s:GridColumn dataField="dataField3"
itemRenderer="itemRenderers.RightAlignGridItemRenderer"
/>
<s:GridColumn dataField="dataField4"
itemRenderer="itemRenderers.RightAlignGridItemRenderer"
/>
</s:ArrayList>
</components:columns>
<s:ArrayList>
<fx:Object dataField1="data20" dataField2="data1" dataField3="data1" dataField4="data20"></fx:Object>
<fx:Object dataField1="data21" dataField2="data2" dataField3="data2" dataField4="data21"></fx:Object>
<fx:Object dataField1="data22" dataField2="data3" dataField3="data3" dataField4="data22"></fx:Object>
</s:ArrayList>
</components:ExpandableDataGrid5>
</s:VGroup>
</s:Application>
ExpandableDataGrid5.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:DataGrid xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
horizontalScrollPolicy="off"
verticalScrollPolicy="off"
selectionMode="singleCell"
variableRowHeight="true"
requestedColumnCount="4"
width="100%"
resizableColumns="false"
creationComplete="thisDatagrid_creationCompleteHandler(event)"
>
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
/*import mx.events.ResizeEvent;
[Bindable] private var oldWidth:int;
[Bindable] private var oldHeight:int;
protected function thisDatagrid_resizeHandler(event:ResizeEvent):void
oldWidth = event.oldWidth;
oldHeight = event.oldHeight;
this.invalidateDisplayList();
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
if (oldWidth < width) {
setStyle('fontSize', getStyle('fontSize') + 0.5); // might wanna~ width % height to increase by a certain pt
//this.scaleX += .1;
} else if (oldWidth > width) {
setStyle('fontSize', getStyle('fontSize') - 0.5);
//this.scaleX -= .1;
trace('unscaledWidth: ' + unscaledWidth);
trace('unscaledHeight: ' + unscaledHeight);
trace('explicitMinHeight: ' + explicitMinHeight);
trace('explicitMinWidth: ' + explicitMinWidth);
minHeight = measuredMinHeight;
super.updateDisplayList(unscaledWidth, unscaledHeight);
protected function thisDatagrid_creationCompleteHandler(event:FlexEvent):void
requestedRowCount = dataProviderLength;
requestedMaxRowCount = dataProviderLength;
requestedMinRowCount = dataProviderLength;
minHeight = measuredHeight;
/* protected function datagrid1_addedToStageHandler(event:Event):void
stage.scaleMode = StageScaleMode.SHOW_ALL;
/* stage.align = StageAlign.TOP;
this.width = stage.stageWidth;
this.height = stage.stageHeight;
]]>
</fx:Script>
</s:DataGrid>
You can Check other ExpandableDataGrids:
<?xml version="1.0" encoding="utf-8"?>
<s:DataGrid xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
resize="thisDatagrid_resizeHandler(event)"
creationComplete="thisDatagrid_creationCompleteHandler(event)"
horizontalScrollPolicy="off" verticalScrollPolicy="off"
selectionMode="singleCell"
variableRowHeight="true"
requestedColumnCount="4"
editable="false"
width="100%"
>
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
import mx.events.ResizeEvent;
protected function thisDatagrid_resizeHandler(event:ResizeEvent):void
//event.stopImmediatePropagation();
if (event.oldWidth < width) {
setStyle('fontSize', getStyle('fontSize') + 0.5); // might wanna~ width % height to increase by a certain pt
//this.scaleX += .1;
} else if (event.oldWidth > width) {
setStyle('fontSize', getStyle('fontSize') - 0.5);
//this.scaleX -= .1;
minWidth = measuredMinWidth;
protected function thisDatagrid_creationCompleteHandler(event:FlexEvent):void
requestedRowCount = dataProviderLength;
requestedMaxRowCount = dataProviderLength;
requestedMinRowCount = dataProviderLength;
minHeight = measuredMinHeight;
]]>
</fx:Script>
</s:DataGrid>
OR
<?xml version="1.0" encoding="utf-8"?>
<s:DataGrid xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
horizontalScrollPolicy="off"
verticalScrollPolicy="off"
selectionMode="singleCell"
variableRowHeight="true"
requestedColumnCount="4"
width="100%"
resize="thisDatagrid_resizeHandler(event)"
creationComplete="thisDatagrid_creationCompleteHandler(event)"
>
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
import mx.events.ResizeEvent;
[Bindable] private var oldWidth:int;
[Bindable] private var oldHeight:int;
protected function thisDatagrid_resizeHandler(event:ResizeEvent):void
oldWidth = event.oldWidth;
oldHeight = event.oldHeight;
this.invalidateDisplayList();
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
if (oldWidth < width) {
setStyle('fontSize', getStyle('fontSize') + 0.5); // might wanna~ width % height to increase by a certain pt
//this.scaleX += .1;
} else if (oldWidth > width) {
setStyle('fontSize', getStyle('fontSize') - 0.5);
//this.scaleX -= .1;
trace('unscaledWidth: ' + unscaledWidth);
trace('unscaledHeight: ' + unscaledHeight);
trace('explicitMinHeight: ' + explicitMinHeight);
trace('explicitMinWidth: ' + explicitMinWidth);
minHeight = measuredMinHeight;
super.updateDisplayList(unscaledWidth, unscaledHeight);
protected function thisDatagrid_creationCompleteHandler(event:FlexEvent):void
requestedRowCount = dataProviderLength;
requestedMaxRowCount = dataProviderLength;
requestedMinRowCount = dataProviderLength;
minHeight = measuredHeight;
]]>
</fx:Script>
</s:DataGrid> -
Font size with Photoshop and Dreamweaver
Hi everybody!
I design my mockups in Photoshop and then copy them over to DWCC with hand code and slicing images. It is perfectly fine accuracy wise because I measure everything out. One thing that I am having issues with would be fonts. For example, I insert a text box in PS and start typing. When I set the font size to 12pt, it is rather large. So, in DWCC when I am typing out the same text and set it to 12pt, it is not accurate. The size in PS is much larger than it is in DWCC. Am I missing something? Thanks a ton.PT is a print size. There's no reason to use PT fonts on the web unless you're building a print style sheet that will determine how text is printed on paper.
On the web we typically use screen fonts in %, em, rem or px font sizes. If you're building a responsive site, start with %. 100% = the browser's default font size which in most cases is about 16px.
Nancy O. -
South America localization with comma decimal points
Hello All:
I am doing a simple division on a formatted search. However it is south america localization and it has the comma as decimal point instead of period. If I just do value 1 / value 2 it give me error message. if I replace , and then cast to numeric and then divide it works. But put in a trigger by formatted search it comes out as a wrong monetary value. The UDF for the FS is a quantity value. Not monetary!
How does anyone do normal division and multiple with South America localization?
Thank you for all the help!The field itself is actually a UDF of type Quantity. So using the quantity select $[$38.11.0]/$[rdr1.U_myfield]
I suppose for checks you can just divide quantity by price or something! But it doesn't seems to work for me! -
How can I display an unsigned value such as 8134 with an "implied" decimal point e.g. 8.134 without dividing by 1000? Is there a format code that will do this? I have Student Version 8.2.1. Many thanks
It seems silly to force such an arbitrary restriction. A division is cheap, why son't you want to do it???
Of course you could assign a unit such as V and then set the units to kV for the display.
I would go with the division!
Message Edited by altenbach on 11-18-2007 04:58 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
DivideBy10.png 5 KB -
My quantity is showing with a decimal point and two spaces
When people are entering a quantity of 1 it is showing as 1.00. It is confusing my users because they think this is a price. How can I get rid of the decimal point and two spaces?
Hi,
I am not able to reproduce this problem with a number field. Are you using this field as a payment-quantity field?. If so, please check that the Quantity in your payment setting is linked the the right field.
We can do a quick test: create a new form from scratch, add one textfield, then on the field property panel select Type=number.
Select Test tab and click on the Test Web Form button
Enter a number and commit --> check if you get the decimal point and the spaces.
If you still have problem with this, let me know
Thanks,
Lucia -
Changing fonts and font sizes with hotkeys
In MS Word you can select text and hit Ctrl + Shift + "F" to get to the drop down menu to change the font and just hit tap to change the size. Is that possible in Pages?
Use cmd shift + or - to change font size.
It may be cmd - for the reduce size, I may have regularised the keyboard shortcut on my system.
You will need to use the toolbar or the type palette to change the font itself.
Peter
btw Once you are in the various pulldown menus, including the toolbar Type menus, you can use your up or down keys plus enter or return to change selections. -
My 12-point font size looks like 6 point in Mac Mail?
How do I fix this? I do not want to be constantly switching to a different font, then switching back before I hit send
You can set default font sizes for writing and viewing messages.
From the Mail menu bar click Mail > Preferences then select Fonts & Colors. -
Facebook's page is oversized and bleeding off the page. Gmail is a small font, shop.com/pamguttman is a very small font. I've looked at screen resolution but that doesn't change anything.
Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
*http://kb.mozillazine.org/Zoom_text_of_web_pages
You can use an extension to set a default font size and page zoom on web pages.
*Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
Maybe you are looking for
-
Clicking on File and the Print Preview no longer gives a print preview.
I used to be able to click on File and then Print Preview. Now all of a sudden it no longer works. There is no Print Preview.
-
How to retrieveText Node value
I am generating an xml doc containing two set of data (one from ord table corresponding to orderId passed to the stored proc from calling app) and then appending child nodes for the values coming as In parameter. When I try to get the value of text n
-
Hi, We have one reservation for a material (BOM component of a Purchase order item) was originally created via a subcontracting PO. Then deletion indicator was set to PO line item. Then the component assigned to PO line item was deleted. But now we c
-
How to view images full size and then import selected ones to macbook
I want to view my images stored on external drive full size and download selected to MacBook pro
-
What is cairngorm and is it currently used in companies?
HI, I am new to flex technology and wants to know about the cairngorm framework. Is this something that is still used in companies and is worth learning? What is the current version of cairngorm? Please provide some important article links that uses