Skip to content

Menu dropdowns right aligned on touchscreen pcs. #46

@MShark67

Description

@MShark67

Currently applications made with the SpTBX will show menus as right aligned to their parent button on touchscreen pcs. This is due to the GetSystemMetrics(SM_MENUDROPALIGNMENT) call in TB2Items.pas. Touchscreen PCs return a non-zero value for this to indicate right alignment (supposedly this default is because most using a touch screen are right handed.) On the surface this would appear to be the correct thing to do, but no other applications seem to adhere to this which makes SpTBX (or TB2 really) applications stand out. It seems this metric should only be used for popup menus and not drop down ones (or at least that appears to be the convention.) This is specifically an issue in TB2Items.pas and not in SpTBX code. This change would have to be part of the TBX patch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions