From you source file. when user select  A=B=0 you should only have horizontal line.
If you change so that B<>0, you will be able to drag xp1,yp1 horizontally.
(Check the logic at "interactivity" and "displaywithout" zero pages on your code).