Search found 25 matches: nclrtextdis

Return to advanced search

Re: Readonly and/or disable GETs background color

Change data nClrTextDis, nClrPaneDis and lDisColors #include "fivewin.ch"FUNCTION Main()local oForm, oSay, oGet, oGet2, nValue := 0, nValue2 := 0, oBot2DEFINE DIALOG oForm TITLE "Background Disable gets" ...
by cmsoft
Thu Aug 04, 2022 10:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Readonly and/or disable GETs background color
Replies: 15
Views: 901

Re: Focus error on this new project

... this can have a conflict when a Dialog is reused? FW_SetUnicode( .T. ) WndCenter( oWnd:hWnd ) tGet():lDisColors := .F. // WHEN( .F. ) COR. tGet():nClrTextDis := CLR_HBLUE tGet():nClrPaneDis := CLR_SOFTYELLOW IF Set( _SET_INSERT, ! Set( _SET_INSERT ) ) Set( _SET_INSERT, ! Set( _SET_INSERT ) ) ENDIF ...
by Marc Venken
Tue Jan 11, 2022 10:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Focus error on this new project
Replies: 16
Views: 1220

Re: color of disable object

desde la version 8.12 ahora permite usar colores distintos cuando un get esta DISABLE con las datas nClrTextDis, nClrPaneDis para poder darle los colores que tu quieras a un get deshabilitado, para usar esas 2 datas necesitas tener lDisColors := .F. http://forums.fivetechsupport.com/viewtopic.php?f=6&t=14666#p75858
by hmpaquito
Tue Oct 20, 2020 2:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: color of disable object
Replies: 1
Views: 350

Re: Primera app real de Windows 8 Metro desde FWH !!!

... get al tener el focus SetCbxColorFocus(CLR_LGREEN) SkinButtons() // permite los botones nativos con otros colores TGet():lDisColors := .F. TGet():nClrTextDis := CLR_BLUE TGet():nClrPaneDis := CLR_YELLOW2 Algo de esto hace obligatorio el uso de COMBASE.DLL o me puede indicar que puede cambiar para ...
by nanoespinoza
Tue Jun 05, 2018 3:39 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Primera app real de Windows 8 Metro desde FWH !!!
Replies: 19
Views: 4405

Re: Changing Color of Get with When clause

... Build 9200 Time from start: 0 hours 0 mins 5 secs Error occurred at: 06/03/2017, 18:22:01 Error description: Error BASE/1005 No exported variable: NCLRTEXTDIS Args: [ 1] = U [ 2] = N 13551615 Stack Calls ===========
by Jack
Mon Mar 06, 2017 5:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Changing Color of Get with When clause
Replies: 7
Views: 734

Re: Changing Color of Get with When clause

These are the DATAs in TGet program

DATA nClrTextDis, nClrPaneDis

Please ensure oG2 is already defined as GET

May I know your FWH version?
by nageswaragunupudi
Mon Mar 06, 2017 4:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Changing Color of Get with When clause
Replies: 7
Views: 734

Re: Changing Color of Get with When clause

Hi,

TGet():lDisColors := .F. works nice but oG2:nClrTextDis := RGB( 255, 199, 206 ) dont work .

Error description: Error BASE/1005 No exported variable: NCLRTEXTDIS

Thanks
by Jack
Mon Mar 06, 2017 4:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Changing Color of Get with When clause
Replies: 7
Views: 734

Re: Changing Color of Get with When clause

First globally set
TGet():lDisColors := .F. // Disables default disabled colors

Then
oGet:nClrTextDis := <nTextColorWhenDisabled>
oGet:nClrPaneDis := <nBackColorWhenDisabled>
by nageswaragunupudi
Mon Mar 06, 2017 4:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Changing Color of Get with When clause
Replies: 7
Views: 734

Re: Possible to change the BtnBmp-textcolor on mousecaption ?

Antonio, updating to 15.2 this solution doesn't work anymore. In 15.1 it was OK. I changed to nClrTextDis ; NO error but with NO result. Maybe another solution, changing the textcolor on mouseover ? OK in FWH 15.1 oBtn:nClrText := { | lMouseOver | If( lMouseOver, CLR_HBLUE, ...
by ukoenig
Mon Feb 23, 2015 8:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Possible to change the BtnBmp-textcolor on mousecaption ?
Replies: 7
Views: 1189

Re: Possible to change the BtnBmp-textcolor on mousecaption ?

Uwe,

DATA nClrText can be a codeblock so from it we can check if the mouse is over and provide a different color.

The same applies to DATA nClrTextDis

Please try this:

oBtn:nClrText := { | lMouseOver | If( lMouseOver, CLR_HBLUE, CLR_WHITE ) }
by Antonio Linares
Wed Feb 18, 2015 8:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Possible to change the BtnBmp-textcolor on mousecaption ?
Replies: 7
Views: 1189

Re: Small correction in TBTNBMP Class to paint Disabled BtnText

... :lDisColor is set to .F., then the user specified :nClrDisText (by default :nClrText) is used. This convention is consistent with :lDisColors and :nClrTextDis used in TGet. We suggest obtn:lDisColor or oget:lDisColors be set to .f. when it is required to paint with programmer specified obtn:nClrDisText ...
by nageswaragunupudi
Thu Jan 15, 2015 6:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Small correction in TBTNBMP Class to paint Disabled BtnText
Replies: 2
Views: 457

Small correction in TBTNBMP Class to paint Disabled BtnText

... 1367 in METHOD PaintCaption() CLASS TBtnBmp needs to be modified as under. //nClr = If( ::IsEnabled(), ::nClrText, If( ::lDisColor, CLR_HGRAY, ::nClrTextDis ) ) nClr = If( ::IsEnabled(), ::nClrText, If( ::lDisColor, ::nClrTextDis, CLR_HGRAY ) ) Regards, -Ramesh Babu P
by RAMESHBABU
Thu Jan 15, 2015 5:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Small correction in TBTNBMP Class to paint Disabled BtnText
Replies: 2
Views: 457

Re: Colores en los gets, como?

... Esto me funciona para cambiar los colores de los gets en general, y esta bien, asi los puedo modificar WITH OBJECT tGet() :lDisColors := .F. :nClrTextDis := COLOR_AZUL :nClrPaneDis := COLOR_SAMARILLO END El detalle aqui, es: Como indicar el color del get en particular, que no todos tengan ...
by noe aburto
Thu Sep 12, 2013 5:31 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Colores en los gets, como?
Replies: 3
Views: 821

Re: bug FWH GET y COLOR

... el consejo de Horacio Si quieres que no tome el color por defecto debes poner la data lDisColors de la clase get a .f. trata de setear las datas ::nClrTextDis y ::nClrPaneDis tienes un ejemplo de su funcionalidad en testget3.prg
by Daniel Garcia-Gil
Fri Aug 24, 2012 1:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: bug FWH GET y COLOR
Replies: 4
Views: 579

Re: setcolor on a get with a conditional checkbox

Daniel Garcia-Gil wrote:deactivate lDisColors and use nClrTextDis and nClrPaneDis


Of course. My fault.

EMG
by Enrico Maria Giordano
Mon May 23, 2011 1:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: setcolor on a get with a conditional checkbox
Replies: 5
Views: 907
Next

Return to advanced search