PFC DataWindow Resize Service
Resizes the objects within a DataWindow object including:
- columns
- computed fields
- bitmaps
- text
Doesn’t resize Composite or RichText Edit presentation styles. Used in conjunction with the window resize service, so when the window resizes the datawindow control, the controls within datawindow resize also.
The datawindow resize service is new to PFC 6.0
How do I turn the dw resize service on?
this.of_SetResize(TRUE)
this.inv_resize.of_SetMinSize(this.width – 50, this.height – 50)
How do I register datawindow columns?
of_register(object, “resize_type”)
of_register(object, (scale,) MoveX, MoveY, ScaleX, ScaleY)
- object is control, column name or dwObject
- Can’t use on composite DataWindows
- Examples:
this.inv_resize.of_Register("create_oper_id", 100, 0, 0, 0)
this.inv_resize.of_Register("create_oper_id_t", 100, 0, 0, 0)
this.inv_resize.of_Register("create_phone", 100, 0, 0, 0)
this.inv_resize.of_Register("create_phone_t", 100, 0, 0, 0)
this.inv_resize.of_Register("suggestion_text", "Scale")
this.inv_resize.of_Register("suggestion_text_t", 0, 0, 100, 0)
Handy weighted resize chart:
MoveX, MoveY: what % should the control move
ScaleX, ScaleY: What % should the control scale
|
Scale Type |
MoveX |
MoveY |
ScaleX |
ScaleY |
|
FixedToRight |
100 |
0 |
0 |
0 |
|
FixedToBottom |
0 |
100 |
0 |
0 |
|
FixedToRight&Bottom |
100 |
100 |
0 |
0 |
|
ScaleToRight |
0 |
0 |
100 |
0 |
|
ScaleToBottom |
0 |
0 |
0 |
100 |
|
ScaleToRight&Bottom |
0 |
0 |
100 |
100 |
|
FixedToBottom&ScaleToRight |
0 |
100 |
100 |
0 |
|
FixedToRight&ScaleToBottom |
100 |
0 |
0 |
100 |
No comments yet.
Leave a comment
-
Archives
- August 2009 (2)
- May 2009 (1)
- March 2009 (1)
- January 2009 (2)
- December 2008 (1)
- November 2008 (2)
- September 2008 (1)
- August 2008 (1)
- July 2008 (24)
- June 2008 (22)
- May 2008 (69)
- April 2008 (25)
-
Categories
-
RSS
Entries RSS
Comments RSS