Jump to content

Serge_G

Members
  • Content Count

    333
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Serge_G

  1. Well it's a subject I was working on 07/2019 but reworking those days for a tutorial (and future book perhaps) The trick is first to get the style used var sb: TFMXObject; begin if assigned(Scene) then begin if not Assigned(Scene.StyleBook) then sb := TStyleManager.ActiveStyleForScene(Scene) else sb := Scene.StyleBook.Style; then once got you can search the needed properties if assigned(sb) then begin // text color aFMXObj := TStyleContainer(aFMXObj).FindStyleResource('labelstyle'); if Assigned(aFMXObj) then aFMXObj := TLayout(aFMXObj).FindStyleResource('Text'); if Assigned(aFMXObj) then Memo1.lines.Add(AlphaColorToString(TText(aFMXObj).TextSettings.FontColor)); end; but for button color, it's a bit harder, you have 2 cases : Background is a TRectangle; Background is StyleObject (selection in a bitmap). Use the same scheme as exposed for text color (finding 'buttonstyle') and then 'background' if background object is a TRectangle then you can access fill.color property (take care type could be also a gradient ...) else (a FMXObject) I made a try here (by the way you can get button's text color(s) also) Sorry if my links are for French readers. P.S. read a some .style files to understand the principles
  2. Serge_G

    Strange IB connection issue

    Check port 3050 access
  3. Serge_G

    TListView collapse stuff under a header

    Hi, no, but I do not searched further. Perhaps using some events' solution exists.
  4. Serge_G

    FMX learning resources?

    IMHO it's FMX.TListBox, but I think you will quickly need to create style for the item presentation. If French reader, can I suggest a tour to my little site (I had to update soon)
  5. Serge_G

    Changing Row/Column line colors of cells in TGrid

    Hooking !? no except if you want to export data for selected cells (wich was my goal). You only have to use OnDrawColumnCell event like in ExportStringGridMain.pas, (procedure TFormTest.StringGrid1DrawColumnCell )
  6. Serge_G

    Firebird Embedded on Android

    I could not use Firedac to achieve this (as you try changing TFDPhysFBDriverLink) , but by using IBDac or ZEOSDBO then I reached my goal was : use my android machine as a client to server Firebird. But deploying Firebird x64 on Android is tricky https://sourceforge.net/p/zeoslib/wiki/How to use Firebird 4.0 with Zeos on Android/ ARM version seems to be easier, but compatible Delphi x64 ??? Note : I don't check really the server embedded function, only connection to a server @Dmitry Arefiev should Firedac be possible one day ?
  7. Serge_G

    App Delphi 12.2 not launching in release

    Have this behavior when "playing" with stylebooks, so question, do you use stylebooks ?
  8. Serge_G

    What FireMonkey style do you use and like ?

    For dark and light theme, I vote for "universal" (non OS specific styles) like light.style and dark.style (no png inside so no TxxxStyleObjects and overall lightweight)
  9. Serge_G

    Changing Row/Column line colors of cells in TGrid

    Quick response, use OnDrawColunmnCell event. You can see also how I manage a Data Grid CopyToClipBoard GitHub link. I don't remember if in that repository I use TStyleBook, on a French forum I worked this
  10. Serge_G

    fmx RunTime design

    Nice, but I still don't understand why it's in this FMX deposit, or I understand the subject if any.
  11. Serge_G

    fmx RunTime design

    And the question is ? I don't want to use you exe nor your db file so with only .fmx file (should be great to have .pas and .dpr) review question and if needed archive
  12. Serge_G

    VCL UI Design Challenge for Delphi Developers πŸ’‘

    Just saw, this challenge. It's for birthday, so I assume Delphi 12. For now, I am working on FMX Styles but Appearances (themes) in VCL is very similar so if working on TStyleManager is accepted, I think I should accept this challenge πŸ€”satisfying my curiosity
  13. Serge_G

    Listview or similar with multi select and columns

    For point 3, grid : Look in my github https://github.com/Serge-Girard/StringGrid2Clipboard this discussion https://www.developpez.net/forums/d2134806/environnements-developpement/delphi/composants-fmx/desktop-tstringgrid-fmx-selections/ For ListView I wrote many bills in my French Blog look for tag Listview https://www.developpez.net/forums/blogs/138527-sergiomaster/b8177/fmx-selection-delements-tlistview/ Bonus : https://www.developpez.net/forums/blogs/138527-sergiomaster/b8201/fmx-selection-delements-tlistview-bonus/
  14. Serge_G

    Retrieve value of INSERT ... RETURNING ...?

    Which connector is used ? Firedac or ? If Firedac you can use a direct query on FDConnexion and try a EXECSQLSCALAR DatabaseId :=FDConnection1.execSQLScalar(SQL,[ADatabase.Name,Adatabase.Filename,ADatabase.FilePath, ADatabase.Description,Now]); Checked, using @emileverh remark about autoincrement
  15. Serge_G

    FMX TListView Item color change runtime

    I wrote some tips about TListview you can find here (in French) , or in this tutorial
  16. Serge_G

    ClientDataSet Wrong Aggregate

    How are your DataSet fields and Aggregate Field declared ? I think it's a rounding problem.
  17. Serge_G

    End Of File

    Hi, What about using onBeforeInsert event and put in it procedure TForm1.MyTableBeforeInsert(DataSet: TDataSet); begin Dataset.Cancel; end; I am not fan of these two values
  18. Serge_G

    Right To Left Components

    Don't remember that now you have Skia and his TSkiaLabel
  19. Serge_G

    Delphi 12CE and SQLite

    To answer @gkobler On page 21 of RAD Studio 12 Feature Matrix There are no limitations noted for a "classic" usage of SQLite . But, I can't test Community version to answer @FrancM
  20. Hello, There is a -service option you have to use Remote Backup & Restore
  21. Serge_G

    TControlList β€” need help!

    So, I have a look and test with 11.3 and 12.1 (entreprise) and no slow comportment found. So, for me, you got it.πŸ™Œ You said you use which version, community ok but last one (which is now a 11.2 or 11.3 version don't remember exactly ) ? As I see in your code, the key is the TControlList.FHeights I never found (for my discharge, I just deep dive in this component at the first occurrence and never run back in it)
  22. Serge_G

    TControlList β€” need help!

    Thanks for the guru, but actually I am on holidays (let say I prefer this term that a low activity scheme due to retirement πŸ˜‰) Sure, I will have a look to your project. TControlList variable row heights was in my lengthy to-do list when retired but, as I really prefer FMX TListview this to-do item was in the bottom 10.
  23. Did you install FMXLinux via getit ?
  24. Serge_G

    Simple LiveBindings usage questions

    It's been a long time since I've looked into livebindings, outside database links and even, less in VCL being much more FMX πŸ™„ So, this question caught my attention. My first idea "its a VCL fact", but, writing the same sample in FMX, I got the same point 3 behaviour. My second clue was to notify BindingList a change, in memory my firsts steps with livebindings procedure TForm1.Button1Click(Sender: TObject); begin Checkbox1.Checked:=not Checkbox1.Checked; BindingsList1.Notify(Checkbox1,'checked'); end; But, unsuccessfully. My guess, checkbox state is changed after the drawing ? For that sort of, unusual, thing I used a one record ProtypeBindSource component with a boolean field And this code procedure TForm1.Button1Click(Sender: TObject); begin PrototypeBindSource1.DataGenerator.Fields.Items[0].SetTValue(not checkbox1.Checked); end; Project22.zip
  25. Serge_G

    Docking Example

    When I first learn about docking, I view these two Alister Christie's videos https://learndelphi.tv/60-movie-32-dockable-forms https://learndelphi.tv/61-movie-33-dockable-forms-2
Γ—