From: Alain A. <ala...@wa...> - 2015-11-21 17:29:18
|
Hi, Two bugs I signaled at the beginning of october: 1)using this to have application gets in uft-8: hwg_SetAppLocale( "UTF8" ) hb_cdpSelect( "UTF8" ) When I copy, and then paste, the accentued letters aren't pasted and are replaced with 2 spaces each. I think there is a problem with the copy/paste in hwgui. 2) In a main window, I had a background image. For some reason, I wanted to add two buttons. I didn't understand why I can't see them. They were created, as clicking on their location works. After some researches, I disabled the background, and I was then able to see these buttons. As I really need buttons and backgroung, I hope you'll correct this bug. I have another problem: I want to hide this buttons, and just unhide them in a function. How can I do that ? A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-11-16 14:32) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2500) ------------------------------------------------------------------------ |
From: Alexander S.K. <al...@be...> - 2015-11-23 09:48:51
|
Alain Aupeix пишет: > Hi, > > Two bugs I signaled at the beginning of october: > > 1)using this to have application gets in uft-8: > > hwg_SetAppLocale( "UTF8" ) > hb_cdpSelect( "UTF8" ) > > When I copy, and then paste, the accentued letters aren't pasted and are > replaced with 2 spaces each. > I think there is a problem with the copy/paste in hwgui. Seems to be fixed now. > > 2) In a main window, I had a background image. For some reason, I wanted > to add two buttons. > I didn't understand why I can't see them. They were created, as clicking > on their location works. > > After some researches, I disabled the background, and I was then able to > see these buttons. > As I really need buttons and backgroung, I hope you'll correct this bug. I know about this. In GTK, if a window is drawable, this prevents standard widgets to be displayed. For now, try to use OWNERBUTTON instead of a button. > > I have another problem: I want to hide this buttons, and just unhide > them in a function. > How can I do that ? oBtn:Hide(), oBtn:Show() Regards, Alexander. |
From: Alain A. <ala...@wa...> - 2015-11-24 21:08:49
|
Le 23/11/2015 10:48, Alexander S.Kresin a écrit : > Alain Aupeix пишет: >> Hi, >> >> Two bugs I signaled at the beginning of october: >> >> 1)using this to have application gets in uft-8: >> >> hwg_SetAppLocale( "UTF8" ) >> hb_cdpSelect( "UTF8" ) >> >> When I copy, and then paste, the accentued letters aren't pasted and are >> replaced with 2 spaces each. >> I think there is a problem with the copy/paste in hwgui. > Seems to be fixed now. > >> 2) In a main window, I had a background image. For some reason, I wanted >> to add two buttons. >> I didn't understand why I can't see them. They were created, as clicking >> on their location works. >> >> After some researches, I disabled the background, and I was then able to >> see these buttons. >> As I really need buttons and backgroung, I hope you'll correct this bug. > I know about this. In GTK, if a window is drawable, this prevents > standard widgets to be displayed. For now, try to use OWNERBUTTON > instead of a button. > >> I have another problem: I want to hide this buttons, and just unhide >> them in a function. >> How can I do that ? > oBtn:Hide(), oBtn:Show() ok, I'll try when I'll com back home ... thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2015-01-19 12:24) | HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2360) ------------------------------------------------------------------------ |
From: Alexander S.K. <al...@be...> - 2015-12-09 07:20:05
|
Alain Aupeix пишет: > Le 08/12/2015 12:26, Alexander S.Kresin a écrit : >> Try to do this while the ACTIVATE event: >> >> ACTIVATE WINDOW oMainWindow ON ACTIVATE {||oValid:hide(),oCancel:hide()} > Sorry, but doesn't work ... > Yes, really. Then try the following trick: SET TIMER oTm1 VALUE 100 ACTION {||oValid:hide(),oCancel:hide()} ONCE ACTIVATE WINDOW oMainWindow This will force hiding buttons after 100ms after activating the window. ONCE - this clause set the timer to run only once. Regards, Alexander. |
From: Alain A. <ala...@wa...> - 2015-12-09 08:18:57
|
Le 09/12/2015 08:20, Alexander S.Kresin a écrit : > SET TIMER oTm1 VALUE 100 ACTION {||oValid:hide(),oCancel:hide()} ONCE > ACTIVATE WINDOW oMainWindow Compiling 'Maintsys-client.prg'... Maintsys-client.prg(530) Error E0030 Syntax error "syntax error at 'TIMER'" 1 error No code generated. I have put it before the ACTIVATE command. A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-05 09:58) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2503) ------------------------------------------------------------------------ |
From: Alain A. <ala...@wa...> - 2015-12-09 08:58:51
|
Le 09/12/2015 09:18, Alain Aupeix a écrit : > Le 09/12/2015 08:20, Alexander S.Kresin a écrit : >> SET TIMER oTm1 VALUE 100 ACTION {||oValid:hide(),oCancel:hide()} ONCE >> ACTIVATE WINDOW oMainWindow > Compiling 'Maintsys-client.prg'... > Maintsys-client.prg(530) Error E0030 Syntax error "syntax error at 'TIMER'" > 1 error > > No code generated. > > I have put it before the ACTIVATE command. In fact , I made an error, I include 'once ...' in the line It now works, but I'm not able now to display it in the function where it must been viewable ... I tried with oValid and oCancel Public oValid:show() oCancel:show() and it doesn't display Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-05 09:58) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2503) ------------------------------------------------------------------------ |
From: Alain A. <ala...@wa...> - 2015-12-09 09:30:23
|
Le 09/12/2015 09:58, Alain Aupeix a écrit : > Le 09/12/2015 09:18, Alain Aupeix a écrit : >> Le 09/12/2015 08:20, Alexander S.Kresin a écrit : >>> SET TIMER oTm1 VALUE 100 ACTION {||oValid:hide(),oCancel:hide()} ONCE >>> ACTIVATE WINDOW oMainWindow >> Compiling 'Maintsys-client.prg'... >> Maintsys-client.prg(530) Error E0030 Syntax error "syntax error at 'TIMER'" >> 1 error >> >> No code generated. >> >> I have put it before the ACTIVATE command. > In fact , I made an error, I include 'once ...' in the line > > It now works, but I'm not able now to display it in the function where > it must been viewable ... > > I tried with oValid and oCancel Public > > oValid:show() > oCancel:show() > > and it doesn't display > > Thanks > A+ I success showing and hiding it using det timer Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-12-05 09:58) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2503) ------------------------------------------------------------------------ |
From: Alain A. <ala...@wa...> - 2015-11-28 20:48:17
|
Le 24/11/2015 21:43, Alain Aupeix a écrit : > Le 23/11/2015 10:48, Alexander S.Kresin a écrit : >> Alain Aupeix пишет: >>> Hi, >>> >>> When I copy, and then paste, the accentued letters aren't pasted and are >>> replaced with 2 spaces each. >> Seems to be fixed now. Yes, that's now ok >>> 2) In a main window, I had a background image. For some reason, I wanted >>> to add two buttons. >>> I didn't understand why I can't see them. They were created, as clicking >>> on their location works. >>> >>> After some researches, I disabled the background, and I was then able to >>> see these buttons. >>> As I really need buttons and backgroung, I hope you'll correct this bug. >> I know about this. In GTK, if a window is drawable, this prevents >> standard widgets to be displayed. For now, try to use OWNERBUTTON >> instead of a button. Yes, using ownerbutton, I can now see these buttons without having to draw it on background image. >>> I have another problem: I want to hide this buttons, and just unhide >>> them in a function. >>> How can I do that ? >> oBtn:Hide(), oBtn:Show() I haven't been able to hide it ... Here is the code I use: _______________________________________________________________ Memvar oValid, oCancel Function main() .... Public oValid, oCancel .... INIT WINDOW oMainWindow MAIN TITLE "Maintsys - Outils de maintenance (v"+progvers+")" ; ICON oIcon AT 200,50 SIZE 735,422 ... // Background @ 0,0 BITMAP cImageDir+"mtools.png" ... @ 480,340 OWNERBUTTON oValid ON CLICK {||Valid_Edit("Valider")} ; SIZE 80, 27 ; BITMAP cImageDir+"valider.png" TRANSPARENT COLOR 13890771 @ 580,340 OWNERBUTTON oCancel ON CLICK {||Valid_Edit("Annuler")} ; SIZE 80, 27 ; BITMAP cImageDir+"annuler.png" TRANSPARENT COLOR 13890771 oValid:hide() oCancel:hide() ... ACTIVATE WINDOW oMainWindow ___________________________________________________________ Where do I fail ? Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-11-25 14:06) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2501) ------------------------------------------------------------------------ |
From: Alexander S.K. <al...@be...> - 2015-12-08 11:26:20
|
Alain Aupeix пишет: ... >>> oBtn:Hide(), oBtn:Show() > I haven't been able to hide it ... > Here is the code I use: > _______________________________________________________________ > > Memvar oValid, oCancel > > Function main() > .... > Public oValid, oCancel > .... > INIT WINDOW oMainWindow MAIN TITLE "Maintsys - Outils de maintenance > (v"+progvers+")" ; > ICON oIcon AT 200,50 SIZE 735,422 > ... > // Background > @ 0,0 BITMAP cImageDir+"mtools.png" > ... > @ 480,340 OWNERBUTTON oValid ON CLICK {||Valid_Edit("Valider")} ; > SIZE 80, 27 ; > BITMAP cImageDir+"valider.png" TRANSPARENT COLOR 13890771 > @ 580,340 OWNERBUTTON oCancel ON CLICK {||Valid_Edit("Annuler")} ; > SIZE 80, 27 ; > BITMAP cImageDir+"annuler.png" TRANSPARENT COLOR 13890771 > oValid:hide() > oCancel:hide() > ... > ACTIVATE WINDOW oMainWindow Try to do this while the ACTIVATE event: ACTIVATE WINDOW oMainWindow ON ACTIVATE {||oValid:hide(),oCancel:hide()} Regards, Alexander. |