The last few hours I’ve tried to make the DirectEntryScroll work for me, unfortunately unsuccessfully. .I looked at the code in showbase/DirectEntryScroll and thought that I understood the logic in the code, but still can not make when I go to the end of the entry this entry to scroll and move the cursor in the center. With different options for clipSize it acts unexpectedly for me and I’m forced to look for help in the forum hoping someone can help with this issue.
This is some sample example with the current problem.
import direct.directbase.DirectStart from direct.gui.DirectGui import * from pandac.PandaModules import * entry = DirectEntry(scale = (0.1, 1, 0.1)) scrolledEntry = DirectEntryScroll(entry, clipSize = (-1, 1, -1, 1), relief = 0) run()
I actually uncommented the ‘print’ in the source so this is what Panda says