数据窗口中的图片控件如何自适应图片大小
数据窗口中的图片控件怎么自适应图片大小
如题 我不知道是要写程序控制 还是对这个控件的属性进行设置 我用的是pb11.5版本的 望各位大侠帮忙 谢谢
------解决方案--------------------
使用数据窗口的modify方法
------解决方案--------------------
这个估计得写代码。。。
------解决方案--------------------
试了一下 这个应该满足你要求 存成w_1 导入到你PBL里 看下效果
如题 我不知道是要写程序控制 还是对这个控件的属性进行设置 我用的是pb11.5版本的 望各位大侠帮忙 谢谢
------解决方案--------------------
使用数据窗口的modify方法
------解决方案--------------------
这个估计得写代码。。。
------解决方案--------------------
试了一下 这个应该满足你要求 存成w_1 导入到你PBL里 看下效果
$PBExportHeader$w_1.srw
forward
global type w_1 from window
end type
type p_2 from picture within w_1
end type
type st_1 from statictext within w_1
end type
type cb_2 from commandbutton within w_1
end type
type cb_1 from commandbutton within w_1
end type
type p_1 from picture within w_1
end type
type gb_1 from groupbox within w_1
end type
end forward
global type w_1 from window
integer width = 2533
integer height = 1408
boolean titlebar = true
string title = "Untitled"
boolean controlmenu = true
boolean minbox = true
boolean maxbox = true
boolean resizable = true
long backcolor = 67108864
string icon = "AppIcon!"
boolean center = true
p_2 p_2
st_1 st_1
cb_2 cb_2
cb_1 cb_1
p_1 p_1
gb_1 gb_1
end type
global w_1 w_1
on w_1.create
this.p_2=create p_2
this.st_1=create st_1
this.cb_2=create cb_2
this.cb_1=create cb_1
this.p_1=create p_1
this.gb_1=create gb_1
this.Control[]={this.p_2,&
this.st_1,&
this.cb_2,&
this.cb_1,&
this.p_1,&
this.gb_1}
end on
on w_1.destroy
destroy(this.p_2)
destroy(this.st_1)
destroy(this.cb_2)
destroy(this.cb_1)
destroy(this.p_1)
destroy(this.gb_1)
end on
type p_2 from picture within w_1
boolean visible = false
integer x = 1367
integer y = 68
integer width = 165
integer height = 144
boolean originalsize = true
boolean focusrectangle = false
end type
type st_1 from statictext within w_1
integer x = 1486
integer y = 104
integer width = 457
integer height = 72
integer textsize = -12
integer weight = 400
fontcharset fontcharset = ansi!
fontpitch fontpitch = variable!
fontfamily fontfamily = swiss!
string facename = "Arial"
long textcolor = 33554432
long backcolor = 67108864
string text = "1152X1256"
boolean focusrectangle = false
end type
type cb_2 from commandbutton within w_1
integer x = 1810
integer y = 840
integer width = 457
integer height = 128
integer taborder = 10
integer textsize = -12
integer weight = 400
fontcharset fontcharset = ansi!
fontpitch fontpitch = variable!