Uit het archief van Erik Visser 3

Deze keer wat undocumented features

 

FILEREQUEST( )

Verscholen in de Terminal library zit de functie FileRequest( ). Met deze functie kun je de Windows2000 Filedialog oproepen. De returnwaarde is de geselecteerde bestandsnaam als string.

 

cFile := FileRequest( "c:\","Titel","Program Files","*.PRG")

 

 

 

TWEE ARRAY FUNCTIES

Als je wilt weten hoe een array gedimensioneerd is, kan de functie aDim( ) nuttig zijn.

 

LOCAL aMyArray[25][10][3] AS ARRAY

? aDim( aMyArray ) // 3

 

Een andere handige functie geeft elk element een beginwaarde.

 

 

aMyArray := ArrayNew( 30 ) // even een arraytje maken

aMyArray := ARepl( 0,30 ) // elk element krijgt de waarde 0

 

PAASEI van VO

Binnen CA-VO kun je op de volgende wijze een paasei vinden.

 

Maak een applicatie aan en include de OLE library. Creeer een datawindow en kies uit het edit menu voor Insert OLE Control. Klik vervolgens op de OK knop, terwijl de CTRL en de SHIFT toets ingedrukt zijn. Nu weet je wie er allemaal in de loop der tijd zich met de ontwikkeling van CA-VO hebben beziggehouden. Tenminste, bij CA, want het legertje beta-testers heeft natuurlijk ook een fixse bijdrage geleverd

 

 

 

In VO is het mogelijk om een bitmap aan een brush toe te kennen. Niet verder vertellen hoor! Als je vervolgens die brush aan de backgroud property van een dialog window toekend, krijg je een !heftig! effect.

 

     RESOURCE ED_Richard_Loves_VO Bitmap D:\CAVO25\BIN\POWVO.BMP

 

     METHOD PostInit(oParent,uExtra) CLASS HelpAbout

         LOCAL oBmp AS Bitmap

         //Put your PostInit additions here

         oBmp := Bitmap{ResourceID{"ED_Richard_Loves_VO",_GetInst()}}

         SELF:background := brush{oBmp}

         RETURN NIL

 

De Datawindow heeft geen Background property. Als je hetzelfde trucje wilt uithalen op een datawindow, moet je de brush toekennen aan de datawindow:Surface.De code komt er dan als volgt uit te zien:

 

     METHOD PostInit(oWindow,iCtlID,oServer,uExtra) CLASS NewWindow1

         LOCAL oBmp AS Bitmap

         //Put your PostInit additions here

         oBmp := Bitmap{ResourceID{"ED_Richard",_GetInst()}}

         SELF:oSurface:Background := brush{ oBmp }

     RETURN NIL

Commentaar van anderen:
ChristianLouboutin op 17-8-2010 om 4:22
Christian Louboutin Shoes, Christian Louboutin, Christian Louboutin Shoes, Wedding Shoes, Wedding Shoes, Louboutin Shoes, Christian Louboutin Discount copies of the mirror, so the angel of the practical activities of customers who activities. Christian Louboutin Evening, Manolo Blahnik Shoes, Christian, Louboutin, Christian Louboutin Sale, Louboutin Sale, Cheap Christian Louboutin Can you from your shoes, you give yourself into chargeless travel and bear your lifetime. Christian Louboutin Boots, Christian Louboutin Pumps, Christian Louboutin Sandals, Christian Louboutin Flats, Christian Louboutin Wedges, Christian Louboutin Sandals Do you agree to accept and hear the cases angled heel shoes forward or abstract, tear, buttons, and destruction, and the ability to reduce greenhouse gas emissions, it is exactly like daydreaming and shoes. Yves Saint Laurent Shoes, Christian Louboutin Boots, Manolo Blahnik Shoes, Yves Saint Laurent Boots, Miu Miu Shoes, Christian Dior Shoes this is an extra brand and shoes. However, you will never accept the amorous Louboutin christians through brand. Christian Louboutin Flats, Christian, Herve Leger V Neck Dress, Herve Leger Bandage Dress, Herve Leger Dress, Herve Leger V Neck Dress You can visit in your configuration of the life of their shoes were forgiven a brace, air brief you accept defeat them later anniversary, they are careful bag dust, shoe box that you have to go.
Geef feedback:

CAPTCHA image
Vul de bovenstaande code hieronder in
Verzend Commentaar