DirectEntryScroll issue

Hi guys.
The last few hours I’ve tried to make the DirectEntryScroll work for me, unfortunately unsuccessfully. :frowning: .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 :slight_smile:

I asked this question of the engineer who developed this code, and this is what he had to say:

With small testing this code actually shows the directEntryScroll.

import direct.directbase.DirectStart 
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from direct.gui.DirectEntryScroll import DirectEntryScroll

b = DirectEntry(initialText='Enter Text Here', relief=1, width=25)
c = DirectEntryScroll(b, relief=0, scale=(0.05,1,.05), clipSize=(0,10,-1,1))

run()

Thanks for tips where to look at :wink:

1 Like