SGS wrote:Andres,
Como fazer para que controles em uma window fiquem ajustados automaticamente ao lado da texplorerbar?
Creio que isso não seja possível ?
Obrigado
James Bott wrote:
1) Suggestion: There does not appear to be any specification of the parent window.
oBar := TExplorerBar():New()
I assume it always uses the main window ( wndMain() ) as the parent window. Perhaps the parent window should be a passed parameter.
oBar := TExplorerBar():New( oWnd )
2) Suggestion: FW already has a Panel class (TPanel) and Microsoft uses "Expando" as the name of what you are calling a panel. So I suggest changing the AddPanel() method to AddExpando().
So this:
oPanel := oBar:AddPanel("Tareas de Imágenes")
Would become this:
oExpando := oBar:AddExpando("Tareas de Imágenes")
3) Suggestion: It would be nice if we could pass lSpecial as a parameter to AddExpando.
oExpando := oBar:AddExpando("Tareas de Imágenes", lSpecial )
This will allow the creation of preprocessor commands so we can use xBase syntax. Something like this:
define expando of oBar prompt "Tareas de Imágenes" special
4) Suggestion: Two nice additions to addLink() would be tooltips and messages. The Microsoft control does have tooltips, but I think status bar messages would also be a nice option. These also need to be passed parameters so we can use xBase syntax.
define link of oExpando prompt "View as a slide show" ;
action slideshow() ;
tooltip "Arranges all the pictures in this folder into a slideshow"
5) Suggestion: Documentation of all the methods and data would be helpful.
Asumo que utiliza siempre la ventana principal (wndMain ()) como la ventana del padre. Quizás la ventana del padre debe ser un parámetro pasajero.
oBar: = TExplorerBar():New( oWnd )
2) Sugerencia: El FW tiene ya un de la clase del panel (TPanel) y de las aplicaciones de Microsoft; Expando como el nombre de lo que usted está llamando un panel. Sugiero tan el cambiar del método de AddPanel() a AddExpando(). Tan esto:
oPanel:= oBar:AddPanel("Tareas de Imágenes")
Se convirtió esto:
oExpando:= oBar:AddExpando("Tareas de Imágenes")
3) Sugerencia: Sería agradable si podríamos pasar lSpecial como parámetro a AddExpando.
oExpando:= oBar:AddExpando("Tareas de Imágenes" , lSpecial )
Esto permitirá la creación de los comandos del preprocesador así que podemos utilizar sintaxis del xBase. Algo similar:
define expando of oBar "Tareas de Imágenes" special
4) Sugerencia: Dos adiciones agradables al addLink () serían tooltips y mensajes. Microsoft controla tiene tooltips, pero pienso que los mensajes de la barra de estado también sería una opción agradable. Éstos también necesitan ser pasados los parámetros así que podemos utilizar sintaxis del xBase.
define link of oExpando prompt "View as a slide show" ;
action slideshow() ;
tooltip "Arranges all the pictures in this folder into a slideshow"
5) Sugerencia: La documentación de todos los métodos y datos sería provechosa.
You can use :New( oWnd ) it's right, and not always uses the main windows as the parent window, if you dont specify oWnd, oWnd has the value of GetWndDefault()
You can use Tooltip and messages with links and panels, you only need
oPanel:cTooltip := "My tooltip"
oPanel:cMsg := "My Message"
James Bott wrote:OK, this is good to know, however, in order to make an include file so we can use xBase syntax, we need to also be able to pass them as parameters.
I will be glad to create the include file if you will add the parameters. I will also be glad to help with an English version of the documentation.
Silvio wrote:
And if I want insert COMBOBOX , RADIO and GET and button controls into Panel it is possible ?
Silvo wrote:Can you insert also a Image watermask into lo left ?
Also I 'm trying to create this class but now I have this problems
You can use Tooltip and messages with links and panels, you only need
oPanel:cTooltip := "My tooltip"
oPanel:cMsg := "My Message"
James Bott wrote:Andres,
- Code: Select all Expand view
You can use Tooltip and messages with links and panels, you only need
oPanel:cTooltip := "My tooltip"
oPanel:cMsg := "My Message"
Does this mean that oPanel:AddLink() returns a link object? So, can we do:
oLink:= oPanel:AddLink(cPrompt)
James
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: AngelSalom and 18 guests