Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by lt.col.blair

  1. lt.col.blair

    Where are my styles?

    Hi, I'm pretty new to FMX-Development and just trying to understand styles and how to change them. I have a small application with two forms and a data module. On the datamodule i placed a stylebook component. The forms have that stylebook assigned in their StyleBook property. If I open a form in the designer when the DataModule is not open, all contols are displayed without styling. As soon as I open the DataModule, the controls are styled. OK so far. Some of the controls have their own StyleLookup assigned, e.g. "pnlWait". When I right click on that control and select "Edit user defined style", the style Edtor shows that style for editing: But when I double click the StyleBook, that is placed on the DataSet to edit its styles, it is completely empty! I could not find any Style settings in the .fmx or .dfm files. Where are those styles stored? I'm afraid to lose my styles, if I move my project and forget to take that special file along. Also: I don't understand the difference between "StyleLookup" and "StyleName". Right now I write the name of my changed styles into "StyleGrouping" and it seems to work, but even though I can copy that style to other controls by writing the name there, I can't select my styles never show up in the selection list ?? I would be glad, if anybody could point me to some tutorials that explain, how styles, style lookup and style name work together and how they get connected to controls. Thanks,Lutz
  2. lt.col.blair

    Where are my styles?

    Sorry for the late reply but: THANK YOU. That helped me a lot. Slowly I'm beginning to understand
  3. Is there a "simple" function in Delphi (using 10.3 Professional) that allows me to verify a password with a hash code generated in php using password_hash()? A function, that does the same as php's password_verify($password, $hash); Example: using php's password_hash('thisismyaccesscode', PASSWORD_DEFAULT) I have created this hash: $2y$10$21qire0Qwz/gj6HEej3tf.skdiZzeB.rgFdg7qD.5rAhE/AFg.U8q Now I'm looking for a Delphi function, that tells me, if the password entered into my program can be verified against this hash. Background: I have a list of user records for my web server. Using a webservice I can retrieve a user's password hash from that server. I know it is generated using the php function password_hash. I want to enable my users to login to my Delphi program using the access code from the web site. Therefore I get the password hash from the websever and want to verify it locally in my Delphi program instead of uploading the password to the server and checking with php. BTW: I posted the same question on Stack Overflow, but I think, this might the better platform to find solutions for Delphi questions.