Jump to content

skafy

uniGUI Subscriber
  • Posts

    216
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by skafy

  1. Hi,

     

    I would like to ask how would a commonication look like between VCL and UniGui applications. Unigui would handle clients and send workloads to VCL, VCL would do some engine work proccessing, database R/W and returning respondes to UniGui.

     

    What would be the bast way to implement such solution.

     

    Tnx^

  2. Ok I forgot about built in server monitor. So... internal memory seems to be ok. when session is created and older terminated it raises and drops (to same value as before). But process memory does not drop. Why would that be? Also, why is Memory(Process) in server monitor and memory consuption in task maneger not equal?

  3. If I would then fetch 100 - 1000 records, then I should I implement logics for next page and last page. But how would I then filter and sort records. Now I use FDQuery.Filter and FDQuery.Indexes for sort.

  4. If cell hold some default value, I would like to remove it in time of editing (so that user don't need to delete this default value, but it would be blank for editing). If user doesn't enter enything I would than set back the default value (which I can do in OnSetCellValue).

  5. I know there is event on DBGrid -> OnSetCellValue. It is fired when you leave cell's editing. Is there a event alike when I enter the cell. I suppose it would be something like OnGetCellValue, but it does not exist. Where can I retrive call value when I enter cell's editor?

     

    Thanks in advance.

  6. Is there a way to make buttons in title bar bigger? I have BorderStyle set to bsDialog and only enabled biSystemMenu (Close (X)). So how can I make Close button bigger and red?

     

    Thank you in advance.

  7. I have unigui standaloneServer (standard, not mobile) with standard unigui components. Is it possible to add mobile form and show it on the same address regarding which platform comes to web site. If so, where sould I switch which form should come up (standard/mobile) (UniPlatform?).  

  8. Put something like this in project source

    FileName:= 'C:\Chrome\GoogleChromePortable\GoogleChromePortable.exe';
    if extractFileExt(GetModuleName(Hinstance))='.exe' then
      ShellExecute(Application.Handle, PChar('Open'), PChar(FileName), PChar('Http://localhost:8077'), Nil,SW_Show);
      
  9. Hi,

     

    how can i make memo with autosize when text wrap. I would like memo with 1 line and than when wordwrap happens i would like to increase memo height for 1 line. I've tried code from another post seen below, but doesn't seems to be accurate:

    function TPaginaPrincipal.TextWidth(s: TUniLabel): Integer;
    var
      c: TBitmap;
      f: TFont;
    begin
    { uma forma de calcular o tamanho de um texto na janela se o canvas não atualiza via ajax }
      c := TBitmap.Create;
      f := TFont.Create;
      Result := 8 * Length(s.Caption);
      f.Height := s.Font.Height;
      f.Size := s.Font.Size;
      f.Name := s.Font.Name;
      f.Style := s.Font.Style;
      try
        c.Canvas.Font.Assign(f);
        Result := c.Canvas.TextWidth(s.Caption);
      finally
        c.Free;
      end;
    end;
    

    How can I accomplish this?

  10. I'm having problems with opening new window with Windows.open command.

    Command is: UniSession.AddJS('window.open("' + ReportURL + '")');

     

    I attached image of an error that I get.

  11. Hi,

     

    I'm having trouble setting Stype to csDropDownList in uniDBComboBox wich i create on the fly in runtime. I'm setting it like this MyDBcombobox.Style:= csDropDownList. What am I missing? I get error Undeclared identifier.

  12. Hi,

    Workflow.exe: 00000924: 09:54:58 [192.168.20.40]:Sync Request: Id: -1, Event: upload
    Workflow.exe: 00001188: 09:57:47 [192.168.20.40]:Sync Request: Id: -1, Event: upload
    Workflow.exe: 000016F8: 10:11:52 [192.168.100.66]:Sync Request: Id: -1, Event: bclose
    

    I'm getting this errors in my log file while server is running. What is explanation for that and what could cause this? Once they appere, I have to restart server and than works normal again for some time.

     

     

     

  13. Hi,

     

    I'm having a problem accessing UniMainForm from my application. I have 1 Main(MainForm)  which is having 1 (Application) datamodule and that module is having another 1 (Application) datamodule.

     

    Form

     |_ DataModule 1

           |_DataModule 2

     

    If I understand UniMainForm correctly it is created  for each session and its basicly datamodule(Shared unit) for whole application.

     

    Now... I'm creating threads in datamodule 2 and trying to write data to UniMainForm, but what I get is

     

    UniMainModule.CreatedTaskIns:= ATaskIns.Key;

     

    I Get access violation 0000064. I tried to read that variable from Datamodule1 and works good. It seems like i cant retrive current session from thread.

×
×
  • Create New...