>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




General

Author Thread: Tip: Displaying APL characters in APL Grid
Support
Tip: Displaying APL characters in APL Grid
Posted: Wednesday, March 01, 2006 5:43 PM (EST)

It is possible to have APL characters appear in the APL Grid but there are several things you need to be aware of:

1.  The grid only supports ANSI fonts.  So the xFontName property for the grid must be set to an ANSI APL font like APLHELP.  The other APL fonts won't work because they're symbol fonts.


2.  The AV2ANSI and ANSI2AV functions from the Windows.w3 workspace are necessary to set and retrieve APL text in the grid.  These functions will convert APL text from ŒAV order to ANSI order and vice versa.  These functions utilize the av2ansi and ansi2av variables in the same Windows.w3 workspace.  So remember to include them in your workspace.

3.  Not all APL characters will appear correctly in the grid.  One such example is domino.

Example:
      )copy c:\aplwin52\tools\windows ansi2av ANSI2AV
      'form' Œwi 'Form'
      'form.grid' Œwi 'Create' 'APL.Grid'
      'form.grid' Œwi 'rows' 3
      'form.grid' Œwi 'cols' 3
      'form.grid' Œwi 'xFontName' 1 1 'APLHELP'
      data„(AV2ANSI 'Œ¼½Ð­®')
               'form.grid' Œwi 'xText' 1 1 data ª Œwi 'Paint'

APL text should appear in cell (1 1).

Next, retrieve the APL text in cell (1 1).

      ANSI2AV (œ'form.grid' Œwi 'xText' 1 1)
Œ¼½Ð­®

 

The result should be the APL text.

 

Now, if you want to be able to type APL characters in the cell, you'll need to create the special edit window using the xEditWindow property and configure the (special) edit window to accept and display APL characters (style=2048 and font=APLHELP).  Remember to do the AV2ANSI translation when passing the data from the special edit window to the grid and the ANSI2AV translation when doing the reverse.

 

APL2000 Support


Comments:

Author Thread:
Mike.Montgomery
Tip: Displaying APL characters in APL Grid
Posted: Friday, April 28, 2006 9:13 AM (EST)

Is there a way of displaying APL text in threads such as this? Or to be able to read them? 

 

In my browser, some of the text in the start of this thread did not display correctly.  But when I printed the page, they were printed correctly.  Strangely, as I type this, all the APL characters are now visible in the copy of the original thread.

 

Mike

     

Support
Tip: Displaying APL characters in APL Grid
Posted: Friday, April 28, 2006 5:22 PM (EST)

The discussion groups are best viewed with Internet Explorer.  Which browser are you using?

APL2000 Support

     

Ric.Sherlock
Tip: Displaying APL characters in APL Grid
Posted: Saturday, April 29, 2006 6:57 AM (EST)
IMO Firefox does a better job of displaying the forums. In IE the width of the discussions is fixed, whereas in Firefox you can stretch them to your desired width. Interestingly (I haven't seen the problem before) some of the APL characters in this thread don't seem to display correctly in IE but appear fine in Firefox. I've not had any problems with viewing APL characters in Firefox because the forum software uses hard coded font tags. I have had problems on other parts of the site that use CSS to specify non-ANSI fonts. However for posting IE is far superior because the toolbar that gives formating and APL code pasting options only appears in IE.

     

Mike.Montgomery
Tip: Displaying APL characters in APL Grid
Posted: Friday, May 05, 2006 4:27 AM (EST)
Hi, I'm using Internet Explorer version 6. 

     

Support
Tip: Displaying APL characters in APL Grid
Posted: Friday, May 05, 2006 10:28 AM (EST)

> In my browser, some of the text in the start of this thread did not display correctly.

 

This occurs in IE 6 in Windows XP but not Windows 2000.  However, this problem doesn't occur in Windows XP with IE 7 Beta 2.

 

APL2000 Support

     



APL2000 Official Web Site

People rarely succeed unless they have fun in what they are doing.
--- Dale Carnegie

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |