uniguisyriusz
uniGUI Subscriber-
Posts
61 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by uniguisyriusz
-
TUniDateTimePicker OnChangeValue sometimes not working
uniguisyriusz replied to uniguisyriusz's topic in General
New example. We have MainForm with PageControl, on TabSheet3 is placed Frame1 with PageControl. When user is changing DateTimePicker value in first column from left, value of its neighbour in second column schould change - but it's not. It happens after changing pagecontrol tab. When unidatetimepicker is placed on form, like on MainForm TabSheet1 and 2 everything is working fine. uniDateTimePicker.zip -
TUniDateTimePicker OnChangeValue sometimes not working
uniguisyriusz replied to uniguisyriusz's topic in General
I'm using. The same effect. -
TUniDateTimePicker OnChangeValue sometimes not working
uniguisyriusz replied to uniguisyriusz's topic in General
???? -
????
-
TUniDateTimePicker OnChangeValue sometimes not working
uniguisyriusz replied to uniguisyriusz's topic in General
Maybe example will be better? There is TUnidateTimePicker with UniDateTimePicker1ChangeValue. Usually when its value is changing then UniDateTimePicker1ChangeValue fires. But sometimes UniDateTimePicker1ChangeValue is not firing. uniDateTimePicker.rar -
Like in subject. Sometimes OnChangeValue event not fires. In browsers console everething looks ok.
-
And? Any solution?
-
Thank you very much for the advice. This is a UniGui-style solution. I only need to convert 180 datetimepicker to combobox.
-
Yes, Kind is set to tUniTime.
-
Is it possible to set TUniDateTimePicker items list to constant value? For example [06:00, 08:80, 08:30, 10:00, 11:00,15:00]?
-
uniGUI Compolete Professional v1.90.0.1496 Ext event: function celldblclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { Ext.defer(function(){ ajaxRequest(sender, 'celldblclick', ['cel='+cellIndex], false) }, 300); } In Delphi OnAjaxEvent parameter cel is missing. There is parameter c but its value is 0 for first and second column (first column is fixed). I need to know column id independently from fixed columns count.
-
frMiesiac is not needed, it can be removed. uni_harmonogram_.rar
-
Because the standard grid and other components are not enough for me.
-
Can it be done efficiently? Creating 310 kills the application. Example in the attachment. uni_harmonogram.rar
-
So there is no any other way?
-
Ok. But why CurrColl is not changing? Its value is always 0.
-
Add OnSelectionChange to UniDBGrid and inside of it check values of UniDbGrid.CurrCol and CurrRow.
-
When rowselect is active and user is using keyboard keys up, down left, right, CurrColl is not changing only CurrRow is changing. When rowselect is off CurrCol and CurrRow are changing but it's imposible to select whole rows.
-
Is It possible?
-
how set datasource of tunidbgrid after dataset open
uniguisyriusz replied to uniguisyriusz's topic in General
Refresh on UniDbGrid? unit Main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIRegClasses, uniGUIForm, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, FireDAC.Stan.Async, FireDAC.DApt, Data.DB, FireDAC.Comp.DataSet, FireDAC.Comp.Client, uniGUIBaseClasses, uniBasicGrid, uniDBGrid, uniButton, uniPanel, uniTimer, uniThreadTimer; const WM_MY_MESSAGE = WM_USER + 0; type TMainForm = class(TUniForm) FDQuery1: TFDQuery; UniDBGrid1: TUniDBGrid; DataSource1: TDataSource; UniButton1: TUniButton; UniTimer1: TUniTimer; procedure FDQuery1AfterOpen(DataSet: TDataSet); procedure UniButton1Click(Sender: TObject); private public { Public declarations } end; function MainForm: TMainForm; implementation {$R *.dfm} uses uniGUIVars, MainModule, uniGUIApplication; function MainForm: TMainForm; begin Result := TMainForm(UniMainModule.GetFormInstance(TMainForm)); end; procedure TMainForm.FDQuery1AfterOpen(DataSet: TDataSet); begin DataSource1.DataSet := FDQuery1; UniDBGrid1.DataSource := DataSource1; UniTimer1.Enabled := false; //UniDBGrid1.JSInterface.JSCall('view.refresh', []); end; procedure TMainForm.UniButton1Click(Sender: TObject); begin FDQuery1.Open(); end; initialization RegisterAppFormClass(TMainForm); end. -
how set datasource of tunidbgrid after dataset open
uniguisyriusz replied to uniguisyriusz's topic in General
This solution raise the same exception "Attempt to access nil session reference "