Jump to content

softtouch

Members
  • Content Count

    183
  • Joined

  • Last visited

Community Reputation

9 Neutral

Technical Information

  • Delphi-Version
    Delphi 12 Athens

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. softtouch

    Lockbox 3 GenerateKeys = Range Check Error

    I just installed the latest version from github, it does exactly the same.
  2. Delphi 12.2, I installed LockBox 3 via GetIt. So far so good. I try to generate public and private keys, but I get all the time a range check error. Here is the example code: CryptoLib := TCryptographicLibrary.Create(nil); CodecRSA := TCodec.Create(nil); Signatory := TSignatory.Create(nil); CodecRSA.CryptoLibrary := CryptoLib; CodecRSA.StreamCipherId := 'native.RSA'; CodecRSA.AsymetricKeySizeInBits := 1024; Signatory.Codec := CodecRSA; Signatory.GenerateKeys; // <== Range Check Error Signatory.Free; CodecRSA.Free; CryptoLib.Free; What am I doing wrong?
  3. softtouch

    TControlList and colors/selection

    I already tried that, but the text (label) in the item will be in a typical disabled color (some sort of gray), when I set AEnabled to false, thats also not great.
  4. softtouch

    TControlList and colors/selection

    I am trying since hours to find a way to disable that a user can select an item from a TControlList, without success. What I am trying to do is to show all the items, but in some sort of a "viewer" mode, so tuser can see/scroll all the items, but there is no focus drawn and items cannot be selected. I also tried to change the colors in ItemSelectionOptions, but whatever I set there, it wont change anything. If I set the colors all to lets say clRed, they are still blue. How can I do what I want to do?
  5. softtouch

    VirtualStringTree - detect click on image

    I have a column where each node has an image, set via the onGetImageIndex event. The image and the celltext are displayed properly. How can I detect that the user click the image and not the text in the cell? Using tree.GetHintInfoAt(...) will always return [hionItem] in the hitpositions property, independent I click the image or the text. What I read so far, it should return [hiOnNormalIcon] too when I click the image, but it doesn't. Here is a simple text code for the onMouseDown event: var hi:THitInfo; begin treeSteps.GetHitTestInfoAt(x,y,true,hi); if (hi.HitNode<>nil) and (hi.HitColumn=6) then begin if hiOnNormalIcon in hi.HitPositions then begin caption:='1'; // Never called end; end; end;
  6. softtouch

    MainModule.varname is cached?

    I still encounter the problem. Python script python1.py: VALUE = 'testing' Python script python1.py: MYVAL = 'something else' Delphi: var val:variant; GetPythonEngine.ExecFile('python1.py'); val := MainModule.VALUE; // val contains 'testing' varclear(val); // val shows "unassigned" GetPythonEngine.ExecFile('python2.py'); val := MainModule.VALUE; // val contains 'testing' again, even it does not exist in python2.py.
  7. softtouch

    MainModule.varname is cached?

    When you access a Python variable or constant through MainModule.varname, Python4Delphi retrieves the value and caches it I think. Subsequent executions of Python scripts, even if they don't define the same variable, won't automatically clear this cached value and MainModule.varname retun the previous value. is there any function that clears this cached values without reinitializing the python engine? Example: python1.py: MYVALUE = 'test' Delphi: python.ExecFile(python1.py); s:=MainModule.MYVALUE; // This return 'test' python.ExecFile(python2.py); // This does not have this constant/variable in it s:=MainModule.MYVALUE; // This return again 'test'
  8. softtouch

    FMX TGrid no mouse events?

    Not VCL, FireMonkey.
  9. softtouch

    FMX TGrid no mouse events?

    With Delphi 12.2, TGrid and TStringGrid seems not to have any mouse events like onMouseDown, onMouseMove etc., I cant see them in the events, but based on the Delphi help, it should have them. Is it just me or is the help wrong?
  10. I need something like the vcl listview, where I have multiple columns, and can select also multiple rows. I tried: 1. Listbox: No real rowselect, weird to handle multiple columns 2. Listview: No columns, no multi select 3. Grid: No multi select Is there no control out there simlar the vcl listview? I checked on github, and googled, but had no success. I cannot believe that such "normal" listview does not exist for firemonkey.
  11. softtouch

    Treeview with additional line of text?

    I have a treeview with checkboxes and icons (TRzCheckTree). I need to display beneth the node label/text another line of text, but fail to do so. Is there any way to show 2 lines of text for each node without screwing up the icons/checkboxes?
  12. Does anybody know of an open source html parser which support xpath expressions and can parse the html content from a string or stream? I tried the HtmlParserEx from https://github.com/radprogrammer/htmlparser but it only understand simple xpath expressions like //*[@class="description"] but does not work properly using //*[@class="description" and contains(text(),"whatever")] (returning wrong data)
  13. I need to send data back from a python script. This, for example, could be a list of strings, separated by newline. What is the preferred way to send such data back to delphi? 1. Using a module, and its Events property with the onExecute event and process the data or 2. Using the TPythonInputOutput and the onSendUnitData event and process the data?
  14. I have some to bytecode compiled python scripts. Is there a way to run them via ExecFile or other functions?
  15. softtouch

    No python engine was created error

    Thank you, good to know. But I dont create the module in the main unit, where the python component is on the form. I create it instead when another form is created, in the formcreate event and thought I must free it also in the formclose event. So how shall hat work when I dont free the module? It would get always created again when the form is created.
×