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-12-01 10:41:33
|
Baloghy Gábor writes:
> Hi,
>
> How can I achieve, that focus sets on the first get of 1. page.
> I tried hwg_setfocus in dialog init, but it does not work.
> Now I can set the focus only with clicking on the get.
>
> Thanks,
>
> Gabor
>
>
> #include "windows.ch"
> #include "guilib.ch"
>
> function main
>
> INIT dialog oDlg CLIPPER NOEXIT TITLE "Tab" SIZE 400,300 on init
> {||hwg_setfocus(ox1:handle)}
>
> x1:=1
> x2:=2
> x3:=3
> x4:=""
> x5:=""
>
> @ 20,20 TAB oTab ITEMS {} SIZE 380,280
>
> BEGIN PAGE "1. page" of oTab
> @ 50,50 get ox1 var x1 size 200,25
> @ 50,80 get ox2 var x2 size 200,25
> @ 50,110 get ox3 var x3 size 200,25
> END PAGE OF oTab
>
> BEGIN PAGE "2. page" of oTab
> @ 50,50 get ox4 var x4 size 200,25
> @ 50,80 get ox5 var x5 size 200,25
> END PAGE OF oTab
>
> activate dialog oDlg center
>
> return nil
>
Try
activate dialog oDlg center on activate {||hwg_setfocus(ox1:handle)}
instead - it should work if the dialog is called from the main window.
Regards, Alexander.
|
|
From: Alain A. <ala...@wa...> - 2014-12-01 10:38:18
|
Le 01/12/2014 10:30, Alexander S.Kresin a écrit : > Alain Aupeix writes: >> Is there a way to locate a program in notification area (under Linux, >> obviously)? >> >> Should it be a separate program, or just a function, with a menu to >> execute some tasks, or/and just to show the window of a program ? > We have different GUI environments under Linux - Gnome ( 2,3 ), KDE, > XFCE, ... Some of them, probably, have a notification area, some others > - not. I don't know with sure, what a notification area is, where it is > located, how it looks... For sure, it 's probably more complicated for Linux, due to differents environments. Is-it already possible under Windows ? I suppose then that the principle could be the same for Linux as for Windows. After, I probably have to find the way to call a system function which then must be adapted to differents environments. Have you some sample for Windows ? A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-11-29 05:03) | HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2299) ------------------------------------------------------------------------ |
|
From: Alexander S.K. <al...@be...> - 2014-12-01 10:30:57
|
Alain Aupeix writes: > Is there a way to locate a program in notification area (under Linux, > obviously)? > > Should it be a separate program, or just a function, with a menu to > execute some tasks, or/and just to show the window of a program ? > We have different GUI environments under Linux - Gnome ( 2,3 ), KDE, XFCE, ... Some of them, probably, have a notification area, some others - not. I don't know with sure, what a notification area is, where it is located, how it looks... Regards, Alexander. |
|
From: Alexander S.K. <al...@be...> - 2014-12-01 10:11:32
|
I just returned from a vacation and begin to answer.
Baloghy Gábor ?????:
> Hi
>
> I would like to call a nomodal window with some explanation text from
> a when method of a get , then to close it from the valid.
>
> There is below my wrong code.
>
> Do you have some working solution?
>
> Thank you in advance,
>
> ...
> function whelp(p)
> if p=="on"
> INIT DIALOG owhelp AT 60,60 TITLE "Help" SIZE 200,100
> @ 30,30 say "Text" size 100,25
> activate dialog owhelp NOMODAL
> hwg_setfocus(owin:ox2:handle)
> elseif p=="off"
> owhelp:close()
> endif
> return .t.
>
Replace whelp with the following:
function whelp(p)
Local bSetGet
static owhelp := Nil
if p=="on"
if Empty( owhelp )
bSetGet := ox2:bSetGet
ox2:bSetGet := Nil
INIT DIALOG owhelp AT 60,60 TITLE "Help" SIZE 200,100
@ 30,30 say "Text" size 100,25
activate dialog owhelp NOMODAL
hwg_setfocus(owin:ox2:handle)
ox2:bSetGet := bSetGet
endif
elseif p=="off"
if !Empty( owhelp )
owhelp:close()
owhelp := Nil
endif
endif
return .t.
The problem was that when you created the dialog, the get item lost the
focus and the "valid" event appears - so the dialog was closed
immedeately after creating. Temporary setting ox2:bSetGet to Nil
prevents handling of the "valid" event.
Regards, Alexander.
|
|
From: Alain A. <ala...@wa...> - 2014-11-19 15:51:47
|
Hi, I'm trying to use tutor as help addon of my program. I have simplificated the prg to use it as I need. It works The program requires 3 or 4 parameters: - the position of the window (x,y) - the path of the xml files - the rubrique I want to acceed How can I do to access directly to the module and comment I want to acceed ? Is-it possible ? I noticed also that when the tutor opens, the icon is op_fl, but comment isn't displayed. My program when calling the tutor, before opening it, look for an already instance ot the tutor. This works great, but in this case, if the previous questions are ok, should it be possible to send a message to the window to open the desired module. ? Another point, should it be possible, when a module is opened to change the icon (op_book for example) ? Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-10-22 08:25) | HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2299) ------------------------------------------------------------------------ |
|
From: Baloghy G. <bal...@gm...> - 2014-11-15 11:06:07
|
Hi,
How can I achieve, that focus sets on the first get of 1. page.
I tried hwg_setfocus in dialog init, but it does not work.
Now I can set the focus only with clicking on the get.
Thanks,
Gabor
#include "windows.ch"
#include "guilib.ch"
function main
INIT dialog oDlg CLIPPER NOEXIT TITLE "Tab" SIZE 400,300 on init
{||hwg_setfocus(ox1:handle)}
x1:=1
x2:=2
x3:=3
x4:=""
x5:=""
@ 20,20 TAB oTab ITEMS {} SIZE 380,280
BEGIN PAGE "1. page" of oTab
@ 50,50 get ox1 var x1 size 200,25
@ 50,80 get ox2 var x2 size 200,25
@ 50,110 get ox3 var x3 size 200,25
END PAGE OF oTab
BEGIN PAGE "2. page" of oTab
@ 50,50 get ox4 var x4 size 200,25
@ 50,80 get ox5 var x5 size 200,25
END PAGE OF oTab
activate dialog oDlg center
return nil
|
|
From: Alain A. <ala...@wa...> - 2014-11-09 20:17:46
|
Is there a way to locate a program in notification area (under Linux, obviously)? Should it be a separate program, or just a function, with a menu to execute some tasks, or/and just to show the window of a program ? Some sample ? Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-10-22 08:25) | HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2298) ------------------------------------------------------------------------ |
|
From: Baloghy G. <bal...@gm...> - 2014-11-09 13:05:00
|
Hi
I would like to call a nomodal window with some explanation text from
a when method of a get , then to close it from the valid.
There is below my wrong code.
Do you have some working solution?
Thank you in advance,
Gabor
#include "windows.ch"
#include "guilib.ch"
function main
INIT WINDOW oWin TITLE "Main window" SIZE 400,300
x1:=1
x2:=2
x3:=3
@ 20,20 get ox1 var x1 size 200,25 picture "999"
@ 20,50 get ox2 var x2 size 200,25 picture "999" when {||whelp("on")}
valid {||whelp("off")}
@ 20,80 get ox3 var x3 size 200,25 picture "999"
activate WINDOW oWin center
return nil
function whelp(p)
if p=="on"
INIT DIALOG owhelp AT 60,60 TITLE "Help" SIZE 200,100
@ 30,30 say "Text" size 100,25
activate dialog owhelp NOMODAL
hwg_setfocus(owin:ox2:handle)
elseif p=="off"
owhelp:close()
endif
return .t.
|
|
From: Alain A. <ala...@wa...> - 2014-11-02 16:27:13
|
Hi, I hound a trick to avoid some warnings concerning codeblocks
in tutor.prg, for exemple, to avoid theses warnings:
tutor.prg(76) Warning W0004 Codeblock parameter 'X' declared but not
used in function 'MAIN'
tutor.prg(90) Warning W0004 Codeblock parameter 'X' declared but not
used in function 'MAIN'
line 76 ON SIZE {|o,x,y|o:Move(,,,y-32)} => ON SIZE
{|o,x,y|o:Move(,,,y-32, x)}
line 90 ON SIZE {|o,x,y|o:Move(,,,y-32)} => ON SIZE
{|o,x,y|o:Move(,,,y-32, x)}
Just add the incrimined varieble as new more parameter (at the end of
the list
The parameter won't be treated by the function, and harbour won't
complain about a not used variable
:)
Have fun
A+
--
------------------------------------------------------------------------
Alain Aupeix
http://jujuland.pagesperso-orange.fr/
http://pissobi-lacassagne.pagesperso-orange.fr/
------------------------------------------------------------------------
U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-10-22 08:25) |
HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2298)
------------------------------------------------------------------------
|
|
From: Alexander S.K. <al...@be...> - 2014-10-31 09:46:36
|
> hwg_SetDlgKey( oDialog, nExtKeyCode, nKeyCode, bBlock ) or SET KEY command, which is preprocessed into hwg_SetDlgKey() call, the examples are in testget2.prg. The simple SET KEY works in a current dialog window only, the SET KEY GLOBAL ( or set the fifth parameter of hwg_SetDlgKey() to .T. ) works elsewhere in an application. Regards, Alexander. |
|
From: Alain A. <ala...@wa...> - 2014-10-30 22:00:52
|
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 30/10/2014 17:12, Maurizio la
Cecilia a écrit :<br>
</div>
<blockquote
cite="mid:CAG...@ma..."
type="cite">
<div dir="ltr">Hi Alain,
<div>you could try: <br>
hwg_SetDlgKey( oDialog, nExtKeyCode, nKeyCode, bBlock )<br>
</div>
<div><br>
</div>
<div>Passing bBlock as NIL will disable the key hook.</div>
</div>
</blockquote>
Thanks, it works.<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.8-1 | H.arbour 3.2.0dev
(2014-10-22 08:25) | HbIDE (Rev.316) | Five.Linux (r138) |
Hw.Gui (2298)</small>
<hr>
</div>
</body>
</html>
|
|
From: Maurizio la C. <m.l...@gm...> - 2014-10-30 16:12:42
|
Hi Alain,
you could try:
hwg_SetDlgKey( oDialog, nExtKeyCode, nKeyCode, bBlock )
Passing bBlock as NIL will disable the key hook.
Example:
hwg_SetDlgKey( oDlg, 0, VK_SPACE, {|| hwg_msgInfo( "Space bar pressed" ) } )
You'll find the key codes in windows.ch ( for gtk too... ).
BR
Maurizio
2014-10-30 15:53 GMT+01:00 Alain Aupeix <ala...@wa...>:
> Searching in hwindow.prg, I saw that there is KEYLIST to replace set key
> But I can't figure how to implement it
>
> Create an array and refer to it in Window creation command ?
> How could be this array ?
> Is the case of F1 (help) treated differently from other keys ?
> How to replace inkey(x) ?
>
> Thanks
> A+
> --
> ------------------------------------------------------------------------
> Alain Aupeix
> http://jujuland.pagesperso-orange.fr/
> http://pissobi-lacassagne.pagesperso-orange.fr/
> ------------------------------------------------------------------------
> U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-10-22 08:25) |
> HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2298)
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Hwgui-developers mailing list
> Hwg...@li...
> https://lists.sourceforge.net/lists/listinfo/hwgui-developers
>
|
|
From: Alain A. <ala...@wa...> - 2014-10-30 14:54:03
|
Searching in hwindow.prg, I saw that there is KEYLIST to replace set key But I can't figure how to implement it Create an array and refer to it in Window creation command ? How could be this array ? Is the case of F1 (help) treated differently from other keys ? How to replace inkey(x) ? Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-10-22 08:25) | HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2298) ------------------------------------------------------------------------ |
|
From: Alexander S.K. <al...@be...> - 2014-10-30 07:16:40
|
> There is no more crash, but the value of the variable isn't yet set to > the new value when on change is executed. Probably, now this is fixed, too. > > Is there a way, using a function related to the combo, to have the good > value. oCombo:xxx() What is a good value ? There is a method oCombo:GetValue(), which returns the current value of a combobox and set the oCombo:value and the value of appropriate get variable, if this is a GET COMBOBOX. Now, after the last commit, this method is called automatically when "changed" signal comes, so in ON CHANGE codeblock we can now use :value or the get variable - they have fresh values. Regards, Alexander. |
|
From: Alexander S.K. <al...@be...> - 2014-10-30 06:26:54
|
hwg__isUnicode(), of course. That was a typo in the Changelog. Regards, Alexander. |
|
From: Alain A. <ala...@wa...> - 2014-10-29 21:45:13
|
Le 29/10/2014 13:51, Alexander S.Kresin a écrit :
> Should be fixed now, the problem was that appropriate get variable (
> cType in your case ) wasn't initialized, because that combobox doesn'r
> set a focus yet.
There is no more crash, but the value of the variable isn't yet set to
the new value when on change is executed.
So it's not good.
Is there a way, using a function related to the combo, to have the good
value. oCombo:xxx()
> Btw, there is no need to write
>
> adel(aCom)
> aCom:={}
> aCom=directory(crPath+"/"+cCommune+"/"+cType+"/*.PDF","")
>
> One assignment is enough.
ok, thanks
A+
--
------------------------------------------------------------------------
Alain Aupeix
http://jujuland.pagesperso-orange.fr/
http://pissobi-lacassagne.pagesperso-orange.fr/
------------------------------------------------------------------------
U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-10-22 08:25) |
HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2295)
------------------------------------------------------------------------
|
|
From: Itamar M. L. J. L. <ita...@gm...> - 2014-10-29 17:15:23
|
* hwg__isUnocode() functions has been added for compatibility with
winapi version, it always returns .t.
best regards,
Itamar M. Lins Jr.
|
|
From: Alexander S.K. <al...@be...> - 2014-10-29 13:51:34
|
Should be fixed now, the problem was that appropriate get variable (
cType in your case ) wasn't initialized, because that combobox doesn'r
set a focus yet.
Btw, there is no need to write
adel(aCom)
aCom:={}
aCom=directory(crPath+"/"+cCommune+"/"+cType+"/*.PDF","")
One assignment is enough.
Regards, Alexander.
|
|
From: Alain A. <ala...@wa...> - 2014-10-29 10:53:19
|
Le 28/10/2014 11:21, Alexander S.Kresin a écrit : >> >> I no more use adel(), but I use asize(), because I suspect that the new >> array isn't the same as the previous. >> >> But I'm always expecting no more crash, without success >> > > What kind of a crash ? What is the crash message ? Where and when it > happens ? > > Regards, Alexander. > With the version I send you of my prg, when changing the city, it crashes my X11 session, nothing to do else change the system console (ctrl-Alf-F1, for exemple) connect in console mode and stop the computer (sudo halt -p) If I set the variables values in Searchxxx(), the next combobox is updated one time late, and in fine, I can't generate a good path, and open the file I want. I join a version of the prg, an the Error log If you want to try, you can use the version I send in zip, and just update the three concerned functions. A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-10-22 08:25) | HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2295) ------------------------------------------------------------------------ |
|
From: Alexander S.K. <al...@be...> - 2014-10-29 10:51:09
|
Using of 'on activate' is a right choice.
But, don't know why yet, it doesn't work when there is no main window in
application. Maybe, not all winapi messages works in this case.
So, if you will call this dialog from a main window or use main window
instead of a dialog, it should work.
Regards, Alexander.
Baloghy Gábor writes:
> Hi,
>
> How can I hide a control on a dialog?
>
> In the example below the ox2 object remains on the screen?
> I tried to hide it after gets and in activate dialog also, but it does not work.
>
> Regards,
>
> Gabor
>
>
> #include "windows.ch"
> #include "guilib.ch"
>
> function Main
>
> INIT DIALOG odlg TITLE "Example" SIZE 400,300
>
> x1:="1111"
> x2:="2222"
> x3:="3333"
>
> @ 20,20 get ox1 var x1 size 200,25
> @ 20,50 get ox2 var x2 size 200,25
> @ 20,80 get ox3 var x3 size 200,25
>
> ox2:hide()
>
> activate dialog odlg center && on activate {||ox2:hide()}
>
> return nil
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Hwgui-developers mailing list
> Hwg...@li...
> https://lists.sourceforge.net/lists/listinfo/hwgui-developers
>
|
|
From: Baloghy G. <bal...@gm...> - 2014-10-28 15:31:35
|
Hi,
How can I hide a control on a dialog?
In the example below the ox2 object remains on the screen?
I tried to hide it after gets and in activate dialog also, but it does not work.
Regards,
Gabor
#include "windows.ch"
#include "guilib.ch"
function Main
INIT DIALOG odlg TITLE "Example" SIZE 400,300
x1:="1111"
x2:="2222"
x3:="3333"
@ 20,20 get ox1 var x1 size 200,25
@ 20,50 get ox2 var x2 size 200,25
@ 20,80 get ox3 var x3 size 200,25
ox2:hide()
activate dialog odlg center && on activate {||ox2:hide()}
return nil
|
|
From: Alain A. <ala...@wa...> - 2014-10-24 14:26:42
|
Le 24/10/2014 13:48, Alexander S.Kresin a écrit : > tutor.prg, line 196: > > oText:SetText( oItem:cargo[2] ) > > Try to define the codepage of your file ( by default there is "EN" ). > If it is utf8, then: > > oText:SetText( oItem:cargo[2], "UTF8" ) It works, thanks I think that if an updated documentaton was available, I won't bother you with my beginner's questions. Dont-you think so ? Thanks again A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-10-22 08:25) | HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2295) ------------------------------------------------------------------------ |
|
From: Alexander S.K. <al...@be...> - 2014-10-24 11:49:18
|
Alain Aupeix writes
> Hi,
>
> As I was trying to translate tutor_eng.xml to french, I saw that there
> is a problem with encoding.
> I tried to add to add
>
> REQUEST HB_CODEPAGE_UTF8
> ...
> hwg_SetAppLocale( "UTF8" )
>
> But it doesn't solve the problem.
> It seems due to HCEdit, but I'm not sure.
> Is there a way to solve it ?
>
tutor.prg, line 196:
oText:SetText( oItem:cargo[2] )
Try to define the codepage of your file ( by default there is "EN" ).
If it is utf8, then:
oText:SetText( oItem:cargo[2], "UTF8" )
Regards, Alexander.
|
|
From: Alain A. <ala...@wa...> - 2014-10-24 11:32:59
|
Hi, As I was trying to translate tutor_eng.xml to french, I saw that there is a problem with encoding. I tried to add to add REQUEST HB_CODEPAGE_UTF8 ... hwg_SetAppLocale( "UTF8" ) But it doesn't solve the problem. It seems due to HCEdit, but I'm not sure. Is there a way to solve it ? Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-10-22 08:25) | HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2295) ------------------------------------------------------------------------ |
|
From: Alain A. <ala...@wa...> - 2014-10-24 07:13:16
|
Le 24/10/2014 07:37, Alexander S.Kresin a écrit : > Alain Aupeix writes: >> Hi, I just didn't know it, and it's the first time I try to build it. >> So I don't know if the error is recent or not. >> >> alain@Gramps-JujuLand:/opt/TuxPrograms/trunks/harbour/addons/hwgui-src/hwgui/utils/tutorial$ >> hwbuild *hwgrun* > The hwbuild is your script to build prgs ? Just add -lhbcplr to the > libraries list there, this is compiler library, which includes that > hb_CompileBuf() function. ok, that's good now > Or use the build.sh, which is provided with the tutorial files. I never use all your build.sh for two reasons: 1) gcc gives an error if -lm is not at the end of the command line, so it's necessary to put $SYSTEM_LIBS at the end of the commandline. 2) I place this modified script in /usr/local/bin to be able to use it elsewhere than in hw folders, and I rename it to have a name more obvious. Mine is exactly the same at your, except I remove test and variables values using HB_ROOT (to be simplest) and I put $SYSTEM_LIBS at the end of the commandline. My mistake, here, is that I used the build.sh version which was in sample/gtk, and where -lhbcplr was missing. Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-10-22 08:25) | HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2295) ------------------------------------------------------------------------ |