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) ------------------------------------------------------------------------ |