sptbxlib icon indicating copy to clipboard operation
sptbxlib copied to clipboard

Menu dropdowns right aligned on touchscreen pcs.

Open MShark67 opened this issue 5 years ago • 3 comments

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.

MShark67 avatar Apr 01 '19 10:04 MShark67