The Size of Widgets - Problem

thewavemaster

Member
Licensed User
Longtime User
Hi everybody!

I tried to create a widget with the Panel Size 100 % of x.
(So that the Widget Width fills 100% of the screen size)


But the command Panel1.Width = 100%x in the Designer Code showed no effect...

Can anybody solve my problem?

Greets
Markus
 

thewavemaster

Member
Licensed User
Longtime User
thats right erel...but none of this offers a solution for my problem!
e.g.:
i have a samsung galaxy note and a motorola milestone II. So if i fit the size to the motorola with a width of 320 its still not enough pixels for my samsung galaxy note (of course). And as long as i cant write a command like panel1.width = 100%x i think there is no solution for my problem...?
 
Last edited:
Upvote 0

thewavemaster

Member
Licensed User
Longtime User
Is a workaround like thhast possible?:


Sub Service_Create
Dim lv As LayoutValues
lv = GetDeviceLayoutValues
Select lv.Width
Case 270<lv.width< 290
rv = ConfigureHomeWidget("Widget1", "rv", 30, "Widget")

Case 290<lv.width< 340
rv = ConfigureHomeWidget("Widget2", "rv", 30, "Widget")

Case >340
rv = ConfigureHomeWidget("Widget3", "rv", 30, "Widget")



End Select



End Sub
 
Upvote 0
Top