STRU - Lists and modifies the structure of the dbfs files

You can share your experience with HMG. Share with some screenshots/project details so that others will also be benefited.

Moderator: Rathinagiri

User avatar
mol
Posts: 3774
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: STRU - Lists and modifies the structure of the dbfs file

Post by mol »

gfilatov wrote:
Pablo César wrote:One question: Is it possible in HMG to change color of highlighted row in grid component ?
Hello Pablo,

It is possible with changing of the following internal variables:
* _HMG_SYSDATA [ 348 ] -> Grid Selected Row ForeColor (by cell navigation)
* _HMG_SYSDATA [ 349 ] -> Grid Selected Row BackColor (by cell navigation)
Hope that helps. :idea:
Following this, I want to ask if it's possible to change colors of nonfocused grid?
Marek
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

STRU - Lists and modifies the structure of the dbfs file

Post by Pablo César »

gfilatov wrote:
Pablo César wrote:One question: Is it possible in HMG to change color of highlighted row in grid component ?
Hello Pablo,

It is possible with changing of the following internal variables:
* _HMG_SYSDATA [ 348 ] -> Grid Selected Row ForeColor (by cell navigation)
* _HMG_SYSDATA [ 349 ] -> Grid Selected Row BackColor (by cell navigation)
Hope that helps. :idea:
Thanks Grigory for your tip, I also thought that it could it work but I am still do not finding the right way...

Mr. Grigory, now with your example I noted your indication it is for fixed color in all rows. But I needing to change color according a existing file at each row. So its could change color according each row in two diferent situations. Please see in my code source at line 1979.

Source code with my attempts for your appreciation and I wish to advise Marek to test in Polish at console now with this last version, just to see if polish codepage has been set and working properly.

Remark: Text in blue color was inserted after the first posting (message re edited)

<Attached file removed, see last message with now release>
Last edited by Pablo César on Sat Sep 15, 2012 1:23 pm, edited 1 time in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
chrisjx2002
Posts: 192
Joined: Wed Jan 06, 2010 5:39 pm

Re: STRU - Lists and modifies the structure of the dbfs file

Post by chrisjx2002 »

Hello,

Very interesting program. I'll have translated it into French.

Using it in the console mode I notice a problem : see attached file. It happens when you use first F9 and after F1. In the same way french accents (like é,è,à,...) are not displayed in the console mode.

Regards
Attachments
Screenshot
Screenshot
Message1.jpg (19.5 KiB) Viewed 4340 times
French.zip
French translation
(1.74 KiB) Downloaded 224 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

STRU - Lists and modifies the structure of the dbfs file

Post by Pablo César »

chrisjx2002 wrote:Very interesting program. I'll have translated it into French.
Thank you. Your contribution to French language, very much appreciated, many thanks !
Using it in the console mode I notice a problem : see attached file. It happens when you use first F9 and after F1. In the same way french accents (like é,è,à,...) are not displayed in the console mode.
Have you tested your code program in console mode and compiled it by HMG before ? I believe something with codepage that is not configurable in HMG with french language. See source code line 39.

Even been at English here, do not displays these "y" caracteres. Too weird...
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
chrisjx2002
Posts: 192
Joined: Wed Jan 06, 2010 5:39 pm

Re: STRU - Lists and modifies the structure of the dbfs file

Post by chrisjx2002 »

Very weird in fact.

I use the French language and the console mode.
The first time I use F1 it works : first screenshot. Everythink is OK even the accents
After I use F9 : I have no more accent : second screenshot
After I use F1 and I have no more accent and the yyyyy : third screenshot

Any idea???? :cry:
Attachments
Second use of F1 : no accent and yyyy
Second use of F1 : no accent and yyyy
MessageF1bis.jpg (20.88 KiB) Viewed 4313 times
Use of F9 : no accent
Use of F9 : no accent
MessageF9.jpg (12.04 KiB) Viewed 4313 times
First use of F1
First use of F1
MessageF1.jpg (19.58 KiB) Viewed 4313 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

STRU - Lists and modifies the structure of the dbfs files

