FMG Editor

Utilities like DBU, Make, IDE written in HMG/ used to create HMG based applications

Moderator: Rathinagiri

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

FMG Editor

Post by Pablo César »

Gracias Andrés por reportar. Este error ocurre porque no hé podido avanzar...

Mi preocupacion por ahora, es que cargue los archivos fmg. Después continuaré con los eventos y recursos.

Estoy viendo que se complica cuando el archivo tiene acentos de la lengua y que el archivo no está en UNICODE.

Image

Thanks Andrés for reporting. This error occurs because I could not gone ahead with developpement ...

My concern for now is this APP to load all fmg files. Then I will continue with events and resources.

Now I'm seeing that is complicated when the file has accents of the language and the file is not in UNICODE.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Steed
Posts: 433
Joined: Sat Dec 12, 2009 3:40 pm

Re: FMG Editor

Post by Steed »

Hi, pablo

When I load the form "Main.fmg" included in the FMG_Editor Folder I have the next error. Removing the toolbar "ToolBar_1" in the "Main.Fmg" form, that error is solved.
Err1.PNG
Err1.PNG (20.56 KiB) Viewed 5141 times

Code: Select all

Date:05/06/14 Time: 14:43:46
 Version: HMG 3.2.0 Stable Patch 2 - FMG_Editor  LOADING

Error: Unknown or unregistered symbol

 Called from EXE_FUNCTION(1037)
 Called from LOAD_FMG(468)
 Called from OPEN_FORM(353)
 Called from (b)MAIN(34)
 Called from (b)MAIN(120)
 Called from _DOCONTROLEVENTPROCEDURE(5622)
 Called from EVENTS(1640)
 Called from DOMESSAGELOOP(0)
 Called from _ACTIVATEWINDOW(5290)
 Called from MAIN(185)
Thanks Again,

Ed
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

FMG Editor

Post by Pablo César »

Hi Eduar, attach the Prg_0001.prg file, please.

Because for me here is working:
Attachments
Tela.PNG
Tela.PNG (13.79 KiB) Viewed 5134 times
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Steed
Posts: 433
Joined: Sat Dec 12, 2009 3:40 pm

Re: FMG Editor

Post by Steed »

Pablo, FYI
Prg_0001.rar
(881 Bytes) Downloaded 308 times
Thanks Ed
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

FMG Editor

Post by Pablo César »

Steed wrote:Pablo, FYI
Prg_0001.rar
Thanks Ed
No pude todavia ver este problema Eduar. Pero me parece que tiene relacion con haber re-editado el archivo y quedado con el formato UTF-8.

Con respecto a
andyglezl wrote: Hice la prueba con tu ultimo ejecutable y me da estos errores al dar "click" en 2 controles.
Esto, ya lo arreglé. Atribuicion de variable errada. Pero falta vários ajustes para que me detenga sobre los eventos. Estoy más preocupado ahora con archivos grabados en UTF-8.
danielmaximiliano wrote:Me sucede lo mismo
2014-05-06 08_38_32-Open form.jpg
2014-05-06 08_39_05-Program Error.jpg
PrincipalOCX.rar
Ya consegui resolver esto Daniel.

Solo que tengo otra situacion. Cuando el usuário modifica y grabado con UTF8_FBOM.

Claudio, tengo este problema:

Cuando usuário graba el header del archivo con Chr( 0xEF ) + Chr( 0xBB ) + Chr( 0xBF ). No consigo leer adecuadamente el archivo fmg. Consigo otros archivos que reconocen que son UTF pero no cuando tiene estes caracteres.

Hay alguna forma de transformar essa string de forma que pueda processarla sin que me distorciene todo ?

Image

Message re-edited, translations to English was added. :mrgreen:

I could still see this problem Eduardo. But I think it has relation to be re-edited the fmg file and kept the UTF-8 format.

This Andrés, I have fixed it. Wrong assign to a variable. But many other settings is waiting for... know about events I left aside for a while. I'm more concerned with engravings in UTF-8 files.

I already solved this, Daniel.

Just that I have another situation. When the user modifies and recorded with UTF8_FBOM. :|

Claudio, I have this problem:

When the user save to fmg file in it header the following characters: Chr (0xEF) + Chr (0xBB) + Chr (0xBF). When is this, I do not get properly read the fmg file. I can read others files but with UTF characters: not.

Is there any way to transform these header and read it normally ?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: FMG Editor

Post by srvet_claudio »

Pablo César wrote:Claudio, tengo este problema:

Cuando usuário graba el header del archivo con Chr( 0xEF ) + Chr( 0xBB ) + Chr( 0xBF ). No consigo leer adecuadamente el archivo fmg. Consigo otros arquivos que reconocen que son UTF pero no cuando tiene estes caracteres.

Hay alguna forma de transformar essa string de forma que pueda processarla sin que me distorciene todo ?
Hi Pablo,
see this code:

Code: Select all

   #define UTF8_BOM  ( HB_BCHAR( 0xEF ) + HB_BCHAR( 0xBB ) + HB_BCHAR( 0xBF ) )

   cFileData := HB_MEMOREAD ( cFileName )

   IF HB_BLEFT ( cFileData, HB_BLEN ( UTF8_BOM ) ) == UTF8_BOM   // content BOM
      cFileData := HB_BSUBSTR ( cFileData, HB_BLEN ( UTF8_BOM ) + 1 )   // remove UTF8_BOM
   ENDIF
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

FMG Editor

Post by Pablo César »

