Caracters in other languages

new topic     » topic index » view thread      » older message » newer message

Hi Euforians;

         I'm having problems with caracters with an accent in portuguese=20
and euphoria. If I use uppercase, they are not changed to uppercase, they=20
changed into spaces (or no asc caracters.)
For example: =E9, =E7, =E3, =E1 and so on.
The same happens when I use getc to read a txt file that cotains these=20
caracters.
         My computer is running win2000 in english, with locale in=20
brazilian portuguese.

         Any suggestion ?

         Thanks

Rubens
Campinas - SP - Brazil

P.S. Derek and Pete: I'm trying the instructions from Derek for the rezize=
=20
of listview. thanks.



At 22:47 5/7/2003, you wrote:
>
>
>----- Original Message -----
>From: <rml at rubis.trix.net>
>To: "EUforum" <EUforum at topica.com>
>Sent: Sunday, July 06, 2003 4:45 AM
>Subject: Resize a Listview
>
>
> > Hi people;
> >
> >          Anyone could show to me (or indicated where I can found) how a
> > Listview can be automatic resized when I resize a window ?
> >
>
>Assuming you are using win32lib.
>
>The outside edge size of the listview is just a simple to resize as any
>other control.
>
>a) Create a handler for the w32HResize event for the containing Window.
>b) In the handler code, get the new size of the window using
>getClientSize(win).
>c) Calculate the new size of the listview edges, based on whatever basis=
 you
>like.
>d) call setRect(listview, ...) using the new calculated sizes and position
>data.
>
>The hard bit is working out how to change the width of the columns=
 (assuming
>a Report View listview). In one of my apps, I try to keep the relative
>proportions the same, down to a minimum column size.
>  a) When you create the listview for the first time, record the size of=
 it.
>Then in the resize event handler...
>  b) Get the current widths of each column.
>      sequence colwid colwid =3D {}
>      for ColNum =3D 1 to ColumnCount do
>          colwid &=3D sendMessage(lv, LVM_GETCOLUMNWIDTH, ColNum-1, 0)
>      end for
>  c) Get the old size of the listview before the resize
>  d) Calc new listview size as in above method.
>  e) For each column, calc the new width as ( (NewSize/OldSize) * oldWidth)
>     colwid *=3D (NewSize/OldSize)
>  f) set The new column widths
>      for ColNum =3D 1 to ColumnCount do
>          VOID =3D sendMessage(lv, LVM_SETCOLUMNWIDTH, ColNum-1,=
 colwid[ColNum]
>* #FFFF)
>      end for
>  g) Save the listview size (OldSize) for the next resize event.
>
>By the way, you can use these special values to set the widths...
>     LVSCW_AUTOSIZE -- Auto size to the column's current contents
>     LVSCW_AUTOSIZE_USEHEADER -- Auto size to the current heading text.
>
>--
>Derek
>
>
>
>TOPICA - Start your own email discussion group. FREE!
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu