Hello to everybody!
I am back after more than 6 months of non-programming (we were busy with integrating different type of sensors like echo sounders, GNSS receiver, velocity sensors, ... on a measuring boat for bathymetry purposes).
Now, I need to create a quite simple program for a basic data presentation coming from mobile mapping. I decided to use the 'Visual' feature of ClearWin+. And at the very beginning I am stuck with a specific problem relating to slovakian punctuation (like accents and wedges).
Here is the beginning of the main program to access the design mode:
winapp
program mob_map_info
use clrwin
implicit none
integer iw
iw = winio@('%~wi',100)
!
! umoznenie pisania diakritiky v texte
!
! call ENABLE_UTF8@(1)
! iw=winio@('%ww[thin_border]&')
! iw=winio@('%ca[Informácie z mobilného mapovania © AGIS Slovakia, spol. s r. o., www.agis.sk]')
end program mob_map_info
resources
1 layout 'Mob_Map_Info.rcx'
When I do not use the call to ENABLE_UTF8@(1) (to enable correct punctuation), the result of design mode when inserting there a text string is OK, see picture below:
Then, I removed the comments in the program above along with the tilde sign (~) in front of %wi to include a caption to the designed window, since the caption contains some special characters. I included the call to the function ENABLE_UTF8@(1) as follows and the build the executable:
winapp
program mob_map_info
use clrwin
implicit none
integer iw
iw = winio@('%wi&',100)
!
! umoznenie pisania diakritiky v texte
!
call ENABLE_UTF8@(1)
iw=winio@('%ww[thin_border]&')
iw=winio@('%ca[Informácie z mobilného mapovania © AGIS Slovakia, spol. s r. o., www.agis.sk]')
end program mob_map_info
resources
1 layout 'Mob_Map_Info.rcx'
After running the program, the result can be seen here:
As can be seen in the picture above, some special characters in the caption are not displayed correctly (the red underlined part of text).
So, I moved the call to ENABLE_UTF8@(1) in front of %wi format code and the effect can be seen below:
[
[url=https://postimages.org/]
](
[url=https://postimages.org/]
)
This time, the text in caption is OK, but some special characters in design window (red underlined) are corrupted.
Finally, I have a very strange problem. When I use the USE CLRWIN or USE MSWIN command, compiler reports me constantly the following:
[url=https://postimages.org/]
](https://postimages.org/)
When I build the program, everything is OK (no compiler errors) and the program runs.
Any idea where am i doing some mistake(s)?
Thanks in advance for your valuable advises!
Martin









