|
From: Alain A. <ala...@wa...> - 2014-09-27 20:33:13
|
I'm sorry to insist, but there is not too much guys who want to help me ...
I have tried something like:
cRegistre=aRegistres[1] // value of the first item of a text
array
@ 15,84 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;
SIZE 490, 25 ON CHANGE {|| cRegistre=oCombo3:getvalue()}
I'm completly lost, the documentation gives no solution, and there are
not examples which can help ...
Please, help me ...
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-09-09 22;51) |
HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2285)
------------------------------------------------------------------------
|
|
From: Alex S. <ss...@mw...> - 2014-09-28 06:02:43
|
On 2014-09-27 10:33 PM, Alain Aupeix wrote:
> I'm sorry to insist, but there is not too much guys who want to help me ...
>
> I have tried something like:
>
> cRegistre=aRegistres[1] // value of the first item of a text
> array
> @ 15,84 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;
> SIZE 490, 25 ON CHANGE {|| cRegistre=oCombo3:getvalue()}
>
> I'm completly lost, the documentation gives no solution, and there are
> not examples which can help ...
>
> Please, help me ...
> Thanks
> A+
>
I have this:
@ ID 1000 OBJECT ::oName COMBOBOX ITEMS ::aMgrs STYLE
CBS_DROPDOWNLIST + WS_TABSTOP + WS_CHILD + WS_VISIBLE + WS_VSCROLL ;
AT 74, 13 SIZE 60, 39
In the Ok handler I simply check:
::oName:text
--
Regards
Alex
|
|
From: Alain A. <ala...@wa...> - 2014-09-28 08:10:29
|
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 28/09/2014 07:45, Alex Strickland a
écrit :<br>
</div>
<blockquote cite="mid:542...@mw..." type="cite">
<pre wrap="">I have this:
@ ID 1000 OBJECT ::oName COMBOBOX ITEMS ::aMgrs STYLE
CBS_DROPDOWNLIST + WS_TABSTOP + WS_CHILD + WS_VISIBLE + WS_VSCROLL ;
AT 74, 13 SIZE 60, 39
In the Ok handler I simply check:
::oName:text</pre>
</blockquote>
Sorry, but I haven't been able to make it work<br>
When I try your syntax, I have a syntax error on this line:<br>
<br>
Here is my complete box, give me the modifications (-- for removed
lines, and ++ for added lines):<br>
<br>
...<br>
adel(aRegistres)<br>
aRegistres:={}<br>
adel(aCom)<br>
aCom:={}<br>
aCom=directory(orPath+"/"+oCommune+"/"+oType+"/*.pdf","")<br>
if len(acom)=0<br>
adel(aCom)<br>
aCom:={}<br>
aCom=directory(orPath+"/"+oCommune+"/"+oType+"/*.PDF","")<br>
endif<br>
adir=asort(aCom,,,{| x, y | x[ 1 ] < y[ 1 ] })<br>
for rg=1 to len(aCom)<br>
aadd(aRegistres,aCom[rg,1])<br>
next<br>
if len(aRegistres) >0<br>
INIT DIALOG oDlg3 CLIPPER NOEXIT TITLE cTitle AT ox+140,oy+130
SIZE 520,180 ;<br>
FONT oFont3<br>
<br>
oRegistre=aRegistres[1]<br>
@ 15,10 SAY cText01 SIZE 200, 22 COLOR hwg_VColor("FF0000")<br>
@ 15,32 SAY oCommune SIZE 290, 25 COLOR hwg_VColor("0000FF")<br>
<br>
@ 325,10 SAY cText02 SIZE 200, 22 COLOR hwg_VColor("FF0000")<br>
@ 325,32 SAY oType SIZE 100, 25 COLOR hwg_VColor("0000FF")<br>
<br>
@ 15,62 SAY cText03 SIZE 200, 22 COLOR hwg_VColor("FF0000")<br>
@ 15,84 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;<br>
SIZE 490, 25 ON CHANGE {|| oRegistre:=oCombo3:getvalue()}<br>
<br>
@ 120,130 BUTTON "Ok" OF oDlg3 ID IDOK ;<br>
SIZE 100, 32 COLOR hwg_VColor("FF0000")<br>
@ 260,130 BUTTON "Annuler" OF oDlg3 ID IDCANCEL ;<br>
SIZE 100, 32<br>
<br>
ACTIVATE DIALOG oDlg3<br>
oFont3:Release()<br>
else<br>
qout("Aucune registre trouvé ..."+chr(10))<br>
hwg_Msginfo("Aucun registre trouvé ...","Lire un registre")<br>
endif<br>
if len(oRegistre) >0<br>
qout(oview+"
"+orpath+"/"+oCommune+"/"+oType+"/"+oRegistre+"&") <br>
// run(oview+"
"+orpath+"/"+oCommune+"/"+oType+"/"+oRegistre+"&")<br>
endif <br>
Return Nil<br>
<br>
Try a syntax not too much embedded, as I have serious problems with
oo<br>
Thanks<br>
<br>
To be clear, how to affect the value of a combobox or more generally
a dialog to a variable<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-09-09 22;51) | HbIDE (Rev.316) | Five.Linux (r138) |
Hw.Gui (2285)</small>
<hr>
</div>
</body>
</html>
|
|
From: Alex S. <ss...@mw...> - 2014-09-28 08:44:30
|
Hi Alain
> Sorry, but I haven't been able to make it work
> When I try your syntax, I have a syntax error on this line:
> Here is my complete box, give me the modifications (-- for removed
> lines, and ++ for added lines):
I'm sorry I do not have the time (or probably ability) to get your
example working.
HWGUI has worked well for me but it is not very actively maintained and
so as you see it is hard to get help for it. The Windows version saw
active development after the initial versions, but not by Alexander
Kresin, and the overall vision suffered.
I use it under Windows and possibly that is a reason why you cannot
compile my small snippet (you are trying the GTK branch?). Further I
have made various undocumented changes of my own, maybe that is another
reason.
I would still suggest that you try the text object variable:
@ 15,84 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;
SIZE 490, 25 ON CHANGE {|| oRegistre:=oCombo3:text}
I'm sorry I can't do more.
--
Regards
Alex
|
|
From: Alain A. <ala...@wa...> - 2014-10-03 13:32:58
|
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 28/09/2014 10:44, Alex Strickland a
écrit :<br>
</div>
<blockquote cite="mid:542...@mw..." type="cite">
<pre wrap="">I would still suggest that you try the text object variable:
@ 15,84 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;
SIZE 490, 25 ON CHANGE {|| oRegistre:=oCombo3:text}</pre>
</blockquote>
I tried these two solutions (I set oRegistre before Init Window to
be sure that the variable is already here after closing the window.<br>
<br>
<pre wrap="">@ 15,84 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;
SIZE 490, 25 ON CHANGE {|| oRegistre:=oCombo3:text}</pre>
<pre wrap="">@ 15,84 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;
SIZE 490, 25 ON CHANGE {|| oRegistre:=oCombo3:GetText()}</pre>
But none in working<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-09-09 22;51) | HbIDE (Rev.316) | Five.Linux (r138) |
Hw.Gui (2285)</small>
<hr>
</div>
</body>
</html>
|
|
From: Maurizio la C. <m.l...@ar...> - 2014-10-03 17:09:56
|
Hi Alain,
I think you're misunderstanding the syntax.
You pass oCombo3 as object but it's expected to being a variable storing
the returned value.
The codeblock on change isn't needed.
Try to use:
@ 15,84 GET COMBOBOX oRegistre STYLE WS_TABSTOP SIZE 490, 25
it should be enough.
BR
Maurizio
Il 03/10/2014 15:32, Alain Aupeix ha scritto:
> Le 28/09/2014 10:44, Alex Strickland a écrit :
> > I would still suggest that you try the text object variable:
> >
> > @ 15,84 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;
> > SIZE 490, 25 ON CHANGE {|| oRegistre:=oCombo3:text}
> I tried these two solutions (I set oRegistre before Init Window to be sure that
> the variable is already here after closing the window.
>
> @ 15,84 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;
> SIZE 490, 25 ON CHANGE {|| oRegistre:=oCombo3:text}
>
> @ 15,84 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;
> SIZE 490, 25 ON CHANGE {|| oRegistre:=oCombo3:GetText()}
>
> But none in working
>
> 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-09-09 22;51) | HbIDE
> (Rev.316) | Five.Linux (r138) | Hw.Gui (2285)
> --------------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> Hwgui-developers mailing list
> Hwg...@li...
> https://lists.sourceforge.net/lists/listinfo/hwgui-developers
|
|
From: Alain A. <ala...@wa...> - 2014-10-03 18:07:24
|
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 03/10/2014 19:06, Maurizio la
Cecilia a écrit :<br>
</div>
<blockquote cite="mid:542...@ar..." type="cite">@ 15,84
GET COMBOBOX oRegistre STYLE WS_TABSTOP SIZE 490, 25</blockquote>
GeneTools.prg(407) Error E0030 Syntax error "syntax error at '@'"<br>
<br>
It can't be like you said as (even it's miss-named), oRegistre is a
variable<br>
More, where are the purposed choices ?<br>
For me there were aRegistres which is an array.<br>
<br>
To be more rigourous I ought to write it like that:<br>
<br>
// initialize the variable with the first value ot the array<br>
cRegistre=aRegistres[1]<br>
...<br>
<br>
@ 15,32 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;<br>
SIZE 290, 25 ON CHANGE {|| cRegistre:=oCombo3:GetText()}<br>
<br>
oCombo3:GetText()<br>
<br>
Here is perhaps the problem, as I don't know which function, or just
value to use:<br>
<br>
oCombo3:GetText()<br>
oCombo3:Text<br>
other syntax that I don't know ...<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-09-09 22;51) | HbIDE (Rev.316) | Five.Linux (r138) |
Hw.Gui (2285)</small>
<hr>
</div>
</body>
</html>
|
|
From: Maurizio la C. <m.l...@gm...> - 2014-10-03 18:28:00
|
Hi Alain,
sorry. I wrongly edited the code.
Try with:
@ 15,84 GET COMBOBOX cRegistre ITEMS aRegistres STYLE WS_TABSTOP SIZE
490, 25
AFAIK, you'll find the selected item value in the cRegistre variable.
BR
Maurizio
Il 03/10/2014 20:07, Alain Aupeix ha scritto:
> Le 03/10/2014 19:06, Maurizio la Cecilia a écrit :
> > @ 15,84 GET COMBOBOX oRegistre STYLE WS_TABSTOP SIZE 490, 25
> GeneTools.prg(407) Error E0030 Syntax error "syntax error at '@'"
>
> It can't be like you said as (even it's miss-named), oRegistre is a variable
> More, where are the purposed choices ?
> For me there were aRegistres which is an array.
>
> To be more rigourous I ought to write it like that:
>
> // initialize the variable with the first value ot the array
> cRegistre=aRegistres[1]
> ...
>
> @ 15,32 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;
> SIZE 290, 25 ON CHANGE {|| cRegistre:=oCombo3:GetText()}
>
> oCombo3:GetText()
>
> Here is perhaps the problem, as I don't know which function, or just value to use:
>
> oCombo3:GetText()
> oCombo3:Text
> other syntax that I don't know ...
>
> 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-09-09 22;51) | HbIDE
> (Rev.316) | Five.Linux (r138) | Hw.Gui (2285)
> --------------------------------------------------------------------------------
|
|
From: Maurizio la C. <m.l...@gm...> - 2014-10-03 18:45:02
|
Hi Alain,
OK, isn't my best day...
The correct syntax is:
@ 15,32 GET COMBOBOX oCombo3 VAR cRegistre ITEMS aRegistres STYLE
WS_TABSTOP SIZE 290, 25
Sorry, again...
BR
Maurizio
Il 03/10/2014 20:07, Alain Aupeix ha scritto:
> Le 03/10/2014 19:06, Maurizio la Cecilia a écrit :
> > @ 15,84 GET COMBOBOX oRegistre STYLE WS_TABSTOP SIZE 490, 25
> GeneTools.prg(407) Error E0030 Syntax error "syntax error at '@'"
>
> It can't be like you said as (even it's miss-named), oRegistre is a variable
> More, where are the purposed choices ?
> For me there were aRegistres which is an array.
>
> To be more rigourous I ought to write it like that:
>
> // initialize the variable with the first value ot the array
> cRegistre=aRegistres[1]
> ...
>
> @ 15,32 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;
> SIZE 290, 25 ON CHANGE {|| cRegistre:=oCombo3:GetText()}
>
> oCombo3:GetText()
>
> Here is perhaps the problem, as I don't know which function, or just value to use:
>
> oCombo3:GetText()
> oCombo3:Text
> other syntax that I don't know ...
>
> 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-09-09 22;51) | HbIDE
> (Rev.316) | Five.Linux (r138) | Hw.Gui (2285)
> --------------------------------------------------------------------------------
|
|
From: Maurizio la C. <m.l...@gm...> - 2014-10-03 18:50:14
|
.....and, if the wanted returned value is of character type and not the
index of the selected item array:
@ 15,32 GET COMBOBOX oCombo3 VAR cRegistre ITEMS aRegistres STYLE
WS_TABSTOP SIZE 290, 25 TEXT
Note the TEXT at the end of the command.
BR
Maurizio
Il 03/10/2014 20:07, Alain Aupeix ha scritto:
> Le 03/10/2014 19:06, Maurizio la Cecilia a écrit :
> > @ 15,84 GET COMBOBOX oRegistre STYLE WS_TABSTOP SIZE 490, 25
> GeneTools.prg(407) Error E0030 Syntax error "syntax error at '@'"
>
> It can't be like you said as (even it's miss-named), oRegistre is a variable
> More, where are the purposed choices ?
> For me there were aRegistres which is an array.
>
> To be more rigourous I ought to write it like that:
>
> // initialize the variable with the first value ot the array
> cRegistre=aRegistres[1]
> ...
>
> @ 15,32 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;
> SIZE 290, 25 ON CHANGE {|| cRegistre:=oCombo3:GetText()}
>
> oCombo3:GetText()
>
> Here is perhaps the problem, as I don't know which function, or just value to use:
>
> oCombo3:GetText()
> oCombo3:Text
> other syntax that I don't know ...
>
> 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-09-09 22;51) | HbIDE
> (Rev.316) | Five.Linux (r138) | Hw.Gui (2285)
> --------------------------------------------------------------------------------
|