| View previous topic :: View next topic |
| Author |
Message |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Mon May 30, 2011 5:15 pm Post subject: Need help to Resize dialog with inside control [SOLVED] |
|
|
Hi,
I have to resize and reposition the entries from a dialog, when I resize, I tried to use dynapos4 but I had some problems, this is the code of the dialog on which I work:
| Code: | DIALOG CREATE,%%Titolo,-1,0,460,441,RESIZABLE,BALLOONTIPS,DRAGDROP,CLASS Main,ONTOP MAIN
DIALOG ADD,STYLE,Simboli,Webdings,8,B,BLACK,,B,BLACK,
DIALOG ADD,STYLE,lice,Times New Roman,12,BIUC,,RED
DIALOG ADD,STYLE,Mess,Verdana,8,B,80FF00,
DIALOG ADD,STYLE,STYLE1,Verdana,8,B,,
DIALOG ADD,STYLE,STYLE2,Verdana,8,,,
DIALOG ADD,STYLE,STYLE3,Verdana,,B,66|160|255,
DIALOG ADD,STYLE,STYLE4,Verdana,,BL,,
DIALOG ADD,TABLE,TABLE1,69,8,446,350,Contents[220]|File comment[221],,,CLICK,COLUMNSORT,DBLCLICK,STYLE3
DIALOG ADD,COMBO,Gruppi,45,60,271,23,,,LIST,CLICK
DIALOG ADD,TEXT,TEXT1,51,13,50,13,Groups:,,STYLE1
DIALOG ADD,STATUS,Stato,Stato
DIALOG ADD,ANIICON,Wait,14,392,40,36,#Wait.ani
Dialog Show
dialog hide,wait |
I know it's easy to do masinceramente I have trouble understanding how to do , I can search for some kind soul please help? 
Last edited by Tdk161 on Mon May 30, 2011 7:34 pm; edited 1 time in total |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 766 Location: Eastman, GA
|
Posted: Mon May 30, 2011 6:32 pm Post subject: |
|
|
Little confused here about whether you want help with a dynpos solution or just resize...or a dynpos like solution due to other requirements.
Here's how to resize your table using standard means.
| Code: | :resize
dialog setpos,table1,,,@diff(@dlgpos(,w),15),@diff(@dlgpos(,h),100)
goto evloop |
Thanks,
cnodnarb |
|
| Back to top |
|
 |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Mon May 30, 2011 7:34 pm Post subject: |
|
|
cnodnarb
a lot of thanks, your code work fine and solved my problem
and about dynpos4 using your code sample I decided to not use for my actual project, maybe in the future prj yes
thank you again |
|
| 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
|
|