You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
(64) |
Apr
(70) |
May
(54) |
Jun
(57) |
Jul
(34) |
Aug
(19) |
Sep
(28) |
Oct
(48) |
Nov
(42) |
Dec
(43) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(50) |
Feb
(19) |
Mar
(10) |
Apr
(5) |
May
(1) |
Jun
(14) |
Jul
(23) |
Aug
(6) |
Sep
(118) |
Oct
(110) |
Nov
(36) |
Dec
(6) |
| 2006 |
Jan
(19) |
Feb
(7) |
Mar
(4) |
Apr
(32) |
May
(6) |
Jun
(14) |
Jul
(42) |
Aug
(38) |
Sep
(88) |
Oct
(21) |
Nov
(40) |
Dec
(37) |
| 2007 |
Jan
(31) |
Feb
(20) |
Mar
(26) |
Apr
(38) |
May
(4) |
Jun
(3) |
Jul
(3) |
Aug
(8) |
Sep
(2) |
Oct
(3) |
Nov
(25) |
Dec
(9) |
| 2008 |
Jan
(7) |
Feb
(10) |
Mar
(16) |
Apr
(10) |
May
(25) |
Jun
(16) |
Jul
(27) |
Aug
(8) |
Sep
(20) |
Oct
(54) |
Nov
(11) |
Dec
(14) |
| 2009 |
Jan
(28) |
Feb
(22) |
Mar
(13) |
Apr
(70) |
May
(25) |
Jun
(23) |
Jul
(12) |
Aug
(18) |
Sep
(7) |
Oct
(4) |
Nov
(8) |
Dec
(36) |
| 2010 |
Jan
(58) |
Feb
(66) |
Mar
(3) |
Apr
(16) |
May
(9) |
Jun
(10) |
Jul
(6) |
Aug
(8) |
Sep
(17) |
Oct
(15) |
Nov
(12) |
Dec
(27) |
| 2011 |
Jan
(3) |
Feb
(17) |
Mar
(5) |
Apr
(12) |
May
(1) |
Jun
|
Jul
(1) |
Aug
(5) |
Sep
(56) |
Oct
(24) |
Nov
(8) |
Dec
(32) |
| 2012 |
Jan
(20) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(29) |
Aug
(3) |
Sep
(17) |
Oct
(60) |
Nov
(17) |
Dec
(52) |
| 2013 |
Jan
(22) |
Feb
(35) |
Mar
(31) |
Apr
(5) |
May
(16) |
Jun
(108) |
Jul
(57) |
Aug
(2) |
Sep
(11) |
Oct
|
Nov
(3) |
Dec
(13) |
| 2014 |
Jan
(39) |
Feb
(15) |
Mar
|
Apr
(31) |
May
|
Jun
(9) |
Jul
(16) |
Aug
(1) |
Sep
(8) |
Oct
(51) |
Nov
(5) |
Dec
(119) |
| 2015 |
Jan
(78) |
Feb
(47) |
Mar
(25) |
Apr
(32) |
May
(34) |
Jun
(42) |
Jul
(62) |
Aug
(10) |
Sep
(11) |
Oct
(5) |
Nov
(13) |
Dec
(24) |
| 2016 |
Jan
(12) |
Feb
(1) |
Mar
(2) |
Apr
|
May
(1) |
Jun
(12) |
Jul
(5) |
Aug
(32) |
Sep
(36) |
Oct
(34) |
Nov
(3) |
Dec
(1) |
| 2017 |
Jan
(2) |
Feb
(3) |
Mar
(2) |
Apr
|
May
(3) |
Jun
(5) |
Jul
(6) |
Aug
(5) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2018 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(26) |
Sep
(24) |
Oct
(2) |
Nov
(6) |
Dec
(26) |
| 2019 |
Jan
(10) |
Feb
(5) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
(3) |
Aug
|
Sep
(2) |
Oct
(1) |
Nov
(1) |
Dec
(2) |
| 2020 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
(5) |
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(1) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(4) |
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(1) |
|
From: Alexander S.K. <al...@be...> - 2014-02-06 11:19:49
|
Alain Aupeix writes:
>> hwg_SelectFont()
> seems not to exists
>
> In dbview, it's this line which is used:
>
> /IF ( oBrwFont := HFont():Select(oFont) ) != Nil/
>
> replacing with :
>
> /IF ( oBrwFont := Hw_SelectFont(oFont) ) != Nil/
>
> gives that error when building:
>
> //tmp/ccJeaWhl.o:(.data+0x8b0): undefined reference to
> `HB_FUN_HW_SELECTFONT'/
>
hwg_Selectfont, not the hw_Selectfont.
Anyway, this function returns an array, not a font object, so it is
better to use the HFont():Select( , cTitle ) - I just added this second
parameter.
Regards, Alexander.
|
|
From: Alain A. <ala...@wa...> - 2014-02-06 10:11:43
|
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font size="-1">Have you an idea, why the numpad doesn't work in
hwgui (numbres and pgup,up, ...)?</font><br>
<br>
A+<br>
<div class="moz-signature">-- <br>
<hr>
Alain Aupeix<br>
<a class="moz-txt-link-freetext" href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br>
<a class="moz-txt-link-freetext" href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br>
<hr>
<small>U.buntu 12.04 | G.ramps 3.4.6-1 | H.arbour 3.2.0dev
(2014-02-03 22:06) | HbIDE (Rev.279) | Five.Linux (r138) |
Hw.Gui (2220)</small>
<hr></div>
</body>
</html>
|
|
From: Alain A. <ala...@wa...> - 2014-02-05 21:04:07
|
<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font size="-1"><big>I'm trying all the xml<br>
<br>
for now, I'm able to run correctly testdbf1, testget2<br>
<br>
testget1 crashes with this message:<br>
<br>
<i><small>Error BASE/1001 Undefined function: RADIONEW
<br>
Called from RADIONEW(0)
<br>
Called from CREATECTRL(767)
<br>
Called from HFORMTMPL:SHOW(393)
<br>
Called from (b)COMPILEMETHOD(506)
<br>
Called from ONCOMMAND(283)
<br>
Called from (b)HMAINWINDOW(197)
<br>
Called from HMAINWINDOW:ONEVENT(257)
<br>
Called from HWG_ACTIVATEMAINWINDOW(0)
<br>
Called from HMAINWINDOW:ACTIVATE(246)
<br>
Called from HFORMTMPL:SHOW(400)
<br>
Called from (b)HFORMTMPL(143)
<br>
Called from HFORMTMPL:SHOWMAIN(0)
<br>
Called from MAIN(29) </small></i><br>
<br>
test_ctrl crashes with this message:<br>
<br>
<small><i> Error BASE/1004 No exported method: STEP<br>
3
<br>
Called from STEP(0)
<br>
Called from (b)COMPILESCR(305)
<br>
Called from DOSCRIPT(512)
<br>
Called from (b)COMPILEMETHOD(546)
<br>
Called from HOWNBUTTON:MUP(244)
<br>
Called from HOWNBUTTON:ONEVENT(121)
<br>
Called from HWG_ACTIVATEDIALOG(0)
<br>
Called from HDIALOG:ACTIVATE(133)
<br>
Called from HFORMTMPL:SHOW(400)
<br>
Called from (b)COMPILEMETHOD(506)
<br>
Called from ONCOMMAND(283)
<br>
Called from (b)HMAINWINDOW(197)
<br>
Called from HMAINWINDOW:ONEVENT(257)
<br>
Called from HWG_ACTIVATEMAINWINDOW(0)
<br>
Called from HMAINWINDOW:ACTIVATE(246)
<br>
Called from HFORMTMPL:SHOW(400)
<br>
Called from (b)HFORMTMPL(143)
<br>
Called from HFORMTMPL:SHOWMAIN(0)
<br>
Called from MAIN(29)
<br>
</i></small><br>
barcode crashes with this message:<br>
<br>
<small><i>Error BASE/1001 Undefined function: HWG_RGB</i><i><br>
</i><i> 11
</i><i><br>
</i><i>Called from HWG_RGB(0)
</i><i><br>
</i><i>Called from (b)COMPILESCR(305)
</i><i><br>
</i><i>Called from DOSCRIPT(512)
</i><i><br>
</i><i>Called from (b)COMPILEMETHOD(546)
</i><i><br>
</i><i>Called from HFORMTMPL:SHOW(376)
</i><i><br>
</i><i>Called from (b)COMPILEMETHOD(506)
</i><i><br>
</i><i>Called from ONCOMMAND(283)
</i><i><br>
</i><i>Called from (b)HMAINWINDOW(197)
</i><i><br>
</i><i>Called from HMAINWINDOW:ONEVENT(257)
</i><i><br>
</i><i>Called from HWG_ACTIVATEMAINWINDOW(0)
</i><i><br>
</i><i>Called from HMAINWINDOW:ACTIVATE(246)
</i><i><br>
</i><i>Called from HFORMTMPL:SHOW(400)
</i><i><br>
</i><i>Called from (b)HFORMTMPL(143)
</i><i><br>
</i><i>Called from HFORMTMPL:SHOWMAIN(0)
</i><i><br>
</i><i>Called from MAIN(28)
</i></small><br>
<br>
test_bmp crashes with this error:<br>
<br>
<small><i>Error BASE/1449 Syntax error: &
<br>
Called from HBROWSE:INITBRW(471)
<br>
Called from HBROWSE:NEW(222)
<br>
Called from CREATECTRL(767)
<br>
Called from CREATECTRL(614)
<br>
Called from CREATECTRL(782)
<br>
Called from HFORMTMPL:SHOW(393)
<br>
Called from (b)COMPILEMETHOD(506)
<br>
Called from ONCOMMAND(283)
<br>
Called from (b)HMAINWINDOW(197)
<br>
Called from HMAINWINDOW:ONEVENT(257)
<br>
Called from HWG_ACTIVATEMAINWINDOW(0)
<br>
Called from HMAINWINDOW:ACTIVATE(246)
<br>
Called from HFORMTMPL:SHOW(400)
<br>
Called from (b)HFORMTMPL(143)
<br>
Called from HFORMTMPL:SHOWMAIN(0)
<br>
Called from MAIN(28) </i></small><br>
<br>
exchgbmp doesn't crash, but does nothing<br>
<br>
I begin to understand, but there is always some lack...<br>
<br>
Thanks<br>
A+<br>
</big> </font>
<div class="moz-signature">-- <br>
<hr> Alain Aupeix<br>
<a class="moz-txt-link-freetext"
href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br>
<a class="moz-txt-link-freetext"
href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br>
<hr> <small>U.buntu 12.04 | G.ramps 3.4.6-1 | H.arbour 3.2.0dev
(2014-02-03 22:06) | HbIDE (Rev.279) | Five.Linux (r138) |
Hw.Gui (2220)</small>
<hr></div>
</body>
</html>
|
|
From: Alain A. <ala...@wa...> - 2014-02-05 15:55:52
|
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 05/02/2014 07:48, Alexander S.Kresin
a écrit :<br>
</div>
<blockquote cite="mid:52F...@be..." type="cite">
<pre wrap="">hwg_SelectFont()</pre>
</blockquote>
seems not to exists<br>
<br>
In dbview, it's this line which is used:<br>
<br>
<small><i>IF ( oBrwFont := HFont():Select(oFont) ) != Nil</i></small><br>
<br>
replacing with :<br>
<br>
<i><small>IF ( oBrwFont := Hw_SelectFont(oFont) ) != Nil</small></i><br>
<br>
gives that error when building:<br>
<br>
<small><i>/tmp/ccJeaWhl.o:(.data+0x8b0): undefined reference to
`HB_FUN_HW_SELECTFONT'</i></small><br>
<br>
Where to put the translation ?<br>
<br>
A+<br>
<div class="moz-signature">-- <br>
<hr>
Alain Aupeix<br>
<a class="moz-txt-link-freetext" href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br>
<a class="moz-txt-link-freetext" href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br>
<hr>
<small>U.buntu 12.04 | G.ramps 3.4.6-1 | H.arbour 3.2.0dev
(2014-02-03 22:06) | HbIDE (Rev.279) | Five.Linux (r138) |
Hw.Gui (2220)</small>
<hr></div>
</body>
</html>
|
|
From: Alexander S.K. <al...@be...> - 2014-02-05 06:48:51
|
Alain Aupeix ?????: > As I was testing dbview, I saw that the box titles (Select a file, > Select color, Select font) where not translated. > Accept, Cancel were translated, I suppose using the locale used by the > user, isn't it possible also to have this feature for titles ? > All these functions - hwg_SelectFile(), hwg_ChooseColor(), hwg_SelectFont() - allows to pass title as a parameter, 3-rd for hwg_ChooseColor() and hwg_SelectFont(), 4-rd for hwg_SelectFile(), so, you should define titles in your prg instead of change default values in commond.c. Regards, Alexander. |
|
From: Paulo F. <pff...@ya...> - 2014-02-04 17:35:22
|
Hi Alexander
Thank you very much.
By the way, returning 0 setfocus works
ON INIT {|| oGet[2]:SetFocus(), 0};
Regards, Paulo
Em Quinta-feira, 30 de Janeiro de 2014 7:39, Alexander S.Kresin <al...@be...> escreveu:
Paulo Flecha writes:
> a Dialog with ON INIT and SetFocus doesn't work
> (Get or combobox)
>
> In the sample the focus is still at the first Get
> clicking on the button "SetFocus 2" works fine
The ON INIT isn't an appropriate place to set focus to some control -
Winapi set it itself later while initialization procedure.
So, put it to the onActivate block:
oDlg:Activate( ,,,.t.,{|| hwG_SetFocus(oGet[2]:handle)} )
Have in mind, that this codeblock is called, if the main window
exists ( I didn't investigate the reason yet, the winapi is full of such
strange features ), so in your sample, where the dialog is the only
window, it won't work.
>
> and Using ON CHANGE
> the message keeps appearing when the control getfocus
>
> In hedit.prg adding IF bGfocus != Nil it seems to solve the "ON CHANGE" problem
> line 80
Thanks for the tip, I'll fix this.
Regards, Alexander.
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Hwgui-developers mailing list
Hwg...@li...
https://lists.sourceforge.net/lists/listinfo/hwgui-developers
|
|
From: Alain A. <ala...@wa...> - 2014-02-04 14:49:13
|
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font size="-1">As I was testing dbview, I saw that the box titles (Select
a file, Select color, Select font) where not translated.<br>
Accept, Cancel were translated, I suppose using the locale used by
the user, isn't it possible also to have this feature for titles ?<br>
I have manually modified commond.c, but I thnik that it's not a
good, as svn up will probably fail, and if it don't fail, the
translation will be lost.<br>
<br>
A+<br>
</font>
<div class="moz-signature">-- <br>
<hr>
Alain Aupeix<br>
<a class="moz-txt-link-freetext" href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br>
<a class="moz-txt-link-freetext" href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br>
<hr>
<small>U.buntu 12.04 | G.ramps 3.4.6-1 | H.arbour 3.2.0dev
(2014-02-03 22:06) | HbIDE (Rev.279) | Five.Linux (r138) |
Hw.Gui (2219)</small>
<hr></div>
</body>
</html>
|
|
From: Alexander S.K. <al...@be...> - 2014-02-04 11:24:52
|
Alain Aupeix writes:
> Is there a possibility of browse updating after modification. I must
> load again the file to have the modified dbf version.
oBrowse:lChanged := .T.
oBrowse:Refresh()
>
> I found also a problem about the path used when opening a file.
Fixed now.
Regards, Alexander.
|
|
From: Alexander S.K. <al...@be...> - 2014-02-04 07:01:37
|
Alain Aupeix ?????: > Hi, here is the log > > Error BASE/1069 Argument error: array assign > Called from UPDSTRU(520) > Called from (b)MODISTRU(391) > ... > Yes, I see, this happens after pressing the "Insert" button. Just insert a the following line: oBrowse:aArray[oBrowse:nCurrent] := Array(4) in dbview.prg, function UpdStru(), after Ains( oBrowse:aArray,oBrowse:nCurrent ) in your copy it should be a line 518. Regards, Alexander. |
|
From: Alain A. <ala...@wa...> - 2014-02-03 14:27:15
|
<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font size="-1">Hi, here is the log<br>
<br>
Error BASE/1069 Argument error: array assign
<br>
Called from UPDSTRU(520)
<br>
Called from (b)MODISTRU(391)
<br>
Called from HBUTTON:ONEVENT(408)
<br>
Called from HWG_ACTIVATEDIALOG(0)
<br>
Called from HDIALOG:ACTIVATE(133)
<br>
Called from MODISTRU(398)
<br>
Called from (b)MAIN(60)
<br>
Called from ONCOMMAND(283)
<br>
Called from (b)HMAINWINDOW(197)
<br>
Called from HMAINWINDOW:ONEVENT(257)
<br>
Called from HWG_ACTIVATEMAINWINDOW(0)
<br>
Called from HMAINWINDOW:ACTIVATE(246)
<br>
Called from MAIN(108)<br>
<br>
Closing the modistru window, The error window, and dbview window,
dbview is always in memory, and I must kill dbview.<br>
the dbf isn't broken, no .bak created.<br>
It seems it crashes before applying the modifications.<br>
<br>
I had another error with modistru, where the dbf was saved with
.bak extension, and dbf target was broken.<br>
It seems it has changed since the codepage modifications as been
set (not really sure).<br>
Here is an Error.log I retrieve, but I'm no more able to reproduce
this error.<br>
<br>
Error BASE/1069 Argument error: array assign<br>
Called from UPDSTRU(523)<br>
Called from (b)MODISTRU(394)<br>
Called from HBUTTON:ONEVENT(408)<br>
Called from HWG_ACTIVATEDIALOG(0)<br>
Called from HDIALOG:ACTIVATE(133)<br>
Called from MODISTRU(401)<br>
Called from (b)MAIN(63)<br>
Called from ONCOMMAND(283)<br>
Called from (b)HMAINWINDOW(197)<br>
Called from HMAINWINDOW:ONEVENT(257)<br>
Called from HWG_ACTIVATEMAINWINDOW(0)<br>
Called from HMAINWINDOW:ACTIVATE(246)<br>
Called from MAIN(111)<br>
<br>
A+<br>
</font>
<div class="moz-signature">-- <br>
<hr> Alain Aupeix<br>
<a class="moz-txt-link-freetext"
href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br>
<a class="moz-txt-link-freetext"
href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br>
<hr> <small>U.buntu 12.04 | G.ramps 3.4.6-1 | H.arbour 3.2.0dev
(2014-01-27 14:04) | HbIDE (Rev.279) | Five.Linux (r138) |
Hw.Gui (2217)</small>
<hr></div>
</body>
</html>
|
|
From: Alexander S.K. <al...@be...> - 2014-02-03 11:30:28
|
> > To make it work correctly in menus, datas, and gets, i use this: > > /REQUEST HB_CODEPAGE_FR850// > //REQUEST HB_CODEPAGE_FRISO// > //....// > //hwg_SetAppLocale( "ISO8859-1" )// > //hb_CdpSelect( "FRISO" )// > //SetDataCP( "CP850" ) // SetDataCP( "FR850" ) "CP850" isn't a Harbour's name for a codepage. > / > What I didn't know is use ... CODEPAGE In dbview.prg databases are opened with a codepage, defined with SetDataCP() > If I understand well, I can fill a dbf with utf-8 datas ? Yes, why not ? I'm not sure only about a possibility to use fields with utf-8 strings in indexes. There was a thread "Unicode in DBF" in november in the Harbour developers mail list. Regards, Alexander. |
|
From: Alain A. <ala...@wa...> - 2014-02-03 10:18:36
|
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 03/02/2014 11:06, Alexander S.Kresin
a écrit :<br>
</div>
<blockquote cite="mid:52E...@be..." type="cite">
<pre wrap=""> Yes, GTK uses utf8, all strings must be in utf8 before displaying on
the screen.
If strings in our application are in utf8 already, we don't use
hwg_setAppLocale().
If not, we set our codepage with hwg_setAppLocale() - so all strings are
converted to utf8 before using in GTK functions. If strings in dbf files
uses other codepage, we need to convert them to the codepage, which we
use in the application. For doing this automatically, we set separately
application codepage with hb_cdpSelect() and database codepage - using
the CODEPAGE clause of USE command ( in dbview.prg it is done, using the
setDataCP() ).
Have in mind that the name of a codepage in hwg_setAppLocale() is a
name, defined in GTK or somewhere else and it is deffir from the
Harbour's codepage name, which is used in hb_cdpSelect() or in USE ...
CODEPAGE ... command.</pre>
</blockquote>
Thanks for the explanations.<br>
<br>
To make it work correctly in menus, datas, and gets, i use this:<br>
<br>
<small><i>REQUEST HB_CODEPAGE_FR850</i><i><br>
</i><i>REQUEST HB_CODEPAGE_FRISO</i><i><br>
</i><i>....</i><i><br>
</i><i>hwg_SetAppLocale( "ISO8859-1" )</i><i><br>
</i><i>hb_CdpSelect( "FRISO" )</i><i><br>
</i><i>SetDataCP( "CP850" ) </i><i><br>
</i></small><br>
What I didn't know is use ... CODEPAGE<br>
If I understand well, I can fill a dbf with utf-8 datas ?<br>
It will simplify my tools which generates an utf-8 txt file from
utf-8 source, but using an str dbf format.<br>
<br>
I had a crash trying to modify a dbf structure which was created
with dbu (the 5.3 version adapted to harbour) and which also corrupt
the dbf.<br>
I'll send a report soon, if I confirm it<br>
<br>
Thanks<br>
A+<br>
<div class="moz-signature">-- <br>
<hr>
Alain Aupeix<br>
<a class="moz-txt-link-freetext" href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br>
<a class="moz-txt-link-freetext" href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br>
<hr>
<small>U.buntu 12.04 | G.ramps 3.4.6-1 | H.arbour 3.2.0dev
(2014-01-27 14:04) | HbIDE (Rev.279) | Five.Linux (r138) |
Hw.Gui (2217)</small>
<hr></div>
</body>
</html>
|
|
From: Alexander S.K. <al...@be...> - 2014-02-03 10:06:45
|
> I suppose that conversion are made from and to UTF8, as GTK or must > probably use UTF8 only > > I suppose that all the hwg functions use these two function only > Wouldn't it be suitable in a few case to have these functions able to > convert from and to other than UTF8 ? > Could it be a solution to that problem ? > I must say that this problem is too hard for me, and the questions I > said are perhaps stupide ... > Yes, GTK uses utf8, all strings must be in utf8 before displaying on the screen. If strings in our application are in utf8 already, we don't use hwg_setAppLocale(). If not, we set our codepage with hwg_setAppLocale() - so all strings are converted to utf8 before using in GTK functions. If strings in dbf files uses other codepage, we need to convert them to the codepage, which we use in the application. For doing this automatically, we set separately application codepage with hb_cdpSelect() and database codepage - using the CODEPAGE clause of USE command ( in dbview.prg it is done, using the setDataCP() ). Have in mind that the name of a codepage in hwg_setAppLocale() is a name, defined in GTK or somewhere else and it is deffir from the Harbour's codepage name, which is used in hb_cdpSelect() or in USE ... CODEPAGE ... command. Regards, Alexander. |
|
From: Alexander S.K. <al...@be...> - 2014-02-03 09:52:22
|
Alain Aupeix writes: >> hwg_SetAppLocale( "CP1251" ) >> hb_cdpSelect( "FRWIN" ) >> SetDataCP( "FR850") > No more good (FRWIN is not a know CP) FRWIN is a known cp - see the harbour/src/codepage/cpfrwin.c Probably, you forgot to request it: REQUEST HB_CODEPAGE_FRWIN REQUEST HB_CODEPAGE_FR850 > > After searching in harbour source, I found that ISO-8859-1 is bad and > ISO8859-1 is good instead > > Setting applocale to ISO8859-1 does the trick for gets, but now, > impossible to have dbf fields or menu strings correctly displayed. (see > hardcopy). The hardcopy is for : > > hwg_SetAppLocale( "ISO8859-1" ) > hb_cdpSelect( "CP850" ) > SetDataCP( "FR850") > > It seems that SetAppLocale is the master, and all the values we can set > for cdp or datacp are not executed. > Iy you use the ISO8859-1, you, probably, need to use hb_cdpSelect( "FRISO" ), because this Harbour's codepage corresponds it. Of course, don't forget to include REQUEST HB_CODEPAGE_FRISO REQUEST HB_CODEPAGE_FR850 in this case. Regards, Alexander. |
|
From: Alain A. <ala...@wa...> - 2014-01-31 13:58:29
|
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 31/01/2014 13:39, Alain Aupeix a
écrit :<br>
</div>
<blockquote cite="mid:52E...@wa..." type="cite">It
seems that SetAppLocale is the master, and all the values we can
set for cdp or datacp are not executed.<br>
</blockquote>
I had a look to what was doing SetAppLocal() and I saw that in
window.c, there where only 3 functions concerning the value of
SetAppLocale :<br>
<br>
<small><i>HB_FUNC( HWG_SETAPPLOCALE )</i> </small>which set
sZAppLocale<br>
<br>
<small><i>gchar * hwg_convert_to_utf8( const char * szText )</i><i>
</i></small>which converts strings to UTF8<br>
<br>
<small><i>gchar * hwg_convert_from_utf8( const char * szText ) </i></small>which
converts strings from UTF8 <br>
<br>
I suppose that conversion are made from and to UTF8, as GTK or must
probably use UTF8 only<br>
<br>
I suppose that all the hwg functions use these two function only<br>
Wouldn't it be suitable in a few case to have these functions able
to convert from and to other than UTF8 ?<br>
Could it be a solution to that problem ?<br>
I must say that this problem is too hard for me, and the questions I
said are perhaps stupide ...<br>
<br>
A+<br>
<div class="moz-signature">-- <br>
<hr>
Alain Aupeix<br>
<a class="moz-txt-link-freetext" href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br>
<a class="moz-txt-link-freetext" href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br>
<hr>
<small>U.buntu 12.04 | G.ramps 3.4.6-1 | H.arbour 3.2.0dev
(2014-01-27 14:04) | HbIDE (Rev.279) | Five.Linux (r138) |
Hw.Gui (2217)</small>
<hr></div>
</body>
</html>
|
|
From: Alain A. <ala...@wa...> - 2014-01-31 12:39:48
|
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 31/01/2014 11:30, Alexander S.Kresin
a écrit :<br>
</div>
<blockquote cite="mid:52E...@be..." type="cite">
<pre wrap="">What about:
hwg_SetAppLocale( "CP1251" )
hb_cdpSelect( "FRWIN" )
SetDataCP( "FR850")</pre>
</blockquote>
No more good (FRWIN is not a know CP)<br>
<br>
After searching in harbour source, I found that ISO-8859-1 is bad
and ISO8859-1 is good instead<br>
<br>
Setting applocale to ISO8859-1 does the trick for gets, but now,
impossible to have dbf fields or menu strings correctly displayed.
(see hardcopy). The hardcopy is for :<br>
<br>
hwg_SetAppLocale( "ISO8859-1" )<br>
hb_cdpSelect( "CP850" )<br>
SetDataCP( "FR850")<br>
<br>
It seems that SetAppLocale is the master, and all the values we can
set for cdp or datacp are not executed.<br>
<br>
A+<br>
<div class="moz-signature">-- <br>
<hr>
Alain Aupeix<br>
<a class="moz-txt-link-freetext" href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br>
<a class="moz-txt-link-freetext" href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br>
<hr>
<small>U.buntu 12.04 | G.ramps 3.4.6-1 | H.arbour 3.2.0dev
(2014-01-27 14:04) | HbIDE (Rev.279) | Five.Linux (r138) |
Hw.Gui (2217)</small>
<hr></div>
</body>
</html>
|
|
From: Alexander S.K. <al...@be...> - 2014-01-31 10:30:34
|
> I have made some test, but none are ok
>
What about:
hwg_SetAppLocale( "CP1251" )
hb_cdpSelect( "FRWIN" )
SetDataCP( "FR850")
|
|
From: Alain A. <ala...@wa...> - 2014-01-31 10:17:39
|
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 31/01/2014 10:46, Alexander S.Kresin
a écrit :<br>
</div>
<blockquote cite="mid:52E...@be..." type="cite">
<blockquote type="cite">
<pre wrap="">It seems that hwg_SetAppLocale( "CP850" ) is equivalent to ANSI, and
that the get system waits for OEM (or STR ??)
Am-I wrong ?
</pre>
</blockquote>
<pre wrap=""> I think, you're right.
We have set the "CP850" - so, all strings are converted from "CP850"
to utf8 before be displayed, but the characters, which are input from
the keyboard, are, probably, in other codepage, so we need to know how
this codepage is called. In this case you need to set hwg_setAppLocale()
to this codepage, and hb_cdpSelect() to appropiate, but SetDataCP()
should be set to "FR850".</pre>
</blockquote>
I have made some test, but none are ok<br>
<br>
if I set cdpselect to CP850 and datacp to FR850, and comment
setapplocal, dbf data display is wrong and I have an error with
PANGO (as at the beginning)<br>
<br>
If I uncomment setapplocal and set it to UTF8, and also set
cdpselect to UTF8, dbf datas and menus are correctly displayed, but
I have PANGO error in gets<br>
<br>
I really don't know which codepage to use.<br>
<br>
A+<br>
-- <br>
<div class="moz-signature">
<hr>
Alain Aupeix<br>
<a class="moz-txt-link-freetext" href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br>
<a class="moz-txt-link-freetext" href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br>
<hr>
<small>U.buntu 12.04 | G.ramps 3.4.6-1 | H.arbour 3.2.0dev
(2014-01-27 14:04) | HbIDE (Rev.279) | Five.Linux (r138) |
Hw.Gui (2217)</small>
<hr></div>
</body>
</html>
|
|
From: Alexander S.K. <al...@be...> - 2014-01-31 09:46:51
|
> I have been able to find the problem:
>
> I have a file I saved using ANSI codepage
>
> 3 TIME 11:16:11
> 0 @I0270@ INDI
> 1 NAME Véronique /Authier/
> 2 GIVN Véronique
> 2 SURN Authier
>
>
> I open it using OEM codepage with PSPad (and wine)
>
> 3 TIME 11:16:11
> 0 @I0270@ INDI
> 1 NAME VÚronique /Authier/
> 2 GIVN VÚronique
> 2 SURN Authier
>
> It seems that hwg_SetAppLocale( "CP850" ) is equivalent to ANSI, and
> that the get system waits for OEM (or STR ??)
> Am-I wrong ?
>
I think, you're right.
We have set the "CP850" - so, all strings are converted from "CP850"
to utf8 before be displayed, but the characters, which are input from
the keyboard, are, probably, in other codepage, so we need to know how
this codepage is called. In this case you need to set hwg_setAppLocale()
to this codepage, and hb_cdpSelect() to appropiate, but SetDataCP()
should be set to "FR850".
|
|
From: Alain A. <ala...@wa...> - 2014-01-31 09:34:26
|
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 31/01/2014 09:57, Alain Aupeix a
écrit :<br>
</div>
<blockquote cite="mid:52E...@wa..." type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Le 31/01/2014 09:44, Alexander
S.Kresin a écrit :<br>
</div>
<blockquote cite="mid:52E...@be..." type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap=""> Sorry, I didn't understand, what the problem is.
</pre>
</blockquote>
<pre wrap="">With this hardcopy, you will easily understand
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://www.dropbox.com/s/0ursjeenjev616h/New_sort.png">https://www.dropbox.com/s/0ursjeenjev616h/New_sort.png</a>
</pre>
</blockquote>
<pre wrap=""> So, you tell, that you input prénom in the get control, but prÚnom is
displayed ?
</pre>
</blockquote>
Yes, that's it.<br>
<br>
I have already saw this type of problem, it was due to a codepage
problem, but I'm not able to retrieve which were the codepages.<br>
</blockquote>
I have been able to find the problem:<br>
<br>
I have a file I saved using ANSI codepage<br>
<br>
3 TIME 11:16:11<br>
0 @I0270@ INDI<br>
1 NAME Véronique /Authier/<br>
2 GIVN Véronique<br>
2 SURN Authier<br>
<br>
<br>
I open it using OEM codepage with PSPad (and wine)<br>
<br>
3 TIME 11:16:11<br>
0 @I0270@ INDI<br>
1 NAME VÚronique /Authier/<br>
2 GIVN VÚronique<br>
2 SURN Authier<br>
<br>
It seems that hwg_SetAppLocale( "CP850" ) is equivalent to ANSI, and
that the get system waits for OEM (or STR ??)<br>
Am-I wrong ?<br>
<br>
A+<br>
<div class="moz-signature">-- <br>
<hr>
Alain Aupeix<br>
<a class="moz-txt-link-freetext" href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br>
<a class="moz-txt-link-freetext" href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br>
<hr>
<small>U.buntu 12.04 | G.ramps 3.4.6-1 | H.arbour 3.2.0dev
(2014-01-27 14:04) | HbIDE (Rev.279) | Five.Linux (r138) |
Hw.Gui (2217)</small>
<hr></div>
</body>
</html>
|
|
From: Alain A. <ala...@wa...> - 2014-01-31 08:57:29
|
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 31/01/2014 09:44, Alexander S.Kresin
a écrit :<br>
</div>
<blockquote cite="mid:52E...@be..." type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap=""> Sorry, I didn't understand, what the problem is.
</pre>
</blockquote>
<pre wrap="">With this hardcopy, you will easily understand
<a class="moz-txt-link-freetext" href="https://www.dropbox.com/s/0ursjeenjev616h/New_sort.png">https://www.dropbox.com/s/0ursjeenjev616h/New_sort.png</a>
</pre>
</blockquote>
<pre wrap="">
So, you tell, that you input prénom in the get control, but prÛnom is
displayed ?
</pre>
</blockquote>
Yes, that's it.<br>
<br>
I have already saw this type of problem, it was due to a codepage
problem, but I'm not able to retrieve which were the codepages.<br>
<br>
A+<br>
<div class="moz-signature">-- <br>
<hr>
Alain Aupeix<br>
<a class="moz-txt-link-freetext" href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br>
<a class="moz-txt-link-freetext" href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br>
<hr>
<small>U.buntu 12.04 | G.ramps 3.4.6-1 | H.arbour 3.2.0dev
(2014-01-27 14:04) | HbIDE (Rev.279) | Five.Linux (r138) |
Hw.Gui (2217)</small>
<hr></div>
</body>
</html>
|
|
From: Alexander S.K. <al...@be...> - 2014-01-31 08:44:48
|
>> Sorry, I didn't understand, what the problem is. > With this hardcopy, you will easily understand > > https://www.dropbox.com/s/0ursjeenjev616h/New_sort.png > So, you tell, that you input prénom in the get control, but prÛnom is displayed ? |
|
From: Alain A. <ala...@wa...> - 2014-01-31 07:57:49
|
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 31/01/2014 08:48, Alexander S.Kresin
a écrit :<br>
</div>
<blockquote cite="mid:52E...@be..." type="cite">
<pre wrap="">Alain Aupeix writes:
</pre>
<blockquote type="cite">
<pre wrap="">But I don't understand the purpose of hb_CdpSelect() and SetDataCP()
It works without using it.
</pre>
</blockquote>
<pre wrap="">
SetDataCP() isn't a HwGUI function ( all HwGUI functions are prefixed
with hwg_ ), it is determined in dbview.prg, and the only thing it does
is setting a Public variable DataCP - if is is set, dbf files are opened
with DataCP as a codepage. Using of hb_CdpSelect() and SetDataCP() is
needed, if they set different codepages - in this case all data from the
dbf is automatically converted from its codepage to that one, which is
set by hb_CdpSelect().</pre>
</blockquote>
ok, I imagine what is the purpose, but it seem not necessary in
dbview.
<blockquote cite="mid:52E...@be..." type="cite">
<blockquote type="cite">
<pre wrap="">Example: prÛnom instead of prénom
</pre>
</blockquote>
<pre wrap=""> Sorry, I didn't understand, what the problem is.</pre>
</blockquote>
With this hardcopy, you will easily understand<br>
<br>
<a class="moz-txt-link-freetext" href="https://www.dropbox.com/s/0ursjeenjev616h/New_sort.png">https://www.dropbox.com/s/0ursjeenjev616h/New_sort.png</a><br>
<br>
Thanks<br>
A+<br>
<div class="moz-signature">-- <br>
<hr>
Alain Aupeix<br>
<a class="moz-txt-link-freetext" href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br>
<a class="moz-txt-link-freetext" href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br>
<hr>
<small>U.buntu 12.04 | G.ramps 3.4.6-1 | H.arbour 3.2.0dev
(2014-01-27 14:04) | HbIDE (Rev.279) | Five.Linux (r138) |
Hw.Gui (2217)</small>
<hr></div>
</body>
</html>
|
|
From: Alexander S.K. <al...@be...> - 2014-01-31 07:48:12
|
Alain Aupeix writes: > But I don't understand the purpose of hb_CdpSelect() and SetDataCP() > > It works without using it. SetDataCP() isn't a HwGUI function ( all HwGUI functions are prefixed with hwg_ ), it is determined in dbview.prg, and the only thing it does is setting a Public variable DataCP - if is is set, dbf files are opened with DataCP as a codepage. Using of hb_CdpSelect() and SetDataCP() is needed, if they set different codepages - in this case all data from the dbf is automatically converted from its codepage to that one, which is set by hb_CdpSelect(). > But, there is also another similar problem in gets. I suppose I will > have to modify some prg in hw-gui libs (hb_cdpselect() and SetdataCP > don't solve the problem. > > Example: prÛnom instead of prénom > Sorry, I didn't understand, what the problem is. Regards, Alexander. |
|
From: Alain A. <ala...@wa...> - 2014-01-30 12:47:21
|
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 30/01/2014 08:47, Alexander S.Kresin
a écrit :<br>
</div>
<blockquote cite="mid:52E...@be..." type="cite">
<pre wrap="">Alain Aupeix writes:
</pre>
<blockquote type="cite">
<pre wrap="">Thanks for the answer, I have no more error message in the console, but
I have already an encoding problem.
Have a look to the hard-copy ...
</pre>
</blockquote>
<pre wrap="">
Then try to use hwg_SetAppLocale( "CP850" ) instead of "ISO-8859-1".</pre>
</blockquote>
Thanks, it done the trick.<br>
But I don't understand the purpose of hb_CdpSelect() and SetDataCP()<br>
<br>
It works without using it.<br>
<br>
Just a little problem easily solved. All the accentued strings must
now be translated using hb_utf8tostr() to display correctly accents.
It's not a real problem, I already do it in all my progs (probably
due to the fact that under Linux, editors use utf-8).<br>
<br>
But, there is also another similar problem in gets. I suppose I will
have to modify some prg in hw-gui libs (hb_cdpselect() and SetdataCP
don't solve the problem.<br>
<br>
Example: prÛnom instead of prénom<br>
<br>
A+<br>
<div class="moz-signature">-- <br>
<hr>
Alain Aupeix<br>
<a class="moz-txt-link-freetext" href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br>
<a class="moz-txt-link-freetext" href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br>
<hr>
<small>U.buntu 12.04 | G.ramps 3.4.6-1 | H.arbour 3.2.0dev
(2014-01-27 14:04) | HbIDE (Rev.279) | Five.Linux (r138) |
Hw.Gui (2217)</small>
<hr></div>
</body>
</html>
|