Jump to content

IElite

Members
  • Content Count

    1,212
  • Joined

  • Last visited

  • Days Won

    12

IElite last won the day on July 13

IElite had the most liked content!

About IElite

  • Rank

Contact Methods

  • Website URL
    https://www.facebook.com/holmesshanea

Profile Information

  • Gender
    Male
  • Interests
    FreePascal, Delphi, Smart Mobile Studio

Business

  • Company name
    Cold River Labs
  • Sector
    Information technology
  • Position
    Founder

Smart Mobile Studio

  • Edition
    Professional

Recent Profile Visitors

4,245 profile views
  1. IElite

    Expand Combobox using code

    @jarto Is it possible to fake it with a window displaying the items from the combobox ?
  2. IElite

    file system

    @lynkfs It looks like you are performing all of these operations within the scripts OnLoad. However, in a real-world scenario, I would like to perform reads on application startup and writes on application closing Would you then have to load the script for each of these (startup, close) thanx
  3. IElite

    file system

    ill have to give this a try very soon, thanx for sharing
  4. IElite

    TW3StringGrid is available

    @tristan You will need to create your own / derive your own column from TW3StringGridColumn located in the unit SmartCL.Controls.StringGrid. Take a look at the SmartCL.Controls.StringGrid unit and see how for example, the button column (TW3StringGridButtonColumn) is created TW3StringGridButtonColumn = class(TW3StringGridColumn) protected function GetClasses: String; override; public constructor Create; override; function GenerateHtml(GridLine: TW3RenderedGridLine; ColumnIndex, CurrentLeft: Integer): String; override; procedure SetColumnEvents(Sender: TW3CustomStringGrid; GridLine: TW3RenderedGridLine; ColumnIndex: Integer); override; end; { TW3StringGridButtonColumn } constructor TW3StringGridButtonColumn.Create; begin FBaseClass := 'TW3Button'; AlignText := taLeft; VAlign := tvCenter; BorderType := btLightBorderRight; BackgroundType := bsNone; end; function TW3StringGridButtonColumn.GenerateHtml(GridLine: TW3RenderedGridLine; ColumnIndex, CurrentLeft: Integer): String; begin var ItemId:=Grid.Handle.id+'_row_'+IntToStr(GridLine.DataIndex)+'_btncol_'+IntToStr(ColumnIndex); GridLine.ItemIds.Add(ItemId); result:='<input id="'+ItemId+'" type="button" class="'+GetClasses+'" style="visibility: visible; display: inline-block; overflow: hidden; left: '+IntToStr(CurrentLeft)+'px; position: absolute; width: '+IntToStr(Width)+'px; height: 100%;border-radius: 0px;" value="'+TString.EncodeTags(Grid.Cells[GridLine.DataIndex,ColumnIndex])+'"</input>'; end; function TW3StringGridButtonColumn.GetClasses: String; begin result:=inherited GetClasses+' TW3ButtonBackground'; end; procedure TW3StringGridButtonColumn.SetColumnEvents(Sender: TW3CustomStringGrid; GridLine: TW3RenderedGridLine; ColumnIndex: Integer); // Note: This is used by the combo box too var cHandle: THandle; begin try cHandle := GridLine.FixedCols.Handle.GetChildById(GridLine.ItemIds[ColumnIndex]); if not (cHandle) then cHandle := GridLine.ScrollableCols.Handle.GetChildById(GridLine.ItemIds[ColumnIndex]); cHandle['oninput'] := @Sender.HandleDataChanged; except end; end;
  5. IElite

    Issue with DEVELOPMENT-branch (was BETA) building APP

    I am using the latest and greatest - current development update 3.1.0.88 see attached project testproj.zip
  6. IElite

    Issue with DEVELOPMENT-branch (was BETA) building APP

    so does this: procedure TForm1.InitGrid; var Col_ProjectId: TW3TextColumn; begin Col_ProjectId := TW3TextColumn.Create(W3Grid1 as IW3ColumnsControl); Col_ProjectId.Header.Caption := '#'; Col_ProjectId.Header.Alignment:= taCenter; Col_ProjectId.Alignment := taCenter; Col_ProjectId.Width:= 100; W3Grid1.Columns.Add(Col_ProjectId); end; procedure TForm1.InitializeObject; begin inherited; {$I 'Form1:impl'} InitGrid; end;
  7. IElite

    Issue with DEVELOPMENT-branch (was BETA) building APP

    This works for me just fine. Not sure where you are calling InitGrid from procedure TForm1.W3Button1Click(Sender: TObject); var Col_ProjectId: TW3TextColumn; begin Col_ProjectId := TW3TextColumn.Create(W3Grid1 as IW3ColumnsControl); Col_ProjectId.Header.Caption := '#'; Col_ProjectId.Header.Alignment:= taCenter; Col_ProjectId.Alignment := taCenter; Col_ProjectId.Width:= 100; W3Grid1.Columns.Add(Col_ProjectId); end;
  8. IElite

    Building an application

    Use PhoneGap to package your project and convert to Android If you search for PhoneGap in this forum you should find a lot of threads related to it. However, I would start with the little tutorial by @jarto
  9. IElite

    Radiogroup - change items text

    There are a number of controls that do this ..i.e. have a index (array property) and then a separate property for the list of controls (e.g. RadioButtons: TW3RadioGroupItems in Delphi there is not a string array it would be something like items: TW3RadioGroupItems instead and there would be no Items: TStrArray I am sure there is a reason for this and maybe @jarto can enlighten us
  10. IElite

    Radiogroup - change items text

    W3RadioGroup1.RadioButtons[0].Label.Caption:= 'it does not work';
  11. IElite

    Responsive Design

    Can we see how you used the CSS grid?
  12. IElite

    Send requests to Node.js server from client?

    My ultimate goal is to do the following: 1.) Deploy JSON file with Client. Includes data and file version number { "Example": { 'fileVersion': 1.01 "data": [...] } } 2.) On Client startup, if there is a connection to do so, send a request to the server to see if the file version has changed. 3) If file version has changed, send back the new file ? is this possible? would the file be able to be written on the client side?
  13. IElite

    Send requests to Node.js server from client?

    @lynkfs I guess i was expecting to see both the request and the response in the Dev Tools? I really am only seeing the response, which i have to click on response tab to see
  14. IElite

    Send requests to Node.js server from client?

    looking for example on how to send data back in response
  15. IElite

    Send requests to Node.js server from client?

    @lynkfs It looks like my code is recongnizing the URL just fine. It is showing '/test in my debug line see attached screenshot
×