bb.donnay-software.com

Donnay Software Web Forums
It is currently Sat May 30, 2020 11:33 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri Feb 17, 2017 8:40 am 
Offline
User avatar

Joined: Tue Jul 28, 2015 5:15 am
Posts: 94
How do you display an image JPG or BMP in a CRT screen?


Top
 Profile  
 
PostPosted: Fri Feb 17, 2017 9:04 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 4125
Location: Boise, Idaho USA
Code:
#INCLUDE "dcdialog.CH"

FUNCTION Main()

LOCAL GetList[0], oBitmap, oCrtWindow := SetAppWindow()

@ 0,0 DCSTATIC TYPE XBPSTATIC_TYPE_BITMAP ;
      CAPTION '\exp20\bitmaps\wizard.bmp' ;
      SIZE 600,400 PIXEL

DCREAD GUI EXIT PARENT oCrtWindow

@ 23,0 SAY 'Here is some text'

wait

RETURN nil

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
PostPosted: Fri Feb 17, 2017 3:57 pm 
Offline
User avatar

Joined: Tue Jul 28, 2015 5:15 am
Posts: 94
Wow Roger, this amazing. Thank you.

Cho cho !


Top
 Profile  
 
PostPosted: Fri Feb 17, 2017 4:05 pm 
Offline
User avatar

Joined: Tue Jul 28, 2015 5:15 am
Posts: 94
Once you have a bitmap on the screen how do you remove the bitmap to go back to the CRT Window without the bitmap?


Top
 Profile  
 
PostPosted: Fri Feb 17, 2017 4:28 pm 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 4125
Location: Boise, Idaho USA
Store the DCSTATIC object to a variable name:

@ .. DCSTATIC .. OBJECT oBitmapStatic


You can then manipulate it with:

oBitmapStatic:hide()
oBitmapStatic:show()

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
PostPosted: Fri Feb 17, 2017 6:08 pm 
Offline
User avatar

Joined: Tue Jul 28, 2015 5:15 am
Posts: 94
Wonderful. Works as a charm.

Choo choo !


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group