|
-
Apr 20th, 2015, 05:12 PM
#11
Re: Program Testers
About vbWidgets:
1) where should I put the vbWidgets.DLL ? (I put it in App.Path)
I have AppPath\vbRC5BaseDlls containing the RichClient DLLs
2) is it correct (to make it RegFree) my change on vbWidgets SubMain ?:
Code:
Declare Function GetInstanceEx Lib "DirectCOM" (StrPtr_FName As Long, StrPtr_ClassName As Long, ByVal
UseAlteredSearchPath As Boolean) As Object
Public New_c As cConstructor, Cairo As cCairo
Public Sub Main()
'' ORIGINAL
''
' On Error Resume Next
' Set New_c = GetInstanceEx(StrPtr(App.Path & "\vbRichClient5.dll"), StrPtr("cConstructor"), True)
'
' If New_c Is Nothing Then
' Err.Clear
' Set New_c = New cConstructor
' End If
'
' Set Cairo = New_c.Cairo
'
' Set Cairo.Theme = New cThemeWin7
'' Cairo.FontOptions = CAIRO_ANTIALIAS_DEFAULT
'''''''''''''''''''''''''''''''''''''''''''''' MY way
Set New_c = GetInstanceFromBinFolder("vbRichClient5", "cConstructor", "vbRC5BaseDlls")
Set Cairo = New_c.Cairo
Set Cairo.Theme = New cThemeWin7
'-------------------------------------------
End Sub
3) Where can I find Other Branches of vbWidgets ?
4
 Originally Posted by Schmidt
With the Widget-Engine there's no such "hurdles to jump over" or points where you might get stuck.
Not so easy, I succeded on changing a little bit the cwFileList
so that when a Key is pressed, it set its position to the first item that start with pressedKey-character.
(quite like VB-Control)
5) How to set the Zorder of widgets ?
ah, ok, they seem to follow the "Form.Widgets.Add(" creation order.
At the moment I do not need to change it at Runtime.
6) PropertyGrid-Widget
 Originally Posted by Schmidt
I'd tackle that in the way the VB-IDE is working as well - developing a PropertyGrid-Widget, which in the left column shows the Property-Names (your Parameters) - and in the right Column shows the Value (depending on the Value-Type, switching between TextBox, Combo or CheckBox).
Sounds really what I need...
If you encapsulate your Imaging-Algorithms in your own Dll (each Algo residing in its own Class - and this Class simply having a List of Public Properties for your Parameters), then the filling of such a Property-Grid-Widget would become quite simple, by just using the Classes cProperties and cProperty from the RC5 (enumerting the Props, their Names and Values, and also the Value-Type is included, as well as Enum-Members in case of an Enum-Type (to be able to fill a small Combo for the Enum-Values, the same way the VB-IDE does).
Seems so easy, but not to me...
Even just only Implementing the PropertyGrid-Widget is an hard challenge for me.
Does standard cwGrid implement "right Column shows the Value (depending on the Value-Type, switching between TextBox, Combo or CheckBox)." ??? [I need HscrollBar too]
In the PropertyGrid-Widget should appear only the properties of Selected Node
-When a Node is Clicked Public-PARAMS-UDT-variable values should be "transfered" to the Grid (and diplay only them)
-When user tweaks properties on GRID they should be transfered to the Public-PARAMS....
I'm thinking about an easyer way...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|