Jump to content

Search the Community

Showing results for tags 'TUniDBNumberEdit'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • uniGUI Public
    • Announcements
    • General
    • Feature Requests
    • Installation
    • Deployment
    • Other Platforms
  • Licensing
    • Licensing
    • Ordering uniGUI
  • Bug Reports
    • Active Reports
    • Closed Reports
    • Old Bug Reports
  • uniGUI Development
    • General Development
    • uniGUI Releases & Roadmaps
    • Utilities
  • Mobile Platform
    • uniGUI Mobile
    • Mobile Browsers
  • Users Area
    • Sample Projects
    • Components and Code Samples
    • Third Party Components
  • Non-English
    • Non-English
  • Miscellaneous
    • Hosting
    • Server Security
    • Jobs

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 2 results

  1. How can I perform TUniDBNumberEdit formatting when leaving the field EX: 0.25 -> +0.25 0.2 -> +0.20 In VCL I was formatting +0.00; -0.00 Thanks Zanona
  2. In VCL the command below works perfectly returning +5.00 procedure TForm4.DBEdit1Exit (Sender: TObject); begin DBEdit1.Text: = FormatFloat ('+ 0.00; -0.00', 5); ShowMessage (DBEdit1.Text); end; If I try the same on Unigui it always returns the value of 5! would this be some kind of bug? I looked at the source code and realized it has a validation below! procedure TUniBaseEdit.SetText (AValue: TCaption); begin if IsNumberEdit then begin AValue: = Trim (AValue); CheckBlank (AValue); if FIsBlankValue then begin FChanged: = True; if FValue <> -1 then begin FValue: = -1; DoOnChangeValue; end; SetVCLProperty ('Text', ''); end else Self.Value: = StrToFloat (AValue, FmtSettings); end else begin AValue: = AdjustCase (AValue); if AValue <> InternalText then begin inherited SetText (AValue); FChanged: = True; end; end; end; Can not he respect what happens in the VCL? Thanks Zanona
×
×
  • Create New...