Jump to content

Right to left text in label, mac address control


Ibrahim
 Share

Recommended Posts

first of all i wanna do a label that contain text written from right to left

second i wanna do a mac address control" Only Hex"<<--if any can help giving me the condition for hex that wouldn't allow the user to write any character that would be an invalid mac address

sorry for the two questions and sorry for being a spammer

I'm not a spammer Guys!!!!!!!........I did so much with this beautifull language.!

Link to comment
Share on other sites

Try this for the MAC address:

Do
    $str = InputBox("","Enter MAC Address (XX-XX-XX-XX-XX-XX)")
Until StringRegExp($str,"^(?:[[:xdigit:]]{2}[-]){5}[[:xdigit:]]{2}{:content:}quot;,0)

msgbox(1,"","Hooray!  Correct MAC entered")
Thanks man u put me on the track

can i do the condition on a GUICtrl control instead of the stand alone input box with realtime warning whenever the user enters an invalid character for a MAC Add

Hope anybod help with the right to left text on the label,i tried the styles and exxstyles but not working<<===it's only alignment

Why am I still a spammer--i have three stars and it's not a birth mark i'm telling u!!

Link to comment
Share on other sites

Ibrahim

This?

#include <GUIConstants.au3>
#include <String.au3>

Dim $text = "Hello world!"

$text = _StringReverse($text)

GUICreate("Test GUI", 200, 100)

GUICtrlCreateLabel($text, 30, 20, 100, 16, $SS_RIGHT)
GUICtrlSetFont(-1, 10, 800)

GUISetState()

Do
Until GUIGetMsg() = -3
Already Tried it,But without the stringReverse as it distort the text as u know,but this is not right to left writing it's some sort of alignment

what i want is like when u switch the direction of writing

and Thanks man for it. :D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...