S stratus Active Member Licensed User Longtime User Apr 27, 2010 #1 Is there any way to resize form when sip is enable;I manage this in vb with dock property of controls but i can not find dock property in basic4ppc.
Is there any way to resize form when sip is enable;I manage this in vb with dock property of controls but i can not find dock property in basic4ppc.
klaus Expert Licensed User Longtime User Apr 27, 2010 #2 You should have a look at the Hardware library, there you can get SIP parameters. You cannot resize a Form on the device, you must adjust the Controls. Best regards.
You should have a look at the Hardware library, there you can get SIP parameters. You cannot resize a Form on the device, you must adjust the Controls. Best regards.
S stratus Active Member Licensed User Longtime User Apr 27, 2010 #3 klaus said: You should have a look at the Hardware library, there you can get SIP parameters. You cannot resize a Form on the device, you must adjust the Controls. Best regards. Click to expand... I found it.I put the controls in a panel and set autoscroll property of panel to true.When i display sip i set panel height equal to (form.height-sip.height).The problem is that i do not know how to scroll the panel to the control who has the focus before the sip appears.
klaus said: You should have a look at the Hardware library, there you can get SIP parameters. You cannot resize a Form on the device, you must adjust the Controls. Best regards. Click to expand... I found it.I put the controls in a panel and set autoscroll property of panel to true.When i display sip i set panel height equal to (form.height-sip.height).The problem is that i do not know how to scroll the panel to the control who has the focus before the sip appears.
klaus Expert Licensed User Longtime User Apr 27, 2010 #4 Depending on what you have on top of your form you could perhaps change the panel's top parameter instead of changing it's height, and adjust it with the GotFocus event of the controls. Or you could also use your own VScroll object and adjust the Top parameter. Otherwise you can have a look here: http://www.b4x.com/forum/questions-help-needed/5488-modify-scrollbar-values.html. Best regards.
Depending on what you have on top of your form you could perhaps change the panel's top parameter instead of changing it's height, and adjust it with the GotFocus event of the controls. Or you could also use your own VScroll object and adjust the Top parameter. Otherwise you can have a look here: http://www.b4x.com/forum/questions-help-needed/5488-modify-scrollbar-values.html. Best regards.
S stratus Active Member Licensed User Longtime User Apr 27, 2010 #5 Thank you Erel.I will try your ideas