POPUP Window refresh

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

radohabjan
Posts: 99
Joined: Mon Nov 30, 2009 7:17 am
Location: Slovenia
Contact:

POPUP Window refresh

Post by radohabjan »

Hello Friends,

Esgici helps me to convert my program to other languages. I have one small problem. I want to change popup menu items
to another language just with one button ( changing menu items in window), but I don't know how to refresh window (menu)

DEFINE WINDOW Win_1 AT 10,10 WIDTH ndesktopw HEIGHT 200 ;
TITLE aprevod[1] ;
ON RELEASE zapribaze() ;
MAIN
FONTSIZE 14
DEFINE MAIN MENU
DEFINE POPUP '&1. Šifranti podatkov'
MENUITEM '&1. '+aprevod[3] ACTION uporab()
MENUITEM '&2. '+aprevod[4] ACTION sifdavk()
END POPUP
END MENU
@ 50,200 BUTTON Jez1 PICTURE 'slo.bmp' ACTION (jezik:=1,InitProg()) WIDTH 50 HEIGHT 25 TOOLTIP 'Slovenščina'
@ 50,280 BUTTON Jez2 PICTURE 'eng.bmp' ACTION (jezik:=2,InitProg()) WIDTH 50 HEIGHT 25 TOOLTIP 'English'


I try with Win_1.Refresh and Win_1.Menu.Refresh . It doesn't work.

br Rado
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: POPUP Window refresh

Post by esgici »

Hello Rado
radohabjan wrote:I have one small problem. I want to change popup menu items
to another language just with one button ( changing menu items in window), but I don't know how to refresh window (menu)
This isn't quite small problem ;)

As far as I know, sadly we haven't such possibility.

I you will found please share with us ;)

Regards
Viva INTERNATIONAL HMG :D
User avatar
danielmaximiliano
Posts: 2763
Joined: Fri Apr 09, 2010 4:53 pm
DBs Used: DBF
Location: Argentina
Contact:

Re: POPUP Window refresh

Post by danielmaximiliano »

Hola Esgici :
Hubo modificaciones en la fecha 2012-07-23 de Harbour Nightly que posiblemente resuelva el problema de Lenguajes/traducciones.

Hello Esgici:
There were changes in the date 07/23/2012 Nightly Harbour possibly solve the problem of languages ​​/ translations.
2012-07-23 13:00 UTC+0200 Viktor Szakats (harbour syenar.net)
+ src/rtl/langcomp.prg
* src/rtl/langapi.c
* src/rtl/Makefile
+ added compatibility layer to HB_LANGSELECT() that
dynamically generates language modules for legacy
codepages from the UTF-8 codepages.
; TODO: Move this layer to C level (I need help)
; TODO: Delete legacy codepages
; TODO: Resolve language modules with missing codepage modules
(ideally by implementing the option to chose from
real codepages directly)
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: POPUP Window refresh

Post by esgici »

Hola Daniel
danielmaximiliano wrote: There were changes in the date 07/23/2012 Nightly Harbour possibly solve the problem of languages ​​/ translations.
Thanks, good news :)

I'll try.

( Though I haven't courage and patience to undertake this Nightly affair ;) )

Saludos
Viva INTERNATIONAL HMG :D
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: POPUP Window refresh

Post by Rathinagiri »

This can be done by releasing the window and re-defining the window again.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
radohabjan
Posts: 99
Joined: Mon Nov 30, 2009 7:17 am
Location: Slovenia
Contact:

Re: POPUP Window refresh

Post by radohabjan »

Hello,

with releasing and re-defeining windows is not problem for modal and other windows, the problem is in Main window.
To make new main window to start window , which was before main window , is nonsense. So the best solution is restart of programm with new settings.

br Rado
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: POPUP Window refresh

Post by Rathinagiri »

There is a way to avoid that!

Make a main window which is hidden and all your other windows are either modal or child.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
radohabjan
Posts: 99
Joined: Mon Nov 30, 2009 7:17 am
Location: Slovenia
Contact:

Re: POPUP Window refresh

Post by radohabjan »

Thanks Rathinagiri, it works

DEFINE WINDOW Main AT 10,10 WIDTH 0 HEIGHT 0 MAIN NOSHOW ON INIT (startprog(),Main.Release)
END WINDOW
ACTIVATE WINDOW Main

brRado
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: POPUP Window refresh

Post by esgici »

rathinagiri wrote: This can be done by releasing the window and re-defining the window again.
rathinagiri wrote:There is a way to avoid that!
Make a main window which is hidden and all your other windows are either modal or child.
Nice trick 8-)

Thanks Rathi :)

Regards
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: POPUP Window refresh

Post by esgici »

danielmaximiliano wrote:...There were changes in the date 07/23/2012 Nightly Harbour...
Hi Rathi

Do you think to publish a new release of HMG regarding Harbour's last nightly build ?

TIA

Regards
Viva INTERNATIONAL HMG :D
Post Reply