Jump to content

Point

uniGUI Subscriber
  • Posts

    192
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Point

  1. On 6/19/2018 at 6:51 PM, Sherzod said:

    Hi,

     

    Also you can try this approach I think:

    
    function window.afterrender(sender, eOpts)
    {
        var me = sender;
        
        me.dd = new Ext.dd.DDProxy(me, {
            delegate: me.id
        });
        
        me.dd.afterDrag = (function() {
            me.updateLayout()
        });
        
        Ext.onReady(function() {
            Ext.get(me.id).select(".x-form-field").each(function(el) {
                me.dd.addInvalidHandleId(el.dom.id)
            })
        });
        
        me.el.setStyle('cursor', 'move');
    }

    http://forums.unigui.com/index.php?/topic/4567-move-tuniform-without-titlebar/

    http://forums.unigui.com/index.php?/topic/6321-ot-javascript-profis-dragdrop-of-unipanel/

    ...

     

    this code moves the form with all the controls in it. how to move the form with just one control, for example only the unipanel1 can move the form. I tried to modify the code but it didn't work :).

  2. the following is an illustration :

    1. Unit File :

    Quote

    unit MyUnit;

    interface

    uses
      Data.DB, Datasnap.DBClient;

      procedure CloseOpenDataset;


    implementation

    uses
      UnitDataModule1;


    procedure CloseOpenDataset;
    begin
       with Datamodule1.ClientDataSet1 do begin 
          Close; Open;
       end;
    end;

    end.

    2. Unit Data Module :

    Quote

    unit UnitDataModule1;

    interface

    uses
      SysUtils, Classes;

    type
      TDataModule1 = class(TDataModule)
        ClientDataSet1: TClientDataSet;
      private
        { Private declarations }
      public
        { Public declarations }
      end;
    .
    .
    .

    initialization
      RegisterModuleClass(TDataModule1);

    end.

    3.  Unit Form1 :

    Quote

    unit UnitForm1;

    interface

    .
    .
    .

    uses
       MyUnit;    

    procedure TUniForm1.UniButton1Click(Sender: TObject);
    begin
      CloseOpenDataset;
    end;

    end.

     

    when active session more then one and one of the user call the procedure CloseOpenDataset, will it be done simultaneously in each session ?

  3. Helo Sherzod
    thanks, it's work. eventhough the button is a bit too edge. maybe because I omit the border of unidbgrid.


    sorry Sherzod,  I have another question,

    I have a Unigui to 1.0.0.1422 license but the one currently installed is version 1.0.0.1401. 
    In this version, Is refreshcurrentrows/refresh function on unidbgrid not implement yet for datasnap ?, I tried to create an application with datasnap framework but the function does not seem to have much effect (cannot get the latest record) when the function is called.

    And whether on that version the enter key (#13) cannot be used to move between columns on the grid. 
    fyi : i've set navigator key properties on form.

    Sorry, I asked a lot, I am now excited again to learn Unigui :)

  4. regarding this, I am also looking for a solution. 

    As in the Cindy component there is a TcyFlyingContainer (Delphi VCL). This component functions to display a panel called by a control.
    This component really helps me when I will search records.

    In UniGUI, I've tried it using the form but the clienttoscreen function doesn't seem to work properly.

    I also hope there are suggestions regarding this.

    edge1.png

    middle1.png

    search record1.png

  5. hi oliver morsh,

     

    what the format of timestamp should i use, yyyy-MM-dd-hh-nn or i can use the other format or depend on regional setting ?

     

    is betwen name file dan timestamp separated with '?'

  6. I save a pdf file in folder Files. the pdf file is a manual book. this file is called by client with pdf viewer. when I replace it with a new file with the same name (because any revision of content), the pdf file is still displaying the old content, any suggestion?

     

    i used IIS versi 8.5.

  7. hi rullomare

     

    i try to install package BMUiniDbGrid in delphi xe3 but raise errors.

     

    so i remark this codes :

     

    procedure TBMUniDBGrid.JSEventHandler(AEventName: String;
      AParams: TUniStrings);
    var
      CurrentPos: TBookmark;
      Vals: String;
      //{$IFDEF COMPILER_18_UP} //XE5 and higher
      ArrayOfIndex: TArray<String>;
      I: Integer;
      //{$ELSE} //XE2 and lower compatibility
      TS : TStrings;
      X  : integer ;
      //{$ENDIF}

     

    and here :

     

    package BMUiniDbGrid;

    //{$R *.res}

    {$IFDEF IMPLICITBUILDING This IFDEF should not be used by users}
    {$ALIGN 8}
    {$ASSERTIONS ON}
    {$BOOLEVAL OFF}
    {$DEBUGINFO ON}
    {$EXTENDEDSYNTAX ON}
    {$IMPORTEDDATA ON}
    {$IOCHECKS ON}
    {$LOCALSYMBOLS ON}
    {$LONGSTRINGS ON}
    {$OPENSTRINGS ON}
    {$OPTIMIZATION OFF}
    {$OVERFLOWCHECKS OFF}
    {$RANGECHECKS OFF}
    {$REFERENCEINFO ON}
    {$SAFEDIVIDE OFF}
    {$STACKFRAMES ON}
    {$TYPEDADDRESS OFF}
    {$VARSTRINGCHECKS ON}
    {$WRITEABLECONST OFF}
    {$MINENUMSIZE 1}
    {$IMAGEBASE $400000}
    {$DEFINE DEBUG}
    {$ENDIF IMPLICITBUILDING}
    {$IMPLICITBUILD ON}

     

    .

    .

     

    ==========================

     

    after i remark that codes, the package can install successfuly.

    • Upvote 1
  8. 1. Work around : Use UniDBComboBox. Initial Text property empty. At Form.Show event populate the Items with selectable values.

    2. UniHiddenPanel with UniDBNumberEdit linked to whatever column you want.

    3 + 4. UniDBGrid.WebOptions.DefaultFloatFormat :='#,##0.00'

    5. With the Date format it's a mess. UniDateTimePicker behaves eratically when date format is other than 'mm/dd/yyyy' ( American ).

        A date like 01.00.2015 is what you can easily see with the 'dd.mm.yyyy' format.  I hope it will be fixed some time.

     

    I hope I understood correctly your questions. It was not easy !

     

    - cases No 1 has been solved on the advice of mr delphi developer.

     

    - UniDBNumberEdit does have display format properties.

     

    -  i try to set  unidbgrid with UniDBGrid.WebOptions.DefaultFloatFormat :='#,##0.00', not work, still be able to input some character.

  9. Can you please send a report on this? This must have been fixed ages ago!

     

    UniDBDateTimePicker always show MM/DD/YYYY, whereas UniDBDateTimePicker has set to date format dd/MM/yyyy

×
×
  • Create New...