Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - JohnJames

Pages: [1]
1
Ayyyy! It works. Bypassing was easiest/best.

Thank you Fellippe. And thank you for sharing your incredible work.

2
I receive an Illegal Function Call if I move the statement to OnLoad

3
I'm calling it at the top of the program...

Code: QB64: [Select]
  1. $EXEICON:'rds.ico'
  2. myLogo& = BASIMAGE1&  'Load the image
  3.  
  4. ': Controls' IDs: ------------------------------------------------------------------
  5.  
[...snip]





4
Thank you Fellippe. No, it doesn't seem to work, but probably me.

I am hacking the .frm code. Correct?

Code: QB64: [Select]
  1.     __UI_NewID = __UI_NewControl(__UI_Type_PictureBox, "PictureBox3", 400, 108, 410, 10, 0)
  2.     __UI_RegisterResult = 0
  3.     Control(PictureBox3).HelperCanvas = _NEWIMAGE(200, 54, 32)
  4.     _PUTIMAGE (0, 0), myLogo&, Control(PictureBox3).HelperCanvas
  5.     Control(__UI_NewID).Align = __UI_Center
  6.     Control(__UI_NewID).VAlign = __UI_Middle
  7.     Control(__UI_NewID).BorderSize = 1
  8.  

No errors, but no image, either.

5
InForm Discussion / Using BASIMAGE to embed images in InForm EXEs
« on: May 29, 2020, 09:07:32 am »
Loving InForm. So good.

Placing an image is done by a link. If the EXE is run on another PC, that image path is lost and the EXE runs with a 'Missing Image' link error in its placeholder. In other words, the images are not embedded within the EXE.

Using 'BASIMAGE' in the QB64 code seems to be a possible way. It works perfectly in a separate QB64-only program but, in a QB64 program generated using InForm, it just doesn't work. Something to do with InForm constantly refreshing its canvas at run time 30 times a second?

Thanks,
John.


6
QB64 Discussion / Re: Embedding Image
« on: May 29, 2020, 08:59:29 am »
So it now looks like I'm on the right lines with BASIMAGE (great work by Dav). It works great in QB64 but not in InForm. Will post it that forum, instead.

Thanks.
John

7
QB64 Discussion / Embedding Image
« on: May 29, 2020, 06:07:19 am »
Hi,

InForm requires any image used to be given a file location. Now, if you load the EXE on a different computer, the image link is broken and the image is replaced by 'Missing Image File' error. I'm hoping to embed the image somehow.

The usual image keywords in QB64 also require a file location. So is the only option to convert the image to a string, and read it/place it in QB64?

Or am I missing something - is there a keyword to embed an image in a complied EXE?

Thank you.
John.

Pages: [1]