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...> - 2015-07-01 06:41:42
|
<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 01/07/2015 00:02, Itamar M. Lins Jr. Lins a écrit :<br> </div> <blockquote cite="mid:CAHGjjAreHwy14K8HEtW-3kuaYzv_a6i16EYp10pWhHv-OaMg=A...@ma..." type="cite"> <div dir="ltr"> <div> <div> <div>Please post self container example.<br> But see!<br> <br> on change {||fName := rFolders,oPath:Refresh()};<br> </div> </div> </div> </div> </blockquote> Thanks, it works ...<br> First I replaced = with := <br> I add then refresh()<br> My lacks concerning oop are too obvious ...<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.9-1 | H.arbour 3.2.0dev (2015-06-26 12:50) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2458)</small> <hr> </div> </body> </html> |
From: Alexander S.K. <al...@be...> - 2015-07-01 06:17:40
|
Itamar M. Lins Jr. Lins пишет: > Hi! > If possible add on Hwgui this component/class present in others libs, ie > Delphi/Minigui... > More info in... > http://www.hmgextended.com/files/manual/checklistbox.htm Is it a list of strings with checkboxes ? If so, it is implemented in HwGUI many years ago via the HBrowse. See samples/a.prg - About dialog, OpenAbout() function. Regards, Alexander. |
From: Itamar M. L. J. L. <ita...@gm...> - 2015-07-01 02:12:51
|
#include "hwgui.ch" Function main LOCAL oDlg, cVar:= space(5), cTitle := hwg_version() INIT DIALOG oDlg clipper title cTitle AT 100,100 SIZE 500,200 @ 10,10 get oVar VAR cVar SIZE 80,25 picture "@R !-!-!-!-!-" //typing 00000 and enter oDlg:Activate() hwg_msginfo(str(len(cVar))) // len return 10 :-( Hwgui 2.19 Build 4 Best regards, Itamar M. Lins Jr. |
From: Itamar M. L. J. L. <ita...@gm...> - 2015-06-30 22:02:17
|
Please post self container example. But see! on change {||fName := rFolders,oPath:Refresh()}; #include 'hwgui.ch' function main local oMainWindow,nLeft:=30,nTop:=30,fName := space(40),rFolders:="" local aFolders := {"a","b","c","d","e","f"} INIT DIALOG oModDlg AT 10,130 SIZE 340,170 @ 10,10 SAY "Donnez le nom du x distant à copier" SIZE 320, 22 COLOR hwg_VColor("FF0000") @ 10,34 GET opath VAR fname SIZE 320, 26 @ 10,72 GET COMBOBOX oFolders VAR rFolders ITEMS aFolders STYLE WS_TABSTOP SIZE 320, 25; TOOLTIP "Choix d'un dossier distant"; on change {||fName := rFolders,oPath:Refresh()}; TEXT DisplayCount 5 @ 60,120 BUTTON "Ok" OF oModDlg ID IDOK ; SIZE 100, 32 COLOR hwg_VColor("FF0000") ; ON CLICK {||oModDlg:lResult:=.t.} @ 180,120 BUTTON "Annuler" OF oModDlg ID IDCANCEL ; SIZE 100, 32 ACTIVATE DIALOG oModDlg Other users here in this forum can help these issues. http://www.pctoledo.com.br/forum/viewforum.php?f=46 Best regards, Itamar M. Lins Jr. |
From: Alain A. <ala...@wa...> - 2015-06-30 20:10:22
|
Hi, I have a window which just have a get and a combobox. The goal of the combobox is to purpose a path which when choosed set the get value (which can be edited, before validation. I haven't found the way to do it. If you find where I fail ... I tried with a codeblock where I set the value choosed in the combobox ON CHANGE {||fname=rFolders}; INIT DIALOG oModDlg TITLE cTitle ; AT oMainWindow:nLeft+140,oMainWindow:nTop+130 SIZE 340,170 ; FONT oFont ICON oIcon @ 10,10 SAY "Donnez le nom du "+cLibelle+" distant à copier" SIZE 320, 22 COLOR hwg_VColor("FF0000") @ 10,34 GET opath VAR fname SIZE 320, 26 @ 10,72 GET COMBOBOX oFolders VAR rFolders ITEMS aFolders STYLE WS_TABSTOP SIZE 320, 25; TOOLTIP "Choix d'un dossier distant"; ON CHANGE {||fname=rFolders}; TEXT @ 60,120 BUTTON "Ok" OF oModDlg ID IDOK ; SIZE 100, 32 COLOR hwg_VColor("FF0000") ; ON CLICK {||oModDlg:lResult:=.t.} @ 180,120 BUTTON "Annuler" OF oModDlg ID IDCANCEL ; SIZE 100, 32 ACTIVATE DIALOG oModDlg 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-06-26 12:50) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2458) ------------------------------------------------------------------------ |
From: Itamar M. L. J. L. <ita...@gm...> - 2015-06-29 20:01:55
|
Hi! If possible add on Hwgui this component/class present in others libs, ie Delphi/Minigui... More info in... http://www.hmgextended.com/files/manual/checklistbox.htm Best regards, Itamar M. Lins Jr. |
From: Alain A. <ala...@wa...> - 2015-06-28 07:43:12
|
Including info() function in my programs, I like to give the harbour and hwgui versions in this box. There is a function which does it for hwgui, and an include file for harbour to keep the information. But first, I want another format of Harbour info, and there is a problem using the hw function, which is nice, but gives the actual installed version, and not the one used during the compilation. So, I have made two little tools that creates ch files for harbour and hwgui. These shells keep the first part of a ch file, search and set the needed info, andkeep the last part of the ch file, to generate the ch file. I give it with the resulting ch files and a sample, in a zip : https://www.dropbox.com/s/mnhqn0an6h25dtd/hbw_versions.zip?dl=1 These functions were in fact included in a shell I use to build harbour and hwgui. But I wanted to give it extracted from my shell. So, it's necessary to set the working folders to make it working everywhere. These shell are for Linux users, and I don't know if there is a way to do it under Windows. the hwgui ch file ought easily include in hwgui, and not to have to add a ch file, include in an already hwgui ch file. I give an example of an info function using it. Do what you want with it ... And thanks for your really good work with hwgui. 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-06-26 12:50) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2458) ------------------------------------------------------------------------ |
From: Itamar M. L. J. L. <ita...@gm...> - 2015-06-27 23:56:37
|
Hi! Some properties of htab class version 2.17 that does not have the version 2.19. TAB 2.17 it has [ ON RIGHTCLICK <bRClick> ]; TAB 2.19 there is not RIGHTCLICK! And version 2.17 BEGIN PAGE it has more 4 properties then not found at 2.19 #xcommand BEGIN PAGE <cname> OF <oTab> ; [ <enable: DISABLED> ] ; [ COLOR <tcolor>] ; [ BACKCOLOR <bcolor>] ; [ TOOLTIP <ctoolt> ] ; =>; <oTab>:StartPage( <cname>, ,! <.enable.> ,<tcolor>,<bcolor>, <ctoolt> ) Best regards, Itamar M. Lins Jr. |
From: Itamar M. L. J. L. <ita...@gm...> - 2015-06-27 20:17:53
|
Hi! The function hwg_processmessage() lets very slow process. Which we should use hwg_processmessage() or hwg_doevents() ? For example: Do While ... Hwg_ProcessMessage() //It is impracticable!! skip ... With hwg_DoEvents() // best results! What's the difference? When using either? Best regards, Itamar M. Lins Jr. |
From: Itamar M. L. J. L. <ita...@gm...> - 2015-06-27 15:01:54
|
Hi! Will designer work and save .prg files ? Becouse a get some bugs... While save a prg show error base/1001 undefined function GETMENU 1317: callfunc("menu2prg",{aControls[i],getmenu()}) Called from getmenu(0) Called from (b)COMPILESCR(307) ... And Designer -> File -> Save form And the screen show on combobox wrong text, Hwgui source ... Another error: Error BASE/1109 Argument error: $ 475: cStyle + iif("Right"$oCtrl:GetProp("alignment"),"+BS_RIGHTBUTTON"," ") Called from (b)COMPILESCR(307) Called from DOSCRIPT(514) ... The error occour with empty name of file xml. Best regards, Itamar M. Lins Jr. |
From: Alexander S.K. <al...@be...> - 2015-06-25 13:10:48
|
Hi, new build has been released. Regards, Alexander. |
From: Alain A. <ala...@wa...> - 2015-06-21 23:17:22
|
<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 22/06/2015 01:06, Marcelo Anelli a écrit :<br> </div> <blockquote cite="mid:CAOnT-4F1dqFgOJ2PTdnNYydKUX_j5N=3t+...@ma..." type="cite"> <div dir="ltr"> <div>Alain,<br> <br> </div> this do the trick:<br> </div> </blockquote> Thanks, I'll test it.<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 (2015-06-04 07:36) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2450)</small> <hr> </div> </body> </html> |
From: Marcelo A. <mar...@gm...> - 2015-06-21 23:06:32
|
Alain, this do the trick: ----------------------------------> HB_FUNC( HWG_SELECTFOLDER ) { GtkWidget * selector_archivo; gint resultado; const char *cTitle = ( HB_ISCHAR(1) )? hb_parc(1):"Selecciona un archivo"; const char * cDir = ( hb_pcount()>1 && HB_ISCHAR(2) )? hb_parc(2):NULL; char *filename; // // ---------------------------------- // Creación del selector de archivos. // ---------------------------------- // selector_archivo = gtk_file_chooser_dialog_new ( cTitle, (GtkWindow *) GetActiveWindow(), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); // // ---------------------- // Ejecución del selector // ---------------------- // resultado = gtk_dialog_run (GTK_DIALOG (selector_archivo)); switch (resultado) { case GTK_RESPONSE_ACCEPT: filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (selector_archivo)); hb_retc( filename ); g_free( filename ); break; default: // do_nothing_since_dialog_was_cancelled (); break; } gtk_widget_destroy (selector_archivo); } --------------------------------> 2015-06-21 11:53 GMT-04:30 Marcelo Anelli <mar...@gm...>: > I use Hwg_SelectFileEx(), choosing any file and split file name in path, > filename and extension. Using oath do the jobs. > > 2015-06-21 10:37 GMT-04:30 Alain Aupeix <ala...@wa...>: > >> Is there a function which allows to choose a folder, like >> hw_SelectfileEx() ? >> >> 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 (2015-06-04 07:36) | >> HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2450) >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Hwgui-developers mailing list >> Hwg...@li... >> https://lists.sourceforge.net/lists/listinfo/hwgui-developers >> > > > > -- > Marcelo Anelli C. o^o¬ > Fotógrafo Profesional > ma...@ma... > ma...@ma... > http://www.marceloanelli.com/ > -- Marcelo Anelli C. o^o¬ Fotógrafo Profesional ma...@ma... ma...@ma... http://www.marceloanelli.com/ |
From: Alain A. <ala...@wa...> - 2015-06-21 15:07:58
|
Is there a function which allows to choose a folder, like hw_SelectfileEx() ? 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 (2015-06-04 07:36) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2450) ------------------------------------------------------------------------ |
From: Marcelo A. <mar...@gm...> - 2015-06-19 00:37:24
|
Hi all, was a pleasure... next time the name will be oe letter in english, one in russian, one in spanish.... King regards to all 2015-06-18 1:57 GMT-04:30 Alexander S.Kresin <al...@be...>: > I've added that function to commond.c width a few modifications: > > - it's renamed to hwg_SelectFileEx() ( that's not because I like > English :), but to follow some naming convention ); > - the default title is changed to "Select a file" by the same reason; > - added checking of a third parameter; > - the returned value is freed. > > Thanks for your contribution. > > Regards, Alexander. > > > ------------------------------------------------------------------------------ > _______________________________________________ > Hwgui-developers mailing list > Hwg...@li... > https://lists.sourceforge.net/lists/listinfo/hwgui-developers > -- Marcelo Anelli C. o^o¬ Fotógrafo Profesional ma...@ma... ma...@ma... http://www.marceloanelli.com/ |
From: Alain A. <ala...@wa...> - 2015-06-18 08:21:20
|
Le 18/06/2015 08:27, Alexander S.Kresin a écrit : > I've added that function to commond.c width a few modifications: > > - it's renamed to hwg_SelectFileEx() ( that's not because I like > English :), but to follow some naming convention ); > - the default title is changed to "Select a file" by the same reason; > - added checking of a third parameter; > - the returned value is freed. > > Thanks for your contribution. Really nice Thanks to Marcello and you 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 (2015-06-04 07:36) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2449) ------------------------------------------------------------------------ |
From: Alexander S.K. <al...@be...> - 2015-06-18 07:27:35
|
I've added that function to commond.c width a few modifications: - it's renamed to hwg_SelectFileEx() ( that's not because I like English :), but to follow some naming convention ); - the default title is changed to "Select a file" by the same reason; - added checking of a third parameter; - the returned value is freed. Thanks for your contribution. Regards, Alexander. |
From: Itamar M. L. J. L. <ita...@gm...> - 2015-06-16 17:51:42
|
hbmk2: Compilando... ../../../../source/winapi/drawtext.c: In function 'GetFontsCallback': ../../../../source/winapi/drawtext.c:458:29: warning: pointer targets in passing argument 2 of 'hb_itemPutC' differ in signedness [-Wpointer-sign] hb_itemPutC( pFontsItem, lpelfe->elfFullName ); ^ In file included from ../../../../source/winapi/drawtext.c:16:0: C:/HB34/include/hbapiitm.h:105:31: note: expected 'const char *' but argument is of type 'BYTE * {aka unsigned char *}' extern HB_EXPORT PHB_ITEM hb_itemPutC ( PHB_ITEM pItem, const char * s zText ); ^ ../../../../source/winapi/drawtext.c:461:36: warning: pointer targets in passing argument 2 of 'hb_itemPutC' differ in signedness [-Wpointer-sign] hb_itemPutC( pFontsItemLast, lpelfe->elfFullName ); ^ In file included from ../../../../source/winapi/drawtext.c:16:0: C:/HB34/include/hbapiitm.h:105:31: note: expected 'const char *' but argument is of type 'BYTE * {aka unsigned char *}' extern HB_EXPORT PHB_ITEM hb_itemPutC ( PHB_ITEM pItem, const char * s zText ); ^ ../../../../source/winapi/drawtext.c:455:72: warning: unused parameter 'lpntme' [-Wunused-parameter] int CALLBACK GetFontsCallback( ENUMLOGFONTEX *lpelfe, NEWTEXTMETRICEX *lpntme, ^ ../../../../source/winapi/drawtext.c:456:13: warning: unused parameter 'FontType ' [-Wunused-parameter] DWORD FontType, LPARAM lParam ) ^ ../../../../source/winapi/drawtext.c:456:30: warning: unused parameter 'lParam' [-Wunused-parameter] DWORD FontType, LPARAM lParam ) ^ ../../../../source/winapi/drawtext.c: In function 'HB_FUN_HWG_GETFONTSLIST': ../../../../source/winapi/drawtext.c:479:66: warning: passing argument 4 of 'Enu mFontFamiliesExA' makes integer from pointer without a cast [-Wint-conversion] EnumFontFamiliesEx( hDC, &lf, (FONTENUMPROC)GetFontsCallback, NULL, 0 ); ^ In file included from c:/Mingw32/i686-w64-mingw32/include/windows.h:71:0, from ../../../../include/hwingui.h:17, from ../../../../source/winapi/drawtext.c:12: c:/Mingw32/i686-w64-mingw32/include/wingdi.h:2810:24: note: expected 'LPARAM {ak a long int}' but argument is of type 'void *' WINGDIAPI int WINAPI EnumFontFamiliesExA(HDC hdc,LPLOGFONTA lpLogfont,FONTENU MPROCA lpProc,LPARAM lParam,DWORD dwFlags); ^ Best regards, Itamar M. Lins Jr. |
From: Marcelo A. <mar...@gm...> - 2015-06-16 12:04:49
|
---------- Forwarded message ---------- From: Alexander S.Kresin <al...@be...> Date: 2015-06-16 5:36 GMT-04:30 Subject: Re: [Hwgui-developers] Fwd: Basic gtk_file_chooser_dialog_new implementation. To: Hwgui-developers <hwg...@li...> Marcelo Anelli пишет: > Mr. Kresin, sorry, I sent directly > to you. My apologies. No problem. > I have developped a bit more the function with preview and filter and > have some trouble in defining filters not coded in the function: We may and we should to pass filters to the function via an array, something like this: ------------------------------------------------------------------------------------------------------------------------ Thanks a lot Alexander!!!!, The function final is the following, with a pretty file selector with filter options and images preview: static void actualiza_preview (GtkFileChooser *file_chooser, gpointer data) { GtkWidget *preview; char *filename; GdkPixbuf *pixbuf; gboolean have_preview; preview = GTK_WIDGET (data); filename = gtk_file_chooser_get_preview_filename (file_chooser); pixbuf = gdk_pixbuf_new_from_file_at_size (filename, 128, 128, NULL); have_preview = (pixbuf != NULL); g_free (filename); gtk_image_set_from_pixbuf (GTK_IMAGE (preview), pixbuf); if (pixbuf) g_object_unref (pixbuf); gtk_file_chooser_set_preview_widget_active (file_chooser, have_preview); } HB_FUNC( HWG_SELECCIONARCHIVO ) { GtkWidget * selector_archivo; gint resultado; const char *cTitle = ( HB_ISCHAR(1) )? hb_parc(1):"Selecciona un archivo"; const char * cDir = ( hb_pcount()>1 && HB_ISCHAR(2) )? hb_parc(2):NULL; GtkImage *preview; PHB_ITEM pArray = hb_param( 3, HB_IT_ARRAY ), pArr1; char *filename; int i, j, iLen, iLen1; // // ---------------------------------- // Creación del selector de archivos. // ---------------------------------- // selector_archivo = gtk_file_chooser_dialog_new ( cTitle, (GtkWindow *) GetActiveWindow(), GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); // // ----------------------- // Opciones de los filtros // ----------------------- // iLen = hb_arrayLen( pArray ); for( i=1; i<=iLen; i++ ) { GtkFileFilter *filtro = gtk_file_filter_new(); pArr1 = hb_arrayGetItemPtr( pArray, i ); iLen1 = hb_arrayLen( pArr1 ); for( j=1; j<=iLen1; j++ ) { if( j == 1 ) gtk_file_filter_set_name( filtro, hb_arrayGetC( pArr1,j ) ); else gtk_file_filter_add_pattern (filtro, hb_arrayGetC( pArr1,j )); } gtk_file_chooser_add_filter( selector_archivo, filtro); } // // --------------------- // Opciones del selector // --------------------- // gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (selector_archivo), cDir ); // // ------------------------------ // Definición del previsualizador // ------------------------------ // preview = gtk_image_new(); gtk_file_chooser_set_preview_widget(selector_archivo, preview); g_signal_connect(selector_archivo, "update-preview", G_CALLBACK(actualiza_preview), preview); // // ---------------------- // Ejecución del selector // ---------------------- // resultado = gtk_dialog_run (GTK_DIALOG (selector_archivo)); switch (resultado) { case GTK_RESPONSE_ACCEPT: filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (selector_archivo)); hb_retc( filename ); break; default: // do_nothing_since_dialog_was_cancelled (); break; } gtk_widget_destroy (selector_archivo); } -- Marcelo Anelli C. o^o¬ Fotógrafo Profesional ma...@ma... ma...@ma... http://www.marceloanelli.com/ |
From: Alexander S.K. <al...@be...> - 2015-06-16 11:06:55
|
Marcelo Anelli пишет: > Mr. Kresin, sorry, I sent directly > to you. My apologies. No problem. > I have developped a bit more the function with preview and filter and > have some trouble in defining filters not coded in the function: We may and we should to pass filters to the function via an array, something like this: { { "Imagenes", "*.jpg","png" }, { "Todos los archivos","*" } } and process them in the function with such a way: PHB_ITEM pArray = hb_param( 3, HB_IT_ARRAY ), pArr1; ... iLen = hb_arrayLen( pArray ); for( i=1; i<=iLen; i++ ) { GtkFileFilter *filtro = gtk_file_filter_new(); pArr1 := hb_arrayGetItemPtr( pArray, i ); iLen1 = hb_arrayLen( pArr1 ); for( j=1; j<=iLen1; j++ ) { if( j == 1 ) gtk_file_filter_set_name( filtro, hb_arrayGetC( pArr1,j ) ); else gtk_file_filter_add_pattern (filtro, hb_arrayGetC( pArr1,j )); } } Regards, Alexander. |
From: Marcelo A. <mar...@gm...> - 2015-06-15 12:55:45
|
Mr. Kresin, sorry, I sent directly to you. My apologies. ---------- Forwarded message ---------- From: Marcelo Anelli <mar...@gm...> Date: 2015-06-15 8:19 GMT-04:30 Subject: Re: [Hwgui-developers] Basic gtk_file_chooser_dialog_new implementation. To: "Alexander S.Kresin" <al...@be...> I have developped a bit more the function with preview and filter and have some trouble in defining filters not coded in the function: extern GtkWidget * GetActiveWindow( void ); extern GtkWidget * hMainWindow; extern void hwg_set_modal( GtkWindow * hDlg, GtkWindow * hParent ); static void actualiza_preview (GtkFileChooser *file_chooser, gpointer data) { GtkWidget *preview; char *filename; GdkPixbuf *pixbuf; gboolean have_preview; preview = GTK_WIDGET (data); filename = gtk_file_chooser_get_preview_filename (file_chooser); pixbuf = gdk_pixbuf_new_from_file_at_size (filename, 128, 128, NULL); have_preview = (pixbuf != NULL); g_free (filename); gtk_image_set_from_pixbuf (GTK_IMAGE (preview), pixbuf); if (pixbuf) g_object_unref (pixbuf); gtk_file_chooser_set_preview_widget_active (file_chooser, have_preview); } HB_FUNC( HWG_SELECCIONARCHIVO ) { GtkWidget * selector_archivo; gint resultado; const char *cTitle = ( HB_ISCHAR(1) )? hb_parc(1):"Selecciona un archivo"; const char * cDir = ( hb_pcount()>1 && HB_ISCHAR(2) )? hb_parc(2):NULL; const char * cMask1 = ( hb_pcount()>2 && HB_ISCHAR(3) )? hb_parc(3):"*"; const char * cMask2 = ( hb_pcount()>3 && HB_ISCHAR(4) )? hb_parc(4):NULL; const char * cMask3 = ( hb_pcount()>4 && HB_ISCHAR(5) )? hb_parc(5):NULL; GtkImage *preview; // // --------------- // Filter creation // --------------- // GtkFileFilter *filtro = gtk_file_filter_new(); GtkFileFilter *filini = gtk_file_filter_new(); GtkFileFilter *filraw = gtk_file_filter_new(); GtkFileFilter *filall = gtk_file_filter_new(); char *filename; // // ---------------------------------- // Creación del selector de archivos. // ---------------------------------- // selector_archivo = gtk_file_chooser_dialog_new ( cTitle, (GtkWindow *) GetActiveWindow(), GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); // // ----------------------- // Opciones de los filtros // ----------------------- // gtk_file_filter_add_pattern (filtro, "*.jpg"); gtk_file_filter_add_pattern (filtro, "*.tif"); gtk_file_filter_add_pattern (filtro, "*.png"); gtk_file_filter_set_name( filtro, "Imagenes" ); // gtk_file_filter_add_pattern (filini, "*.ini"); gtk_file_filter_set_name( filini, "Inicializaciones" ); // gtk_file_filter_add_pattern (filraw, "*.orf"); gtk_file_filter_add_pattern (filraw, "*.nef"); gtk_file_filter_add_pattern (filraw, "*.cr2"); gtk_file_filter_set_name( filraw, "Imagenes raw" ); // gtk_file_filter_add_pattern (filall, "*"); gtk_file_filter_set_name( filall, "Todos los archivos" ); // gtk_file_chooser_add_filter( selector_archivo, filtro); gtk_file_chooser_add_filter( selector_archivo, filini); gtk_file_chooser_add_filter( selector_archivo, filraw); gtk_file_chooser_add_filter( selector_archivo, filall); // // --------------------- // Opciones del selector // --------------------- // gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (selector_archivo), cDir ); // // ------------------------------ // Definición del previsualizador // ------------------------------ // preview = gtk_image_new(); gtk_file_chooser_set_preview_widget(selector_archivo, preview); g_signal_connect(selector_archivo, "update-preview", G_CALLBACK(actualiza_preview), preview); // // ---------------------- // Ejecución del selector // ---------------------- // resultado = gtk_dialog_run (GTK_DIALOG (selector_archivo)); switch (resultado) { case GTK_RESPONSE_ACCEPT: filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (selector_archivo)); hb_retc( filename ); break; default: // do_nothing_since_dialog_was_cancelled (); break; } gtk_widget_destroy (selector_archivo); } 2015-06-15 6:46 GMT-04:30 Alexander S.Kresin <al...@be...>: > Marcelo Anelli пишет: > > I am not c expert programmer, but I develop this function and I am sure > > that > > can be developped better with file type, thumbnail option, etc. > > ... > > If somebody can help to improve and maybe, is useful, to incorporate to > > hwgui > > GTK sources, I will appreciate. > > > > I'll look at it. > > Regards, Alexander. > > > ------------------------------------------------------------------------------ > _______________________________________________ > Hwgui-developers mailing list > Hwg...@li... > https://lists.sourceforge.net/lists/listinfo/hwgui-developers > -- Marcelo Anelli C. o^o¬ Fotógrafo Profesional ma...@ma... ma...@ma... http://www.marceloanelli.com/ -- Marcelo Anelli C. o^o¬ Fotógrafo Profesional ma...@ma... ma...@ma... http://www.marceloanelli.com/ |
From: Alexander S.K. <al...@be...> - 2015-06-15 12:16:48
|
Marcelo Anelli пишет: > I am not c expert programmer, but I develop this function and I am sure > that > can be developped better with file type, thumbnail option, etc. > ... > If somebody can help to improve and maybe, is useful, to incorporate to > hwgui > GTK sources, I will appreciate. > I'll look at it. Regards, Alexander. |
From: Marcelo A. <mar...@gm...> - 2015-06-14 12:55:29
|
I am not c expert programmer, but I develop this function and I am sure that can be developped better with file type, thumbnail option, etc. <Start ============================ #include "guilib.h" #include "hbapifs.h" #include "hbapiitm.h" #include "hbvm.h" #include "item.api" #include "gtk/gtk.h" #include "hwgtk.h" #ifdef __XHARBOUR__ #include "hbfast.h" #endif extern GtkWidget * GetActiveWindow( void ); extern GtkWidget * hMainWindow; HB_FUNC( HWG_SELECCIONARCHIVO ) { GtkWidget * selector_archivo; const char *cTitle = ( HB_ISCHAR(1) )? hb_parc(1):"Selecciona un archivo"; selector_archivo = gtk_file_chooser_dialog_new ( cTitle, (GtkWindow *) GetActiveWindow(), GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); // selector_archivo = gtk_file_selection_new( cTitle ); if (gtk_dialog_run (GTK_DIALOG (selector_archivo)) == GTK_RESPONSE_ACCEPT) { char *filename; filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (selector_archivo)); hb_retc( filename ); } gtk_widget_destroy (selector_archivo); } <End ============================ If somebody can help to improve and maybe, is useful, to incorporate to hwgui GTK sources, I will appreciate. -- Marcelo Anelli C. o^o¬ Fotógrafo Profesional ma...@ma... ma...@ma... http://www.marceloanelli.com/ |
From: Itamar M. L. J. L. <ita...@gm...> - 2015-06-09 19:51:07
|
C:\devl\hwgui>hbmk2 hwgui.hbp hbmk2: Harbour: Compilando módulos... hbmk2: Compilando... ../../../../source/winapi/draw.c: In function 'HB_FUN_HWG_DRAWGRADIENT': ../../../../source/winapi/draw.c:1377:15: warning: suggest parentheses around '& &' within '||' [-Wparentheses] if( isV && stop_y[0] > y1 || isH && stop_x[0] > x1 ) ^ hbmk2: Criando biblioteca estática... lib\libhwgui.a Saudações, Itamar M. Lins Jr. |
From: Alexander S.K. <al...@be...> - 2015-06-09 08:10:41
|
> > And GET UPDOWN does not update variable parameters, > Yes, really. I got it while checking why border doesn't displayed around the table cells in the editor ( utils/editor ) in GTK version. The reason was very simple - the borders thick is set in a dialog box via GET UPDOWN - and the variable wasn't updated. It's fixed now, and border is on the place, too. Regards, Alexander. |