POPUP Window refresh
Moderator: Rathinagiri
-
radohabjan
- Posts: 99
- Joined: Mon Nov 30, 2009 7:17 am
- Location: Slovenia
- Contact:
POPUP Window refresh
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
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
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: POPUP Window refresh
Hello Rado

As far as I know, sadly we haven't such possibility.
I you will found please share with us
Regards
This isn't quite small problemradohabjan 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)
As far as I know, sadly we haven't such possibility.
I you will found please share with us
Regards
Viva INTERNATIONAL HMG 
- danielmaximiliano
- Posts: 2763
- Joined: Fri Apr 09, 2010 4:53 pm
- DBs Used: DBF
- Location: Argentina
- Contact:
Re: POPUP Window refresh
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.
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
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: POPUP Window refresh
Hola Daniel

I'll try.
( Though I haven't courage and patience to undertake this Nightly affair
)
Saludos
Thanks, good newsdanielmaximiliano wrote: There were changes in the date 07/23/2012 Nightly Harbour possibly solve the problem of languages / translations.
I'll try.
( Though I haven't courage and patience to undertake this Nightly affair
Saludos
Viva INTERNATIONAL HMG 
- 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
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.
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
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
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
- 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
There is a way to avoid that!
Make a main window which is hidden and all your other windows are either modal or child.
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.
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
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
DEFINE WINDOW Main AT 10,10 WIDTH 0 HEIGHT 0 MAIN NOSHOW ON INIT (startprog(),Main.Release)
END WINDOW
ACTIVATE WINDOW Main
brRado
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: POPUP Window refresh
rathinagiri wrote: This can be done by releasing the window and re-defining the window again.
Nice trickrathinagiri 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.
Thanks Rathi
Regards
Viva INTERNATIONAL HMG 
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: POPUP Window refresh
Hi Rathidanielmaximiliano wrote:...There were changes in the date 07/23/2012 Nightly Harbour...
Do you think to publish a new release of HMG regarding Harbour's last nightly build ?
TIA
Regards
Viva INTERNATIONAL HMG 