Search found 338 matches: acontrols

Return to advanced search

Re: To Nageswrao Del Objs on TscrollPanel

function DeleteControl( oPanel, nItem )   local nTop, nLeft      for n := Len( oPanel:aControls ) to nItem + 1 STEP -1      oPanel:aControls[ n ]:nTop := oPanel:aControls[ n - 1 ]:nTop      oPanel:aControls[ n ]:nLeft:= oPanel:aControls[ ...
by Silvio.Falconi
Mon Mar 04, 2024 8:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nageswrao Del Objs on TscrollPanel
Replies: 17
Views: 667

Re: To Nageswrao Del Objs on TscrollPanel

Nages oPanel:aControls[ nItem ]:End() HB_ADel( oPanel:aControls[ nItem ], nItem, .t. ) ASize( oPanel:aControls, Len( oPanel:aControls ) ) oPanel:SetRange() oPanel:refresh() I saw on oPanel:aControls there are also the records https://i.postimg.cc/QNKWmS1C/mm.png ...
by Silvio.Falconi
Thu Feb 29, 2024 8:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nageswrao Del Objs on TscrollPanel
Replies: 17
Views: 667

To Nageswrao Del Objs on TscrollPanel

... Erase_Items(oBrw,oPanel) local nItem:= oBrw:aArrayData[ oBrw:nArrayAt ][2] aDel(oBrw:aArraydata,nItem-1) // xbrowser oBrw:aArraydata oPanel:aControls[nItem]:destroy() oBrw:refresh() oPanel:refresh() return nil Function Manage_Items(aData,oBrowse)    local oDlg   local oBar   local ...
by Silvio.Falconi
Mon Feb 26, 2024 12:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nageswrao Del Objs on TscrollPanel
Replies: 17
Views: 667

Re: Mark field as required

You can do this:
@ 0,0 SAY "Test *" of oDlg//Monospaced font
@ 0, 6 GET of oDlg
oDlg:aControls[1]:SayText() //color the "*" symbol red

it works well, but it may need to be updated :SayText when moving the window off/on the screen
by Natter
Sun Feb 04, 2024 8:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Mark field as required
Replies: 23
Views: 1779

Re: How to find out the IDs of controls and types?

Dear Jimmy,

nAt = AScan( ::aControls, { | oControl | oControl:hWnd == hChild } )
::aControls[ nAt ]
by Antonio Linares
Tue Jan 09, 2024 6:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to find out the IDs of controls and types?
Replies: 16
Views: 1850

Re: Disable and Enable Items ( TExplorerBar )

oExplorerBar:aPanels[ n ]:aControls[ m ]:Disable()

and

oExplorerBar:aPanels[ n ]:aControls[ m ]:Enable()
by Antonio Linares
Thu Jun 22, 2023 2:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Disable and Enable Items ( TExplorerBar )
Replies: 2
Views: 265

Re: Select one btnbmp into a scrollpanel

... nElemento:= val(nProduct) } Function Set_items_Active(oItem,lActive,oBTn) local oCtrl for each oCtrl in oItem:aControls oCtrl:bClrGrad = { | lInvert | If( ! lInvert,; { { 1, CLR_WHITE, CLR_WHITE } },; { { 1, RGB( 229,241,251 ), RGB( 229,241,251 ) } } ) } oCtrl:refresh() ...
by Silvio.Falconi
Mon Jun 12, 2023 5:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Select one btnbmp into a scrollpanel
Replies: 1
Views: 105

Re: SAY dentro de BUTTOMBAR??

... oBar,; ,; ,; {aAcciones[i][6],aAcciones[i][2]},; ,; ,; (aacciones[i][4]),; ,; (aacciones[i][3]),; ,; ,; ,; .F. ) next AEVAL(oBar:aControls,{|o,n|o:SetColor(CLR_BLACK,CLR_BLUE)}) oBar:bPainted := {|| oBar:SayText( "Prueba", nil, "R" ) } //* los 2 primeros array ...
by José Camilo
Sat Jun 03, 2023 6:22 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: SAY dentro de BUTTOMBAR??
Replies: 4
Views: 213

Re: Can I get object from handle?

... application in the window method ::handleEvent() describing the processing of a unique event. For example: if valtype(nMsg)="C" oDlg:AControls[1]:SetText(msg) return endif ::Super... From the application with the button we find the handle of the window with TSAY hWn:=FindWindow() ...
by Natter
Thu Apr 13, 2023 5:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Can I get object from handle?
Replies: 15
Views: 1329

Re: Cambiar objetos en un panel de TDockPnel tiempo ejecución

... cambiar los controles que tiene, cómo lo harías ? Intenta eso y seguimos viendo lo que necesitas Recuerda que todo contenedor tiene un array ::aControls, en el que están todos los objetos que has definido dentro, por lo tanto    AEVal( oContenedor:aControls, { | o | o:End() ...
by cnavarro
Thu Mar 30, 2023 7:14 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cambiar objetos en un panel de TDockPnel tiempo ejecución
Replies: 3
Views: 290

Re: how to get Information from ::aControls

hi,
When we create controls on a dialog, the controls are created only when the dialog is initialized.
So, hWnd is valid only after activating the dialog.

ah ... ok, thx
have to over-think concept
by Jimmy
Thu Mar 30, 2023 12:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: how to get Information from ::aControls
Replies: 2
Views: 243

Re: how to get Information from ::aControls

When we create controls on a Window, all controls are fully created and so have valid hWnd.
When we create controls on a dialog, the controls are created only when the dialog is initialized. So, hWnd is valid only after activating the dialog.
by nageswaragunupudi
Thu Mar 30, 2023 11:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: how to get Information from ::aControls
Replies: 2
Views: 243

how to get Information from ::aControls

hi, i do have REDEFINE BUTTON and i want to get hWnd of each Control   FOR ii := 1 TO LEN( ::aControls )      oObj := ::aControls[ii]      hWnd := oObj:hWnd      fwlog oObj, LEN(oObj), hWnd oOBj -> TBUTTON LEN(oObj) -> 151 // ??? hWnd -> ...
by Jimmy
Thu Mar 30, 2023 10:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: how to get Information from ::aControls
Replies: 2
Views: 243

Scroll of Panel not at the same Height of Xbrowse

... oPanel:nTop := oRect:ntop +40 oPanel:nLeft := oRect:nleft+5 oPanel:nBottom := oRect:nBottom-45 oBar:refresh() for n=1 to Len(oPanel:aControls) oPanel:aControls[n]:refresh() next RETURN NIL > all the test sources #include "FiveWin.ch"#include "constant.ch"#define ...
by Silvio.Falconi
Wed Jan 11, 2023 10:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Scroll of Panel not at the same Height of Xbrowse
Replies: 2
Views: 301

Re: Modificar dialogo en Recurso (Tiempo de ejecucion)

Desde la claúsula ON INIT del diálogo puedes acceder a los controles y modificarlos antes de que se muestren

Posteriormente puedes hacerlo accediendo a oDlg:aControls, localizas el control que buscas y lo modificas
by Antonio Linares
Tue Dec 13, 2022 9:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Modificar dialogo en Recurso (Tiempo de ejecucion)
Replies: 11
Views: 762
Next

Return to advanced search