Post by Pablo César »

Hi Cris,

In the fact, here it doesn´t matter when we press F1 before F9, this doesn´t change exibitions of accents, as you could see first screen and second screen (in yellow).

Please, let me ask you something important: at this attached image, in both red circles made, do you see french acents when you are running STRU in your computer or visualization it is like my image attached ? (please confirm)

I believe that you are visualizing in correct way in french (not these strange caracters, like in image) then I suppose that Hb_AnsiToOem() could it be interfering when is french language because HMG/Minigui seems not applying HB_CDPSELECT() by SET LANGUAGE when is translated internally. Then, for french, probably doesn´t needs to use Hb_AnsiToOem(). But I need your confirmation if you are seeing correctly (in both circles) in your screen when are running STRU in console mode. Please confirm that.
écran1.PNG
écran1.PNG (22.56 KiB) Viewed 4309 times
If you confirm that, then I will make a way for exception use in french and any other languages which is not using codepage function.
chrisjx2002 wrote:The first time I use F1 it works : first screenshot. Everythink is OK even the accents
After I use F9 : I have no more accent : second screenshot
After I use F1 and I have no more accent and the yyyyy : third screenshot
I have another question (please let me know): You obtained these results, was when you ran STRU which version please ? (you can see STRU version when you mouse click in "A propos" in GUI mode).
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
chrisjx2002
Posts: 192
Joined: Wed Jan 06, 2010 5:39 pm

Re: STRU - Lists and modifies the structure of the dbfs file

Post by chrisjx2002 »

Hi Pablo,

The version is 3.8

I have the same problems with words flèches and N° : see attached file

I confirm that the first time I use F1 it works with accents, I use F1 a second time, a third time,.. it works with accents but if I use F9 and F1 there are these strange y which are appearing on the screen.

Regards
Attachments
Screenshot
Screenshot
Message2.jpg (37.69 KiB) Viewed 4283 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

STRU - Lists and modifies the structure of the dbfs file

Post by Pablo César »

chrisjx2002 wrote:The version is 3.8

I have the same problems with words flèches and N° : see attached file
Ok, in this case I am releasing another version 3.8a and we need to test it one by one untill we let it ok. But I need your test results in your french enviroment and confirming which version was tested, because here I have no french Windows to be tested, ok ?
I confirm that the first time I use F1 it works with accents, I use F1 a second time, a third time,.. it works with accents but if I use F9 and F1 there are these strange y which are appearing on the screen.
Now is different behaviour as you have related before. Anyway, now in this version 3.8a it is working with all french accents/caracters here. But remember, I am in portuguese enviroment, because my Windows is brazilian one, so I need you make your test there and tell us how it was.

<Attached file removed, see last message with now release>
Last edited by Pablo César on Sun Sep 16, 2012 3:40 pm, edited 1 time in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
chrisjx2002
Posts: 192
Joined: Wed Jan 06, 2010 5:39 pm

Re: STRU - Lists and modifies the structure of the dbfs file

Post by chrisjx2002 »

I Pablo,

I have tested this new version. The french accents work now correctly! No more problem on the screen and when using F1 key. Thanks for this modification.

But this modification has changed the window mode : look at N° in the two versions.

Regards
Attachments
Screenshot 3.8a
Screenshot 3.8a
Newversion.jpg (29.29 KiB) Viewed 4391 times
Screenshot 3.8
Screenshot 3.8
Oldversion.jpg (29.76 KiB) Viewed 4391 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

STRU - Lists and modifies the structure of the dbfs file

Post by Pablo César »

chrisjx2002 wrote:french accents work now correctly
Very good ! I glad to know this.
But this modification has changed the window mode : look at N° in the two versions.
I have seen that LISTAR() function was being called by console mode and GUI and not treated before being utilized. Now I think is working properly.

I shall thank you very much, for you give me your feed back which helped me to correct some treatment for language details.

Now see a new release 3.8b in attached compressed file.

<Attached file removed, see last message with now release>
Last edited by Pablo César on Tue Sep 18, 2012 11:55 am, edited 1 time in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply