FMG Editor

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

Moderator: Rathinagiri

Post Reply
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 all,

This is a tool project, which we intend to make joining efforts of whom wants to contribute. It is important to declare what points is going to be covered by you contributor. For at begining we have following intentions:

1. To open any fmg file.
2. To add ContextMenu for all components automactically
3. To add to ContextMenu, following itens:
   a. Move
   b. Resize
   c. Align
   d. Properties
   c. Select/Unselect
4. Make select and multi-select by clicking of mouse
5. ComboBox with all itens for seletable item
6. To add grids (something like this) with selectable scale
7. To display selected component position at form x,y
8. Preview of fmg

An excellent work we find at C:\MiniGUI\SAMPLES\Advanced\ControlPos_3.

In attached file it is the last version according some goals reached. This is also to be based on.

ChangeLog:

- Open fmg, prepared for reading each elements.
- Recognize Window position, size, title, backcolor. Always will be define as CHILD win.


<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
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: HMG FMG Editor

Post by mol »

I can't compile this project because of cFilePath() function missing...
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: HMG FMG Editor

Post by bpd2000 »

mol wrote:I can't compile this project because of cFilePath() function missing...
+1
BPD
Convert Dream into Reality through HMG
User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: HMG FMG Editor

Post by luisvasquezcl »

I have the same problem.
best regards,
Luis vasquez.
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: HMG FMG Editor

Post by danielmaximiliano »

mol wrote:I can't compile this project because of cFilePath() function missing...
en varios ejemplos de Minigui del amigo Grigory Filatov contiene dicha funcion.
ya que el ejemplo fue sacado de ahi a travez de TextCrawler encontre esta funcion.

several examples of MiniGUI friend Grigory Filatov containing said function.
since the sample was taken from there through TextCrawler I found this function.

Code: Select all

*-----------------------------------------------------------------------------*
STATIC FUNCTION cFilePath( cPathMask )
*-----------------------------------------------------------------------------*
   LOCAL n := RAt( "\", cPathMask )
RETURN If( n > 0, Upper( Left( cPathMask, n ) ), Left( cPathMask, 2 ) + "\" )
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

HMG FMG Editor

Post by Pablo César »

Good remember Daniel. Very sorry to all. :oops: It was too late and I have forgotten this new function at HMG. Please note:

Code: Select all

Function cFilePath( cPathMask )
Local cPath

hb_FNameSplit( cPathMask, @cPath )
Return HB_ULeft( cPath, HMG_Len( cPath ) - 1 )
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: HMG FMG Editor

Post by Javier Tovar »

Hola Pablo César,

Felicidades por el inicio del "Editor", todos los puntos están muy bien, excelentes!, pero a mi opinión si estaría mejor si se completara con las siguientes cualidades:

1.- Que genere el código de creación de *.DBF y *.CDX de todos los controles del Form que nosotros seleccionemos, ya que no siempre todos los controles entran en una base de datos.
2.- Que genere el código de "Altas", "Bajas", "Modificaciones", "Consultas", "Desplegados", "Filtros", "Busqueda", "Imprimir", etc. del Form creado.

Ya que yo en múltiples ocasiones ocupo el IDE para la creación del From, pero a parte utilizo "Mi Generador de Código" para que me genere el Código mencianado. Y pues seria formidable que lo generara en el mismo "Editor".


Editor = IDE + DBU (Rathinagiri) + Genera Código == Otro nivel

Saludos :D :D :D

P.D.: Se que es mucho pedir, pero creo que si queremos que HMG sea de otro nivel tiene que ser así.

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////



Hi Pablo César,

Congratulations on the start of the "Editor", all points are very good, excellent, but my opinion would be better if it was completed with the following qualities!:

1 -. Which generates the code for creating DBF and * all * CDX Form controls selected by us, since all the controls do not always come in a database...
. 2 - That code generate the "High", "Low", "Changes", "Query", "Deployed", "Filters", "Search", "Print", etc.. the Form I created.

Since it multiple times occupied the IDE to create the From, but otherwise I use "My Code Generator" to generate my mencianado Code. And it would have generated tremendous in the same "Editor".


Editor = IDE + DBU (Rathinagiri) + Generate Code == Another level

regards :D :D :D

PS: I know it's a tall order, but I think if we want a different level of HMG is has to be.
Last edited by Javier Tovar on Tue Apr 22, 2014 4:40 pm, edited 1 time in total.
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

HMG FMG Editor

Post by Pablo César »

Hola Javier, gracias por tu interés y comentários. Este tópico y este proyecto, van a ser dedicados a tratar la ediccion de FMG. Lo que tu indicas, poderá ser desarrollado en separado, es decir tenemos que mejorar nuestras herramientas, y una forma de hacerlo es presentando trabajos por separados, si logramos presentar un trabajo bueno y estable, quien sabe podemos juntar todas las herramientas en una, un complemento o nuevas opciones del actual IDE ? Por encuanto, voy a mantenerel foco de ediccion de archivos FMG y poder cambiar posiciones, tamaños y otras propiedades.

Son muchos componentes y ahora tengo la mision de indenticar uno por uno. Asi que te imaginas que grande es la dificultad ?

Image

This message is in spanish, because this matter is because it is a specific matter of our colleague Javier. Only serves to his understanding only.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: HMG FMG Editor

Post by Javier Tovar »

Hola Pablo César,

OK, revisando tu primer post entiendo que se va a trabajar con archivos FMG, y sobre eso poder cambiar las propiedades de los controles. Excelente! :D

Saludos :D
Last edited by Javier Tovar on Tue Apr 22, 2014 7:08 pm, edited 2 times in total.
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

HMG FMG Editor

Post by Pablo César »

Si Javier, basicamente es un complemento al IDE. Como nosotros no tenemos acceso al IDE, busca de alguna forma poder incrementar recursos mismo con aplicaciones de terceros. Como dije, quien sabe si con esto, podemos colaborar con mejoras con el IDE en el futuro.

Por eso, te aconsejo que tu idea, lo desenvuelvas en separado como una herramientas más.

Image

This message is in spanish, because this matter is because it is a specific matter of our colleague Javier. Only serves to his understanding only.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply