Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


how to automatically resize a label

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sat Nov 24, 2007 8:43 am    Post subject: how to automatically resize a label Reply with quote

as the topics tells you Very Happy

source :

Private Sub Timer1_Timer()
If Label1.Font.Size < 60 Then
Label1.Font.Size = Label1.Font.Size + 5
End If
End Sub

if you want you can add this :
'Else
'Timer1.Enabled = False

all it really does it saves your memory, haha.



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Nov 24, 2007 2:20 pm    Post subject: Reply with quote

You should use GetTextExtentPoint32 to make it more accurate.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sun Nov 25, 2007 6:40 am    Post subject: Man ;D Reply with quote

Wiccaan wrote:
You should use GetTextExtentPoint32 to make it more accurate.

Man ;D
Everything dosen't have to be symmetric, i like it as it is hahaha Very Happy

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Nov 26, 2007 12:27 am    Post subject: Re: Man ;D Reply with quote

Naablet wrote:
Wiccaan wrote:
You should use GetTextExtentPoint32 to make it more accurate.

Man ;D
Everything dosen't have to be symmetric, i like it as it is hahaha Very Happy


Was just a suggestion, certain fonts will cause the text to not line up correctly if you have a "fixed" adjustment size as you do in your code.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Tue Nov 27, 2007 9:51 am    Post subject: How do i do it man? Reply with quote

Wiccaan wrote:
You should use GetTextExtentPoint32 to make it more accurate.

How do i do it man?

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites