change Border color BTNBMP

change Border color BTNBMP

Postby Silvio.Falconi » 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7052
Joined: Thu Oct 18, 2012 7:17 pm

Re: change Border color BTNBMP

Postby nageswaragunupudi » Wed Nov 08, 2023 3:22 pm

Code: Select all  Expand view
  @ 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
User avatar
nageswaragunupudi
 
Posts: 10622
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: change Border color BTNBMP

Postby Silvio.Falconi » Thu Nov 09, 2023 7:49 am

nageswaragunupudi wrote:
Code: Select all  Expand view
  @ 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

Image

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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7052
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 42 guests