I added some drag/drop code to reorder Tabs to my MoveAnchor demo.I used some code from AddTabb/RemTab functions and found some help for this on Gary Beanes website. https://bcxbasiccoders.com/bcxusers/ian/programs/TabReOrderAnchor.zipI hope this helps.
GLOBAL Days$[7]
Two Variables Line 49 in Module: TabReOrderAnchor.bas : Days[7]=[BCXSTRSIZE] as char * previously defined at Line 47 in Module: TabReOrderAnchor.bas : Days[7][BCXSTRSIZE] as char *
SET Days$[7]
pa = malloc(SIZEOF(*pa))
pa = (LPANCHOR)malloc(SIZEOF(*pa))
Hi All,I have re-written this code to allow usage with multi-line Tab controls. The trick being to turn of the BCX sub-classing of the Tab control and using code in WM_LBUTTONDOWN & WM_LBUTTONUP to complete the needed functions.The code is at:https://bcxbasiccoders.com/bcxusers/ian/programs/TabReOrderAnchor.zipI also updated the Toaster code to use the new centering code.https://bcxbasiccoders.com/bcxusers/ian/programs/ToasterA.zip