Jump to content

kaarigar

Members
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

1 Neutral

Recent Profile Visitors

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

  1. Yes! I misinterpreted that the conditional compile was for x64. My bad.
  2. Yes, my mistake in asking mixing up X86 code with x64. It's not really any performance issue that I have run into as such - it's that my application repeated search on strings inside a loop - and depending upon situation, there could be billions of computationally generated strings. I was checking that sure that the Pos function that gets called repeatedly is efficient.
  3. Thank you for your response. No, I don't have any proof, nor do I know any assembly to even look for any proof or done any benchmarks. I was assuming that the the presence of the ASM blocks would indicate that it's purpose was to make code more efficient in terms of execution.
  4. I am compiling for Win64 target in Delphi Alexandria with latest update/patch. The intention is to have faster code with the help of assembly code, but I am not sure if that's what is achievable with what I am attempting.
  5. The System unit has various conditional compile flags etc. One of them is PUREPASCAL define that I want to undefine so that ASM versions of the System functions would be compiled. I am specifically interested in the Pos function. The PUREPASCAL gets defined at the beginning as {$IF defined(CPUX86) and defined(ASSEMBLER)} {$DEFINE X86ASMRTL} {$ELSE} {$DEFINE PUREPASCAL} {$ENDIF} How can I ensure that the PUREPASCAL doesn't get defined? I have tried and define CPUX86 and ASSEMBLER defines, but that doesn't seem to work. Does this require modifying the System unit? Any help is greatly appreciated.
  6. kaarigar

    TArcDial behavior

    Thanks for your suggestion. I couldn't really figure out how to ignore (or discard) the first change after MouseDown event - the TArcDial jumps to the new angle right away. Instead I was able to implement this suggested logic on TImageControl and rotate the image as desired. This is very light weight with just a few lines of code and does what I need. Thanks!
  7. kaarigar

    TArcDial behavior

    I am in need of a rotary dial control to let user choose some alphabetical values. Basically, I need a user to rotate the dial to choose a letter from alphabet. I am using TArcDial and it does its job with the help of Tracking := True, and setting appropriate ValueRange property, user can smoothly turn the dial and select an alphabet letter. However, it has one strange behavior. Whenever the ArcDial is clicked or touched (on mobile device), the Arc Dial value changes its value to where it was clicked or touched. (You can see this behavior in the ActionsDemo sample.) This results in an annoying behavior that whenever user touches the dial, the alphabet jumps from its current value to another value which is not sequentially next or previous letter. Perhaps this is by design, but my questions is is there a way to work around this, or is there a better way of doing what I want to achieve? Thank you!
  8. kaarigar

    Async dialog on android?

    My apologies - your response is perfect for the question I asked. However I made a mistake in typing - I was really interested in modal dialogs - which are sync dialogs. I was confused at the time of posting and I must have confused you!
  9. kaarigar

    Async dialog on android?

    Thanks for the suggestion. I have been using forms for this purpose as you suggest on Windows platform. I will do the same in this case too - but I was curious because sync dialogs are supported on other platforms. Btw, I gave wrong subject heading to my post - it should have been “Modal dialogs in android”, and not async dialog. Sorry for the confusion.
  10. kaarigar

    Async dialog on android?

    This code shows async dialog. I need sync or modal dialog on android. Documentation says that the modal dialogs are not supported on android and was looking for a work around way or technique to have it on android.
  11. kaarigar

    Async dialog on android?

    Is there any way to have async dialogs on android platform? I am using Alexandria.
  12. kaarigar

    Copy deployment across platforms

    Thanks, I will check it out.
  13. kaarigar

    Copy deployment across platforms

    Thanks - that is what I ended up doing. I should perhaps set up tje All Configuration as yiu suggest. But then the question what gets precedence - All Configuration or individual specific platform configuration.
  14. I am rebuilding an old multi-device application in Delphi Alexandria. The target was android-32. Now I want to build it for android-64. I have added several files to android-32 like splash screen, data files, multimedia files, etc. etc. that I want them to be added to the android-64 platform. Is there any way to copy all relevant the deployment settings (Project->Deployment) from android-32 to android-64. How can I have them copied to the android-64 target platform? Thank you for your response!
×