J johnb4a Member Licensed User Longtime User Jul 29, 2012 #1 Hi, My widget consist of 1 panel and 1 label. I have set the paraments for panel and label in the designer script as Panel1.Width = 94%x lbl.Width = Panel1.Width - 11dip layout variant used is 320x480 It works perfectly when i test it on designer under designer script (F5) by changing layouts in abstract designer. The view size changes as per the screen sizes. But wen i test it on device (phone 720x1280) the widget takes the size (Width and height) set manually on abstract designer while designing. what may be the problem anyone please help me. :sign0085: Attachments img.jpg 15.1 KB · Views: 528
Hi, My widget consist of 1 panel and 1 label. I have set the paraments for panel and label in the designer script as Panel1.Width = 94%x lbl.Width = Panel1.Width - 11dip layout variant used is 320x480 It works perfectly when i test it on designer under designer script (F5) by changing layouts in abstract designer. The view size changes as per the screen sizes. But wen i test it on device (phone 720x1280) the widget takes the size (Width and height) set manually on abstract designer while designing. what may be the problem anyone please help me. :sign0085:
I iTzCorky Member Licensed User Longtime User Jul 30, 2012 #2 Check your PM I responded back to it. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 30, 2012 #3 Check your PM I responded back to it. Click to expand... It is much better to answer public questions in the forum and not privately. The designer script doesn't work with home screen widgets. You will need to do it by code. Upvote 0
Check your PM I responded back to it. Click to expand... It is much better to answer public questions in the forum and not privately. The designer script doesn't work with home screen widgets. You will need to do it by code.
J johnb4a Member Licensed User Longtime User Jul 30, 2012 #4 Hi Erel, Thanku your reply. Can u please help me out with some examples to resize the home screen widget. Thanks John Upvote 0
Hi Erel, Thanku your reply. Can u please help me out with some examples to resize the home screen widget. Thanks John
Erel B4X founder Staff member Licensed User Longtime User Jul 30, 2012 #5 You cannot resize the main panel. Its size is set with the designer. You can resize other views in the service code. Upvote 0
You cannot resize the main panel. Its size is set with the designer. You can resize other views in the service code.