| Subject |
Re: Adjusting font size |
| From |
Andy Taylor <andy.taylor.1959@outlook.com> |
| Date |
Fri, 24 Mar 2023 16:43:27 +0000 |
| Newsgroups |
dbase.getting-started |
Hi Tom,
An update - I did some more checking and there is a way that you can
get access to the font size setting of the editor window that opens up.
I was wrong when I said earlier that the window is not part of the grid.
When the window is opened (but not before) it gets instantiated as a
property of the grid - for your memofield the address would be:
form.grid1.columns.["column11"].editorControl.memoEditor.fontSize=30
However, that is complex dBASE programming because you cannot use that
address until the memoEditor exists. If you REALLY HAVE to do it this
way then I could create a method for the form that would do it - just
let me know.
Andy
> Hi Tom,
>
> I fiddled about with a sample form of mine and I now see what you're
> doing. You have set the editorType for column11 to 1-EntryField.
>
> What it does not say in the online help is that opens up a stock dBASE
> editor window that you have very little control over - because that
> window is not part of the grid or even your form. You can change the
> font size but you have to do it via the dBASE editor menu that appears
> at the top of the screen.
>
> In my view, you are much better off setting the editorType to the normal
> default of 5-Editor which is controlled as part of the grid and which
> respects the font sizes set as part of the grid object.
>
> You could also use a separate editor object sat on the form with a
> datalink into the right field.
>
> Regards,
> Andy
>
>> On 3/24/23 10:22 AM, Andy Taylor wrote:
>>> Hi Tom,
>>>
>>> Do us a favour and send a picture that actually shows the font
>>> settings for:
>>>
>>> form.grid1.columns["column11"].editorcontrol
>>>
>>> I bet that the font setting in there is 0.00
>>>
>>> That is the font size that Ken wants you to change - whack it up to
>>> 30 if you want to make the text really obvious.
>>>
>>> Hope that helps,
>>> Andy
>>>
>>>> On 3/23/23 6:43 PM, Ken Mayer wrote:
>>>>> On 3/23/2023 1:44 PM, Tom wrote:
>>>>>> Hi all,
>>>>>>
>>>>>> Is there a way to adjust the font size (larger) in the editor
>>>>>> control popup window. Awfully small for older eyes.
>>>>>
>>>>> Tom -- is this the editor component of dBASE? If so, yes. Open the
>>>>> form in the form designer, select the component, and set the font
>>>>> size (it is a property "fontSize") using the Inspector. >
>>>>
>>>> No, not in the editor window ...
>>>>
>>>>> Otherwise, where is this window coming from? You need to provide
>>>>> more details.
>>>>>
>>>>> Ken
>>>>>
>>>> Hi Ken,
>>>>
>>>> New picture more helpful? Changing the font size in the inspector
>>>> has no effect on the size of the font used in the window to display
>>>> the field's contents.
>>>>
>>>> Tom
>>>
>> Hi Andy,
>>
>> In my second post I said ...
>>
>> "Changing the font size in the inspector has no effect on the size of
>> the font used in the window to display the field's contents."
>>
>> Sorry, but you would loose your bet.
>>
>> Attached images show my new test value which originally was 13.0 which
>> is what I use for Editor objects. Running it up higher has no effect
>> on the font size displayed in the new window when you left double
>> click the column entryfield. See FontSize4 image for Grid setting.
>>
>> Thanks,
>> Tom
>>
>>
>
|
|