Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Wed Nov 22, 2017 7:32 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Jun 18, 2012 6:16 am 
Offline

Joined: Thu Oct 09, 2008 2:37 pm
Posts: 13
Hi,
Would like to have an password change function where the current password and new password are entered.
Is it possible to configure an edit box to have two lines and password mode?
CoreEditBox has boxType as editBox_type where eb_Password and eb_Multiline are possible values, but is it possible to configure it having both eb_Password and eb_Multiline ?


Top
 Profile  
 
PostPosted: Mon Jun 18, 2012 8:16 am 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
Try putting a LabelV2 object in front of the EditBox (covering it) with the same width and height as the EditBox. Then put this code in the EditBox.

Code:
init boxtype := eb_multilinescroll

func OnChange()
    dim i as integer
    dim txt as string

    Redim(txt, Len(editbox_1.Value))
    for i = 0 to Len(txt)-1
        if editbox_1.Value[i] == '\n' or editbox_1.Value[i] == '\r' then
            txt[i] := '\n'
        else
            txt[i] := '*'
        endif
    next
    label_1.value = txt
endfunc

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group