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