Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing Window

Status
Not open for further replies.

Negator

Programmer
Oct 4, 2003
33
RU
Hello friends!

Please give me an advice: how to limit the size of the window while user resizes it. For example, I have some:

integer MinWidth = ..
integer MinHeigth = ..

Tried to use Resize method in Resize event, but it works strange, and looks like bad solution.

Thank you!
 
pfc_postopen event
--------------------

// Setup resize handler ...
this.of_setresize (true)
ii_min_width = this.width
ii_min_height = this.height
'
// ... with all of the controls
inv_resize.of_register (cb_close, "FixedToBottom")
inv_resize.of_register (cb_save, "FixedToBottom")
inv_resize.of_register (dw_edit, "ScaleToRight")
inv_resize.of_register (cb_display_history, "FixedToBottom")

resize event [override ancenstor script]
-------------
this.setredraw (false)

super::event resize (sizetype, newwidth, newheight)

if this.width < ii_min_width then resize(ii_min_width, this.height)
if this.height < ii_min_height then resize(this.width, ii_min_height)

this.setredraw (true)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top