Different radio- and checkbox-styles ( UPDATE 2.1 )

Different radio- and checkbox-styles ( UPDATE 2.1 )

Postby ukoenig » Thu Feb 12, 2015 4:55 pm

I'm working on a painter, to create some different looking
radios- and checkboxes.
Maybe somebody like them ?

The 1. column with round buttons and calculated textposition outside of the button-area
The 2. column works like a normal checkbox and shows a image on selection
The 3. column does a image-change
The 4. column shows colored round buttons with a image-display on selection

Image

best regards
Uwe :?:
Last edited by ukoenig on Sat Feb 21, 2015 11:44 am, 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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Different radio- and checkbox-styles

Postby ukoenig » Tue Feb 17, 2015 4:17 pm

My final solution with 5 different styles :
( I'm still need a solution, to change the button-textcolor on mousecaption )

1. round buttons painting the text on a calculated textposition outside of the button-area
2. checkboxes
3. works the same like a normal radio ( single selection )
4. building groups with multiple selections ( 2 yellow, 2 green and 2 purple ) 2 selections are red
5. color selection from colored buttons ( shows a < Yes > image on selection )
6. a button gradient-painter is included
7. possible to create a sample PRG and EXE from a selected style
8. button < background > with gradient-painter and background-selection

Image

best regards
Uwe :?:
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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Different radio- and checkbox-styles

Postby Antonio Linares » Wed Feb 18, 2015 8:04 am

Dear Uwe,

Your tools are really nice, congratulations!

You are really a painting and design master!!! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41318
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Different radio- and checkbox-styles

Postby ukoenig » Wed Feb 18, 2015 1:45 pm

I hope it will be useful

the download-link ( 5.3 MB ) :
http://www.pflegeplus.com/DOWNLOADS/Rbuttons1.zip

creating standalone samples :

Image

because of a preview from a MULTILINE-get, You must create a PRG at first

Image

The result ( EXE ) of the selected group
If needed, I can add the code, to work from RESOURCES

Image

before creating a EXE, You can create a Button-gradient with defined textcolors
and change the background. !!!
The selected textcolor will change the text-color on the main-dialog


Image

best regards
Uwe :)
Last edited by ukoenig on Wed Feb 18, 2015 6:57 pm, edited 7 times 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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Different radio- and checkbox-styles

Postby karinha » Wed Feb 18, 2015 2:12 pm

Excelent!!
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7234
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Different radio- and checkbox-styles

Postby ukoenig » Wed Feb 18, 2015 6:37 pm

A small extension :
I added predefined logical vars. It belongs to sample 2 and 4
can be replaced with any others
lVar := { { .F., .F., .T., .T., .F., .F. } }

added a message wait on button-click
deleted the alerts creating a PRG and EXE ( only displayed if NOT created )
I will add samples from RESOURCE

the download-link release 1.2 ( 5.3 MB ) :
http://www.pflegeplus.com/DOWNLOADS/Rbuttons2.zip

Next release from CODE or RESOURCE
added a new button
First display from CODE ( can be switched )

Image

best regards
Uwe :)
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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Different radio- and checkbox-styles ( UPDATE 2.1 )

Postby ukoenig » Sat Feb 21, 2015 11:35 am

The new update with many improvements

1. added from RESOURCES
2. the last compiled sample can be loaded from the main-dialog
3. added a sample-directory with 10 created samples 5 from code and 5 from resources
4. some new options inside the PRG and EXE-builder
-- now You can change the style, without moving to the main-dialog
-- in order
-- 1. select the style
-- 2. select CODE or RESOURCE
-- 3 create the EXE ( please check the MAKE-file )
-- If You don't need a PRG or EXE, just copy the needed parts from the multiline get
5. some cleanig, because it is tested and works, I deleted the message-wait

the download-link release 2.1 ( 5.8 MB ) :
http://www.pflegeplus.com/DOWNLOADS/Rbuttons3.zip

I noticed a little bug, restoring the group-images in sample 4.
It is fixed. If You downloaded release 2.1 already, please download again !


Image

The new round button-line shows the practical usage from resources

Image

best regards
Uwe :)
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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Antonio Linares, Google [Bot] and 7 guests