hmg-4 Changelog

Moderator: Rathinagiri

User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: hmg-4 Changelog

Post by l3whmg »

Hi friends.
After some commits, TEXBOX object doesn't work properly.
I'm using this code:

Code: Select all

            WITH OBJECT TEXTBOX():New( "fshfemacm" )
               :Row           := 90
               :Col           := 560
               :Width         := 100
               :Height        := 20
               :DataType      := TXT_NUMERIC
               :Value         := 0
               :ToolTip       := "Enter valid cm"
            END WITH
I can't insert ".34", "-.2": in other words "." can't be accepted.

TEXTBOX is a foundamental object and it is very hard to manage: I know.

Some times ago, I sent to Francesco my POW about TEXTBOX (without usage of VALID and WHEN clause). It's an experiment, running experiment, but (I think) it can be considered a good way (to improve).

I used this logic:
  • A) data type must be a parameter when TEXTBOX object was created. There isn't problem with HMG3 command because value is known (TEXT by default, NUMERIC or DATE if present).
    With HMG4, New method will be TEXTBOX():New( cName, oParent, nDataType ). All parameters can be optional; when numeric or date value must be managed, TXT_NUMERIC or TXT_DATE must be inserted.
  • B) when mask present, there is a translations from Clipper style to Qt style and setinputmask (Qt property about QlineEdit) it will be used.
    In other words, like Clipper "@999,999.99 999,999.99": "@999,999.99" as I want see and "999,999.99" as I can insert.
  • C)If mask not present, input follows another way
Anyway, this is not important.

I think all of us must investigate to find a solution for this object (and, if needed, losing some HMG3 backward compatibility).

Cheers
Luigi from Italy
www.L3W.it
Ricci
Posts: 255
Joined: Thu Nov 19, 2009 2:23 pm

Re: hmg-4 Changelog

Post by Ricci »

Roberto Lopez wrote:
2011-11-28 18:00 UTC-0300 Roberto Lopez ( mail.box.hmg@gmail.com )
* source/animatebox.prg
+ added method Center for HMG3 compatibility.

Code: Select all

2011-11-30 17:05 UTC+0100 Ricci Zepmeusel ( ricci at conzoft.de )
   * source/animatebox.prg
     - deleted method Center 
   * include/hmg.ch
     ! [:Alignment   := if ( <.lCenter.> , LBL_CENTER, LBL_LEFT ) ];;
       in #command ANIMATEBOX for HMG3 compatibility.
Instead of creating a useless method (it has no function), it´s be better to use the existing center command from the parent of animatebox.
Now @ x,y ANIMATEBOX .... CENTER is working!

For the oneliner please use ALIGNMENT CENTER

Ricci
Ricci
Posts: 255
Joined: Thu Nov 19, 2009 2:23 pm

Re: hmg-4 Changelog

Post by Ricci »

Code: Select all

2011-11-30 22:00 UTC+0100 Ricci Zepmeusel ( ricci at conzoft.de )
   * source/abstractbutton.prg
     - method Flat() 
       ! already defined in his parent
   * source/button.prg
   * source/toolbutton.prg
   * source/slider.prg
   * source/spinner.prg
     ! Only minor changes (deleted unused vars)
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: hmg-4 Changelog

Post by mrduck »

Code: Select all

2011-12-01 00:01 UTC+0100 Francesco Perillo ( fperillo at gmail.com )
   * source/textbox.prg
     + Implemented HARD VALID (clones of harbour GET VALID)
       Please read the message on the developers forum
   + samples/hardvalid/demo_1.prg
     * first OOP sample
I will open a new thread to comment on this.
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: hmg-4 Changelog

Post by mrduck »

Code: Select all

2011-12-04 11:36 UTC+0100 Francesco Perillo ( fperillo at gmail.com )
   * source/textbox.prg
     + Added QValidator support. It can work as a PICTURE alternative using
       reg-exp definitions. A lot of web sites collect these definitions.
       It works differently to PICTURE so it is not a replacement but an
       alternative.
   * samples/validation/demo_1.prg
     * little sample
some readings about reg-exp:
- http://doc.qt.nokia.com/qq/qq01-serious ... egexp.html actually the paragraph title "VALIDATION"... unfortuantely we can't create IsbnValidator class at prg level, only in c++
- http://www.regexlib.com/?AspxAutoDetectCookieSupport=1 a massive collection of reg-exp for different data types... of which the following is a section:
- http://regexlib.com/DisplayPatterns.asp ... eSupport=1 list of patterns for numbers/currencies and numerics in general... a PICTURE "99999.99" may be translated into regexp \d{1,5}(\.\d{1,2})? and then Qt takes care of it..
(syntax may differ in Qt)
- http://www.aspnetajaxtutorials.com/2010 ... meric.html for dates


IT IS NOT A "PICTURE" ALTERNATIVE: it works differently on screen !!!
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: hmg-4 Changelog

Post by mrduck »

Code: Select all

2011-12-04 23:46 UTC+0100 Francesco Perillo ( fperillo at gmail.com )
   * source/textbox.prg
     * Removed the WITH OBJECT Self stuff... it has some side-effects and
       must be implemented a bit differently...
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: hmg-4 Changelog

Post by mrduck »

Code: Select all

2011-12-04 23:53 UTC+0100 Francesco Perillo ( fperillo at gmail.com )
   * samples/hardvalid/demo_1.prg
     * adapted code to the change in previous commit
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: hmg-4 Changelog

Post by mrduck »

Code: Select all

2011-12-05 01:28 UTC+0100 Francesco Perillo ( fperillo at gmail.com )
   * samples/validator/validator.prg
     * it's a basic program to test and compare different Validator
       expression. In the combobox select the RegExp you want to test
       and modify them to experiment. Press button to open a non-modal
       window that will permit to actively compare multiple RegExp.
       To do: RegExp name, value and longer description (not present now)
       should be kept in a separate file and read at program startup so
       that everybody can populate it with his own test RegExps.
Anybody wishing to complete it ?
Ricci
Posts: 255
Joined: Thu Nov 19, 2009 2:23 pm

Re: hmg-4 Changelog

Post by Ricci »

Code: Select all

2011-12-12 13:30 UTC+0100 Ricci Zepmeusel ( ricci at conzoft.de )
   * source/grid.prg
     ! GRID now accept flat (1D) arrays again
Attention: ONEDIT property in GRID is not working at the moment !
Ricci
Posts: 255
Joined: Thu Nov 19, 2009 2:23 pm

Re: hmg-4 Changelog

Post by Ricci »

What´s that? Got this email:

Code: Select all

Your mail to 'Hmg-svncommit' with the subject

    SF.net SVN: hmg:[841] source

Is being held until the list moderator can review it for approval.

The reason it is being held:

    Post by non-member to a members-only list

Either the message will get posted to the list, or you will receive
notification of the moderator's decision.  If you would like to cancel
this posting, please visit the following URL:
Post Reply