B4X FEED [D.S.E.] - Need a pratical example...

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: [D.S.E.] - Need a pratical example... است. این موضوع تا کنون 34 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع [D.S.E.] - Need a pratical example...
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
34
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
I'm posting this in B4J forum, but it could have been posted in any of the other platforms (B4R excluded).

I once replied to a user thad wanted to create a theme function for his app, and my answer was that the new Designer Script Extension would make that easier to accomplish...

I based my answer on one of the examples EREL had posted -

Yesterday I decided to put that "idea" of a Theming framework into code... basing myself on the example above....
But EREL's examples are getting a bit... harder to follow, specially when it comes just as a snippet.


Designer script:
B4X:

B4XMainPage.SetTextColor(Button1, DDD.Color("small text"))
B4XMainPage.SetTextColor(Button2, DDD.Color("0xFFD776B0"))
B4XMainPage.SetTextColor(Label9, DDD.Color("Red"))


B4X:
B4X:

dd.Initialize
xui.RegisterDesignerClass(dd)
dd.AddColor("small text", xui.Color_Magenta)
Root.LoadLayout("MainPage")

'View, Color
Private Sub SetTextColor(DesignerArgs As DesignerArgs)
Dim view As B4XView =...
Click to expand...



 

عقب
بالا