Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
_gb2.pngEMBEDDER - Use this control

USE EMBEDDER CONTROL


embedfab.png

hi,
today ,we learn to use Embedder control.
with this control you can embedded any application in your Gambas soft.
To make this, you need 5 things :


A) run an appilcation (here gcalctool, the gnome calc)
B) a variableprocess (here h)
C) a pointer table (here lepid)
D) an integer variable (PID number of your application who want embedder)
E) An embedder control on your form

Here you find source code :

PUBLIC h AS process
PUBLIC lepid AS new pointer[]
PUBLIC monpid AS Integer
PUBLIC SUB form_OPEN()
me.center
END
PUBLIC SUB button1_click()
lepid = desktop.find("calculatrice") 'search window title
monpid = lepid[0]
embedder1.embed(monpid)
END
PUBLIC SUB bquit_click()
me.CLOSE
END
PUBLIC SUB button2_click()
h = shell "gcalctool"
END
 

If you have error message : OUT OF RANGE, your embedded application is not run or you have a problem (syntax, title with your app).

Creation date : 06/03/2012 @ 15:23
Last update : 14/02/2022 @ 08:11
Category : EMBEDDER
Page read 4972 times


Print the article Print the article


react.gifReactions to this article


Reaction #1 

by spheris 05/02/2022 @ 23:55

 Ce contrôle est encore implicite et fonctionne dans le code. Par contre le widget depuis gambas 3.9 est devenu obsolète et n'existe plus. C'est dommage. C'était un composant bien pratique pour encapsuler des applications.
Ce tutoriel va donc être archivé car il ne fonctionnera plus d'ici peu.y

QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^