aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1305

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

actif  Sujet n° 1305  Wish:External Images

le 30/11/2005 @ 04:33
par Ktimaster

Anonyme



Well I am back... I just started a new job as a Computer Security Specialist and have been swampted. I guess thats what I get for bieng an ambitious 20 year old. Training is Hard so I have been able to only 'peek' into this site.
Now onto business... Could I make a wish for the next Version of IziBasic. I am making a program and I would like to make it 'skinable' without having the GUI Generation housed in a seperate, 'replaciable' PRC. I would like to see if it would be possible to call external images and other 'elemenmts' from an external .pdb or .rsrc file. Possible example below(Picture 300 as the Image number in Both Resources)

e$­­=FINDFIRST('TYPE', 'CRID')
IF e$­­="" GOTO _GenerateBuiltinSkin
_ExtSkin:
OPEN e$­­ FOR INPUT AS #1 'rsrc file
EXTIMAGE #1, e$­­,300, X, Y, L, W
Return
_GenerateBuiltInSkin:
IMAGE #1, 300, X, Y, L, W
Return
Ecrire à Ktimaster   Poster une réponse  Haut

[]   


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1
--------
le 30/11/2005 @ 19:34
par aldweb

Anonyme

visiteur
Good idea indeed Ktimaster.

I already thought about it (but not to the point of implementing it).
For instance, other resources could be interesting too like string resources (for language "skinning") and probably a few others.

Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2
--------
le 30/11/2005 @ 20:09
par Khertan

Anonyme

visiteur
You could easily do that with pp applet ... i ve do this when i ve started dev of kLauncher with iziBasic ... i ll drawing icon from other programm from their taib 1000 ressource (icon ressource) it s also possible to get anything you want ...

just use this function in a pp :
procedure drawExtBitmap(PRCName:string;idBMP:UInt16;x,y:UInt32)
var
MyBMPH:MemHandle;
MyBMPP:MemPtr;
x,y:UInt32;

gDatabase:DmOpenRef;
IdDataBase:LocalID;

begin
IdDataBase:=DmFindDataBase(0,MyPRC);
if IdDataBase<>0 then begin
gDataBase:=DmOpenDatabase(0,IdDatabase,dmmodereadonly)
MyBMPH:=DmGetRessource($­­7441492,idBMP);
if (MyBMPH<>nil) then begin
MyBMPP:=MemHandleLock(MyBMPH);
WinDrawBitmap(MyBMPP,x,y);
MemHandleUnlock(MyBMPH);
DmReleaseResource(MyBMPH);
end;
end;
end;

if i ve some times i ll make a tutorial with explanation on my web site ...
Ecrire à Khertan   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3
--------
le 01/12/2005 @ 01:52
par ktimaster

Anonyme

visiteur
Thanks for that sample code...
However Aldweb had another Great Idea for making 'Language Packs'. I doubt I will use it for that but it would be a nice thing. I know that this was left out on purpose but Mabey you can re-concider allowing us to open .prc files to store the data internally rather then using .pdb files for data storage. And it would be nice to add other data types then simple strings.(ie taib, tain, code, def)
Khertan, At one time, I belive it was you who said this, Diddnt you say that you had a pp code that was designed to allow basic netlib functions. Can you post it here so we may find what is wrong with it and mabey make a working fragment. I am simply looking to create a small basic program to send my address book on my palm to a secured location on my website. And be able to recall (Download) it if I loose my Data.
Ecrire à ktimaster   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4
--------
le 01/12/2005 @ 17:37
par aldweb

Anonyme

visiteur
tAIB is nothing else but a Tbmp, which is itself nothing else but a formated MegaString (if image size < 4 KB).
tFRM is nothing else but a formated MegaString (if form size < 4 KB which is almost always the case).
tAIN is nothing else but a string.
code is nothing else but a MegaString.
And so on

I am not trying not to allow you to open resource files in iziBasic, PP applets as Khertan demonstrated it above are especially made for these very specific needs.

Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 5
--------
le 01/12/2005 @ 18:23
par Ktimaster

Anonyme

visiteur
Have you concidered adding the EXT resource for creating skins on the next build?
Ecrire à Ktimaster   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 6
--------
le 02/12/2005 @ 05:37
par KTimaster

Anonyme

visiteur
But the problem is nameing it using an iziBasic Program. I want to avoid too much Pascal
Ecrire à KTimaster   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 7
--------
le 04/12/2005 @ 22:20
par aldweb

Anonyme

visiteur
Hello Ktimaster,

Sure, I considered it. I more or less always try to do unless I give a definitive NO answer, which was not the case this time ... and which is not often the case! You guys provide me with lots of great ideas... and, as a consequence, with a lot of work!

It is somewhere in my to do list, not in high priority so far...

Cheers

@+
aldweb
Ecrire à aldweb   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^