Solved

Using Special fonts in VB

Posted on 1998-08-04
8
215 Views
Last Modified: 2013-12-02
Can the VBasic text box object support a font that works from ritght to left like in Arabic ?

1.If so how can I  include such a font in the VBasic? What would I have to do to make such a font work in VBasic?

2. What about contextual analysis of the font? Will that be supported? If not how do I get THAT to work in VBasic?
0
Comment
Question by:khurshid
8 Comments
 

Author Comment

by:khurshid
ID: 1467824
Edited text of question
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1467825
You will need to have the font installed on your computer.  
Set the RightToLeft property = True

I can't test this (so I'm leaving it as a comment) but that's pretty much the gist of it.
0
 
LVL 1

Expert Comment

by:KEWL
ID: 1467826
I think if you set the width to a negative value it reverses the text. I havnt tried this but I read it somewhere
0
 
LVL 1

Accepted Solution

by:
jf26028 earned 50 total points
ID: 1467827
You can put the font into a resource file and use it that way.  I think you can do this without installing the font.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:khurshid
ID: 1467828
To jf26028,
      What exactly do you mean by a resource file? Explain.
     
0
 

Author Comment

by:khurshid
ID: 1467829
To jf26028,
      What exactly do you mean by a resource file? Explain.

To KEWL,
      It does not accept a negative value and returns an error message as soon as I press Enter after giving it a -ive value..
To clifABB,
    I'm using VB 4.0, if you are referring to setting the Right to Left  property of the textbox object, then it does not exit in the properties menu for the textbox in VB 4.0      
0
 
LVL 1

Expert Comment

by:jf26028
ID: 1467830
A resource file is a file that can contain every resource that your program uses, such as bitmaps, avis, strings, and, I think, fonts.  If you store the font in the resource file, you can refrence it instead of just the installed fonts on the machine.  Look up resource in the help file, and also in the owners area at the microsoft site, there is a resource editot upgrade that might help you.
0
 

Expert Comment

by:EdJ
ID: 3155157
What you wanted is to Shift the Direction From left To Rigth to Right To left

In VB5 you can set the Right To Left property to True

Also Set the font to Arabic so the text will be readable

Hope this will help u !

Want it in Runtime ?

Why i'm not getting points ? Also 'm losing some watching this answers ....


E-mail Me

edjohnson@parsmail.com

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now