Russ and Fred,
Problem solved. Thanks very much for your help. It is appreciated.
Darrell
Announcement
Collapse
No announcement yet.
Displaying Graphics
Collapse
X
-
In addition to GRAPHIC (depending on what you are doing) you might also look
into CONTROL ADD IMAGE and IMAGEX.
BMPs can be placed in a resource file (name.PBR) and easily used.
Code:program.rc ---------- M1 BITMAP MYBITMAP.BMP
Code:program.bas #compile exe #resource "program.pbr" FUNCTION PBMAIN() AS LONG . . . DIALOG NEW..... to hDlg CONTROL ADD IMAGEX,hDLG,301,"M1",0,0,100,100 . . .
using graphic bitmap load ? and perhaps a graphic redraw afterwards.
The control add graphic itself does not load a bitmap but rather sets up the
graphic area within a window (which can be a dialog). put your code in here
and it will be easier to help you get it going.Last edited by Fred Buffington; 20 Nov 2007, 10:16 AM.
Leave a comment:
-
There's a couple of samples in your pbwin80\samples folder. Text3d.bas or Sine.bas should do the trick.
Leave a comment:
-
Displaying Graphics
I am trying to display a graphic (bitmap), using DDT, in the top center of the client area of a dialog box and I'm having no success. I have tried the CONTROL ADD GRAPHIC command with not-so-good results. Can someone throw a beginner a hint or two on how this is done?
Many thanks,
DarrellTags: None
Leave a comment: