Search found 230 matches: rectangle

Return to advanced search

Re: Another for Btnbmp

Silvio, If you need a focus rectangle in a specific color, you would have to implement the drawing yourself. You can do this by drawing a rectangle using functions like WndBoxClr, where you can specify the brush or pen color. Otto local ...
by Otto
Tue Mar 26, 2024 12:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Another for Btnbmp
Replies: 26
Views: 4949

Re: Another for Btnbmp

... right for you but aesthetically it's wrong, why does nages think if I have a button to which I have given specific colors I end up with a black rectangle which is ugly to look at Even if we try to change the color of the border, it will always be the color of the text if ::lFlatStyle      ::nClrBorder ...
by Silvio.Falconi
Mon Mar 25, 2024 11:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Another for Btnbmp
Replies: 26
Views: 4949

Re: Another for Btnbmp

Antonio, Nages, when there is focus in the tbtnbmp class a transparent dotted rectangle must be formed and not a black rectangle Furthermore it is aesthetically ugly to look at How can I eliminate the movement of the button? when I move the mouse over a btnbmp ...
by Silvio.Falconi
Sat Mar 23, 2024 11:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Another for Btnbmp
Replies: 26
Views: 4949

Re: nYoffset and nXoffset

I do not see that method box supports: nXoffset or nYottset. Look into printer.prg. METHOD Box( nRow, nCol, nBottom, nRight, oPen ) INLINE ; Rectangle( ::hDCOut, nRow, nCol, nBottom, nRight,; If( oPen != nil, oPen:hPen, 0 ) ) it's not the problem of oPrn:Box, but I think you have an old version ...
by Silvio.Falconi
Mon Jan 15, 2024 9:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 832

Re: nYoffset and nXoffset

I do not see that method box supports: nXoffset or nYottset.
Look into printer.prg.
METHOD Box( nRow, nCol, nBottom, nRight, oPen ) INLINE ;
Rectangle( ::hDCOut, nRow, nCol, nBottom, nRight,;
If( oPen != nil, oPen:hPen, 0 ) )
by Otto
Mon Jan 15, 2024 9:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 832

Re: nYoffset and nXoffset

... millimeters to pixels. Inch2Pix - Uses nXoffset and nYoffset to convert inches to pixels. CmRect2Pix - Uses nXoffset and nYoffset to convert a rectangle from centimeters to pixels. Pix2Mmtr - Uses nXoffset and nYoffset in the comment, but not directly in the code. Pix2Inch - Uses nXoffset and ...
by Silvio.Falconi
Mon Jan 15, 2024 7:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 832

Re: nYoffset and nXoffset

... millimeters to pixels. Inch2Pix - Uses nXoffset and nYoffset to convert inches to pixels. CmRect2Pix - Uses nXoffset and nYoffset to convert a rectangle from centimeters to pixels. Pix2Mmtr - Uses nXoffset and nYoffset in the comment, but not directly in the code. Pix2Inch - Uses nXoffset and ...
by Otto
Sun Jan 14, 2024 11:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 832

Re: Create a Panel width a text

Dear Silvio, You can use Windows API DrawText() using the flag DT_CALCRECT to calculate the dimensions of the text rectangle without actually drawing the text. it will take into account the font you are using, etc. The resulting width and height are stored in the rect structure. ...
by Silvio.Falconi
Fri Jan 05, 2024 10:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3187

Re: Create a Panel width a text

Dear Silvio, You can use Windows API DrawText() using the flag DT_CALCRECT to calculate the dimensions of the text rectangle without actually drawing the text. it will take into account the font you are using, etc. The resulting width and height are stored in the rect structure. ...
by Antonio Linares
Fri Jan 05, 2024 7:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3187

Re: Tget /tsay disable/enable

Antonio Linares wrote:Dear Silvio,

Must the rectangle be painted above the control as per your sample ?

Where are you calling your code from ?


yes the rectangle must be painted over the control
in the image example I use a btnbmp and it run on only on btnbmp

for the test I added the code above
by Silvio.Falconi
Thu Nov 09, 2023 8:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tget /tsay disable/enable
Replies: 5
Views: 366

Re: Tget /tsay disable/enable

Dear Silvio,

Must the rectangle be painted above the control as per your sample ?

Where are you calling your code from ?
by Antonio Linares
Thu Nov 09, 2023 8:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tget /tsay disable/enable
Replies: 5
Views: 366

Tget /tsay disable/enable

Is it possible to transform a Tsay or Tget control when it is disabled and create a rectangle with the dimensions of the control and fill it with a custom color or brush? sample https://i.postimg.cc/SKJ77PDD/uu.png I tried with #include "fivewin.ch"Function ...
by Silvio.Falconi
Thu Nov 09, 2023 7:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tget /tsay disable/enable
Replies: 5
Views: 366

make a rectangule with a brush

could someone help me in making a rectangle with a specific brush ( borland bdiagonal) ? I tried with  hLite   := CreatePen( PS_SOLID, 1, ::nClrLite )   hDark   := CreatePen( PS_SOLID, 1, ::nClrDark )  ...
by Silvio.Falconi
Thu Mar 23, 2023 11:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: make a rectangule with a brush
Replies: 10
Views: 489

help for Gdiplus Brush class

is it possible to draw with tGDIPlus a rectangle ( drawrect) with a gradient brush having a style like diagonal lines, around a Get or another control ? I made a test but not work Function test()local oDlglocal oGet,oSaylocal cGet:= ...
by Silvio.Falconi
Wed Mar 22, 2023 12:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: help for Gdiplus Brush class
Replies: 4
Views: 348

Re: Сhange the color of a window fragment

An orange rectangle is drawn on the white window

https://cloud.mail.ru/public/kdYk/61wg63nfX
by Natter
Sat Dec 24, 2022 10:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Сhange the color of a window fragment
Replies: 4
Views: 377
Next

Return to advanced search