View Single Post
  #2 (permalink)  
Old 10-12-2008, 08:23 PM
Erel's Avatar
Erel Erel is offline
Administrator
 
Join Date: Apr 2007
Posts: 13,104
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

VB6 PictureBoxes are Image controls in Basic4ppc.
Create 7 images (at the beginning of your program):
Code:
    'create 7 image controls
For i = 0 To 7 
    AddImage(
"Form1","Image" & i,x,y,width,height)
Next
Move images:
Code:
    For i = vaderst To vaderfin
    Control(
"Image" & i).Left = looperx
    Control(
"Image" & i).Top = loopery
Next
You can store the images (not controls) in an ImageList and then assign these images to the image controls when needed:
Code:
Control("Image" & BKI) = ImageList.Item(KI)
What values do you expect from the Randomize statement?
It is not possible to use VB6 class modules..
Basic4ppc can only interact with .Net modules (c# or VB.Net)
There is no equivalent to BitBlt.
Reply With Quote