Home » Developer & Programmer » Forms » set_window_property
set_window_property [message #289280] Thu, 20 December 2007 09:11 Go to next message
shivaram9
Messages: 35
Registered: August 2006
Member
Hi All,

I wanted to change my window height dynamically.

my intial canvas and window height is 69
but i may or may not display items on my canvas after height 30

so when i do not display items on my canvas after 30 i want to reduce the window height to 30 and canvas height to 30
and using the below built ins

set_canvas_property('My_Canvas',height,30);
set_window_property('My_Window',height,30);

but when i do this, my window height is modified to 8 (do i have to do some pre-requisites before setting this).

Thanks,
Shiva
Re: set_window_property [message #289357 is a reply to message #289280] Thu, 20 December 2007 22:08 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
How do you know it is '8'? Do your have a toolbar or other canvas on your window?

David
Re: set_window_property [message #289425 is a reply to message #289357] Fri, 21 December 2007 10:20 Go to previous messageGo to next message
shivaram9
Messages: 35
Registered: August 2006
Member
I have another stacked canvas, its height is 9.
Re: set_window_property [message #291360 is a reply to message #289425] Fri, 04 January 2008 00:13 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Have you solved your problem?

David
Previous Topic: List element
Next Topic: CAPTURE IMAGE BY 10 G
Goto Forum:
  


Current Time: Wed Dec 07 08:50:46 CST 2016

Total time taken to generate the page: 0.22951 seconds