B4A Tutorial Designer Scripts Tutorial - Erel    
Jan 14, 2014   
(16 reactions)   
tags: Designer Script, Screen, B4A when the soft keyboard becomes visible. Activity.RerunDesignerScript method allows you to run...)
- ActivitySize - Returns the approximate activity size measured in inches.
- If ... Then condition... values are relative to the view that loads the layout.
Usually it will be the activity. However... need to declare the variables before using them (there is no Dim keyword in the script).
- Activity.RerunDesignerScript (LayoutFile As String, Width As Int, Height As Int) - In some cases...
B4A Question Panel.RerunDesignerScript missing? - corwin42    
Jun 1, 2012With Activity.RerunDesignerScript() we can rerun a designer script. Would be nice if a Panel has the same method so we can rerun the designer script after a panel size change....
link: It is not missing as you can use Activity.RerunDesignerScript for the panel layout...
Bug? RerunDesignerScript in CustomView fails - corwin42    
Oct 23, 2013I'm trying to write a custom view which loads a layout file.
For customizing the view I will call RerunDesignerScript but I always get the error "cannot find view" and
"All views in script should be declared."
All views are declared in my custom view class.
I think the problem is that Activity.RerunDesignerScript() expects the variables to be declared in the activity and not in the class. Is it possible to call RerunDesignerScript() in a class module?
Attached...
Bug? RerunDesignerScript bug - Erel (first post)    
Jul 10, 2015   
(1 reaction)Please see the documentation: https://www.b4x.com/android/forum/pages/results/?query=activity.rerundesignerscript...
link: b4a 5.0.2 (1)
code
Activity.RerunDesignerScript("filme",Activity.Width,Activity.Height...
B4A Question (RESOLVE) sending message to waiting queue of uninitialized activity (submitjob) - fishwolf    
Aug 18, 2023I have a simple form with a input text field
when/where i can check the value of field for start with other functions.
if i check in create function i have this warning and app is blocked
sending message to waiting queue of uninitialized activity (submitjob)...
B4A Question Execute Script Designer dinamically - Olaan (first post)    
Oct 18, 2012Have you ever try this code activity.RerunDesignerScript()...
link: Activity.RerunDesignerScript (LayoutFile As String, Int Ace Width, Height As Int) but I see...
link: :
***** ......
'Call Designer Script defined into layout
**** Activity.RerunDesignerScript...
B4A Question Bug in RerunDesignerScript - MaxApps (first post)    
Nov 19, 2012It does not say it in this log.
The 1st time it came up with an error, it did say btnDonate was missing.
And this problem started, when I removed that button (the only change).
If I remove the "Activity.RerunDesignerScript("main", 100%x, 100%y)" I do not get any errors.
Kind regards
Jakob...
link: : 1234)
Activity.RerunDesignerScript("main2", 100%x, 100%y)
java.lang.RuntimeException...
B4A Question Designer Scripts - Erel (first post)    
May 17, 2012Actually it is possible to apply a designer script on runtime views.
You can call Activity.RerunDesignerScript to only run the script section of the layout file.
The script accesses the views based on the global variable name.
For example you can do something like:
Sub Globals
Dim Button1 As Button
End Sub
Sub CreateManyViews
For i = 1 to 100
Dim b As Button
b.Initialize("")
Panel1.AddView(b, 0, 0, 100dip, 100dip)
Button1 = b
Activity.RerunDesignerScript("Layout1...
B4A Question Layout Issue - yttrium (first post)    
May 17, 2013Can you upload your layout file (with the required images)?
Actually Erel I don't think this is an issue with his application. I've seen this happen with some of my users too and I think it's how specially tailored versions of Android draw the status bar - some redraw it after loading the application.
The way I solved it was by calling an Activity.RerunDesignerScript in Activity_Resume....
B4A Question How Can I Hide or close panels - Hedgar    
Oct 18, 2018
'Activity.RerunDesignerScript("MainWindow",600dip ,1200dip)
'Activity_Create....RerunDesignerScript("Content",600dip ,1300dip)
Activity.Title="Timetable"... panel still visible.
here's my back code:
Sub Activity_KeyPress (key As Int) As Boolean
If... Then
Panelcontent.Visible=False
End If
Activity.Title="Timetable...
Catch
ToastMessageShow("Reloading",False)
Activity_Create(True...
Page: 1  
2  
3  
4  
5  
6  
7