Gracias, Claudio por responder. Que bueno que me entendiste. De tanto que toquetear se descompaginó mi código. Yo estaba intentando casi como vos pusiste pero con funciones erradas. Pero funcionó perfectamente. Muchas gracias nuevamente, te agradezco mucho.

<Files attached was removed. Please see last message with updated files.>
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

FMG Editor

Post by Pablo César »

I think quite normalized following cases in the time of opening fmg files:

- Process even been re-edited
  (when file is not having the exact characteristics that when the file has been generated by the IDE)
- Process even with ";" character (break line)
- Open for ANSI or UNICODE
- Neutralizing properties as:
   - NOMAXIMIZE
   - NOMINIMIZE
   - NOSIZE
   - NOSYSMENU
   - MODAL
- Change color frame selector for components with the same BackColor

Não I have to improve CHILD window sizes. Make multi selections (including ListBox).
Make Setup window, saving at INI file (any one to help ?)

I have one important question and I would like your opinions:

When we have a ComboBox component at a form and need to be selected. Which size for selector frame must be ?

This one ?
Screen.PNG
Screen.PNG (9.94 KiB) Viewed 5070 times
Or this ?
Screen (1).PNG
Screen (1).PNG (10.05 KiB) Viewed 5019 times
Because seems strange, but is the real size when ComboBox is open.

Please look up on based on this version of release:

Also I need any suggestion for image of "Properties" button (shall pass idea of properties of the component).

Very important: When you make any error report, please attach always the fmg file, even been fmg file in package. Because if is re-edited, I need to analysed it contains of file.

<Attached files was removed. Please see last message with updated files.>
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Mario Mansilla
Posts: 270
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Re: FMG Editor

Post by Mario Mansilla »

Una consulta :
el FMG Editor será un complemento al IDE de HMG el cual me permitirá agregar funcionalidad al IDE . Actualmente al estar desactualizado el IDE con respecto a los nuevos controles y mejoras que proporciono Claudio a los mismos los ingreso editando el FMG con el NOTEPAD . Pero es alli que al modificar posteriormente algo en el FMG con el IDE se me borran todas las modificaciones que hice con el NOTEPAD y tengo que editar todo de nuevo .
Con el FMG Editor no me pasará exactamente lo mismo ?
Saludos
Mario Mansilla

A query:
the FMG Editor will complement the HMG IDE which will allow me to add functionality to the IDE. Currently the IDE to be outdated compared to the new controls and enhancements Claudio I provide to them the income FMG editing with Notepad. But is there something that changed later in the FMG with the IDE I deleted all the changes I made with NOTEPAD and I have to edit everything again.
With the FMG Editor I will not go exactly the same?
regards
Mario Mansilla
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

FMG Editor

Post by Pablo César »

Mario Mansilla wrote:el FMG Editor será un complemento al IDE de HMG el cual me permitirá agregar funcionalidad al IDE
Hola Mario, gracias por expresar tu interés.

No sabemos si este aplicativo irá ser incorporado al IDE. Pero como vos mismo mencionaste, es un complemento a ciertas deficiencias. Pero todavia es un aplicativo independiente. Tendrá que mostrar estabilidad, compatibilidad, es decir, confianza para que algo pueda ser agregado al IDE. Yo pienso, que nada impide crear un botón asi como "Build Log" que fué adicionado a la actual version de IDE.
Actualmente al estar desactualizado el IDE con respecto a los nuevos controles y mejoras que proporciono Claudio a los mismos los ingreso editando el FMG con el NOTEPAD
Entiendo la situacion y esta práctica es muy comun.
Pero es alli que al modificar posteriormente algo en el FMG con el IDE se me borran todas las modificaciones que hice con el NOTEPAD y tengo que editar todo de nuevo . Con el FMG Editor no me pasará exactamente lo mismo ?
La intencion es poder leer todos los archivos fmg que mantenga compatibilidad con HMG. Y justamente es ese el objetivo, mantener las mismas caracteristicas que fueron grabadas en el archivo fmg. Es decir, con el aplicativo permitirá trabajar con las propiedades de tamaño, posicion, color y poder trabajar con multiseleccion de componentes. Creo tambien que permitirá trabajar con vários formulários simultanemente e interactuar entre si. Pero este es una idea, falta algunas metas deben ser alcanzadas todavia.

Ahora me gustaria de vos que me dés tu opinion sobre la pregunta que hice sobre la altura del ComboBox, como deberia ser en tu opinion :?:

Tienes cualquier sugerencia para la imagen del botón "Properties" (que pase la idea de propiedades del componente) :?:

Slds

Image

Hi Mario, thanks for expressing your interest.

We do not know if this application will be incorporated into the IDE. But as you mentioned yourself, it is a complement to certain IDE deficiencies. But still it is a separate application. Will need to show stability, compatibility, ie, confidence that something can be added to the IDE. I think that nothing prevents you from creating a button like "Build Log" in the current version of IDE which can access this app.

I understand the situation and this practice is very common.

The intention is to read all the fmg files that hold HMG support. And that is precisely the goal, to use the same were saved in the fmg file. I mean, the application will work with the properties of size, position, color and working with multi-selection of components. I think also that will work with multiple forms simultánemente and interact with each other. But this is an idea, are stil some goals to reach.

Now I would like from you and others, to give me your opinion about my question (in previous message) asking about the height of the ComboBox, as it should be in your opinion :?:

Any suggestion for image of "Properties" button (shall pass idea of properties of the component) :?:
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply