Page 12 of 30
Re: hmg-4 Changelog
Posted: Thu Oct 06, 2011 4:38 pm
by l3whmg
Hi Rathinagiri.
In this moment I don't have a good answer. This is an automated solution to translate standard dialogs with .qm files.
A lot of check must be done and I have introduced it because Ricci give me a little

to load the translator file.
Sincerely, I don't have a valid answer.
Cheers
Re: hmg-4 Changelog
Posted: Thu Oct 06, 2011 7:53 pm
by l3whmg
Hi guys
I removed the option to open a MODAL window before and without a MAIN window because dangerous and unusefull; on the other hand we respect the HMG3 rules and discard some problems.
To store and to know the main window object, I have used the shared var ::s_oMainWindow; before, it was used to store the related QT object of the Main window.
Code: Select all
2011-10-06 21:40 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
! samples/window.main/demo_3.prg
! samples/window.modal/demo_1.prg
! samples/window.modal/demo_2.prg
! samples/window.modal/demo_3.prg
! samples/window.standard/demo_1.prg
! samples/window.standard/demo_2.prg
! samples/window.standard/demo_3.prg
* fixed problem about unused local var
- samples/window.morewin/demo_2.prg
- samples/window.morewin/demo_2b.prg
* because was removed the ability to open MODAL window before a MAINwindow
! source/misc.prg
+ function MainWindowDefined(): it returns .T. or .F.
.T. when ::s_oMainWindow is an object
! source/ipaddress.prg
! source/printer.prg
! usage of ::s_oMainWindow. now is ::s_oMainWindow:QtObject
! source/window.prg
! source/hmgapp.prg
+ method MainWindow(): it returns ::s_oMainWindow value
! ::s_oMainWindow now it is a HMG4 object
- removed usage of property "FirstWindow" and related method: unusefull
and dangerous
- removed usage of property "MainWindow" and related method: unusefull
and dangerous
* window.prg restyled
; removed the ability to open a MODAL window before a MAIN window because
unusefull (see samples/dialog) and dangerous
Re: hmg-4 Changelog
Posted: Fri Oct 07, 2011 8:46 am
by Ricci
l3whmg wrote:Not for all languages there are translating files (ie there isn't qt_it.qm and I'm Italian)
http://xp-dev.com/sc/change/2184/404
Re: hmg-4 Changelog
Posted: Fri Oct 07, 2011 8:57 am
by l3whmg
Hi Ricci,
many thanks. Now I will try; in this way I can do test in my language.....
Cheers
Re: hmg-4 Changelog
Posted: Fri Oct 07, 2011 7:11 pm
by concentra
Code: Select all
2011-10-07 16:10 UTC-0300 Mauricio Ventura Faria (<conc001 a+t gmail com>)
* include/hmg.ch
+ Added command to set a control as the central widget.
Re: hmg-4 Changelog
Posted: Mon Oct 10, 2011 1:24 pm
by concentra
Code: Select all
2011-10-10 10:23 UTC-0300 Mauricio Ventura Faria (<conc001 a+t gmail com>)
* include/hmg.ch
* Set PARENT clause in layouts optional.
Re: hmg-4 Changelog
Posted: Mon Oct 10, 2011 4:44 pm
by l3whmg
Code: Select all
2011-10-10 18:40 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
! samples/image/demo_1.prg
* added OnClick to check this method over bitmap
! samples/label/demo_2.prg
! the "ONCLICK" syntax doesn't work with "<nRow>,<nCol> LABEL.." syntax;
ACTION must be used.
! samples/label/demo_1.prg
! samples/label/demo_3.prg
! samples/label/demo_4.prg
! samples/label/demo_6.prg
* fixed problem about unused local var
! include/hmg.ch
! "@ <nRow>,<nCol> LABEL..." wrong assignement about ACTION;
! "@ <nRow>,<nCol> SAY..." wrong assignement about ACTION;
; ":OnClick := <{bOnClick}>" must be used ( notice "{" and "}" )
! source/bitmap.prg
! class inheritance. Thanks Ricci
! source/label.prg
+ __HmgProcessMouseKey() to handle in a right way the OnClick event
- ProcessMouseKey() see __HmgProcessMouseKey
! about Buddy method
* restyled
Re: hmg-4 Changelog
Posted: Mon Oct 10, 2011 7:44 pm
by l3whmg
Code: Select all
2011-10-10 21:40 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
+ samples/image/demo_3.prg
! include/hmg.ch
+ [ <dummy1: ONCLICK , ACTION , ON CLICK> <bOnClick> ]; to DEFINE IMAGE
Cheers
Re: hmg-4 Changelog
Posted: Mon Oct 10, 2011 8:17 pm
by Ricci
l3whmg wrote:
Code: Select all
! source/label.prg
+ __HmgProcessMouseKey() to handle in a right way the OnClick event
- ProcessMouseKey() see __HmgProcessMouseKey
! about Buddy method
* restyled
Omg, what have you done?
One part of my program looks ugly now. Before the horizontal line above the month was continous.
Ok, I found it: I didn“t used a "height" command in label because it sized automatically before.
Re: hmg-4 Changelog
Posted: Tue Oct 11, 2011 6:54 am
by l3whmg
Hi Ricci,
about LABEL or BITMAP, the code was the previous. Only about ONCLICK method was been changed.
Cheers