How to change terminal Font? - WeOnlyDo Discussion board

How to change terminal Font? (wodTelnetDLX)

by enaiman, Tuesday, October 02, 2007, 07:56 (6261 days ago)

Just downloaded the evaluation version today and started playing with.
I'm using AutoIt to create a GUI for switch configuring.
I've been using previously TeraTerm but I decided to get rid of 3rd party software and to find something I can integrate into my GUI. So far I'm very happy with TelnetDLX and I'm almost 90 sure that I'll buy the product soon.

What I failed to do is to sent the terminal font - the background color and the Foreground were very easy to set.
No matter what value I try to assign for Font - I get an error The requested action with this object has failed

What I try to do is:
$Telnet1.Font = Arial
and it fails ...
Tried also Courier , Tahoma but none of them worked...

Can you tell me please what values are accepted for this Property?

Thank you,

Re: How to change terminal Font?

by wodDamir, Tuesday, October 02, 2007, 09:02 (6261 days ago) @ enaiman

Hi Enaiman,

You should do something like this:
---------------------------
Dim f As StdFont
Set f = New StdFont

f.Name = Verdana
f.Bold = True
wodTelnetDLX1.Font = f
---------------------------

The Font Property doesn't accept String value for value. Instead it uses a Font object for that.

Hope I helped.

Regards,
Damba

Re: How to change terminal Font?

by enaiman, Thursday, October 18, 2007, 02:28 (6245 days ago) @ wodDamir

@wodDamir - thank you for your reply ... I've been researching this and unfortunately I couldn't find a working solution ... so I gave up and kept the original font.

Re: How to change terminal Font?

by wodDamir, Thursday, October 18, 2007, 08:58 (6245 days ago) @ enaiman

Hi,

I'm not sure on your programming environment, but in most of them, you can declare a Font object.

You would need to do the same in your IDE, set the required fonts, and then pass it to the component.

Could you perhaps use my code and rewrite it in your Environment?

Regards,
Damba

Re: How to change terminal Font?

by enaiman, Friday, October 19, 2007, 00:51 (6244 days ago) @ wodDamir

Hi,

Could you perhaps use my code and rewrite it in your Environment?

Regards,
Damba

Just did it and it worked :)

here is how it looks:

[code]$Tfont = ObjCreate( StdFont )
$Tfont.Name = Courier
$Tfont.Size = 9
$Tfont.Bold = False
$Telnet1.Font = $Tfont [/code]

By the way ... I'm using AutoIt and if you're interrested I could provide some code samples later to be included in your new releases.
Just let me know about.

If you want to take a look at AutoIt here are the links for Main Page and Support Forum
It is a very active community and it definitely has a future.

Re: How to change terminal Font?

by woddrazen, Saturday, October 20, 2007, 12:14 (6243 days ago) @ enaiman

Hi Eugen,


Thank you for effort to make us example for AutoIt.

Currently we don't need sample for AutoIt but if someone ask for that kind of sample we will send you reply and ask you for a help.

If you wish you can send us step by step guide how to add wodTelnetDLX in AutoIt and we will add it to our Knowledge base.

Something like this:
http://www.weonlydo.com/index.asp?kb=1&View=entry&EntryID=67


Best regards,
Drazen