Jump to content

Asiaapollo

Members
  • Posts

    58
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Asiaapollo

  1. Thanks a lot! Waiting for 0.97...
  2. Sorry, I am confused on your last two points: 13. Initial subscription will be for DCU version of framework only, but we will provide a free/low cost upgrade path when version with source code will be available within your subscription period. 14. In initial releases with source code we will only provide partial source code for components only. i.e. source code for units in uniGUIxx.bpl only. Full source code will be available when product will become more mature . So the initial subscription will include partial source code for components or just DCU version only? If the answer is later, can help to generate the import files of all uniGUI components for me (and other user using/planning to use TMS Scripter) by using the import tool from TMS Software (http://www.tmssoftwa.../ImportTool.zip)? Actually I'd asked this several times but never get your answer.
  3. How to prevent cursor moving into hidden columns?
  4. Hi Farshad Mohajeri, As I don't have the source of UniGUI, can you help to create UniGUI scripter library to use with TMS Scripter by use import tool which can be found in below URL? http://www.tmssoftware.com/site/scriptstudiopro.asp?s=#import or the direct download link http://www.tmssoftware.com/doc/Importtool.zip Thanks a lot!
  5. I am totally agreed, but I hope that UniGUI can be compatible with TMS Scripter.
  6. Will developer license including source code? I need the source code to generate scripter user lib to use with TMS Scripter.
  7. I am using below workaround: procedure TFormList1.UniDBGrid1AjaxEvent(Sender: TComponent; EventName: string; Params: TStrings); begin if EventName='load' then UniDBGrid1.SetFocus; end;
  8. Hi, As UniGUI Framework is multi-threaded, I am afraid that you cannot build single thread application if you want to use it. I will suggest you migrate to fast reports, you can find example in this side.
  9. Hi, I find that was due to Crystal Report VCL cannot be used in multi-threaded application, if you go through CRDynamic.pas you will find: { Set openEngineType to PE_OE_MULTI_THREADED if user calls CRPE from } { a multi-threaded application. Once CRPE starts up in multi-threaded } { mode with PEOpenEngineEx, user should call PEOpenEngine or } { PEOpenEngineEx to initialize CRPE for every thread that makes CRPE } { API calls. } { } { Using PEOpenEngine () to start up CRPE, by default CRPE is in } { single-threaded mode. } However, in implementation part of PEOpenEngineEx, you will find: {------------------------------------------------------------------------------} { PEOpenEngineEx function } { - Not fully implemented in CRPE yet... } {------------------------------------------------------------------------------} So Crystal Report VCL cannot be used under Multi-Threaded Applicaiton!
  10. Hi Farshad, Is it possible to add the config option Ext.grid.View.preserveScrollOnRefresh as unDBGrid's property? Thanks Lewis
  11. Hi Farshad, I guess you'd changed the cell(field) refreshing mechanism cause this issue, and row refreshing mechanism also been changed which caused the focus been lost after row changed by up/down key as my another post in bug report topic.
  12. But this works well with version 0.90. Is there any changes in Ext JS runtime lib?
  13. Development Environment: Windows 7 Pro - Traditional Chinese (HKSAR) Locale Delphi XE3 Enterprise - 32/64 bit Browser Chrome version: 26.0.1410.5 dev-m uniGUI version: 0.91.0.982 I've added below code in uniForm.OnCreate event to start edit when user press any key: (this works well with uniGUI version: 0.90, but it will not correct display edited content <Enter> been pressed) with UniDBGrid1 do ClientEvents.ExtEvents.add( 'OnKeypress=function OnKeypress(e)'#13#10+ '{ var me = '+JSName+','#13#10+ ' pos = me.getSelectionModel().getCurrentPosition(),'#13#10+ ' chrCode = e.getCharCode(),'#13#10+ ' record = me.store.getAt(pos.row),'#13#10+ ' colname= me.columns[pos.column].dataIndex,'#13#10+ ' xplugin = me.getPlugin("uniCellEditor"),'#13#10+ ' char = String.fromCharCode(chrCode);'#13#10+ ' record.beginEdit();'#13#10+ ' record.set(colname, char);'#13#10+ ' xplugin.startEditByPosition(pos);}'); Steps to reproduce (please refer to attached 4 screen shots): 1. Select a cell 2. Press 'ABCD' 3. Press <Enter>, the just edited content ("ABCD") disappeared 4. Press arrow down key or use mouse to click to another row, the just edited content ("ABCD") show up again! Test case: Windowless_XE2.zip
  14. I also encountered UDBGrid row mismatch error without this onclick event, it seems happened when you random click/dblclick many different cells.
  15. You can create a inherited component, i.e. TUniExDBGrid = class( TUniDBGrid ); add one property "property Col: Integer read GetCol write SetCol;" and in implementation add below code: TUniExDBGrid = class( TUniDBGrid ) private function GetCol: Integer; procedure SetCol(Value: Integer); published property Col: Integer read GetCol write SetCol; Implementation function TUniExDBGrid.GetCol: Integer; begin Result := CurrCol-1; {-1 for CurrCol} end; procedure TUniExDBGrid.SetCol(Value: Integer); begin CurrCol:=Value+1; {+1 for CurrCol} end; It works for me, let me know whether it works for you or not.
  16. Hi Farshad Mohajeri, Is it possible to implement TuniMemo as TuniDBGridColumn.Editor? Thanks!
  17. Hi Farshad, Since there is no reply on this topic, I thought no one interest on such functionality. If any one interested, please add a client event to TuniDBGrid as shown below. ClientEvents.ExtEvents.add( 'OnKeypress=function OnKeypress(e)'#13#10+ '{ var me = '+JSName+','#13#10+ ' pos = me.getSelectionModel().getCurrentPosition(),'#13#10+ ' chrCode = e.getCharCode(),'#13#10+ ' record = me.store.getAt(pos.row),'#13#10+ ' colname= me.columns[pos.column].dataIndex,'#13#10+ ' xplugin = me.getPlugin("uniCellEditor"),'#13#10+ ' char = String.fromCharCode(chrCode);'#13#10+ ' record.beginEdit();'#13#10+ ' record.set(colname, char);'#13#10+ ' xplugin.startEditByPosition(pos);'#13#10+ '}'); The most difficult part is I coundn't figure the TuniDBGrid obj in keypress event ("this" didn't work), so I finally use TuniDBGrid.JSName. For me, it works perfectly, but I haven't tested with readonly column.
  18. By adding below client event, single click will activate the cell editor: function OnClick(e) { var me = this, pos = me.getSelectionModel().getCurrentPosition(), xplugin = me.getPlugin("uniCellEditor"); xplugin.startEditByPosition(pos); } Hope this will help.
  19. After weeks of searching Ext documents, I've finally solved it. Please ignore it.
×
×
  • Create New...