Jump to content

Ario.Paxaz

uniGUI Subscriber
  • Posts

    319
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Ario.Paxaz

  1. Hi My Friend give me below code function change(sender, newValue, oldValue, eOpts) { var separator = ","; var int = sender.value.replace ( new RegExp ( separator, "g" ), "" ); var regexp = new RegExp ( "\\B(\\d{3})(" + separator + "|$)" ); do { int = int.replace ( regexp, separator + "$1" ); } while ( int.search ( regexp ) >= 0 ) sender.setValue(int); } and i put it in ClientEvent.ExtEvent.change.and it done very faster than my issue. But when add it to my code by dynamic ,it don't work. Where it must be add ? Best Regards.
  2. Hi Farshad I write a test case for add separator in uniedit,when user fill it with number. And I use same issue for UniDbEdit too. Best Regards. UniEdit_SeperatorOnEdit.rar
  3. Hi Upload you'r sample in a upload site.for example : http://uploadboy.com/ and then send link by Link button. But I think this link help you :http://forums.unigui.com/index.php?/topic/1741-formatted-input-for-uniedit/?p=7294 Best Regards.
  4. Ramadan is name of blessing its name of love and care its name of Dua so make your prayers and remember me and all brothers and sister in Iran and all World in your prayers.
  5. Ario.Paxaz

    treeview

    Hi Are you see Main form in AllFeaturesDemo Project in Demos\Desktop ? Best Regards.
  6. Hi Unit1 is unit and don't have form. Best Regards.
  7. Hi Have you'r Select answer in Sql Server ? Best Regards.
  8. Hi I write below code,But const magicnumber = 500; procedure TMainForm.Button2Click(Sender: TObject); var I, J: Integer; X, Y: Word; begin I := 0; J := 0; UniLabel1.Caption:='The Button2Click handler has started'; while I < magicnumber do begin Randomize; while J < magicnumber do begin Y := Random(J); Inc(J); Sleep(10); end; X := Random(I); Inc(I); end; UniLabel1.Caption:='The Button2Click handler is finished'; end; This line code , UniLabel1.Caption:='The Button2Click handler has started'; Don't Work.I have unipanel and put unilabel1 on it.and set unipanel AlignmentControl to uniAlignmentClient. Best Regards.
  9. Hi You'r parenid filed in table or query must be nil. ID MyId idparent 1 40 99 2 42 99 3 32 90 4 30 90 5 58 91 6 50 91 7 99 0 8 91 99 9 90 0 Best Regards.
  10. Hi Are you Set IdField and IdParentField properties or TreeKeyFields that set in first grid demo ? Best Regards.
  11. Hi I Used it,but I have error. I change Form to main form name,and use my main form in uses list ,but error appear. Main.ShowMask('Loading'); UniSession.Synchronize(); UniMainModule.ADOQuery1.Open; Main.HideMask; Best Regards.
  12. Hi, Which Library must be in uses List? Best Regards.
  13. Hi I have a unit,and on it I run query, In VCL ,I write below code screen.Cursor := crSQLWait; ATable.Open; screen.Cursor := crdefault; What i can write ,for it in my unit? Best Regards.
  14. Hi In UniDbGrid ,columns don't get CustomConstraint. I Create UniDbGrid in Runtime and set fields,But UniDbGrid columns don't have CustomConstraint that Field in dataset has. I write below code For i := Columns.Count - 1 DownTo 0 do Columns[i].Field.CustomConstraint:=ASource.DataSet.Fields[i].CustomConstraint; But Show below Error First chance exception at $0040BF8A. Exception class $C0000005 with message 'access violation at 0x0040bf8a: write of address 0x00000094'. Process P.exe (5616) Best Regards.
  15. Hi I write TestCase ,But in TestCase the procedure work correct. http://uupload.ir/view/4wlf_loginchkusername.rar But in my main project,don't work Best Regards.
  16. Hi I write below code ,and check edits on login Form isn't empty. procedure Tfgetsqlpass.UniButton1Click(Sender: TObject); begin if (edt_uname.Text ='' ) and (edt_pword.Text = '') then Begin ModalResult := mrNone; ShowMessage('Please fill username and password!'); Exit End; end; But after Button1Click application terminate. Best Regards.
  17. Hi I want use new unit ,when i want use Showmessage ,what library must be use? Best Regards.
  18. Hi I compiled on 1346,and my friend compiled by 1363. Best Regards.
  19. Hi I use below Code,for create UniPopupMenu in UniDbGrid in Runtime,But don't work.what's my error? procedure TMainForm.UniDBGrid1CellContextClick(Column: TUniDBGridColumn; X,Y: Integer); Var MyUniPopupMenu:TUniPopupMenu; i: SmallInt; MI: TuniMenuItem; AGrid:TUniDBGrid; Aagrid:TComponent; begin Aagrid:=Column.Grid; AGrid:=FindComponent(Aagrid.Name) as tunidbgrid; MyUniPopupMenu:=TUniPopupMenu.Create(AGrid); MyUniPopupMenu.Popup(X,Y); For i := 0 To 3 do Begin MI := TuniMenuItem.Create(AGrid); MI.Name := AGrid.Name + 'MI' + IntToStr(i); MI.Caption:='s'+IntToStr(i); MyUniPopupMenu.Items.Add(MI); End; end; Best Regards.
  20. Hi I want know,is my solution for OnEnter true ? Best Regards.
  21. Hi I simulate OnEnter for uniDbGrid in attached Project,Is it True? http://uploadboy.me/1fjp5501heak/Grid_Active.rar.html Best Regards.
  22. Hi I write it in UniDBGrid1DblClick event ,and sender is current UniDBGrid. Best Regards.
  23. Hi I want this command in unigui. Var SF: TField; Begin SF := TuniDBGrid(Sender).SelectedField; End; How to can do it? Best Regards.
  24. Hi How to I can know ,Before Insert Click,active Control on Customers Grid Or On Orders Grid. Notice that ,I create all control in runtime. Best Regards.
  25. Hi I have a UniForm and UniButton on it for Insert,Edit or Delete data on UniDbGrid. I create three UniDbGrid A,B and C in runtime,that A is Master of B and C. Now my question is : How to can find, when UniButton clicked,cursor was on whom UniDbGrid A or B or C. In VCL, I find it by ActiveControl. Best Regards.
×
×
  • Create New...