In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Se encontraron 262 coincidencias

por Hurricane
Mar Feb 22, 2022 8:28 pm
Foro: Spanish
Tema: Mensaje de error -TDbfDataSet not destroyed correctly.
Respuestas: 3
Vistas: 964

Re: Mensaje de error -TDbfDataSet not destroyed correctly.

Olá, use apenas destroy e sem condicionais ( já faz o :close() ): AEVAL(oDataSource:aDataSet, {|o|o:destroy()}) Versão mais compacta e parametrizável: FUNCTION CerrarTodoDS( aDS ) local oDS LOCAL nPos aDS:=IF( aDS == NIL, DataSources(), aDS ) for nPos:=Len(aDS) TO 1 STEP -1 oDS:=aDS[nPos] AEVAL(oDS:...
por Hurricane
Mié Feb 16, 2022 1:07 pm
Foro: English
Tema: TBrowseMod - inconsistencies
Respuestas: 1
Vistas: 428

TBrowseMod - inconsistencies

Hi, Inconsistencies: 1 - FASTEDIT: when starting typing* (Eg: z, x), it only activates the editing mode, ignoring the typed letter. 2 - FASTEDIT: when starting typing* (Eg: a, b), will enter a number. 3 - In the form designer, if you click further to the right of a column, it will not be selected, b...
por Hurricane
Mié Feb 16, 2022 4:47 am
Foro: English
Tema: IDEInspector - how to change TLabel:cText?
Respuestas: 6
Vistas: 1244

IDEInspector - how to change TLabel:cText?

Hi,

I'm completing a new plugin...
how do I change the TLabel:cText value? that is in the Form Designer and reflect it in the Object Inspector.

regards,
por Hurricane
Mar Feb 15, 2022 3:18 am
Foro: English
Tema: TBrowseMod - Message not found: TEditForGrid:NDATACOL
Respuestas: 1
Vistas: 368

TBrowseMod - Message not found: TEditForGrid:NDATACOL

Hi, The onSaveCol event is sending an TEditForGrid object, instead of TBrwColMod (as described in the documentation). METHOD BrwSaveCol( oSender, oCol, xValue ) CLASS tfrmLbEdit /*REDECLARE oCol as TBrwColMod if oCol:nDataCol = 4 ... endif */ // Only one column is editable, it won't break my code. m...
por Hurricane
Lun Feb 14, 2022 12:58 pm
Foro: English
Tema: Code Editor - incorrect function hint
Respuestas: 1
Vistas: 356

Code Editor - incorrect function hint

Hi,

correct is hb_dirCreate( <cDirectory> ) -> nError.
dir_create.png
dir_create.png (3.69 KiB) Visto 356 veces
por Hurricane
Vie Feb 11, 2022 12:33 pm
Foro: English
Tema: TBrowseMod - freeze column and more
Respuestas: 4
Vistas: 790

TBrowseMod - freeze column and more

Hi,

I have attached a small example.

Is this the correct way to freeze the column?
Via Form Designer, it is not possible to click directly on any column to adjust it in the Object Inspector.

regards,
por Hurricane
Vie Feb 11, 2022 1:40 am
Foro: English
Tema: TBrowseMod/Column:nClrPane - doesn't work when....
Respuestas: 2
Vistas: 422

TBrowseMod/Column:nClrPane - doesn't work when....

Hi, if this line of code is active, column 1 will not apply the color of nClrPane: ::oBrowseMod1:aGridData:=Directory('*.*') #include "Xailer.ch" CLASS TForm2 FROM TForm COMPONENT oBrowseMod1 METHOD CreateForm() METHOD FormInitialize( oSender ) ENDCLASS #include "Form2.xfm" //---...
por Hurricane
Vie Feb 11, 2022 12:33 am
Foro: English
Tema: Error: TBROWSEMOD:DELCOL
Respuestas: 1
Vistas: 358

Error: TBROWSEMOD:DELCOL

Hi, To simulate with Form Designer: include two columns delete the first column delete the second column (KABUMM) Subsystem Call: BASE System Code: 1132 Default Status: .F. Description: Bound error Operation: array access Arguments: [ 1] = Type: A Val: [ 2] = Type: N Val: 2 Involved File: Dos Error ...
por Hurricane
Mar Feb 08, 2022 1:23 pm
Foro: English
Tema: AddExistingControl - control does not select, activates
Respuestas: 3
Vistas: 498

Re: AddExistingControl - control does not select, activates

Hi, it works fine when I insert the control directly into the Form, but when I insert it inside a container (groupBox...), both are selected. I sent you an email with a small complete example. just add: oPlugin:IInspector:oActiveForm:ReplaceSelection(oCtrl) add_control2.png I tested this but it keep...
por Hurricane
Lun Feb 07, 2022 1:57 pm
Foro: English
Tema: AddExistingControl - control does not select, activates
Respuestas: 3
Vistas: 498

AddExistingControl - control does not select, activates

Hi, after i inserted the control into the Form, it is not selected, (I need to click on control to activate in object inspector). I will email you a small complete project. if nsBtn = BTN_MSK with object oCtrl:=TDbMaskEdit():New(oParent) :SetBounds( aPos[1], aPos[2], 80, 20 ) //:oDataField:=cField :...
por Hurricane
Jue Feb 03, 2022 5:34 pm
Foro: English
Tema: Code Editor - new button, no duplication
Respuestas: 0
Vistas: 786

Code Editor - new button, no duplication

Hi, I added a button to my routine in Code Editor, but how to make it not duplicate when compiling the plugin? With two lines of code, I improvised and it works fine: function install_ColorPicker(self) local oBand AEval( ::IEditor:oRebar:aItems, {|o|IF(HB_IsChar(o:cargo) .and. o:cargo == UTIL_NAME, ...
por Hurricane
Mié Ene 26, 2022 6:50 pm
Foro: Spanish
Tema: Reproducir MP3
Respuestas: 2
Vistas: 1094

Re: Reproducir MP3

Olá, veja o exemplo SAMPLES\VIDEO\VideoPlayer.XPJ O arquivo fonte da classe TVideoPlayer esta junto. METHOD FormInitialize( oSender ) CLASS TVideo DeleteMenu( GetSystemMenu( ::Handle ), 2, MF_BYPOSITION ) WITH OBJECT ::oMCI := TVideoPlayer():New( Self ) //:cMediaFile := "fp.avi" :cMediaFil...
por Hurricane
Mié Ene 26, 2022 5:56 pm
Foro: Spanish
Tema: Archivo adjunto duplicado en Mail
Respuestas: 4
Vistas: 1277

Re: Archivo adjunto duplicado en Mail

Olá, eu olhei o código fonte da classe. Troque :destroy() por :free(). após o :create(), adicione :lInstalled e informe se retorna .T. ou .F. no final do loop, após cada envio, adicione a função sleep(50), apenas para teste. Qual o domínio de e-mail (remetente) esta usando? No total, há quantos envi...
por Hurricane
Mar Ene 25, 2022 12:37 am
Foro: Spanish
Tema: Filtro del browse
Respuestas: 2
Vistas: 1152

Re: Filtro del browse

Olá,

Código: Seleccionar todo

::oBrw:oHeader:EditFilter(2)
edit_filter.png
edit_filter.png (9.53 KiB) Visto 1143 veces
Alfonso escribió: Lun Ene 24, 2022 8:41 pm Cuando estan activados los filtros de un browse, ¿existe alguna propiedad o forma, para que cuando se inicializa el browse el foco este en alguna de las columnas del filtro no en los registros?
por Hurricane
Vie Ene 21, 2022 2:35 am
Foro: English
Tema: Sqlite datasource for DBBrowse
Respuestas: 4
Vistas: 947

Re: Sqlite datasource for DBBrowse

Hi, 1 - In TSQLiteDataSouce: assign the full name of the DB file (:cConnect) 2 - add TSQLQuery: define SQL statement (:cSelect) assign/select the DataSource (:oDataSource) activate (:lOpen) * 3 - In TDBBrowse: assign/select the TSQLQuery (:oDataSet) If there are no columns in the browse, they will b...
por Hurricane
Mié Ene 19, 2022 8:01 pm
Foro: English
Tema: IDE: BEGIN JSON-EN JSON
Respuestas: 1
Vistas: 587

IDE: BEGIN JSON-EN JSON

Hi,

what is this feature? how to use?
> Support of BEGIN JSON-EN JSON in Treeview of the active module

regards,
por Hurricane
Mié Ene 19, 2022 4:48 am
Foro: English
Tema: no forum notification
Respuestas: 1
Vistas: 569

no forum notification

Hi, I haven't received any notifications from the forum for 7 months. (a few days after I was added to the Pro Users group). In "Manage subscriptions", it shows all the forums I'm subscribed to. In "Edit notification options", is enabled, I haven't changed anything. I did the Uns...
por Hurricane
Mar Ene 11, 2022 9:32 pm
Foro: Spanish
Tema: Problemas de lentitud
Respuestas: 2
Vistas: 661

Re: Problemas de lentitud

simples, Objeto x Variável simples, com objeto precisa procurar em tempo de execução as propriedades da classe, é natural que seja mais lento, não é um problema. Em cada trecho de código, o programador sempre terá que escolher o que deve usar, até uma função no lugar errado tornará mais lento. Na pr...
por Hurricane
Mar Ene 11, 2022 1:55 pm
Foro: English
Tema: New Form - IDE shortcuts don't work
Respuestas: 0
Vistas: 1061

New Form - IDE shortcuts don't work

Hi Ignacio, I created a form for the IDE, when it is in focus, the Xailer shortcuts don't work: F9, F11, CTRL+11.... but the shortcut for my other plugin works. When Project Manager or Object Inspector is in focus, Xailer shortcuts work. I have sent a complete example to your email. I added a quick ...
por Hurricane
Mar Ene 11, 2022 1:14 pm
Foro: English
Tema: how to add image in TComboBox?
Respuestas: 1
Vistas: 512

how to add image in TComboBox?

Hi,

in this way:
img_cbx.png
img_cbx.png (362 Bytes) Visto 512 veces
regards,
por Hurricane
Mar Ene 04, 2022 6:44 pm
Foro: English
Tema: ComboBox:cText problem
Respuestas: 3
Vistas: 610

Re: ComboBox:cText problem

Hi, I think the Xailer needs some additional code to fix. On Lazarus it worked. In Xailer it works only with the csDROPDOWNLIST style. With the OnChange event it doesn't work either. After selection cText is out of date. And the proper event depends on the logic applied to the form, I'm using 3 comb...
por Hurricane
Lun Ene 03, 2022 11:45 pm
Foro: English
Tema: ComboBox:cText problem
Respuestas: 3
Vistas: 610

ComboBox:cText problem

Hi, After selecting an item, TComboBox:cText does not have the correct value. This will happen if you use csDROPDOWN. I have attached a project with the example. troubleshooter: (Are there any different alternatives?) METHOD CbxCloseUp( oSender ) CLASS TForm1 ::LOADFILES(.t.) RETURN Nil //----------...
por Hurricane
Lun Ene 03, 2022 6:26 pm
Foro: English
Tema: addControl - how to add control?
Respuestas: 2
Vistas: 463

Re: addControl - how to add control?

Thanks for your help. It worked, but I needed to add Parent to avoid the error. // with object oObj:=TDbMaskEdit():New() // --> GETNEWID(0) Error BASE/1004 No exported method: GETNEWID *** The object is NIL or doesn't exists *** with object oObj:=TDbMaskEdit():New(::IInspector:oActiveForm) :SetBound...
por Hurricane
Lun Ene 03, 2022 4:15 pm
Foro: English
Tema: addControl - how to add control?
Respuestas: 2
Vistas: 463

addControl - how to add control?

Hi, I'm trying to create a plugin to insert controls on the Form. Where am I going wrong? I added the control, but with problems... Control is in edit mode with object oObj:=TDbMaskEdit():New(::IInspector:oActiveForm) // Parent is TFormEditor :SetBounds( 50, 30, 80, 20 ) :cVarname := "oTmp"...