New MDI-background-painter ( Vers. 1.2 Download )

Post Reply
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

New MDI-background-painter ( Vers. 1.2 Download )

Post by ukoenig »

Hello,

I finished the new MDI-background-painter.

What You can do :

1. Paint MDI-childs, MDI-Buttons and Dialogs on a MDI-frame
2. Any Background-combinations are possible
3. Painters/Selectors for : Colors, Gradients, Brushes, Images and extra Image-selection for Button-transp
4. Any changes from inside the Painters also changes the Background of the MDI-child, MDI-buttons and Dialog.
( to show a changed Background of the MDI-frame, You have to Restart. )
5. Restart from inside the Application, to repaint the MDI-frame-background ( Thanks to Daniel )
6. Save and Load selections from Ini-file
7. Hide the MDI-buttons, to capture the Background-area for transparent-effect.
8. Write a PRG with selected Values

Many Samples, showing the use of the new TSelex-class from inside a Ribbonbar.
No Exit/close-buttons are used for the Painters.
They are closed automaticly, as soon You select a different option from the Ribbonbar.
Changing a option inside a TSelex-group, also changes the selected Painter ( Dialog ) automaticly.

Download Version 1.2 ( 4.8 MB ) : http://www.pflegeplus.com/fw_downloads/MDIPaint.zip

The Start-screen
Image

The MDI-frame selection
Image

The MDI-Child and Dialog selection
Image

The MDI-button selection
Image

Color-selection
Image

Gradient-selection
Image

Change Gradient-display
Image

Brush-selection
Image

Image-selection
Image

Write PRG
Image

Hide MDI-child ( Buttons ) for Screenshot-area
I used for the Screenshot the same Image-name like for the MDI-frame-background like :
MDI-frame = BACK1.jpg, Screenshot-area = BACK1A.jpg
Image

Info about INI-file-values :

Code: Select all

nOption1 := 4 // MDI-Frame => Color, Gradient, Brush, Image
nOption2 := 4 // MDI-Child => Color, Gradient, Brush, Image
nOption3 := 5 // MDI-Button => Color, Gradient, Brush, Image, Transparent

nOption4 := 5  // MDI-Frame, MDI-Child, MDI-Button, ???  => Color-Selection
nOption5 := 5  // MDI-Frame, MDI-Child, MDI-Button, ???  => Gradient-Selection

nOption6 := 6 // MDI-Frame Gradient-pos
nOption7 := 1 // GRADIENT - Direction MDI-Frame
nOption8 := 6 // MDI-Child Gradient-pos
nOption9 := 1 // GRADIENT - Direction MDI-Child
nOption10 := 6  // MDI-Button Gradient-pos
nOption11 := 1 // GRADIENT - Direction MDI-Button

nOption12 := 5  // MDI-Frame, MDI-Child, MDI-Button, ???  = Brush-Selection
nOption13 := 5  // MDI-Frame, MDI-Child, MDI-Button, ???  = Image-Selection

nMainStyle = nOR( WS_OVERLAPPED | WS_VISIBLE )

// Some Colors
// -------------------
// Black = 0
// White = 16777215
// Blue = 8388608
// Blue+ = 16776960
// Green = 32768
// Green+ = 8454016
// Red  = 128
// Red+ = 10853885
// Yellow  = 65535

// MDI-Frame
// ---------------
nColor1a := 14853684
nColor1b := 16312263
nMove1 := 0.50
nPos1a := 10
nPos1b := 10
lDirect1 := .T.
aColors1 := { { nMove1, nColor1a, nColor1b }, { nMove1, nColor1b, nColor1a } }
cBrush1 := c_Path + "\bitmaps\Marble.bmp"
cImage1 := c_Path + "\bitmaps\Back3.jpg"

// Child-Window and Dialog
// ---------------------------------
nColor2a := 14853684
nColor2b := 16312263
nMove2 := 0.50
nPos2a := 10
nPos2b := 10
lDirect2 := .T.
aColors2 := { { nMove2, nColor2a, nColor2b }, { nMove2, nColor2b, nColor2a } }
cBrush2 := c_Path + "\bitmaps\Marble.bmp"
cImage2 := c_Path + "\bitmaps\Back1.jpg"
cBrush4 := c_Path + "\bitmaps\Marble.bmp"

// MDI-Frame-Buttons 
// --------------------------
nColor3a := 14853684
nColor3b := 16312263
nMove3 := 0.50
nPos3a := 10
nPos3b := 10
lDirect3 := .T.
aColors3 := { { nMove3, nColor3a, nColor3b }, { nMove3, nColor3b, nColor3a } }
cBrush3 := c_Path + "\bitmaps\Marble.bmp"
cImage3 := c_Path + "\bitmaps\Back3.jpg"
cImage3A := c_Path + "\bitmaps\Back3A.jpg"
 
Best Regards
Uwe :lol:
Last edited by ukoenig on Sat Dec 25, 2010 3:27 pm, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
toya
Posts: 34
Joined: Sat Dec 31, 2005 10:08 am
Location: Brasil
Contact:

Re: New MDI-background-painter ( Vers. 1.1 Download )

Post by toya »

I am grateful for your contribution...
toya
Ahora en la version 6.6
Consultoria e Desenvolvimento - NF-e/NFC-e
http://www.toyanet.com.br
https://www.facebook.com/profile.php?id=100009195956044
toyasis@gmail.com
FWH 10.8+PellesC+xHarbour.org 1.2.1
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: New MDI-background-painter ( Vers. 1.1 Download )

Post by Antonio Linares »

Dear Uwe,

Many thanks for a great tool :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: New MDI-background-painter ( Vers. 1.2 Download )

Post by ukoenig »

Thank You very much for the Response.

I still added some more Functions.
Buttons are included inside the Project-file.
Now it is possible, to create a Standalone EXE-file, that looks like the Tool-Mainwindow.
Please check the < Rmk-file > for the Path-defines.

Download Version 1.2 ( 4.8 MB ) : http://www.pflegeplus.com/fw_downloads/MDIPaint.zip

Image

Best Regs
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
Post Reply