FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour change Border color BTNBMP
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
change Border color BTNBMP
Posted: Wed Nov 08, 2023 12:51 PM

I need a sample to redraw border color into a btnbmp, thanks

I try to change the color of the border it but the color border is allways black

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: change Border color BTNBMP
Posted: Wed Nov 08, 2023 03:22 PM
Code (fw): Select all Collapse
   @ 200, 20 BTNBMP oBtn PROMPT "Prompt" SIZE 100,40 PIXEL OF oDlg FLAT
   oBtn:nClrBorder := CLR_HRED
Currently border color is working for FLAT style buttons only.
Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: change Border color BTNBMP
Posted: Thu Nov 09, 2023 07:49 AM
nageswaragunupudi wrote:
Code (fw): Select all Collapse
   @ 200, 20 BTNBMP oBtn PROMPT "Prompt" SIZE 100,40 PIXEL OF oDlg FLAT
   oBtn:nClrBorder := CLR_HRED
Currently border color is working for FLAT style buttons only.
Nages,
at init run ok then If I wish change the border on line it not run ok

I explain you



I need this procedure to hide or show a column or change the position of the columns in the main xbrowse

using a small table with the xbrowse fields I select which column I want to show to the main xbrowse, under this table I have two BTNBMP controls. ( button with circles at left of the dialog)

1 Hide
2. Show
when I click on a field and then remove the check I change the display of the btnbmp controls, that is, I remove the image and disable the control, and so on.

Now compiling with the new version I no longer have the problem of bad display of btnbmp when they are disabled.
But I would like to transform the button as I do for the last one (the one you see on the right with the lines), and by doing this I also have to modify the border because it is deleted when I create the brush with the lines and I have to recreate it when I reinsert the image previous
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion