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: Alain A. <ala...@wa...> - 2016-01-12 19:05:57
|
<html> <head> <meta content="text/html; charset=windows-1252" http-equiv="Content-Type"> </head> <body text="#000000" bgcolor="#FFFFFF"> <div class="moz-cite-prefix">Le 12/01/2016 19:47, Itamar M. Lins Jr. Lins a écrit :<br> </div> <blockquote cite="mid:CAHGjjAr=KgGizeBKLxY9KjV_z2z_rG79WAv_Co=jyj...@ma..." type="cite"> <div dir="ltr">Hi!<br> Please see this.<br> #include "<a moz-do-not-send="true" href="http://hwgui.ch">hwgui.ch</a>"<br> Function main<br> LOCAL oDlg,oBtn, cGet:=space(30), oGet<br> hwg_SetColorinFocus(.T.,0,11193702) <br> <br> INIT DIALOG oDlg AT 10,10 SIZE 500,120 <br> <br> @ 10,10 GET oGet var cGet size 100,30<br> <br> //do not press anything, just hover the button!<br> @ 10,50 OwnerButton oBtn TEXT "When out of the button, kill focus on get" of oDlg Size 300,30 <br> <br> oDlg:Activate(,,,.T.)<br> </div> </blockquote> Hi,<br> <br> I tried it under Linux, just commenting hb_setcolorinfocus() unknown under Linux<br> I enter a string, and hover the button, get keeps focus<br> I just continue to enter string in get without problem.<br> <br> A+<br> <blockquote cite="mid:CAHGjjAr=KgGizeBKLxY9KjV_z2z_rG79WAv_Co=jyj...@ma..." type="cite"> <div dir="ltr"><br> <br> <br> Best regards,<br> Itamar M. Lins Jr.<br> <br> </div> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! <a class="moz-txt-link-freetext" href="http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140">http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140</a></pre> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ Hwgui-developers mailing list <a class="moz-txt-link-abbreviated" href="mailto:Hwg...@li...">Hwg...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/hwgui-developers">https://lists.sourceforge.net/lists/listinfo/hwgui-developers</a> </pre> </blockquote> <br> <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.9-1 | H.arbour 3.2.0dev (2016-01-03 01:24) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2510)</small> <hr> </div> </body> </html> |
From: Itamar M. L. J. L. <ita...@gm...> - 2016-01-12 18:47:36
|
Hi! Please see this. #include "hwgui.ch" Function main LOCAL oDlg,oBtn, cGet:=space(30), oGet hwg_SetColorinFocus(.T.,0,11193702) INIT DIALOG oDlg AT 10,10 SIZE 500,120 @ 10,10 GET oGet var cGet size 100,30 //do not press anything, just hover the button! @ 10,50 OwnerButton oBtn TEXT "When out of the button, kill focus on get" of oDlg Size 300,30 oDlg:Activate(,,,.T.) Best regards, Itamar M. Lins Jr. |
From: Itamar M. L. J. L. <ita...@gm...> - 2016-01-03 23:49:20
|
Hi! #include "hwgui.ch" Function main LOCAL oDlg, cGetA := space(5), cGetB := space(5), oBt, oSay INIT DIALOG oDlg CLIPPER NOEXIT AT 100,100 SIZE 500,200 @ 10,10 get oGetA var cGetA size 100,20 picture "!!!!!" @ 10,40 get oGetB var cGetB size 100,20 picture "!!!!!" @ 10,70 say oSay CAPTION "Press OwneButton! It not pass focus to oGetB !" size 400,30 @ 10,100 ownerbutton oBt TEXT "Click-me" Size 90,30 on click {|| oGetB:SetFocus(),.T. } ACTIVATE Dialog oDlg This behavior is new because works until... 2.17,18,19... version something in the code off it now. Best regards, Itamar M. Lins Jr. |
From: Alain A. <ala...@wa...> - 2015-12-21 16:25:55
|
Le 21/12/2015 11:10, Alain Aupeix a écrit : > Le 21/12/2015 08:57, Alexander S.Kresin a écrit : >> Alain Aupeix пишет: >>> My problem is, before or after giving the focus, to sent to yelp that >>> displayed uri must be changed >>> It seems that there is a gtk function which allows to do that, in >>> relation with tha API of yelp. >> I just added hwg_ShellExecute( cUrl ) function, similar to >> appropriate function in winapi version. It uses the gtk_show_uri(), so >> you may try something like: >> >> hwg_ShellExecute( "help:myproject/export" ) > Nice, it works for launching web url. > > It works for yelp too. > It doesn't open a new instance when calling again the help, but I have > just a problem with yelp which doesn' find the help files. I suppose > that I have to declare the help to the system, but I don't know how. > I'll ask it on Ubuntu forums. > > Thanks > A+ Well, in fact, it was really simple: Help files must be put in the help system folder (/usr/share/help/<lang>/<program>) And the files must be called from hwg_ShellExecute() with the id, and not the name of the file. We can also access to a point of a page /using help::myproject/mypage#myparagraph/ Nice, isn't it ? Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-16 18:09) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2510) ------------------------------------------------------------------------ |
From: Alain A. <ala...@wa...> - 2015-12-21 10:10:10
|
Le 21/12/2015 08:57, Alexander S.Kresin a écrit : > Alain Aupeix пишет: >> My problem is, before or after giving the focus, to sent to yelp that >> displayed uri must be changed >> It seems that there is a gtk function which allows to do that, in >> relation with tha API of yelp. > I just added hwg_ShellExecute( cUrl ) function, similar to > appropriate function in winapi version. It uses the gtk_show_uri(), so > you may try something like: > > hwg_ShellExecute( "help:myproject/export" ) Nice, it works for launching web url. It works for yelp too. It doesn't open a new instance when calling again the help, but I have just a problem with yelp which doesn' find the help files. I suppose that I have to declare the help to the system, but I don't know how. I'll ask it on Ubuntu forums. Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-16 18:09) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2510) ------------------------------------------------------------------------ |
From: Alexander S.K. <al...@be...> - 2015-12-21 07:57:49
|
Alain Aupeix пишет: > > My problem is, before or after giving the focus, to sent to yelp that > displayed uri must be changed > It seems that there is a gtk function which allows to do that, in > relation with tha API of yelp. I just added hwg_ShellExecute( cUrl ) function, similar to appropriate function in winapi version. It uses the gtk_show_uri(), so you may try something like: hwg_ShellExecute( "help:myproject/export" ) Regards, Alexander. |
From: Alain A. <ala...@wa...> - 2015-12-19 08:06:53
|
Le 18/12/2015 12:55, Alexander S.Kresin a écrit : > Probably, this cannot be solved with signals and depends on the GUI > framework ( Gnome, KDE, ... ). > I've made a quick search about 'linux bring window to front' - people > suggests mostly to use external tools as wmctrl, xdotools. Yes, I use wmctrl, which is a nice tool and is simplest than xdotools (I use it too, but for other purposes), and it works fine (except under xfce, if I remember well) But this is to give the focus to a window. My problem is, before or after giving the focus, to sent to yelp that displayed uri must be changed It seems that there is a gtk function which allows to do that, in relation with tha API of yelp. I have found a website about Mallars which talk about this, and I think that as hwgui is way to talk with gtk+, it could be done. Obviously, I haven't the level to do that ... /) http://en.flossmanuals.net/introduction-to-mallard/_all/ Context-sensitive help For the most complete integration of Mallard with an application, context-sensitive links can be added to the application that link to pages or sections in documentation. For example, a preferences dialog might have a help button which, when clicked, would open a guide page that links to topics about changing the application preferences. Implementing context-sensitive help implies certain requirements, such as being able to address specific sections in Mallard documentation and a documentation viewer that is able to understand the addressing scheme. Help URIs A linking scheme is required in order to reference specific sections or pages of documentation from an external resource. Mallard does not prescribe a linking scheme, so it is a feature that is dependent on the documentation viewer. Yelp is the principal Mallard documentation viewer, and conforms to the draft freedesktop.org help system specification <http://www.freedesktop.org/wiki/Specifications/help-system/>. An example of a link to the index for the hypothetical /myproject/ project looks as follows: help:myproject Link URIs assume that the documentation is installed to the system-wide help directory. While it is possible to override this directory locally, it is not recommended. Refer to the help system specification for more information. To link to a specific page, add a Unix path separator '/' and the page ID to the URI: help:myproject/mypage No file extensions are required, as Yelp identifies the extension automatically. Additionally, sections on a page can be linked to by adding the section ID to the end of the URI, prefixed with a '#': help:myproject/mypage#mysection You can test the URI by running Yelp with the URI as an argument. For example: $ yelp help:myproject/mypage The above command would run Yelp and show the /mypage/ page in the /myproject/ documentation. Modifying applications to launch help Given a linking scheme, applications can link from a specific context to the corresponding part of the documentation. An obvious example is linking from a help button in a hypothetical export dialog to documentation about exporting. Assuming an application /myproject/, with a Mallard page /export/, the URI might look as follows: help:myproject/export Application support for the linking scheme depends on the underlying toolkit. For applications using GTK+, the |gtk_show_uri()| function accepts a URI as an argument, and opens Yelp with the given URI. For example, the following line of code launches the default help viewer, generally Yelp, with the URI given above: gtk_show_uri (gdk_screen_get_default (), "help:myproject/export", GDK_CURRENT_TIME, NULL); Other toolkits should have a similar function for opening URIs, but the details are outside of the scope of this document. Consult the reference documentation of your toolkit for details. Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-15 22:48) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2508) ------------------------------------------------------------------------ |
From: Alexander S.K. <al...@be...> - 2015-12-18 11:55:22
|
Alexander S.Kresin пишет: >> But I think I must sent a message to this process, and I don't know how >> to do and if it's possible. >> Using hw_SetFocus() ? > > No, hwg_Setfocus() works for the windows and widgets of the current > hwgui process. There should exist methods to send signals to another > processes. > Probably, this cannot be solved with signals and depends on the GUI framework ( Gnome, KDE, ... ). I've made a quick search about 'linux bring window to front' - people suggests mostly to use external tools as wmctrl, xdotools. Regards, Alexander. |
From: Alexander S.K. <al...@be...> - 2015-12-18 10:18:39
|
Alain Aupeix пишет: >> You need to find the handle of the yelp window to do this. > What is the handle, the process number ? My mistake, Process id, of course. > If that, I think it's not a problem, I already do that for other > functions to avoid opening new windows when it's not necessary. > > But I think I must sent a message to this process, and I don't know how > to do and if it's possible. > Using hw_SetFocus() ? No, hwg_Setfocus() works for the windows and widgets of the current hwgui process. There should exist methods to send signals to another processes. Regards, Alexander. |
From: Alexander S.K. <al...@be...> - 2015-12-18 09:41:20
|
Alain Aupeix пишет: > Once I call the help, and let it open, as I want not to have more than > one opened help, I'm not able to call again with a different chapter, or > just getting the focus to the already displayed chapter. Now, after today's changes, hwg_Setfocus( oDlg:handle ) set the oDlg as toplevel. I did also small changes in utils/editor.prg, Help() to illustrate how to use this. Now, when you select Help menu item while a help dialog exists, it doesn't create a new dialog, but makes that existing toplevel. > I would give the focus, and send a message to the htlp to change the > chapter. >>> I have found the way to create a system help for yelp. >>> So, trying it, I have the same problems as with the previous solution I >>> used. You need to find the handle of the yelp window to do this. Regards, Alexander. |
From: Alain A. <ala...@wa...> - 2015-12-17 14:35:54
|
Le 17/12/2015 15:04, Alexander S.Kresin a écrit : > Alain Aupeix пишет: > >> 2) Have a look to the process, and only accept one instance, or just >> give the focus to the already opened help system, but I can't >> automaticly access to the new chapter. > It is possible to set anchors in the text - the utils/editor utility > allows this, they are implemented as 'id' items in a <div>. > Then, you can go to the place where an anchor is set, using the > oEdit:Goto() method. I have already this possibility in the modified tutor I used, passing the chapter I want to display. I have 2 ways to call help from my application: 1) From Menu => calls the help without parameter (chapter Introduction) 2) From a function, with F1 => calls the help with a parameter (each function has a different chapter) But the problem isn't here. Once I call the help, and let it open, as I want not to have more than one opened help, I'm not able to call again with a different chapter, or just getting the focus to the already displayed chapter. I would give the focus, and send a message to the htlp to change the chapter. >> I have found the way to create a system help for yelp. >> So, trying it, I have the same problems as with the previous solution I >> used. >> >> I suppose my program must send a message to yelp to be able to change >> the chapter to display, but I'm not able to send it. I know it's >> possible as, for example, gedit is able to do it. >> > What the yelp is ? That's why I ought to use yelp which is able to do that, but I have the same problems. https://wiki.gnome.org/Apps/Yelp I'm not very sure of me about the way to do it, but perhaps that my application could send a message the yelp system to change the chapter. It should probably be the same with my modifies tutor version, but I prefer to use yelp which is already present in Linux System. Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-15 22:48) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2508) ------------------------------------------------------------------------ |
From: Alexander S.K. <al...@be...> - 2015-12-17 14:04:19
|
Alain Aupeix пишет: > 2) Have a look to the process, and only accept one instance, or just > give the focus to the already opened help system, but I can't > automaticly access to the new chapter. It is possible to set anchors in the text - the utils/editor utility allows this, they are implemented as 'id' items in a <div>. Then, you can go to the place where an anchor is set, using the oEdit:Goto() method. > > I have found the way to create a system help for yelp. > So, trying it, I have the same problems as with the previous solution I > used. > > I suppose my program must send a message to yelp to be able to change > the chapter to display, but I'm not able to send it. I know it's > possible as, for example, gedit is able to do it. > What the yelp is ? Regards, Alexander. |
From: Alain A. <ala...@wa...> - 2015-12-17 13:47:11
|
Hi, I tried to use a modified version of tutor to make a system help, but it's not exactly done for this purpose, and I have some problems. I'm able to directly access to a chapter, but once the system help is opened, I can't access to another chapter. I have two solutions : 1) I just open the help system to access to the new chapter, but I have more than one opened system help. 2) Have a look to the process, and only accept one instance, or just give the focus to the already opened help system, but I can't automaticly access to the new chapter. I have found the way to create a system help for yelp. So, trying it, I have the same problems as with the previous solution I used. I suppose my program must send a message to yelp to be able to change the chapter to display, but I'm not able to send it. I know it's possible as, for example, gedit is able to do it. How can this be done from within an hwgui application ? Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-15 22:48) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2508) ------------------------------------------------------------------------ |
From: Alain A. <ala...@wa...> - 2015-12-15 07:39:15
|
Le 15/12/2015 08:18, Alexander S.Kresin a écrit : > Alain Aupeix пишет: >> Hi, >> >> under Linux (I don't know for Windows), >> >> Ctrl-C and Copy (with mouse) work in a get >> Ctrl-V works too >> Paste (with mouse) doesn't work. > What is "paste with mouse" ? Right-click => Paste A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-05 09:58) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2503) ------------------------------------------------------------------------ |
From: Alexander S.K. <al...@be...> - 2015-12-15 07:18:46
|
Alain Aupeix пишет: > Hi, > > under Linux (I don't know for Windows), > > Ctrl-C and Copy (with mouse) work in a get > Ctrl-V works too > Paste (with mouse) doesn't work. What is "paste with mouse" ? Regards, Alexander. |
From: Alain A. <ala...@wa...> - 2015-12-13 09:31:19
|
Hi, under Linux (I don't know for Windows), Ctrl-C and Copy (with mouse) work in a get Ctrl-V works too Paste (with mouse) doesn't work. Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-05 09:58) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2503) ------------------------------------------------------------------------ |
From: Alain A. <ala...@wa...> - 2015-12-10 14:23:29
|
Le 10/12/2015 12:24, Alexander S.Kresin a écrit : > Alain Aupeix пишет: >> Hi, >> >> I have a windows where I have gets, and two buttons Cancel and Validate >> >> If I modify a get, and without changing the focused get, I hit the >> button accept, > You said that there are "two buttons Cancel and Validate". What is > "button accept" ? Sorry, it was the button Validate ... > It could be easier, if you provide a small code snippet. It's really a very simple problem, but I dont know it it will be possible to solve it. I have for example two gets which are initialized with strings. If I modify the content of one get and hit the button validate without changing the focused get, the modification isn't taken ... #include "windows.ch" #include "guilib.ch" #include "gtk.ch" #include "inkey.ch" REQUEST HB_CODEPAGE_UTF8 REQUEST HB_CODEPAGE_FR850 REQUEST DBFNTX REQUEST ORDKEYNO REQUEST ORDKEYCOUNT memvar rMachine, rSystem, cButton function main() local oMainWindow, getlist, oValid, oCancel public rMachine:="name of machine", rSystem:="Ubuntu 12.04", cButton INIT WINDOW oMainWindow MAIN TITLE "Get and validate test ..." AT 200,50 SIZE 350,395 @ 10,10 SAY "Modify the name and hit <Enter> key" SIZE 340, 20 @ 10,30 SAY "then, Modify the system and hit <Valid> button" SIZE 340, 20 clear gets @ 10,60 SAY "Machine Name:" SIZE 130, 20 @ 185,60 GET rMachine SIZE 140, 20 BACKCOLOR 13296771 COLOR hwg_VColor("0000FF") @ 10,85 SAY "Machine System :" SIZE 130, 20 @ 185,85 GET rSystem SIZE 140, 20 BACKCOLOR 13296771 COLOR hwg_VColor("0000FF") @ 80,120 OWNERBUTTON oValid ON CLICK {||Valid_Edit("Valid")} ; SIZE 80, 27 ; BITMAP "valider.png" TRANSPARENT COLOR 13890771 @ 95,150 SAY "Valid" SIZE 80, 27 @ 200,120 OWNERBUTTON oCancel ON CLICK {||Valid_Edit("Cancel")} ; SIZE 80, 27 ; BITMAP "annuler.png" TRANSPARENT COLOR 13890771 @ 220,150 SAY "Cancel" SIZE 80, 27 @ 10,190 SAY "You will see that the last modified get, without" SIZE 340, 20 @ 10,210 SAY "hitting <enter> after, isn't modified." SIZE 340, 20 @ 10,230 SAY "A 2nd <Valid> modify it, first ought to be enough." SIZE 340, 20 @ 10,252 SAY "----------------------------------------------------------------------------------" SIZE 340, 10 @ 10,270 SAY "Another bug : at the beginning, click after the end" SIZE 340, 20 @ 10,290 SAY "of a get, and enter something : it's entered at the" SIZE 340, 20 @ 10,310 SAY "beginning of the get." SIZE 340, 20 @ 10,330 SAY "Editing cursor position isn't modified when using" SIZE 340, 20 @ 10,350 SAY "the mouse. Same problem when leaving the get" SIZE 340, 20 @ 10,370 SAY "for another program and returning in the get ..." SIZE 340, 20 ACTIVATE WINDOW oMainWindow return nil // ============================================================================ Function Valid_Edit(cButton) // ============================================================================ run("ls") hwg_Msginfo(rMachine+chr(13)+chr(10)+rSystem,"You hit "+cButton+" button") if cButton == "Cancel" rMachine:="name of machine" rSystem:="Ubuntu 12.04" endif return nil Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-05 09:58) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2503) ------------------------------------------------------------------------ |
From: Alexander S.K. <al...@be...> - 2015-12-10 11:33:40
|
Alain Aupeix пишет: > I have a get that I initialized with a value. > > 1) Entering in the get clicking with the mouse at the end of the string. > Even the pointer is at the end of the string, the characters are added > or overwrite the beginning of the string > > 2) If I'm editing the get, and I must leave the focus, for exemple to do > something elsewhere, when I return to the get, the characters are added > or overwrite the beginning the string. > Does you return to the get clicking it with a mouse ? In general, it is related to an implementation of GET objects. In Clipper, if we enter to a numerical get, the first key pressing causes the content of the get to be cleared. But there wasn't mouse in Clipper. Probably, we need to provide this feature only for the case when we enter to a GET object using the keyboard ? Regards, Alexander. |
From: Alexander S.K. <al...@be...> - 2015-12-10 11:25:20
|
Alain Aupeix пишет: > Hi, > > I have a windows where I have gets, and two buttons Cancel and Validate > > If I modify a get, and without changing the focused get, I hit the > button accept, You said that there are "two buttons Cancel and Validate". What is "button accept" ? It could be easier, if you provide a small code snippet. Regards, Alexander. |
From: Alain A. <ala...@wa...> - 2015-12-09 09:30:23
|
Le 09/12/2015 09:58, Alain Aupeix a écrit : > Le 09/12/2015 09:18, Alain Aupeix a écrit : >> Le 09/12/2015 08:20, Alexander S.Kresin a écrit : >>> SET TIMER oTm1 VALUE 100 ACTION {||oValid:hide(),oCancel:hide()} ONCE >>> ACTIVATE WINDOW oMainWindow >> Compiling 'Maintsys-client.prg'... >> Maintsys-client.prg(530) Error E0030 Syntax error "syntax error at 'TIMER'" >> 1 error >> >> No code generated. >> >> I have put it before the ACTIVATE command. > In fact , I made an error, I include 'once ...' in the line > > It now works, but I'm not able now to display it in the function where > it must been viewable ... > > I tried with oValid and oCancel Public > > oValid:show() > oCancel:show() > > and it doesn't display > > Thanks > A+ I success showing and hiding it using det timer Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-05 09:58) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2503) ------------------------------------------------------------------------ |
From: Alain A. <ala...@wa...> - 2015-12-09 08:58:51
|
Le 09/12/2015 09:18, Alain Aupeix a écrit : > Le 09/12/2015 08:20, Alexander S.Kresin a écrit : >> SET TIMER oTm1 VALUE 100 ACTION {||oValid:hide(),oCancel:hide()} ONCE >> ACTIVATE WINDOW oMainWindow > Compiling 'Maintsys-client.prg'... > Maintsys-client.prg(530) Error E0030 Syntax error "syntax error at 'TIMER'" > 1 error > > No code generated. > > I have put it before the ACTIVATE command. In fact , I made an error, I include 'once ...' in the line It now works, but I'm not able now to display it in the function where it must been viewable ... I tried with oValid and oCancel Public oValid:show() oCancel:show() and it doesn't display Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-05 09:58) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2503) ------------------------------------------------------------------------ |
From: Alain A. <ala...@wa...> - 2015-12-09 08:18:57
|
Le 09/12/2015 08:20, Alexander S.Kresin a écrit : > SET TIMER oTm1 VALUE 100 ACTION {||oValid:hide(),oCancel:hide()} ONCE > ACTIVATE WINDOW oMainWindow Compiling 'Maintsys-client.prg'... Maintsys-client.prg(530) Error E0030 Syntax error "syntax error at 'TIMER'" 1 error No code generated. I have put it before the ACTIVATE command. A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-05 09:58) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2503) ------------------------------------------------------------------------ |
From: Alexander S.K. <al...@be...> - 2015-12-09 07:20:05
|
Alain Aupeix пишет: > Le 08/12/2015 12:26, Alexander S.Kresin a écrit : >> Try to do this while the ACTIVATE event: >> >> ACTIVATE WINDOW oMainWindow ON ACTIVATE {||oValid:hide(),oCancel:hide()} > Sorry, but doesn't work ... > Yes, really. Then try the following trick: SET TIMER oTm1 VALUE 100 ACTION {||oValid:hide(),oCancel:hide()} ONCE ACTIVATE WINDOW oMainWindow This will force hiding buttons after 100ms after activating the window. ONCE - this clause set the timer to run only once. Regards, Alexander. |
From: Alain A. <ala...@wa...> - 2015-12-08 18:15:20
|
Le 08/12/2015 09:39, Alexander S.Kresin a écrit : > Alain Aupeix пишет: >> Two bugs I reported there is a few time ... >> ______________________________________________________ >> >> Hi, trying the last version od editor, I saw 2 bugs: >> >> 1) Numpad keys (+-*/) dont work anymore. > They never worked ( 1,2,...9 worked only). Fixed now. >> 2) A bug when marking a string: >> >> (12+3)*4 >> <Shift><Home> >> F9 >> => >> Error BASE/1111 Argument error: LEN >> ... > Fixed. Nice all is ok A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-05 09:58) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2503) ------------------------------------------------------------------------ |
From: Alexander S.K. <al...@be...> - 2015-12-08 11:26:20
|
Alain Aupeix пишет: ... >>> oBtn:Hide(), oBtn:Show() > I haven't been able to hide it ... > Here is the code I use: > _______________________________________________________________ > > Memvar oValid, oCancel > > Function main() > .... > Public oValid, oCancel > .... > INIT WINDOW oMainWindow MAIN TITLE "Maintsys - Outils de maintenance > (v"+progvers+")" ; > ICON oIcon AT 200,50 SIZE 735,422 > ... > // Background > @ 0,0 BITMAP cImageDir+"mtools.png" > ... > @ 480,340 OWNERBUTTON oValid ON CLICK {||Valid_Edit("Valider")} ; > SIZE 80, 27 ; > BITMAP cImageDir+"valider.png" TRANSPARENT COLOR 13890771 > @ 580,340 OWNERBUTTON oCancel ON CLICK {||Valid_Edit("Annuler")} ; > SIZE 80, 27 ; > BITMAP cImageDir+"annuler.png" TRANSPARENT COLOR 13890771 > oValid:hide() > oCancel:hide() > ... > ACTIVATE WINDOW oMainWindow Try to do this while the ACTIVATE event: ACTIVATE WINDOW oMainWindow ON ACTIVATE {||oValid:hide(),oCancel:hide()} Regards, Alexander. |