zhyhero
uniGUI Subscriber-
Posts
131 -
Joined
-
Last visited
-
Days Won
5
Content Type
Profiles
Forums
Events
Everything posted by zhyhero
-
I think this is "pdf.js"'s problem.
-
Yes ,use urlframe ,and it show and print pdf file depend on webbrowser's pdf viewer.
-
This knock down me too, After some tests ,I use urlframe to show and print my pdf file.
-
dgDontShowSelected
-
Thx ,i will try another way.
-
UniDBGridCheckBox.zip 1.when click a datacell(row) , last selected state lost. 2.when switch page,last selected state lost.
-
Columns are created dynamically. When one column.readonly set to true ,all other columns both readonly too . col := self.UniDBGrid1.Columns.Add; col.FieldName := 'Name'; col.Width := 120; col.ReadOnly := true; col.Title.Caption := 'Name'; UniDBGridTest1.zip
-
just an idea. 1.get you app's PID 2 find same exename process's PIDs 3 kill PIDs all.......
-
Thanks Sherzod ,I will try this on next morning (my time zone).
-
Ticket opened. http://jira.fmsoft.net/servicedesk/customer/portal/4/FSD-2221
-
uniGUI\Demos\Desktop\GridCellStyle
-
As the gif showed, unicombobox do not draw fontawesone icon in text area. How to draw or show it ? (the testcase use fontawesone4.7.) FontAwesome47.zip
-
you need create form procedure TMainForm.UniButton1Click(Sender: TObject); var x: TUniform1; begin x := TUniform1.Create(Uniapplication); x.Parent := self.UniTabSheet2; x.Show; end;
-
10.4 removed ARC ,this may means a lot of codes need to check.......
-
About call subform, I create it dynamically and show it with callback procedure mainform openbutton event fsubform:=Tsubform.create(uniapplication); fsubform.show(callback); // or showmodal(callback) you need a callback procedure in mainform like procedure mainform.callback(sender:Tcomponent;aResult:integer); begin if aResult=mrYes then {do something}; //if sender is TSubform then TSubform(sender).something; end; in subform ,you can close subform with code modalresult:=mrYes; {or mrNo,mrCancel ..} the execute process is: mainform.buttonclick--->subform.create----->subform.show(callback)---->subform.someevent------>subform.modalresult(maybe write in buttonclick)----->mainform.callback And no need to enable or disable mainform buttons in subform,do this with callback. I hope this will help you.
-
define an unique frame.name for you every single frame ,something like TunivehicleMain_1,TunivehicleMain_2, make every singgle frame's name diffrent and unique.
-
-
Try ajaxRequest. UniCombobox -> ClientEvents -> ExtEvents -> beforeselect : function beforeselect(combo, record, index, eOpts) { ajaxRequest(combo,'bselect',['index='+index]); } UniCombobox -> OnAjaxEvent : procedure TMainForm.UniComboBoxAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if SameText(EventName,'bselect') then begin self.ShowToast(Params.Values['index']); end; end;
-
thank you, Sherzod . I will try this .
-
I am testing something in scene of dynamic create Frame/Form . As a rule, in one From or Form , we can call jscode ajaxRequest(sender,"method",[{Params}] ); , and respond to delphi procedure AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); . sender ==> Ext.getCmp("id"), id ==> sender.id (jscode) . id of Frame ==> frame.FormRegion.JsId; (pascalcode) . if we pass id of target Frame to source Form , then we can call target frame's method by begin self.unisession.addjs('ajaxRequest(Ext.getCmp("id"),"Method",[{params}])'); end; in source Form . same thing with Frame and Frame. id of Form ,I can't get , (but we have form.show(callbackproc) and form.showmodal(callbackproc) ). So, how to get the JsId of a UniForm ?
-
rowexpand aframe:=taframe. create(container); aframe. x:=2019; aframe. aprocedure(2019); rowcontrol:=aframe;