Jump to content

sjordi

Members
  • Content Count

    196
  • Joined

  • Last visited

Posts posted by sjordi


  1. Ok I checked now. My problem is I want to skip the checkboxes. I just want to touch/click an item to select/unselect it.
    Both OnItemClick or OnItemClickEx seem to be triggered, but I don't find a way to update/refresh the listview. My guess is I actually have to hook the click to the underlying database. This way, when data is changed it should update.
    I'm not sure whether there is a way to force a refresh: for testing purpose only I was using the Item.Tag to set it on/off, but obviously it's not enough.


  2. Great,

    I confirm that it now works on iOS... Probably on Android as well but my device is at home.
    Good workaround. I use it to actually change the background for multi-selected items...
     

    for i := 1 to 1000 do
        ShowMessage('Thanks a lot Serge !');


  3. Ok, I won't throw a stone if you don't have Apple devices.
    I tried on my Android system, same thing: Gray interface.
    Now I made sure not to have any styles, and also tried the ControlType of the ListView to be set  to Styled or Platform. No change.
    Smartphones are gray. macOS, Windows are colorful with the color I picked...
    Very strange.

     


  4. Mhh,

    @Serge_G I implemented your code and it works fine except... on iOS. Nothing happens.
    Then I downloaded your code from the website you mention, compiled. Same thing. Ok on macOS, Windows, but not iOS. 

    Don't have my Android device here, so I can't say.

     

    Any idea why damn iOS won't colorize?
    Steve


  5. 2 hours ago, Sherlock said:

    Have you really been able to debug on an iDevice running anything above iOS10?

    Yes, 
    Just tried on an "old" iPhone 6S under iOS 12.4.1
    Xcode 10.3

    RADStudio Rio 10.2.3

    iOS SDK in RADStudio: iPhoneOS 12.2 and 12.4 as well. 

    Here are screenshots of the breakpoint in RADStudio and the "frozen" splash screen of the app at launch, just waiting for me to continue into the code.

    Screen Shot 2019-09-23 at 18.52.40.png

    IMG_2055.PNG


  6. I found an example from Rahiche Raouf, an excellent MVP in Algeria. He has an example on how to colorize a list view by adding a TListItemTextButton

    But unfortunately it seems that it doesn't work in Rio anymore. Modifying text, etc... works fine, but not the TintColor.

    procedure TForm1.ListView1UpdateObjects(const Sender: TObject;
      const AItem: TListViewItem);
    var
       textRect : TListItemTextButton ;
    begin
       textRect := AItem.View.FindDrawable('Rectangle') as TListItemTextButton ;
       textRect.TintColor := TAlphaColorRec.Green ;
       textRect.Text := 'Hello' ;
    end;

    This doesn't seem to work anymore 😞 
    I'll investigate further and post back once (because it will!) it works!!!


  7. Ok after tinkering with it, it seems that there is no way to multi select except when in Edit mode.

    Problem is I absolutely don't want it to be in Edit mode, and I don't want the check boxes to be shown...

    Hard to believe that such a basic feature is not implemented in TListView.

    I tried to work around this by implementing a CustomDraw  mechanism, but even that seems not to be available, rendering ListViews useless in my case...

     


  8. Hi Dave,

    Yes I have seen this and it works, but I'm not sure I can escape the "Edit" mode.
    I'll study this. I just want to achieve a click or touch on any item and set it as selected/not selected...
    But I guess that it works the same way under the hood.

    Steve

     


  9. Hi,

    It seems that the MultiSelection property has disappeared from the TListView component. It was available in XE4 if I'm correct.

    Any quick and smart way to allow the user to touch/click any TListView item and mark it as selected?

    And then be able to access the list of the selected item? I'd like the list to draw each selected item's background in, say,  light blue!

    Thanks for any light on the technics.

    Steve


  10. Hi,

    Does anybody have experience with placing a control into the menu bar?
    Mainly I'd like to add an active control in the Mac menu bar, or the Windows toolbar.
    Is there a described or easy way to achieve that? A control that would, say, open a callout menu with information.

    Thanks for any light

    Steve


  11. I have an empty VM that just has Windows 10 Pro 64-bit and Rio 10.3.2
    I can find some COMCTL32.DLL files

    c:\windows\system32, version 5.82

    c:\windows\SysWOW64, version 5.82

    c:\Windows \WinSxS, version 5.82
    None of them are actually in Rio.

    Very strange.

    I'm using an FMX app, not a VCL.

     

    I removed all manifest and entitlement files, recompiled... still the same problem

     


  12. Hi,

    Just wanted to recompile an app I wrote a year ago that compiles fine under Tokyo, Seattle, Rio 10.3...
    Now under 10.3.2 if I compile it, no matter what the target platform, I get this error message while debugging:

    Project raised exception class EComponentError with message 'This control requires version 4.70 or great of COMCTL32.DLL'
    

    Of course I have strictly no idea whatsoever of which component is at the source of the problem.

    Any idea what could be the cause?

    Thanks for any light.

    Steve


  13. Just compiled 1.3.13.77 and it crashes depending on a specific configuration with 10.3.2 (same on 10.3.1)

    First, I moved GExperts to the Tools menu.

    Then everything is fine, I can launch the IDE but it always stalls at launch time for about 20-30 seconds when stating "All IDE packages loaded".

    Minor problem.

     

    Now, it doesn't crash when exiting except when I uncheck "Disable all editor enhancements".

    When unchecked, then I configure the editor toolbar with some commands I want.

    Now when I exit RadStudio, I get the infamous Exception (see screenshot)

    If I disable all editor enhancements, then exiting RadStudio is fine.

     

    On the screenshot, Y:\prov\GExperts is the directly where I compiled 1.3.13.77

     

    Hope this helps. Can anyone else with the crash confirm that editor enhancements are enabled?

     

    Steve

     

    Screen Shot Gexpert error.png

    • Like 1
×