forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


edit dialog font style

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Jos
Newbie


Joined: 13 Aug 2007
Posts: 2

PostPosted: Mon Aug 13, 2007 9:23 pm    Post subject: edit dialog font style Reply with quote

Maybe it has been discussed but cab not find it.

Can anyone tell how to set set the allingment right instead of left.
I would like to present numbers in a edit dialog element.

DIALOG ADD,STYLE,stlR,,,R,,
DIALOG ADD,EDIT,txtNo,10,10,100,,0,,stlR

thanks in advance
Back to top
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Aug 14, 2007 4:54 am    Post subject: Reply with quote

I think you want to use @FILL(text,L) @FILL(text,R) etc.. not sure what you mean there though, hope this helped.
Back to top
View user's profile Send private message Visit poster's website
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Tue Aug 14, 2007 11:36 am    Post subject: Reply with quote

Hi Jos,

I don't think the styles work on edit boxes. They do work on text elements though.

Code:
  DIALOG CREATE,New Dialog,-1,0,240,160
  DIALOG ADD,STYLE,stlR,,,R,,
  DIALOG ADD,EDIT,txtNo,10,10,100,,0,,stlR
  DIALOG ADD,TEXT,TEXT1,59,21,88,13,TEXT1,,stlR
  DIALOG SHOW


But someone may know of an API sendmsg command to set edit box text as right justified.

_________________
cheers

Dave
Back to top
View user's profile Send private message
Jos
Newbie


Joined: 13 Aug 2007
Posts: 2

PostPosted: Tue Aug 14, 2007 3:11 pm    Post subject: Reply with quote

Hi,

Thanks vtol and dave!
I found a work around but it is stange that all other style items like colour and font and Bold ect. works on a edit element except justify.

Hope that someone knows a API sendmsg code.

DIALOG CREATE,Sample edit ,-1,0,240,160
DIALOG ADD,STYLE,stlR,Thahoma,10,BIUSR,YELLOW,
DIALOG ADD,LINE,lnNo,30,30,100,20
DIALOG ADD,TEXT,lblNo,31,31,97,17,5.00,,stlR,CLICK
DIALOG ADD,EDIT,txtNo,30,30,100,,,,stlR,EXIT
DIALOG HIDE,txtNo
DIALOG ADD,EDIT,txtTMP,60,30,100,,5.00,,stlR
DIALOG SHOW
:Evloop
WAIT EVENT
GOTO @EVENT()
:lblNoCLICK
DIALOG SHOW,txtNo
DIALOG SET,txtNo,@DLGTEXT(lblNo)
DIALOG FOCUS,txtNo
GOTO EVLOOP
:txtNoEXIT
DIALOG SET,lblNo,@DLGTEXT(txtNo)
DIALOG HIDE,txtNo
GOTO EVLOOP
:Close
EXIT
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Tue Aug 14, 2007 7:13 pm    Post subject: Reply with quote

You can't change an edit box's justification style after it has been created, and in VDS you can't set it before you create it, so I don't believe it will work in VDS.
_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Thu Aug 16, 2007 6:46 pm    Post subject: Reply with quote

I've made fake edit box's with text and BMP before, maybe that will do as a work around, or maybe theres a DLL DSU that can handle EDIT+(justify)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
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 can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group