Aug 13, 2020 Replies: 109 I needed to develop a modern editText (or TextField), but different from the B4XFloatTextField, different in terms of graphics and style. So I created the SD_TextView (see also xComboBox) NOTE: You can use this library for personal and commercial use. Include it in your projects.. Attention, even if it is a B4XLib library, it is not allowed to decompress it, modify it, change its name or redistribute it without the permission of the author SD_TextView Author: Star-Dust Version: 0.25 SD_IconTextView Events: EnterPressed FocusChanged (HasFocus As Boolean) HintClick TextChanged (OldText As String, Newtext As String) Fields: mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) Properties: Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextFont As B4XFont SD_TextView Events: EnterPressed FocusChanged (HasFocus As Boolean) TextChanged (OldText As String, Newtext As String) Fields: mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) SetHintColor (HintTextColor As Int, HintBackGroundColor As Int) SetTextViewColor (TextColor As Int, BackGroundColor As Int, Corner_Color As Int) Properties: AnimateHint As Boolean Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextFont As B4XFont SD_TwoIconTextView Events: Click EnterPressed FocusChanged (HasFocus As Boolean) HintClick TextChanged (OldText As String, Newtext As String) Unfocus Fields: mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) Properties: Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextConfirmButton As String Char fontAwesone TextFont As B4XFont SD_UnderLineTextView Events: EnterPressed FocusChanged (HasFocus As Boolean) TextChanged (OldText As String, Newtext As String) Fields: ExpansionTime As Int mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) UnderLine (Show As Boolean) Properties: Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextFont As B4XFont Attachments Sample B4i.zip Sample B4i.zip 110.6 KB · Views: 1,441 1597673547592.png 20.7 KB · Views: 2,329 Sample B4J.zip Sample B4J.zip 2.5 KB · Views: 1,358 Sample B4A.zip Sample B4A.zip 8.3 KB · Views: 1,953 SD_TextView.B4xLib SD_TextView.B4xLib 9.4 KB · Views: 366 Last edited: Jan 30, 2026 Click to expand...
I needed to develop a modern editText (or TextField), but different from the B4XFloatTextField, different in terms of graphics and style. So I created the SD_TextView (see also xComboBox) NOTE: You can use this library for personal and commercial use. Include it in your projects.. Attention, even if it is a B4XLib library, it is not allowed to decompress it, modify it, change its name or redistribute it without the permission of the author SD_TextView Author: Star-Dust Version: 0.25 SD_IconTextView Events: EnterPressed FocusChanged (HasFocus As Boolean) HintClick TextChanged (OldText As String, Newtext As String) Fields: mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) Properties: Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextFont As B4XFont SD_TextView Events: EnterPressed FocusChanged (HasFocus As Boolean) TextChanged (OldText As String, Newtext As String) Fields: mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) SetHintColor (HintTextColor As Int, HintBackGroundColor As Int) SetTextViewColor (TextColor As Int, BackGroundColor As Int, Corner_Color As Int) Properties: AnimateHint As Boolean Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextFont As B4XFont SD_TwoIconTextView Events: Click EnterPressed FocusChanged (HasFocus As Boolean) HintClick TextChanged (OldText As String, Newtext As String) Unfocus Fields: mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) Properties: Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextConfirmButton As String Char fontAwesone TextFont As B4XFont SD_UnderLineTextView Events: EnterPressed FocusChanged (HasFocus As Boolean) TextChanged (OldText As String, Newtext As String) Fields: ExpansionTime As Int mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) UnderLine (Show As Boolean) Properties: Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextFont As B4XFont
behnam_tr Active Member Licensed User Longtime User Oct 18, 2020 #41 Star-Dust said: you can set other filters using the NativeObject property and assigning it to EditText (For Android) or TextField (B4i or B4j) B4A sample B4X: Dim EditText1 As EditText = TextView.NativeObject EditText1.InputType = EditText1.INPUT_TYPE_PHONE Click to expand... dont exist such object in b4j
Star-Dust said: you can set other filters using the NativeObject property and assigning it to EditText (For Android) or TextField (B4i or B4j) B4A sample B4X: Dim EditText1 As EditText = TextView.NativeObject EditText1.InputType = EditText1.INPUT_TYPE_PHONE Click to expand... dont exist such object in b4j
Star-Dust Expert Licensed User Longtime User Oct 19, 2020 #42 behnam_tr said: dont exist such object in b4j Click to expand... As you may have noticed, it says B4A Sample. While if you want to do it in B4J the view is TextField. PS. In B4J there is no native method to filter the input, that I know of. I need to check when raising event while typing text
behnam_tr said: dont exist such object in b4j Click to expand... As you may have noticed, it says B4A Sample. While if you want to do it in B4J the view is TextField. PS. In B4J there is no native method to filter the input, that I know of. I need to check when raising event while typing text
behnam_tr Active Member Licensed User Longtime User Oct 19, 2020 #43 Star-Dust said: As you may have noticed, it says B4A Sample. While if you want to do it in B4J the view is TextField. PS. In B4J there is no native method to filter the input, that I know of. I need to check when raising event while typing text Click to expand... i make a customview(textfield) for b4j that have filter for numbers and convert to currency format runtime but need some change can you check that?? how can i send for you?? thanks
Star-Dust said: As you may have noticed, it says B4A Sample. While if you want to do it in B4J the view is TextField. PS. In B4J there is no native method to filter the input, that I know of. I need to check when raising event while typing text Click to expand... i make a customview(textfield) for b4j that have filter for numbers and convert to currency format runtime but need some change can you check that?? how can i send for you?? thanks
By-Cod3rs Member Licensed User Oct 26, 2020 #44 Well done congratulations. Would you consider adding an error alert? Devexpress provides such a facility.
Well done congratulations. Would you consider adding an error alert? Devexpress provides such a facility.
Star-Dust Expert Licensed User Longtime User Oct 26, 2020 #45 It's a control you can insert into the EnterPressed event using a notification library. I don't see the need to insert a control upstream of the event. It would burden the library because I would have to insert an extra class for notifications I don't know Devexpress I'm sorry. Last edited: Oct 26, 2020
It's a control you can insert into the EnterPressed event using a notification library. I don't see the need to insert a control upstream of the event. It would burden the library because I would have to insert an extra class for notifications I don't know Devexpress I'm sorry.
Star-Dust Expert Licensed User Longtime User Oct 26, 2020 #46 behnam_tr said: i make a customview(textfield) for b4j that have filter for numbers and convert to currency format runtime but need some change can you check that?? how can i send for you?? thanks Click to expand... I do not understand
behnam_tr said: i make a customview(textfield) for b4j that have filter for numbers and convert to currency format runtime but need some change can you check that?? how can i send for you?? thanks Click to expand... I do not understand
Ertan Active Member Licensed User Nov 18, 2020 #47 Hello Thanks for your library. I noticed something. If I change the font color to red, it also makes the frame color red. But I just want to make the EditText color red. I did this with code; B4X: Dim EditText1 As EditText = SD_TextView4.NativeObject EditText1.TextColor=Colors.Blue I still set the border color from Text Color. In addition; We are getting this error from two separate computers. I use library versions : 0.07 Thanks.
Hello Thanks for your library. I noticed something. If I change the font color to red, it also makes the frame color red. But I just want to make the EditText color red. I did this with code; B4X: Dim EditText1 As EditText = SD_TextView4.NativeObject EditText1.TextColor=Colors.Blue I still set the border color from Text Color. In addition; We are getting this error from two separate computers. I use library versions : 0.07 Thanks.
Star-Dust Expert Licensed User Longtime User Nov 18, 2020 #48 Ertan said: Hello Thanks for your library. I noticed something. If I change the font color to red, it also makes the frame color red. But I just want to make the EditText color red. Click to expand... Yes, it is actually designed that way. Did you need to separate the colors? Ertan said: In addition; View attachment 103159 We are getting this error from two separate computers. Click to expand... I do not know. But does it only do this on some computers? B4A, Bai or B4J? Have you copied the b4xlib files to the additional libraries folder?
Ertan said: Hello Thanks for your library. I noticed something. If I change the font color to red, it also makes the frame color red. But I just want to make the EditText color red. Click to expand... Yes, it is actually designed that way. Did you need to separate the colors? Ertan said: In addition; View attachment 103159 We are getting this error from two separate computers. Click to expand... I do not know. But does it only do this on some computers? B4A, Bai or B4J? Have you copied the b4xlib files to the additional libraries folder?
Ertan Active Member Licensed User Nov 18, 2020 #49 Star-Dust said: I do not know. But does it only do this on some computers? Click to expand... I tried it on two computers in the office. I encountered the same error. There is no library in my library that will conflict. (I think so).. Star-Dust said: Yes, it is actually designed that way. Did you need to separate the colors? Click to expand... But this is a little tiring when it comes to design. It would have been nicer to be able to adjust the individual colors. We wouldn't have to write additional code ----------- In your sample project, I could not see this either. Do you have a chance to add?
Star-Dust said: I do not know. But does it only do this on some computers? Click to expand... I tried it on two computers in the office. I encountered the same error. There is no library in my library that will conflict. (I think so).. Star-Dust said: Yes, it is actually designed that way. Did you need to separate the colors? Click to expand... But this is a little tiring when it comes to design. It would have been nicer to be able to adjust the individual colors. We wouldn't have to write additional code ----------- In your sample project, I could not see this either. Do you have a chance to add?
Ertan Active Member Licensed User Nov 18, 2020 #50 Star-Dust said: I do not know. But does it only do this on some computers? B4A, Bai or B4J? Have you copied the b4xlib files to the additional libraries folder? Click to expand... I always copy the downloaded libraries to the Additional Libraries folder. I checked the normal library folder but could not see it from the same library. I just tried it with B4J, but it gave the same error. We cannot adjust the panel corner edge radius either. Too many corners How can we reduce its angularity? Last edited: Nov 18, 2020
Star-Dust said: I do not know. But does it only do this on some computers? B4A, Bai or B4J? Have you copied the b4xlib files to the additional libraries folder? Click to expand... I always copy the downloaded libraries to the Additional Libraries folder. I checked the normal library folder but could not see it from the same library. I just tried it with B4J, but it gave the same error. We cannot adjust the panel corner edge radius either. Too many corners How can we reduce its angularity?
Star-Dust Expert Licensed User Longtime User Nov 18, 2020 #51 Update 0.08 It is possible to choose the color of the frame from the design
Ertan Active Member Licensed User Nov 18, 2020 #52 Star-Dust said: Update 0.08 It is possible to choose the color of the frame from the design Click to expand... It would be nice to be able to adjust the spacing of the text from the area in the picture. It can be done with code but is not functional. B4X: Dim EditText1 As EditText = SD_TextView4.NativeObject EditText1.Gravity=Gravity.CENTER We cannot adjust the panel corner edge radius either. Too many corners How can we reduce its angularity? The error has not gone away yet. :/ I wanted to help you make this beautiful library more functional and beautiful. I would be very grateful if you could show me how to create this component.
Star-Dust said: Update 0.08 It is possible to choose the color of the frame from the design Click to expand... It would be nice to be able to adjust the spacing of the text from the area in the picture. It can be done with code but is not functional. B4X: Dim EditText1 As EditText = SD_TextView4.NativeObject EditText1.Gravity=Gravity.CENTER We cannot adjust the panel corner edge radius either. Too many corners How can we reduce its angularity? The error has not gone away yet. :/ I wanted to help you make this beautiful library more functional and beautiful. I would be very grateful if you could show me how to create this component.
Star-Dust Expert Licensed User Longtime User Nov 18, 2020 #53 Ertan said: I always copy the downloaded libraries to the Additional Libraries folder. I checked the normal library folder but could not see it from the same library. I just tried it with B4J, but it gave the same error. View attachment 103163 We cannot adjust the panel corner edge radius either. Too many corners How can we reduce its angularity? Click to expand... Ertan said: I always copy the downloaded libraries to the Additional Libraries folder. I checked the normal library folder but could not see it from the same library. I just tried it with B4J, but it gave the same error. View attachment 103163 We cannot adjust the panel corner edge radius either. Too many corners How can we reduce its angularity? Click to expand... Try the attached examples (which have been updated) and see if you run into the same problem. The indicated object has the wrong class name. It is not _SD_TextView as it appears in the image but SD_TextView. Also try deleting the views and inserting them again. Perhaps you entered an old class that no longer exists
Ertan said: I always copy the downloaded libraries to the Additional Libraries folder. I checked the normal library folder but could not see it from the same library. I just tried it with B4J, but it gave the same error. View attachment 103163 We cannot adjust the panel corner edge radius either. Too many corners How can we reduce its angularity? Click to expand... Ertan said: I always copy the downloaded libraries to the Additional Libraries folder. I checked the normal library folder but could not see it from the same library. I just tried it with B4J, but it gave the same error. View attachment 103163 We cannot adjust the panel corner edge radius either. Too many corners How can we reduce its angularity? Click to expand... Try the attached examples (which have been updated) and see if you run into the same problem. The indicated object has the wrong class name. It is not _SD_TextView as it appears in the image but SD_TextView. Also try deleting the views and inserting them again. Perhaps you entered an old class that no longer exists
Star-Dust Expert Licensed User Longtime User Nov 18, 2020 #54 Ertan said: It would be nice to be able to adjust the spacing of the text from the area in the picture. View attachment 103166 It can be done with code but is not functional. B4X: Dim EditText1 As EditText = SD_TextView4.NativeObject EditText1.Gravity=Gravity.CENTER We cannot adjust the panel corner edge radius either. Too many corners How can we reduce its angularity? The error has not gone away yet. :/ I wanted to help you make this beautiful library more functional and beautiful. I would be very grateful if you could show me how to create this component. Click to expand... Be satisfied with the changes made. I don't have time to implement all your requests, sorry.
Ertan said: It would be nice to be able to adjust the spacing of the text from the area in the picture. View attachment 103166 It can be done with code but is not functional. B4X: Dim EditText1 As EditText = SD_TextView4.NativeObject EditText1.Gravity=Gravity.CENTER We cannot adjust the panel corner edge radius either. Too many corners How can we reduce its angularity? The error has not gone away yet. :/ I wanted to help you make this beautiful library more functional and beautiful. I would be very grateful if you could show me how to create this component. Click to expand... Be satisfied with the changes made. I don't have time to implement all your requests, sorry.
Ertan Active Member Licensed User Nov 18, 2020 #55 Star-Dust said: Be satisfied with the changes made. I don't have time to implement all your requests, sorry. Click to expand... I found the source and solution of the problem. I get this error when I right click on the design and click Add Layout. This situation returns as an error on both computers. But.. successfully adding layout. When I add CustomView from the Add New button next to the file button, I do not get this error.
Star-Dust said: Be satisfied with the changes made. I don't have time to implement all your requests, sorry. Click to expand... I found the source and solution of the problem. I get this error when I right click on the design and click Add Layout. This situation returns as an error on both computers. But.. successfully adding layout. When I add CustomView from the Add New button next to the file button, I do not get this error.
Star-Dust Expert Licensed User Longtime User Nov 18, 2020 #56 Ertan said: I found the source and solution of the problem. I get this error when I right click on the design and click Add Layout. View attachment 103170 This situation returns as an error on both computers. But.. View attachment 103171 successfully adding layout. When I add CustomView from the Add New button next to the file button, I do not get this error. Click to expand... I report this to Erel (Here). In fact it looks like a bugs in the IDE environment Last edited: Nov 18, 2020
Ertan said: I found the source and solution of the problem. I get this error when I right click on the design and click Add Layout. View attachment 103170 This situation returns as an error on both computers. But.. View attachment 103171 successfully adding layout. When I add CustomView from the Add New button next to the file button, I do not get this error. Click to expand... I report this to Erel (Here). In fact it looks like a bugs in the IDE environment
Ertan Active Member Licensed User Nov 18, 2020 #57 Star-Dust said: You should report this to Erel. Click to expand... You changed your text. If I had noticed it before, I wouldn't have opened a topic.
Star-Dust said: You should report this to Erel. Click to expand... You changed your text. If I had noticed it before, I wouldn't have opened a topic.
Ertan Active Member Licensed User Nov 18, 2020 #59 Star-Dust said: I will ask Erel to delete my post Click to expand... No actually it's okay. I thought Erel might get it wrong. Just because there are two of the same topics. Excuse me. ?
Star-Dust said: I will ask Erel to delete my post Click to expand... No actually it's okay. I thought Erel might get it wrong. Just because there are two of the same topics. Excuse me. ?