| View previous topic :: View next topic |
| Author |
Message |
paul44 Expert Cheater
Reputation: 3
Joined: 20 Jul 2017 Posts: 223
|
Posted: Fri Jul 31, 2026 7:02 am Post subject: Memo-field: vert. scrollbar not activating [Solved] |
|
|
I have this situation: [ https://ibb.co/jvCmd6mg ]
I've tried to en/disable all sorts of properties for this object (incl ReadOnly off); but no cigar. I did find an article about a (related) bug in Delphi (some years back).
Another article claimed it to be related to used font (in this case: Courier)?
Possible workarounds:
a. "attach" a scrollbar to the memo-object: no idea how to do that
b. embed the memo in a scrollbar object: i think having done this already on another tab, so probably doable
Anyways: before i go into the workaround-ing, there is probably a simple solution to this problem...
Obviously, if one needs more info, just shout.
Last edited by paul44 on Fri Jul 31, 2026 11:01 am; edited 1 time in total |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25980 Location: The netherlands
|
Posted: Fri Jul 31, 2026 7:31 am Post subject: |
|
|
set the scrollbar property to "ssBoth" (not autoBoth)
and wordWrap to false
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
paul44 Expert Cheater
Reputation: 3
Joined: 20 Jul 2017 Posts: 223
|
Posted: Fri Jul 31, 2026 10:30 am Post subject: not yet there (nearly there...) |
|
|
unfortunately, did not work ?
just for completeness sake: (2 related articles i found earlier)
1. stackoverflow: [ https://stackoverflow.com/questions/5091018/enable-scroll-bars-in-disabled-tmemo-control ]
2. freepascal: [ https://forum.lazarus.freepascal.org/index.php?topic=30468.0 ]
and what i can do: memo within scrollbar_object: [ https://ibb.co/27kDhgGC ]
=> do not really like this workaround as you need to drag memo_field past scb-boundaries upto...
==> unless there is a function that allows to get approx. height for a memo-field with "known" width ?! (but still feels messy, me think)
-EDIT-
while making ptrscreens, and doing some other stuff (?) i got it working now ?! And i have no idea why... [ https://ibb.co/whxSDm5y ]
ps: this is done in a test_table, so fingers crossed i can get it working in "live" version as well...
-EDIT2-
The 'Enabled' property flag needs to be set to 'True'; no idea what if flags; nor why it was set to False in the 1st place... kids
|
|
| Back to top |
|
 |
|