How To Use DC_ZOOMTRANSPARENT(1)

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
GeneB
Posts: 158
Joined: Sun Jan 31, 2010 8:32 am
Location: Albuquerque, New Mexico, USA
Contact:

How To Use DC_ZOOMTRANSPARENT(1)

#1 Post by GeneB »

DC_ZOOMTRANSPARENT(0) is a nice 'bell and whistle'.
How would you use DC_ZOOMTRANSPARENT(1) to fade a window while closing?

Also, this is only a cosmetic thing, but after creating a large DCPUSHBUTTONXP with a Gradient .8 to use as a "logo screen", if I exit the read by using NODESTROY EXIT, to do some startup stuff, the button flashes. Not a big deal. Wondered if there was a solution.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: How To Use DC_ZOOMTRANSPARENT(1)

#2 Post by rdonnay »

This works for me:

Code: Select all

#INCLUDE "dcdialog.CH"

FUNCTION Main()

LOCAL GetList[0], oDlg, oMemo, cMemo, GetOptions

TEXT INTO cMemo WRAP
This is a demo
of the transparent
ZOOM feature of
eXpress++
ENDTEXT

@ 0,0 DCMULTILINE cMemo SIZE 80,20 ;
      FONT '16.Lucida Console'

DCGETOPTIONS HIDE ;
   CLOSEQUERY MSG {||DC_ZoomTransparent(oDlg,1),oDlg:setSize({0,0}),.t.}

DCREAD GUI FIT TITLE 'Zoom Transparent' ;
   OPTIONS GetOptions ;
   EVAL {|o|oDlg := o, DC_ZoomTransparent(oDlg,0)}

RETURN nil

* ---------

PROC appsys ; return
The eXpress train is coming - and it has more cars.

Post Reply