since there is no "change Parent" available, it renders the control useless in some applications...
I assume you mean the DateTimePIcker control. The only ChangeParent I know is in the Formlib and it should work.
ChangeParent(DTP.ControlRef, "Panel1")
For library controls, like those in ControlEx, you need to use the ControlRef or Value property to refer to them for things like ChangeParent. From my FormEx help.
"In Basic4PPC a function that expects a Control object can receive a string (or any expression that evaluates to a string) with the name of a Basic4ppc control (Basic4ppc will convert it to the required reference) or a Control object (which can only come from an external library). "
I can't see much point as if you used any of the controls in ControlsEx you would also need to use Formlib to change their parent.is it that much of a chnge to modify the dll in order to be able to change the parent, or to be able to add it to a Panel
I assume that you mean "can't see why". To change the parent of a control .NET needs a refence to the new parent and to the control. For controls implemented within B4PPC both the name and the reference are known to B4PPC as it created the control. Because of this B4PPC can convert a string, such as "Button1" to an actual control reference. For controls from a library only the name is known to B4PPC as the reference to the control is held within the library, (created by New). Hence libraries implement a Value or ControlRef property that returns the control reference for use when it is needed.i still can see why it doesn't work as is..
I can't work out a way to put the control somewhere specific in the tab order
' for a built-in control
Obj1.FromControl( "ctlname") or Obj1.
Obj1.SetProperty ("TabIndex", tabpos )
' for a library control
Obj1.FromControl( ctl.ControlRef) or Obj1.value = ctl.ControlRef
Obj1.SetProperty ("TabIndex", tabpos )
I presume you mean the ControlsExDevice library not the ControlsEx library. Doesn't the ShowUpDown property do what you want?is there a way to format the ControlsEx date picker the same way?
Sub App_Start
notif.New1
notif.Text="<a href=" & Chr(34) & "clicked" & Chr(34) & ">Close.</a>"
notif.InitialDuration=5
notif.Visible=True
End Sub
Sub notif_ResponseSubmitted
notif.Visible=False
End Sub
Yes. I am going to post it, and ControlsExDesktop, when I have finished writing the Listview help and added another couple of controls to bring the version up to 1.5 - probably near the end of next week.Any chance of getting the cs file for v1.4 to be able to merge it?
Sorry filippo. The latest version I could find in Additional Libararies was this version http://www.b4x.com/forum/9571-post1.htmllook my listview.dll by http://www.b4x.com/forum/share-your-creations/2511-fgexplorer.html, I have no problems with large icon, small icon, details and list views.
It's a standard zip. To check I've just downloaded it and WinZip and 7-Zip open it fine and so does File Explorer (in Vista).Is it a standard zipped file or should I be doing something different
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?