You try to place a bitmap widget to the same place where other widgets are placed - a toolbar and a tab - this is unacceptable and may cause an unpredictable behavior. You should use BACKGROUND BITMAP or ON PAINT in INIT WINDOW instead. Regards, Alexander
GTK haven't an analogue of WM_CHAR, all keyboard events should be handled with WM_KEYDOWN, WM_KEYUP Regards, Alexander
Works normally here. Send your image foles to check. Regards, Alexander
For string encoding to be done correctly, you need to set a printer's codepage. This may be done in HPrinter():New( cPrinter, lmm, nFormType , cdp ) call, using the 4th parameter, or after printer initializing: oPrinter:cdp := oPrinter:cdpIn := "UTF8" ( or other codepage ) Regards, Alexander
Bug with hwg_IsCheckedMenuItem
Bug with browse after refresh
1) To refresh a browse you need to add a line oBrw:Refresh() in your RunSearch() 2) The crash is somewhere in your MajDisp() function. Commenting lines you may find which of them causes the crash 3) It is absolutely wrong to place @ ... say in your MajDisp() - you simply add new label widgets every time the position in browse is changed. You need to add these labels one time and then in MajDisp() use the :SetText() method. Regards, Alexander.
The bug is in your code. Since the menu is not a window main menu, but a context menu, you must use the menu object oMenuRun instead of window object oMakeDlg in menu functions: hwg_CheckMenuItem(oMenuRun,1100,lTerm) hwg_IsCheckedMenuItem(oMenuRun,1100) Regards, Alexander
2024-08-16 11:12 UTC+0300 Alexander Kresin <alex@belacy.ru>
You has been added to project Developers group. What about a " flag ON KeyDown of edit COLUMN BROWSE", I didn't understand, what exactly you mean. The browse has the bKeyDown variable, the edit control, which is used while editing a column> has it, too. Regards, Alexander
Just initialize a combobox variable with a necessary value before: cgMois:=agMois[9] ... @ 140,32 GET COMBOBOX cgMois ITEMS agMois ... Regards, Alexander
Insert a line: xBrow:lInFocus := .T. Regards, Alexander
On gtk the problem shouldn't exist since: 2024-01-12 15:47 UTC+0300 Alexander Kresin alex@belacy.ru * include/hwgextern.ch * hwg_sleep added On WIndows - fixed now Regards, Alexander
2024-05-23 14:56 UTC+0300 Alexander Kresin <alex@belacy.ru>
Seems, the same as with Bug 181 - solved. Regards, Alexander
Curious problem ...
Linux : GLIB/GDK error since r3839
Solved, see the latest changelog. Regards, Alexander
2024-05-23 14:28 UTC+0300 Alexander Kresin <alex@belacy.ru>
Fixed, see latest changelog. Regards, Alexander
2024-05-16 10:33 UTC+0300 Alexander Kresin <alex@belacy.ru>
IDE limit caption size for label
Alain, the hwmake.prg, which you provided, demands a number of other files to be compiled: hb_rev.ch, hb_bits.ch, hwgui_rev.ch, qcolor.ch, memvar.prg, public.prg. Could you create a small self-contained sample file, which doesn't work after release 3439? Regards, Alexander
Alain, the hwmake.prg, whixh you provided, demands a number of other files to be compiled: hb_rev.ch, hb_bits.ch, hwgui_rev.ch, qcolor.ch, memvar.prg, public.prg. Could you create a small self-contained sample file, which doesn't work after release 3439? Regards, Alexander
2024-03-28 10:35 UTC+0300 Alexander Kresin <alex@belacy.ru>
2024-03-11 15:52 UTC+0300 Alexander Kresin <alex@belacy.ru>
HPaintCB class has a Set() method, but it can't conflict with a Set() function. It seems that some preprocessor rule, which you use, converts oPaintCB:Set() to oPaintCB:Leto_Set(). You need to check it. Regards, Alexander
Fixed
2024-02-29 14:01 UTC+0300 Alexander Kresin <alex@belacy.ru>
Fixed. Regards, Alexander
2024-02-29 12:38 UTC+0300 Alexander Kresin <alex@belacy.ru>
As I understand, oDlgBar is a dialog? But drawn controls can be placed on HBoard only
Done. Regards, Alexander
Should work now Regards, Alexander
2024-02-29 11:36 UTC+0300 Alexander Kresin <alex@belacy.ru>
Sorry, I didn't understand. What exactly is absent? The ::Value() method is there, It should be used to get the value of radiogroup, it returns the ::nValue
See the latest changelog. Write oWnd:lBmpSpread := .F. and the bitmap will be stretched. This works in winapi version only. Regards, Alexander.
2024-02-21 14:05 UTC+0300 Alexander Kresin <alex@belacy.ru>
There is :Value() method in HRadioGroup() for this purpose. Regards, Alexander
I've added #ifdef XHARBOUR there. Maybe, this helps. Regards, Alexander
Renamed to hwg_freeimage.c Regards, Alexander
2024-02-21 11:25 UTC+0300 Alexander Kresin <alex@belacy.ru>
Your error is that you set a combobox init value ( cRe10:="X" ), which is absent in a combobox arrsy: aFlist := {" ","1","2"} I've added a checking of a value to be set, so it shouldn't cause an error now. Regards, Alexander
2024-02-21 10:54 UTC+0300 Alexander Kresin <alex@belacy.ru>
Works normally here. Probably, there is no bimap_bg.bmp or it is corrupted, so HBitmap():AddFile() returns Nil. Regards, Alexander
2024-02-21 10:10 UTC+0300 Alexander Kresin <alex@belacy.ru>
Not an error, just a warning). Fixed, anyway Regards, Alexander
2024-02-20 15:49 UTC+0300 Alexander Kresin <alex@belacy.ru>
2024-02-08 16:07 UTC+0300 Alexander Kresin <alex@belacy.ru>
2024-02-07 12:40 UTC+0300 Alexander Kresin <alex@belacy.ru>
2024-01-30 09:54 UTC+0300 Alexander Kresin <alex@belacy.ru>
oBar:Close() works under both Windows and Linux. I've modified a bit "Progress bar" in tutorial to show this. End() method shouldn't be used in applications, it is intended for HwGUI's internal using, it is called automatically when a control is destroyed to free used resources. Regards, Alexander
2024-01-12 15:52 UTC+0300 Alexander Kresin <alex@belacy.ru>
2024-01-12 15:47 UTC+0300 Alexander Kresin <alex@belacy.ru>
2024-01-12 15:42 UTC+0300 Alexander Kresin <alex@belacy.ru>
Why do you think that these messages are related to a font?
Fixed.
Probably, fixed.
I couldn't reproduce this. I've added a bvalid to "Browse of dbf" in the tutorial - it works without problems. Regards, Alexander
2024-01-12 13:10 UTC+0300 Alexander Kresin <alex@belacy.ru>
2023-12-22 09:45 UTC+0300 Alexander Kresin <alex@belacy.ru>
2023-12-21 16:28 UTC+0300 Alexander Kresin <alex@belacy.ru>
-lpcre -> is not necessary, I get a error. This depends on a Linux distribution. In my ( Debian, Ubuntu) it is needed. What are yours? Regards, Alexander.
Fixed
Fixed
2023-12-21 10:15 UTC+0300 Alexander Kresin <alex@belacy.ru>
Yes, really. I accidentally erased it. Now fixed
2023-12-20 09:04 UTC+0300 Alexander Kresin <alex@belacy.ru>
As I see, you have built the tutor without tutor_res.prg - the tree bitmaps and menu button bitmap are not visible. What tool do you use to build? I've updated tutor.hbp, include tutor_res there, tutor.hwprj includes it, too. Now all bmps and icons in the tutor are used from the embedded resources, not from images/ directory. Regards, Alexander
2023-12-19 13:12 UTC+0300 Alexander Kresin <alex@belacy.ru>
Fixed
Now it is in gtk version, too
2023-12-19 10:33 UTC+0300 Alexander Kresin <alex@belacy.ru>
You don't need this, because your bValid isn't called and a field isn't updated if ESC was pressed, Look at hbrowse.prg, VldBrwEdit() - a function, which is used as a VALID for a GET. Regards, Alexander.
I'm talking about Linux, too. So, you run the sample in tutorial, press "Create bar", then "Step" - and it crashes? I did it few times and it works normally here. The only problem is that the dialog with progress bar may be behind the tutorial window.
I tried it many times, in the tutorial and in your sample, and didn't get an error...
Yes, I see. The buttonex class remains in gtk sources. It' only "ex" was that it was supposed to support the bitmap on a button. Now I removed it and added :SetImage( oImg ) method to hbutton class, both to gtk and winapi, oImg is an object of HBitmap or HIcon class. The @ ... BUTTON command also changed, the [ IMAGE oImg ] clause added. Regards, Alexander
Fixed
2023-12-18 13:15 UTC+0300 Alexander Kresin <alex@belacy.ru>
I wonder, who and why added the function hwg_GetKeyState() to gtk, because it's code has no any relation to a keyboard. There is no similar function in gtk. The hwg_GetKeyboardStatus() is used to determine, if ctrl, shift and alt are pressed, and may be used in event handler only, see the hcedit.prg for example. Regards, Alexander
I couldn't reproduce this error, but I set initial value for :y1. Maybe, this helps. Regards, Alexander
Fixed
Fixed both
2023-12-17 20:16 UTC+0300 Alexander Kresin <alex@belacy.ru>
Fixed.
2023-12-17 15:38 UTC+0300 Alexander Kresin <alex@belacy.ru>
Yes, the standard GTK's status control doesn't support parts, we can't change this. If you need parts, you may use ADD STATUS PANEL see the tutorial, "Advanced using of controls"/"Styled controls" Regards, Alexander
The ex controls from contrib dir are for Windows only and I have no plans to port them to Linux. Use ownerbutton instead of buttonex. Regards, Alexander.
Fixed.
Fixed.
Fixed
2023-12-16 09:20 UTC+0300 Alexander Kresin <alex@belacy.ru>
2023-12-15 14:15 UTC+0300 Alexander Kresin <alex@belacy.ru>
2023-12-15 11:10 UTC+0300 Alexander Kresin <alex@belacy.ru>
Even the standard herrsys on Linux does not close the system when it encounters an error, as stated. Yes, sometimes this happens, this depends on the place where error occurs. I never had patience enough to investigate this. Hwgui(gtk) not get it Insert hwg_writelog() there to test and you will see that this code is executed. Regards, Alexander.
Ok, fixed
2023-12-14 17:01 UTC+0300 Alexander Kresin <alex@belacy.ru>
Just try to remove hwg_gtk_init() and hwg_InitProc() from your init procedure
Init procedures in all prgs are executed. Your hwginit procedure doesn't override the existing in hwgui, it is executed additionally. So, you do not need to launch hwg_gtk_init(), hwg_InitProc() from there. As far as I understand, you need to override the hwg_ErrSys(). It is better to do this in the beginning of your Func Main(), because it isn't garantied that your init procedure will be executed after that one from hwgui. Regards, Alexander.
2023-12-13 21:07 UTC+0300 Alexander Kresin <alex@belacy.ru>