Alan Montgomery

Forum Replies Created

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • in reply to: Hints not disappearing. #71107
    Alan Montgomery
    Participant

    I did – though I think OnCheckTimer is called only once after showing the hint and does the cleanup after showing the hint.
    I also looked at OnCtrlTimer. It gets called repeatedly but I think all it does is hide the hint if you go outside the window – which was working.
    IIRC it is the TApplication that hides the hint on timeout and it was failing because it had a hint control but that control didn’t have a handle.

    in reply to: Hints not disappearing. #71105
    Alan Montgomery
    Participant

    There is a TsAlphaHints on the application’s main form which is the one where I first noticed the problem.

    in reply to: TsColorBox misdrawn when moving down. #70976
    Alan Montgomery
    Participant

    The attached image shows the issue.
    It shows two TsColorBox controls both set to Navy.
    In the second I selected the colour before navy, closed the drop down, and then pressed the down key.

    Attachments:
    You must be logged in to view attached files.
    in reply to: TsButton misdrawn when not skinned. #70235
    Alan Montgomery
    Participant

    Today the performance issue isn’t showing. I guess it was an issue with not having build the intermediate library.

    To see the issue with the button changing to split while hidden the existing demo above should show it if you recompile it.

    in reply to: TsButton misdrawn when not skinned. #70233
    Alan Montgomery
    Participant

    Updated to 16.13
    It is now drawn as expected most of the time.
    There is still an issue if the button is hidden, then changed to a split button and then shown.

    I am seeing a significant performance issue.
    I have an application. When I select an item in a tree view it builds a panel to show details based on properties of the associated object.
    In one example this produces a panel with 5 edit boxes, 4 check boxes 10 labels and 4 buttons.
    With 16.12 clicking on an item resulted in the form appearing immediately. There is a flicker as the previous panel disappears and is replaced.
    With 16.13 there is a blank view for 4 or 5 seconds before the new panel appears.

    In another case the panel has 3 edit boxes, 4 labels and 1 button and it is very much quicker but it is still a second or so.
    Note this application isn’t skinned but the control it uses to build the panel uses skinned components.

    in reply to: TsButton misdrawn when not skinned. #70214
    Alan Montgomery
    Participant

    I have updated to 16.12 but it hasn’t had any effect.

    in reply to: TsButton misdrawn when not skinned. #70211
    Alan Montgomery
    Participant

    It is drawing it as a command link.
    When I set breakpoints on the drawing code I only hit it for bsPushButton not for the other styles.

    in reply to: Access Violation when deleting TsCheckbox #70188
    Alan Montgomery
    Participant

    I have attached a reworked exe and full project.
    It should now need less bpls – hopefully only Berlin ones.

    To see the issue run the exe and select the checkbox, then press enter.
    To see it work correctly click the apply button.
    They both call PopulateEditor that destroys the TsCheckBox.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Access Violation when deleting TsCheckbox #70178
    Alan Montgomery
    Participant

    Skin is Material Dark and needs to be in C:\AlphaSkins\Skins
    Run the app and press enter to get the exception.

    FreeAndNil is always better than Free – if you do end up using it later you can tell it is a nil pointer use rather than an arbitary address (or worse it works and corrupts some other object). It also means the exception is in the the deleted object not several levels down.

    Attachments:
    You must be logged in to view attached files.
    in reply to: TsPopupCalendar does not show invalid dates #70089
    Alan Montgomery
    Participant

    The dates in the green box – these are from the previous month so should be dimmed more.
    The dates in the blue box – these are weekend but have completely lost the weekend styling.

    Also the valid dates from next month are very similar to the invalid dates from this month.
    The only difference is the background and doesn’t get noticed when it is some distance apart.
    If the max date is changed to 3rd June then it is clearer as the two are adjacent.

    Attachments:
    You must be logged in to view attached files.
    in reply to: TsPopupCalendar does not show invalid dates #70086
    Alan Montgomery
    Participant

    The attached image shows the lack of differentiation in invalid dates.

    Attachments:
    You must be logged in to view attached files.
    in reply to: TsPopupCalendar does not show invalid dates #70085
    Alan Montgomery
    Participant

    The blocking when clicking next year is fixed.
    I get an odd selected day issue.
    Min Date: 17/05/2021
    Max Date: 08/06/2021
    Default Date: 07/06/2021

    Open the popup 7 is highlighted.
    Click Prev month – nothing is selected.
    Click Next month – 7 is still selected.
    Click Next month – 8 is now selected (max date)
    Click Prev month – nothing is shown selected.
    Click Prev month – no change.
    Click Next Month – 21 is shown selected.
    This is outside the valid range – 21 is the same cell as min date was when showing May.
    Click Next month – 8 is now selected (max date)
    I don’t the selected date highlight should be moving it should remain on 7/6 until a date is selected.

    in reply to: TsPopupCalendar does not show invalid dates #70071
    Alan Montgomery
    Participant

    I have updated to 16.10 and this changes things but doesn’t fix the issue.

    It never goes through the code to dim dates.
    In TsCalendGrid.DrawCell after checking FOwner.DimUnacceptedCells it sets CanAccept but this is always set true so it never goes into the code to dim the cell.
    If I instead set CanAccept to FOwner.IsValidDate(aDate) then I can see the effect.

    The effect isn’t ideal.
    The out of month and weekend highlights aren’t applied so you just get a uniform block.
    At the min date month it looks odd to have the titles normal, then a dimmed block, and then the selectable dates.
    At the max date month the block is at the end so doesn’t have that problem so much.

    I am also seeing an odd effect on clicking next/prev year.
    I have it set so that min date is mid last month and max date is early this month.
    If I click prev month it goes to last month.
    If I then click next year nothing happens.
    If I then click next month nothing happens.
    If I then click next year it goes to this month.
    It appears as if clicking next year is not navigating properly and is blocking next month until next year is clicked a second time.

    in reply to: TsPopupCalendar accepts clicks on invalid dates #70070
    Alan Montgomery
    Participant

    I have updated to 16.10 and this fixes a and c. Issue b I have raised in another item so I will update it.

    in reply to: TsPopupCalendar accepts clicks on invalid dates #70068
    Alan Montgomery
    Participant

    I have a version without the internal skin – it needs Material Dark in C:\AlphaSkins\Skins
    It also has runtime packages turned on.

    Attachments:
    You must be logged in to view attached files.
    in reply to: TsPopupCalendar accepts clicks on invalid dates #70067
    Alan Montgomery
    Participant

    Delphi appears to be struggling to produce an exe that zips to less than 4MB

    in reply to: TsPopupCalendar accepts clicks on invalid dates #70066
    Alan Montgomery
    Participant

    The attached exe shows 3 issues.
    a) If you click on an invalid date the popup closes and “accepts” a different date to the one clicked.
    Run the exe and click to show the popup.
    Go back to May
    Click on the 4th of may.
    The popup closes and 17 May is shown as having been selected.

    b) You can’t tell that dates before 17th May or after 8 June are invalid.
    Run the exe and click to show the popup.

    c) If you click on next month when in the month of the max date it animates “to” the same month, and may change the selected Day of the Month.
    It took me a while to realise it wasn’t changing. Less technical users may struggle.
    previous month has the same problem.
    Note: Next / prev year doesn’t limit the new date to be in the min/max.
    Run the exe and click to show the popup.
    Click next month.

    There is an option With fixes when checked
    a) If the LMouseButtonDown didn’t select the cell then the LMouseButtonUp does not call CalenderClick
    b) It blends with GetGlobalColour instead of Canvas.Bruch.Color
    c) If ChangeMonth doesn’t change the month it doesn’t do the if/else block

Viewing 17 posts - 1 through 17 (of 17 total)