| View previous topic :: View next topic |
| Author |
Message |
Jos Newbie
Joined: 13 Aug 2007 Posts: 2
|
Posted: Mon Aug 13, 2007 9:23 pm Post subject: edit dialog font style |
|
|
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 |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Aug 14, 2007 4:54 am Post subject: |
|
|
| 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 |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Tue Aug 14, 2007 11:36 am Post subject: |
|
|
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 |
|
 |
Jos Newbie
Joined: 13 Aug 2007 Posts: 2
|
Posted: Tue Aug 14, 2007 3:11 pm Post subject: |
|
|
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 |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Aug 14, 2007 7:13 pm Post subject: |
|
|
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 |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Aug 16, 2007 6:46 pm Post subject: |
|
|
| 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 |
|
 |
|
|
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
|
|