topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
Change Color of xBrowse Column Headers and Footers | Rick,
[img:3s6albvr]http://www.service-fivewin.de/IMAGES/Header2.jpg[/img:3s6albvr]
a setting for header AND footer
[color=#0000FF:3s6albvr]oBrw1:l2007 := .T.[/color:3s6albvr]
[color=#FF0000:3s6albvr][size=150:3s6albvr]1[/size:3s6albvr][/color:3s6albvr] // gradient
oBrw1:bClrGrad := { | lInvert | If( ! lInvert, ;
{ { 0.50, 14342874, 16777215 }, ;
{ 0.50, 16777215, 14342874 } }, ;
{ { 0.50, 14342874, 16777215 }, ;
{ 0.50, 16777215, 14342874 } } ) } // default colour gradient spec
[color=#FF0000:3s6albvr][size=150:3s6albvr]2[/size:3s6albvr][/color:3s6albvr]
// single color with ( 4 same color defines )
oBrw1:bClrGrad := { || { { 0.1, 14342874, 14342874 }, ;
{ 0.1, 14342874, 14342874 } } }
------------------------
------------------------
[color=#FF0000:3s6albvr][size=150:3s6albvr]3 + 4[/size:3s6albvr][/color:3s6albvr]
bClrHeader and bClrFooter You can use to color a single column
otherwise You can use AEval(... for ALL columns
[color=#FF0000:3s6albvr]oBrw1:l2007 := .F.[/color:3s6albvr].
AEval( oBrw1:aCols, { |o| o:bClrHeader := { || { CLR_BLUE, 14342874 } } } )
AEval( oBrw1:aCols, { |o| o:bClrFooter := { || { CLR_BLUE, 14342874 } } } )
[color=#FF0000:3s6albvr][size=150:3s6albvr]5[/size:3s6albvr][/color:3s6albvr]
colering a single column-header ( column 2 )
oBrw1:aCols[2]:bClrHeader := { || { CLR_BLUE, 255 } }
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
Change Color of xBrowse Column Headers and Footers | Thank you ALL !! appreciate your help
Rick Lipkin |
Change Color of xBrowse Column Headers and Footers | oBrw4:aCols[2]:bClrHeader := { || { CLR_RED, 155 } }
oBrw4:kleuren:bClrHeader := { || { CLR_GREEN, 155 } } // Col Nr. changed to HeaderName |
Change Color of xBrowse Column Headers and Footers | Hi
How to change xBrowse Header character color? I saw it black color. |
Change Color of xBrowse Column Headers and Footers | or include
[code=fw:38e4romy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />WITH OBJECT oBrw<br /> <br /> :<span style="color: #000000;">bClrHeader</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">// red text and keeps the background </span><br /> <span style="color: #B900B9;">// same for footer </span><br /> :<span style="color: #000000;">bClrFooter</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">// red text and keeps the background </span><br /><br />END<br /> </div>[/code:38e4romy]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
Change Color of xBrowse Column Headers and Footers | Hi Marc, Uwe
Thanks a lot. Solved. |
Change Color of xBrowse Column Headers and Footers | About header colors:
bClrHeader should return an array of length 2 or 3.
1st element is used as Text Color.
When oBrw:l2007 is false or when oBrw:lFatStyle is true,
2nd element is used as back color
If Array length is 3, then 3rd element is used for line color in the header, other wise text color is used for lines.
When oBrw:l2007 is true, 2nd and 3rd elements are ignored and oBrw:bClrGrad is used for header back. |
Change Dialog Style at runtime | How to change dialog style define from resource?RC:INFO DIALOG 6, 15, 473, 347STYLE WS_POPUP | WS_VISIBLE | WS_SYSMENUFONT 10, "Courier"{}PRG://perfectly as expectedDEFINE DIALOG oDlg RESOURCE 'INFO'... ACTIVATE DIALOG oDlg//-------------------//on the other prg with child windowDEFINE WINDOW oWnd TITLE "Test Child" MDICHID DEFINE DIALOG oDlg RESOURCE 'INFO' OF oWnd ... ACTIVATE DIALOG oDlg NOWAIT; ON INIT SetWindowLong( oDlg:hWnd, GWL_EXSTYLE, nOr(WS_CHILD ) ) ACTIVATE WINDOW oWnd//-------------------not working as expected...??? the oDlg must be transform to child of oWndany help?The purpose is to use dialog 'INFO' as popup dialog somewhere and a child of oWnd somewhere within the app.How to change dialog style at runtime?-Best Regards, |
Change Dialog Style at runtime | I GOT IT!!!Oh my!!! that was easy and fast reply too <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> I put....ACTIVATE DIALOG oDlg NOWAIT CENTERED; ON INIT SetParent( oDlg:hWnd, oWnd:hWnd )....Now I can use dialog as popup and child to any window....What am I thinking.... <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> Thanks! |
Change Dialog Style at runtime | Yet... still not able to change dialog style at runtime...The above is just a workaround.... <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> Feel free to post your solution please.... <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> |
Change Dialog Style at runtime | Hello,There is a toppic for V-tools in the forum.There, i change everything at runtime.Afterwards i write the source for it.You find it at :<!-- m --><a class="postlink" href="http://www.pflegeplus.com/fw_downloads/vtools.zip">http://www.pflegeplus.com/fw_downloads/vtools.zip</a><!-- m -->When you need, i can send you the complete source-part of thedialog-handling of V-Tools.The new Version 2.0 is nearly finished with many new functionsand support Vista and the new FWH 8.05It writes now the complete source of a design and includesthe make file as well, building the exe-file.In another 2 weeks it be be finished.Best RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
Change Dialog Style at runtime | Frances,Some styles can be changed at runtime, some others can't be change. Its a Windows limitation.In those cases you can only end() the dialog (destroy it) and create a new one with the right styles. |
Change Dialog Style at runtime | Mr. Antonio,After years of programming with Xharbour.org/FWH....Fivewin is so robust and flexible you can have some workaround effortlessly... to fit one's style in coding...Glad <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> you're <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> here!Best regards, |
Change Directory to where the EXE is | I cannot rely on the users' shortcut to ensure I have the right "working directory"
How can I find the name of the directory of the EXE that is being run so I can change to the directory where the EXE is with
DirChange(ALLTRIM( CurDrive() + ":\" + EXEDIR????())) |
Change Directory to where the EXE is | [code:2mu51gkp]CFILEPATH( GETMODULEFILENAME( GETINSTANCE() ) ) + "YOUREXE.EXE"[/code:2mu51gkp]
EMG |
Change Directory to where the EXE is | Thank you very much. |
Change Disable Fg color | Hi everyone;
When a control is disabled, it shows in a shade of gray --as it should and as the expected windows behavior. Having said that however, here is an unusual question: is there a way to disable a BUTTONBMP control object and yet change the text (fg) color? How?
Thank you for any help;
Reinaldo. |
Change Disable Fg color | Should I guess that this is just not possible? |
Change Disable Fg color | I'm not sure I understand the question. Does your bitmap button have a text bitmap? Or, is there such a thing as a bitmap button that also has text (I don't remember seeing such a button)?
Regards,
James |
Change Disable Fg color | Here is a sample:
[code=fw:2bhj9xx8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">REDEFINE</span> BUTTONBMP <span style="color: #0000ff;">ID</span> <span style="color: #000000;">202</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span> BITMAP <span style="color: #ff0000;">"exit16"</span> TEXTLEFT ;<br /> <span style="color: #0000ff;">ACTION</span> ::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">END</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> CANCEL ;<br /> TOOLTIP <span style="color: #ff0000;">"Exit Dialog"</span><br /><br /> <span style="color: #0000ff;">REDEFINE</span> BUTTONBMP oBtn <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span> BITMAP <span style="color: #ff0000;">"Save16"</span> TEXTLEFT ;<br /> TOOLTIP <span style="color: #ff0000;">"Save Sample Login Information"</span><br /><br /> oBtn:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">{</span> || ::<span style="color: #000000;">SavePatientInfo</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ;<br /> iif<span style="color: #000000;">(</span> ::<span style="color: #000000;">bOnSave</span> != <span style="color: #00C800;">NIL</span>, EVAL<span style="color: #000000;">(</span> ::<span style="color: #000000;">bOnSave</span>, <span style="color: #00C800;">SELF</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> </div>[/code:2bhj9xx8]
[img:2bhj9xx8]http://ssfl.dynalias.com:/temp_files/ButtonBMP.png[/img:2bhj9xx8]
When oBtn is disabled ( as in oBtn:disable() ) text shows in gray -as expected. The question is: is there any way to show foreground text on some other color when the button is disabled?
Reinaldo |
Change Disable Fg color | Rienaldo,
According to Microsoft's documentation, there is a color setting for this:
[quote:1atu9gyv]COLOR_GRAYTEXT Disabled (gray) text in buttons. This color is set to 0 if the current display driver does not support a solid gray color.[/quote:1atu9gyv]
See here: <!-- m --><a class="postlink" href="http://msdn.microsoft.com/en-us/library/windows/desktop/bb775941(v=vs.85">http://msdn.microsoft.com/en-us/library ... 41(v=vs.85</a><!-- m -->).aspx
I hope this helps.
--------------------
I note that you are using a button labeled "Exit." Assuming this is on some type of a data entry screen, this is not the Windows standard--"exit" is reserved only for exiting a program. When you use it elsewhere it is confusing to the user.
If the screen is modal, standard terms are "OK" and "Cancel." I am assuming your example is a non-modal window, and in this case the standard terms would be "Save" and "Close."
Just FYI.
Regards,
James |
Change Disable Fg color | [quote:u0ziw7f5]standard terms are "OK" and "Cancel." [/quote:u0ziw7f5]
Always good to be reminded. I should be paying more attention to this.
Thank you very much.
Reinaldo. |
Change FONT and FONT SIZE on MsgInfo() function | Is it possible to Change FONT and FONT SIZE on MsgInfo(), MsgYesNo() ... functions ... ore get the source of them.
Best regards, |
Change FONT and FONT SIZE on MsgInfo() function | I think not. They are only Windows API calls.
EMG |
Change Font in Tooltip | This syntax belongs to the tooltip xbrowse, changing his source?
example: Lucida Console and other
[code=fw:w6h0o1cf]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">{</span><span style="color: #00C800;">if</span><span style="color: #000000;">(</span>IVE->RECEBID = <span style="color: #ff0000;">"S"</span>,;<br /> <span style="color: #ff0000;">"Nº Venda : "</span>+IVE->NUMNVEN +CRLF+;<br /> <span style="color: #ff0000;">"Forma de Pagamento Já descriminada : "</span>+CRLF+;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> !Empty<span style="color: #000000;">(</span>ive->vistadh<span style="color: #000000;">)</span>,vforma01+<span style="color: #ff0000;">" : "</span>+transform<span style="color: #000000;">(</span>ive->vistadh,<span style="color: #ff0000;">"@E &vpict001"</span><span style="color: #000000;">)</span>+CRLF,<span style="color: #ff0000;">""</span><span style="color: #000000;">)</span>+;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> !Empty<span style="color: #000000;">(</span>ive->vistach<span style="color: #000000;">)</span>,vforma02+<span style="color: #ff0000;">" : "</span>+transform<span style="color: #000000;">(</span>ive->vistach,<span style="color: #ff0000;">"@E &vpict001"</span><span style="color: #000000;">)</span>+CRLF,<span style="color: #ff0000;">""</span><span style="color: #000000;">)</span>+;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> !Empty<span style="color: #000000;">(</span>ive->prazoch<span style="color: #000000;">)</span>,vforma03+<span style="color: #ff0000;">" : "</span>+transform<span style="color: #000000;">(</span>ive->prazoch,<span style="color: #ff0000;">"@E &vpict001"</span><span style="color: #000000;">)</span>+CRLF,<span style="color: #ff0000;">""</span><span style="color: #000000;">)</span>+;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> !Empty<span style="color: #000000;">(</span>ive->prazoct<span style="color: #000000;">)</span>,vforma04+<span style="color: #ff0000;">" : "</span>+transform<span style="color: #000000;">(</span>ive->prazoct,<span style="color: #ff0000;">"@E &vpict001"</span><span style="color: #000000;">)</span>+CRLF,<span style="color: #ff0000;">""</span><span style="color: #000000;">)</span>+;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> !Empty<span style="color: #000000;">(</span>ive->prazoap<span style="color: #000000;">)</span>,vforma05+<span style="color: #ff0000;">" : "</span>+transform<span style="color: #000000;">(</span>ive->prazoap,<span style="color: #ff0000;">"@E &vpict001"</span><span style="color: #000000;">)</span>+CRLF,<span style="color: #ff0000;">""</span><span style="color: #000000;">)</span>+;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> !Empty<span style="color: #000000;">(</span>ive->prazotk<span style="color: #000000;">)</span>,vforma06+<span style="color: #ff0000;">" : "</span>+transform<span style="color: #000000;">(</span>ive->prazotk,<span style="color: #ff0000;">"@E &vpict001"</span><span style="color: #000000;">)</span>+CRLF,<span style="color: #ff0000;">""</span><span style="color: #000000;">)</span>+;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> !Empty<span style="color: #000000;">(</span>ive->prazofi<span style="color: #000000;">)</span>,vforma07+<span style="color: #ff0000;">" : "</span>+transform<span style="color: #000000;">(</span>ive->prazofi,<span style="color: #ff0000;">"@E &vpict001"</span><span style="color: #000000;">)</span>+CRLF,<span style="color: #ff0000;">""</span><span style="color: #000000;">)</span>+;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> !Empty<span style="color: #000000;">(</span>ive->prazocd<span style="color: #000000;">)</span>,vforma08+<span style="color: #ff0000;">" : "</span>+transform<span style="color: #000000;">(</span>ive->prazocd,<span style="color: #ff0000;">"@E &vpict001"</span><span style="color: #000000;">)</span>+CRLF,<span style="color: #ff0000;">""</span><span style="color: #000000;">)</span>+;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> !Empty<span style="color: #000000;">(</span>ive->prazodi<span style="color: #000000;">)</span>,vforma09+<span style="color: #ff0000;">" : "</span>+transform<span style="color: #000000;">(</span>ive->prazodi,<span style="color: #ff0000;">"@E &vpict001"</span><span style="color: #000000;">)</span>+CRLF,<span style="color: #ff0000;">""</span><span style="color: #000000;">)</span>+;<br /> <span style="color: #ff0000;">"Para Demais alteraçoes Duplo Click !"</span>,;<br /> <span style="color: #ff0000;">"Sem Forma de Pagamento !"</span>+CRLF+;<br /> <span style="color: #ff0000;">"Para Realizar Forma de Pagamento Duplo click."</span><span style="color: #000000;">)</span>,<span style="color: #ff0000;">"Informaçao"</span>,<span style="color: #ff0000;">""</span>,nRGB<span style="color: #000000;">(</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span><span style="color: #000000;">)</span>,nRGB<span style="color: #000000;">(</span><span style="color: #000000;">58</span>,<span style="color: #000000;">116</span>,<span style="color: #000000;">241</span><span style="color: #000000;">)</span>,oFon03 <span style="color: #000000;">}</span></div>[/code:w6h0o1cf]
ofont wrote at the end but only for testing
Help !! <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o --> <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> |
Change Font undefined SAY | hello to all,
are there some way to change the say's font of the undefined SAY, I mean if we define says in dialog (resource) is possible to change the font of the SAY without redefine it?
regards
Marcelo |
Change Font undefined SAY | Marcelo,
at the end of the defined dialog ( or window ) add :
[code=fw:1zeiidzq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />AEVAL<span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">aControls</span>, ;<br /> <span style="color: #000000;">{</span> | oCtl | IIF<span style="color: #000000;">(</span> oCtl:<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> == <span style="color: #ff0000;">"TSAY"</span>, ; <span style="color: #B900B9;">// only SAY is used</span><br /> <span style="color: #000000;">(</span> oCtl:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFont1 <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// change font</span><br /> oCtl:<span style="color: #000000;">Setcolor</span><span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// change to red</span><br /> oCtl:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <br /> </div>[/code:1zeiidzq]
best regards
Uwe <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
Change Font undefined SAY | Thanks,
I want to change the font of the says no redefined from a dialog, I think your solution is for says explicitly defined
Thanks and regards
Marcelo |
Change Font undefined SAY | Marcelo
I hope this is what you are looking for ?
Rick Lipkin
[code=fw:n4bra5w9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><br /><span style="color: #B900B9;">//---------------------</span><br />Func Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">Local</span> oFontA,oFontB,oSay,cSay,oBtn1<br /><br />oFontB := TFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Ms Sans Serif"</span>,,<span style="color: #000000;">-6</span>,.F.,.T. ,,,,.F. <span style="color: #000000;">)</span><br />oFontA := TFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"New Times Roman"</span>,,<span style="color: #000000;">-10</span>,.F.,.T. ,,,,.F. <span style="color: #000000;">)</span><br />cSay := <span style="color: #ff0000;">"Testing Boiler Plate Text"</span><br /><br />LightGreyGrad<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// creates gradient and the transparent flag for dialog</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>, <span style="color: #000000;">300</span><br /><br /> @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">Say</span> oSay <span style="color: #0000ff;">PROMPT</span> cSay <span style="color: #0000ff;">OF</span> oDlg<br /> oSay:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFontB <span style="color: #000000;">)</span><br /> oSay:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span>nRgb<span style="color: #000000;">(</span><span style="color: #000000;">7</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">224</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// blue</span><br /><br /> @ <span style="color: #000000;">3</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Change Font"</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">12</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oSay:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span>oFontA<span style="color: #000000;">)</span>,oSay:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span>CLR_HRED<span style="color: #000000;">)</span>,oSay:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFontB<br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFontA<br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">(</span><span style="color: #00C800;">nil</span><span style="color: #000000;">)</span><br /><br /><br /><span style="color: #B900B9;">//------------------</span><br />Func LightGreyGrad<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />SetDlgGradient<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> .<span style="color: #000000;">50</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">216</span>, <span style="color: #000000;">216</span>, <span style="color: #000000;">216</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">(</span><span style="color: #00C800;">nil</span><span style="color: #000000;">)</span><br /><br /> </div>[/code:n4bra5w9] |
Change Font undefined SAY | Hi Marcelo,
you want to change the font of an undefined control, so wou'll have "to get your hands dirty".
First, get the handle (hWnd) of every child control in your dialog, then check the id (-1) and type (Static) of that control to identify your target(s), and then change the font. Sth like
[code=fw:y1ucsetb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #B900B9;">// oDlg your Dialog and oFont the font to set to</span><br /> hCtrl := GetWindow<span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">hWnd</span>, GW_CHILD <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">WHILE</span> hCtrl != <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">IF</span> GetClassName<span style="color: #000000;">(</span> hCtrl <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"Static"</span> .AND. GetWindowLong<span style="color: #000000;">(</span> hCtrl, GWL_ID <span style="color: #000000;">)</span> == <span style="color: #000000;">-1</span><br /> SendMessage<span style="color: #000000;">(</span> hCtrl, WM_SETFONT, oFont:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> hCtrl := GetWindow<span style="color: #000000;">(</span> hCtrl, GW_HWNDNEXT <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDDO</span><br /> </div>[/code:y1ucsetb]
Warning: I haven't tryed it, so it is not under warranty <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> I think it should work. |
Change Font undefined SAY | I think he want to change the fonts of the text controls with an ID of -1 in the resource. |
Change Font undefined SAY | Gale
You are correct .. control ID -1 can not be changed .. you have to create a Text Control with a valid ID in your .rc and then REDEFINE with Color and Font with Code.
Rick Lipkin
[code=fw:1rd0mdxg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />LTEXT <span style="color: #ff0000;">"Vendor Id"</span>, <span style="color: #000000;">112</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">39</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">12</span>, SS_NOPREFIX | WS_GROUP<br /> </div>[/code:1rd0mdxg]
[code=fw:1rd0mdxg]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSay27 <span style="color: #0000ff;">Id</span> <span style="color: #000000;">112</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />oSay27:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFontB <span style="color: #000000;">)</span><br />oSay27:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> nRgb<span style="color: #000000;">(</span> <span style="color: #000000;">7</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">224</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> </div>[/code:1rd0mdxg] |
Change Font undefined SAY | Thanks to all for the responses
Carlos thanks your suggestion, this work very well, now
are there the possibility to change the color too?
best regards
Marcelo |
Change Font undefined SAY | Marcelo,
You can get the fish, or learn how to fish <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
The matter is: using a control's (windows) handle, change it's color (like ::SetColor() does). One of the blessings of using FW is that you have 99% of the source code, so we have the very basic resource for research. Take a look into TWindows source and find out by yourself, i'm pretty sure you can! Show me that i'm not wrong <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Best regards |
Change Font undefined SAY | Carlos,
good philosophy, if I find the solution, I will publish it here
Thanks
Marcelo |
Change Font undefined SAY | Marcelo
Several years ago I was faced with a similar situation .. look for a workaround for Static text ID -1 or just go through each .rc and assign and replace each -1 with an ID number of your choice.
When you have a unique ID for your text, it makes it so much easier to code fonts,color and transparency.
[code=fw:1sujijum]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">from</span> .rc<br />LTEXT <span style="color: #ff0000;">"Vendor Id"</span>, <span style="color: #000000;">112</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">39</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">12</span>, SS_NOPREFIX | WS_GROUP<br /> </div>[/code:1sujijum]
[code=fw:1sujijum]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSay27 <span style="color: #0000ff;">Id</span> <span style="color: #000000;">112</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />oSay27:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFontB <span style="color: #000000;">)</span><br />oSay27:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> nRgb<span style="color: #000000;">(</span> <span style="color: #000000;">7</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">224</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> </div>[/code:1sujijum]
Just my 2 cents worth.
Rick Lipkin |
Change Footer colors (xBrowse) | Is there any example of an interactive color change in Footer (xBrowse) ? |
Change Footer colors (xBrowse) | Did you already make a looking for "footer color"?
Regards |
Change Footer colors (xBrowse) | Hi,
[code=fw:22ekfnjq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oCol:<span style="color: #000000;">bClrFooter</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span><span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">(</span><span style="color: #000000;">9</span><span style="color: #000000;">)</span>:<span style="color: #000000;">nTotal</span> > <span style="color: #000000;">0</span>, CLR_RED, CLR_BLACK<span style="color: #000000;">)</span>, <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /> </div>[/code:22ekfnjq] |
Change Footer colors (xBrowse) | Thank you for your help !
Of course, I immediately tried the construction of
aCols[cl]:bClrFooter:={||{RGB(...), RGB(...)}}
aCols[cl]:RefreshFooter()
But at the same time, only the font color changes, and the background color does not change <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> |
Change Footer colors (xBrowse) | return color pair { nClrText, nClrBack } when your bClrFooter is evaluated. |
Change Footer colors (xBrowse) | Sorry, I got it! Is the update method not enough aCols[cl]:RefreshFooter() ? |
Change Footer colors (xBrowse) | Hi,
this code...
[code=fw:22usqbs2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oCol:<span style="color: #000000;">bClrFooter</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span><span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">(</span><span style="color: #000000;">9</span><span style="color: #000000;">)</span>:<span style="color: #000000;">nTotal</span> > <span style="color: #000000;">0</span>, CLR_RED, CLR_BLACK<span style="color: #000000;">)</span>, CLR_YELLOW<span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> </div>[/code:22usqbs2] |
Change Footer colors (xBrowse) | hi Friends
[code=fw:33ecz7zk]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oCol:<span style="color: #000000;">bClrFooter</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span>CLR_GREEN, CLR_BLUE<span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">// CLR_BLUE not working.........</span><br /> </div>[/code:33ecz7zk] |
Change Footer colors (xBrowse) | [code=fw:718bpgzt]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> aData := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"ONE "</span>, <span style="color: #000000;">2000</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span> <span style="color: #ff0000;">"TWO "</span>, <span style="color: #000000;">-5000</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span> <span style="color: #ff0000;">"THREE"</span>, <span style="color: #000000;">2000</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /> XBROWSER aData FASTEDIT SETUP BrwSetup<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> BrwSetup<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span><br /><br /> SetGetColorFocus<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBrw:<span style="color: #000000;">lFooter</span> := .t.<br /> oBrw:<span style="color: #000000;">l2007</span> := .f.<br /> WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span><br /> :<span style="color: #000000;">nFooterType</span> := AGGR_SUM<br /> :<span style="color: #000000;">bClrFooter</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">nTotal</span> < <span style="color: #000000;">0</span>, <span style="color: #000000;">{</span> CLR_WHITE, CLR_HRED <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span> CLR_BLACK, CLR_HGREEN <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> END<br /> oBrw:<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:718bpgzt]
[url=https://imageshack.com/i/pnI506HNg:718bpgzt][img:718bpgzt]https://imagizer.imageshack.com/img923/5369/I506HN.gif[/img:718bpgzt][/url:718bpgzt] |
Change Footer colors (xBrowse) | Hi Mr. Rao,
Which application do you use to create gif files.
Thanks. |
Change Footer colors (xBrowse) | ScreenToGif |
Change GET | Good afternoon.
is there any way to know in which to get there was a change in a dialog |
Change GET | From Demont Frank
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=11752&start=0&hilit=acontrols#p58011">viewtopic.php?f=3&t=11752&start=0&hilit=acontrols#p58011</a><!-- l --> |
Change GET TEXT COLOR when GET Focused. | Hi ,
I want to change the TEXT Color ONLY when GET is focused. Please guide me how I can set it ?
Thanks in advance..!
Shridhar |
Change GET TEXT COLOR when GET Focused. | Shridhar,
maybe SetGetColorFocus() is what you are looking for.
Best regrads,
Otto |
Change GET TEXT COLOR when GET Focused. | Shridhar,
Changing a SINGLE-get ( not global !!! ),
otherwise Ottos solution.
[color=#0000FF:165wr099]REDEFINE GET oGet VAR nTickCount ID 970 PICTURE "99999" OF oDlg UPDATE[/color:165wr099]
This changes the GET ON FOCUS to RED with black text
[color=#FF0000:165wr099]oGet1:bGotFocus [/color:165wr099]:= { | nKey, nFlags | oGet:SetColor( 0, 255 ) }
This changes the GET to WHITE with black text
[color=#FF0000:165wr099]oGet1:bLostFocus [/color:165wr099]:= { | nKey, nFlags | oGet:SetColor( 0, 16777215 ) }
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
Change GET TEXT COLOR when GET Focused. | Hi Otto, Uwe ,
Want to set globally but, as SetGetColorFocus() function I can set color only for Background not for Text. Is there any way so I can set color for both Text and Background globally ?
Thanks
Shridhar |
Change GET alignment | Hello,
I need to change GET alignment in run time, I don't remember but I think it is possible sending some message to the object, some help?,
I want to use only one get control
regards
Marcelo |
Change Groupheaders in Xbrowse on new Values | We can change the header with this code :
oBrw1:bChange := { || oBrw2:cHeaders := { FIELD->CODE + '1', FIELD->CODE + '2', FIELD->CODE + '3' }, oBrw2:RefreshHeaders() }
But can we also change the Groupheader ?
aMaand = Array with 12 months
nMaand is actual month
On start, the groepheader is Januari, but when I change the combo to March, it should change.
The Combo :
[code=fw:2ooggp52]<div class="fw" id="{CB}" style="font-family: monospace;">@ <span style="color: #000000;">65</span>,<span style="color: #000000;">550</span> <span style="color: #0000ff;">COMBOBOX</span> oCbx <span style="color: #0000ff;">VAR</span> nMaand <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> HEIGHTGET <span style="color: #000000;">18</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">ITEMS</span> aMaanden <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">(</span> ;<br /> tn := oRs:<span style="color: #000000;">FieldPos</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"T"</span> + LTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> nMaand <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"_1"</span> <span style="color: #000000;">)</span>, ;<br /> oBrw<span style="color: #000000;">[</span> <span style="color: #000000;">6</span> <span style="color: #000000;">]</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:2ooggp52]
:SetGroupHeader( aMaanden[nMaand], oBrw[6]:oCol("T1"):nCreationOrder, oBrw[6]:oCol("M4"):nCreationOrder ) // header Januari = 0K
Tried :
oBrw[6]:bChange := { || oBrw[6]:cGroupHeader := { aMaanden[nMaand] }, oBrw[6]:RefreshHeaders() } |
Change Groupheaders in Xbrowse on new Values | Marc,
oBrowse:SetGroupHeader( 'NOVO TITULO', 1, 14 ) |
Change Layout of content of the tooltip | Hello,
I a browse I have a Char Field. It look like : "Iphone<br>64mb<br>green<br>touchscreen" enz..
It is used for a import in a php shopcart, where the <BR> will take care that each item is on a new line for viewing.
I would like tho see also from the browse and his Tooltip the Items on each new line
Iphone
64 mb
Green
Touchscreen
I tried to change the <BR> what is HTML inside the below function to CRLF , but with no succes.
Maybe a other idea ?
This code shows the tooltip :
[code=fw:3w360paj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #0000ff;">from</span> browse :<br /> oBrw:<span style="color: #000000;">bToolTips</span> := ;<br /> <span style="color: #000000;">{</span> | oBrw,r,c,f,oMouseCol,nMouseRow| MyColToolTip<span style="color: #000000;">(</span> oBrw,r,c,f,oMouseCol,nMouseRow <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><br /><span style="color: #00C800;">Function</span> MyColToolTip<span style="color: #000000;">(</span> oBrw, r, c, f, oMouseCol, nMouseRow <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> uBm, uVal<br /><br /> <span style="color: #00C800;">if</span> nMouseRow != oBrw:<span style="color: #000000;">nRowSel</span><br /> uBm := oBrw:<span style="color: #000000;">BookMark</span><br /> Eval<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">bSkip</span>, nMouseRow - oBrw:<span style="color: #000000;">nRowSel</span> <span style="color: #000000;">)</span><br /> uVal := oMouseCol:<span style="color: #000000;">Value</span><br /> oBrw:<span style="color: #000000;">BookMark</span> := uBm<br /> <span style="color: #00C800;">else</span><br /> uVal := oMouseCol:<span style="color: #000000;">Value</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> cValToChar<span style="color: #000000;">(</span> uVal <span style="color: #000000;">)</span><br /><br /> </div>[/code:3w360paj] |
Change Layout of content of the tooltip | [code=fw:qtwytpbl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">local</span> cTags := <span style="color: #ff0000;">"Iphone<br>64mb<br>green<br>touchscreen"</span> <br /> <span style="color: #00C800;">local</span> cStr := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">local</span> aStr := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <br /> aStr := HB_ATokens<span style="color: #000000;">(</span> cTags, <span style="color: #ff0000;">"<br>"</span><span style="color: #000000;">)</span><br /> aEVal<span style="color: #000000;">(</span> aStr, <span style="color: #000000;">{</span> | a | cStr += a + CRLF <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> ? cStr<br /> </div>[/code:qtwytpbl] |
Change Layout of content of the tooltip | [code=fw:2uyxg5g4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> MyColToolTip<span style="color: #000000;">(</span> oBrw, r, c, f, oMouseCol, nMouseRow <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> uBm, uVal<br /><br /> <span style="color: #00C800;">if</span> nMouseRow != oBrw:<span style="color: #000000;">nRowSel</span><br /> uBm := oBrw:<span style="color: #000000;">BookMark</span><br /> Eval<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">bSkip</span>, nMouseRow - oBrw:<span style="color: #000000;">nRowSel</span> <span style="color: #000000;">)</span><br /> uVal := oMouseCol:<span style="color: #000000;">Value</span><br /> oBrw:<span style="color: #000000;">BookMark</span> := uBm<br /> <span style="color: #00C800;">else</span><br /> uVal := oMouseCol:<span style="color: #000000;">Value</span><br /> <span style="color: #00C800;">endif</span><br /><br /> uVal := cValToChar<span style="color: #000000;">(</span> uVal <span style="color: #000000;">)</span><br /> uVal := StrTran<span style="color: #000000;">(</span> uVal, <span style="color: #ff0000;">"<br>"</span>, CRLF <span style="color: #000000;">)</span><br /><br /><br /><span style="color: #00C800;">return</span> uVal<br /> </div>[/code:2uyxg5g4]
[url=https://imageshack.com/i/pnsB5xuRp:2uyxg5g4][img:2uyxg5g4]http://imagizer.imageshack.us/v2/xq90/923/sB5xuR.png[/img:2uyxg5g4][/url:2uyxg5g4] |
Change Layout of content of the tooltip | If you want to display multi-line in both xbrowse and also in tool-tips
[code=fw:1gupisqe]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oBrw, oFont<br /> <span style="color: #00C800;">local</span> aData := <span style="color: #000000;">{</span> ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Iphone<br>64mb<br>green<br>touchscreen"</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"brand2<br>32mb<br>black<br>touchscreen"</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">3</span>, <span style="color: #ff0000;">"brand3<br>16mb<br>white<br>touchscreen"</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /> SetBalloon<span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont TRUEPIXEL<br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> DATASOURCE aData COLUMNS <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> ;<br /> COLSIZES <span style="color: #000000;">50</span>,<span style="color: #000000;">100</span> ;<br /> CELL LINES NOBORDER<br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">{</span> || StrTran<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aRow</span><span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, <span style="color: #ff0000;">"<br>"</span>, CRLF <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">nDataLines</span> := <span style="color: #000000;">4</span><br /> :<span style="color: #000000;">bToolTips</span> := <span style="color: #000000;">{</span> | oBrw,r,c,f,oMouseCol,nMouseRow| MyColToolTip<span style="color: #000000;">(</span> oBrw,r,c,f,oMouseCol,nMouseRow <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> MyColToolTip<span style="color: #000000;">(</span> oBrw, r, c, f, oMouseCol, nMouseRow <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> uBm, uVal<br /><br /> <span style="color: #00C800;">if</span> nMouseRow != oBrw:<span style="color: #000000;">nRowSel</span><br /> uBm := oBrw:<span style="color: #000000;">BookMark</span><br /> Eval<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">bSkip</span>, nMouseRow - oBrw:<span style="color: #000000;">nRowSel</span> <span style="color: #000000;">)</span><br /> uVal := oMouseCol:<span style="color: #000000;">Value</span><br /> oBrw:<span style="color: #000000;">BookMark</span> := uBm<br /> <span style="color: #00C800;">else</span><br /> uVal := oMouseCol:<span style="color: #000000;">Value</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> cValToChar<span style="color: #000000;">(</span> uVal <span style="color: #000000;">)</span><br /> </div>[/code:1gupisqe]
[url=https://imageshack.com/i/pn6WVJdhp:1gupisqe][img:1gupisqe]http://imagizer.imageshack.us/v2/xq90/923/6WVJdh.png[/img:1gupisqe][/url:1gupisqe] |
Change Layout of content of the tooltip | Thank you all.
I found a post that it is not yet possible to keep the Tooltip Balloon longer on screen
Options :
1 by time : we can set the time, or
2 Keep visible as long as we are on the cell, and change when we change to a other cell.
Is this also for Xbrowse ? Maybe Xbrowse has this option inside...
[quote="nageswaragunupudi":3pn6pc48]For many years it is already possible to set title, icon and colors of tooltip.
Obj:cToolTip can be assigned with Text or Array or CodeBlock. Codeblock can return either text or array
Advantage of codeblock is that we can change the text,etc displayed according to the context at the time of display of tooltip.
Array Specs:
Obj:cToolTip := { cText, cTitle, nIcon, nClrText, nClrBack }
[quote:3pn6pc48]
March 2008
===========
* Enhancement: Tooltips can now have user defined header, icon and colors,
by specifying the tooltip as an array in the format
{ cToolTipText, [cHeader, [nIcon]], [nForeColor], [nBackColor] }.
If the tooltip is specified as a codeblock, it can evaluate to a
character value or an array.
[/quote:3pn6pc48]
Now we shall consider adding width, delaytype and delaytime[/quote:3pn6pc48] |
Change Layout of content of the tooltip | Implemented and is due to be released in 17.01 |
Change Layout of content of the tooltip | [quote="nageswaragunupudi":33jd2z6u]Implemented and is due to be released in 17.01[/quote:33jd2z6u]
Mr.Rao
How about use C5ToolTip? |
Change Layout of content of the tooltip | You are free to use C5ToolTip class if you like. It offers more flexibility. This is a class independent of Windows API. Each tooltip involves writing of more code.
The tooltips we discussed earlier were tooltips provided by Windows API and usage is simple. |
Change Layout of content of the tooltip | In FWH 17.01, we introduced bCellToolTip, which is extremely easier to implement than bToolTip. We recommend using bCellToolTip in the place of bToolTip and deprecate using bToolTip.
The sample above is re-written using bCellToolTip
[code=fw:1d6gpbxy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oBrw, oFont<br /> <span style="color: #00C800;">local</span> aData := <span style="color: #000000;">{</span> ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Iphone<br>64mb<br>green<br>touchscreen"</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"brand2<br>32mb<br>black<br>touchscreen"</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">3</span>, <span style="color: #ff0000;">"brand3<br>16mb<br>white<br>touchscreen"</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /> SetBalloon<span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont TRUEPIXEL<br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> DATASOURCE aData COLUMNS <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> ;<br /> COLSIZES <span style="color: #000000;">50</span>,<span style="color: #000000;">100</span> ;<br /> CELL LINES NOBORDER<br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">{</span> || StrTran<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aRow</span><span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>, <span style="color: #ff0000;">"<br>"</span>, CRLF <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">nDataLines</span> := <span style="color: #000000;">4</span><br /> :<span style="color: #000000;">bCellToolTips</span> := <span style="color: #000000;">{</span> | oCol | cValToChar<span style="color: #000000;">(</span> oCol:<span style="color: #000000;">Value</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1d6gpbxy] |
Change Layout of content of the tooltip | Hi Mr. Rao,
Can we set duration time in bCellToolTip usage?
Thanks, |
Change Layout of content of the tooltip | Yes, from FWH 17.01 onwards.
In the above codeblock instead of returning a character value, return array with 7th element as time in milliseconds.
For complete specification, please see whatsnew.txt of FWH 17.01 |
Change MenuItems on the fly | Hi.
I'd like to change the menu items on menu option n (say 5) via code. Can someone help?
Thank you,
Reinaldo. |
Change MenuItems on the fly | Try this:
[code=fw:blflxhv3]<div class="fw" id="{CB}" style="font-family: monospace;">oMenu:<span style="color: #000000;">aItems</span><span style="color: #000000;">[</span> <span style="color: #000000;">5</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">SetPrompt</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Changed"</span> <span style="color: #000000;">)</span></div>[/code:blflxhv3]
EMG |
Change MenuItems on the fly | Enrico;
Hi.
How about removing all submenu options from oMenu:aItems[5] and then adding 3 new submenu items with actions to oMenu:aItems[ 5 ]?
Thank you,
Reinaldo. |
Change MenuItems on the fly | Please look inside mru.prg.
EMG |
Change MenuItems on the fly | Yes!
Thank you Enrico.
Reinaldo. |
Change POPMENU background color? | Dear All,
How can I change background color (ClrPane) of POPMENU? I try COLORMENU COLORSELECT but it doesn't change.
Thanks in advance, |
Change POPMENU background color? | Maybe:
[url:29yto4mm]https://forums.fivetechsupport.com/viewtopic.php?f=3&t=30894[/url:29yto4mm]
[url:29yto4mm]https://forums.fivetechsupport.com/viewtopic.php?f=6&t=24251&start=0[/url:29yto4mm]
[url:29yto4mm]https://forums.fivetechsupport.com/viewtopic.php?f=3&t=36238[/url:29yto4mm]
[url:29yto4mm]https://www.fivetechsoft.com/forums/viewtopic.php?t=39718[/url:29yto4mm]
Regards, saludos. |
Change POPMENU background color? | [quote="dutch":2io64tdi]Dear All,
How can I change background color (ClrPane) of POPMENU? I try COLORMENU COLORSELECT but it doesn't change.
Thanks in advance,[/quote:2io64tdi]
To be able to use those clauses, you have to define the 2013 style or simply use the COLORS clause
MENU oMnu COLORS .....
[code=fw:2io64tdi]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">MENU</span> oPopup <span style="color: #0000ff;">POPUP</span> <span style="color: #000000;">2013</span> <span style="color: #0000ff;">FONT</span> oFontX NOBORDER ;<br /> COLORMENU CLR_VSBAR, CLR_BLUE ; <span style="color: #B900B9;">//nClrTxtBrw ; //nClrBackBrw</span><br /> COLORSELECT nClrTxtBrw, nClrTxtBrw, nClrBackBrw ;<br /> LEFTCOLOR CLR_WHITE, CLR_HGRAY COLORSEPARATOR CLR_BLUE COLORBOX CLR_WHITE<br /> </div>[/code:2io64tdi] |
Change POPMENU background color? | hi,
i use this
[code=fw:1nlfw1cc]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">IF</span> BGcolor = Rgb<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// msginfo("oMenu black")</span><br /> <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2013</span> <span style="color: #0000ff;">POPUP</span> ;<br /> COLORMENU BGcolor, BFcolor ;<br /> COLORPNEL BFcolor, BGcolor ;<br /> COLORLEFT BFcolor, BGcolor ;<br /> COLORSELECT BFcolor, BGcolor, BFcolor<br /><br /> ELSEIF BGColor = <span style="color: #000000;">256</span> * <span style="color: #000000;">256</span> * <span style="color: #000000;">256</span> - <span style="color: #000000;">1</span> <span style="color: #B900B9;">// 16777215</span><br /> <span style="color: #B900B9;">// msginfo("oMenu white")</span><br /> <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2013</span> <span style="color: #0000ff;">POPUP</span> ;<br /> COLORSELECT GetSysColor<span style="color: #000000;">(</span> COLOR_MENUHILIGHT <span style="color: #000000;">)</span>, GetSysColor<span style="color: #000000;">(</span> COLOR_MENUHILIGHT <span style="color: #000000;">)</span>, GetSysColor<span style="color: #000000;">(</span> COLOR_MENU <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">ELSE</span><br /> <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2013</span> <span style="color: #0000ff;">POPUP</span> ;<br /> COLORMENU BGcolor, BFcolor ;<br /> COLORPNEL BFcolor, BGcolor ;<br /> COLORLEFT BFcolor, BGcolor ;<br /> COLORSELECT BFcolor, BFcolor, BGcolor<br /> <span style="color: #00C800;">ENDIF</span></div>[/code:1nlfw1cc]
[img:1nlfw1cc]https://i.postimg.cc/SxmpCH7v/Popup-menu-black.jpg[/img:1nlfw1cc]
[img:1nlfw1cc]https://i.postimg.cc/7PQCBMQ9/Popup-menu-white.jpg[/img:1nlfw1cc] |
Change POPMENU background color? | Dear All,
Thank you so much, it works well now. |
Change TExplorer theme or Color ? | Dear All,
Can I change color or theme of TExplorer?
Thanks in advance, |
Change TExplorer theme or Color ? | Dutch,
For the entire ExplorerBar you have:
::nTopColor, ::nBottomColor
You can modify the DATA aGradient in each TaskPanel:
Also you have
DATA nClrTextSpecial INIT CLR_WHITE
DATA nClrHover INIT RGB( 66, 142, 255 )
and nClrText |
Change Text on ButtonBar! | Hi,
I have a Text on ButtonBar via TSay class. I need to change it with pressing "Change It" button.
Any help?
Thanks.
[code=fw:x2mj116s]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd, oBar, oBold, oFont1, oSay11<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-35</span><br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FWH17.04 : ButtonBar Group Labels"</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2007</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">56</span>,<span style="color: #000000;">56</span> HEIGHT <span style="color: #000000;">80</span><br /><br /> oBold := oBar:<span style="color: #000000;">oFont</span>:<span style="color: #000000;">Bold</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBar:<span style="color: #000000;">oGrpFont</span> := oBold<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Change it"</span> <span style="color: #0000ff;">action</span> Change_Text<span style="color: #000000;">(</span>oSay11<span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">3</span>,<span style="color: #000000;">100</span> <span style="color: #0000ff;">say</span> oSay11 <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"Test1"</span> <span style="color: #0000ff;">of</span> oBar <span style="color: #0000ff;">size</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">56</span> <span style="color: #0000ff;">pixel</span> TRANSPARENT <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">CENTER</span> VCENTER <span style="color: #0000ff;">COLOR</span> CLR_RED <span style="color: #0000ff;">UPDATE</span> <br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oBold<br /> oFont1:=<span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> Change_Text<span style="color: #000000;">(</span>oSay<span style="color: #000000;">)</span><br /> oSay:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"New Text"</span><span style="color: #000000;">)</span><br /> oSay:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> .t.</div>[/code:x2mj116s] |
Change Text on ButtonBar! | Una forma sería:
[code=fw:3deb4jnj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd, oBar, oBold, oFont1, oSay11, cText := <span style="color: #ff0000;">"Test 1"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-35</span><br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FWH17.04 : ButtonBar Group Labels"</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2007</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">56</span>,<span style="color: #000000;">56</span> HEIGHT <span style="color: #000000;">80</span><br /><br /> oBold := oBar:<span style="color: #000000;">oFont</span>:<span style="color: #000000;">Bold</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBar:<span style="color: #000000;">oGrpFont</span> := oBold<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Change it"</span> <span style="color: #0000ff;">action</span> Change_Text<span style="color: #000000;">(</span>oSay11,@cText<span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">3</span>,<span style="color: #000000;">100</span> <span style="color: #0000ff;">say</span> oSay11 <span style="color: #0000ff;">Prompt</span> cText <span style="color: #0000ff;">of</span> oBar <span style="color: #0000ff;">size</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">56</span> <span style="color: #0000ff;">pixel</span> TRANSPARENT <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">CENTER</span> VCENTER <span style="color: #0000ff;">COLOR</span> CLR_RED <span style="color: #0000ff;">UPDATE</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oBold<br /> oFont1:=<span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> Change_Text<span style="color: #000000;">(</span>oSay,cText<span style="color: #000000;">)</span><br /> cText := <span style="color: #ff0000;">"New Text"</span><br /> oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> .t.</div>[/code:3deb4jnj] |
Change Text on ButtonBar! | [code=fw:3b6e46a0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> BarSay<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd, oBar, oSay1, oSay2<br /> <span style="color: #00C800;">local</span> cPrompt1 := <span style="color: #ff0000;">"ONE"</span><br /> <span style="color: #00C800;">local</span> nMth := <span style="color: #000000;">0</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>,<span style="color: #000000;">45</span> <span style="color: #000000;">2010</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Change"</span> <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> ;<br /> cPrompt1 := <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> cPrompt1 == <span style="color: #ff0000;">"ONE"</span>, <span style="color: #ff0000;">"TWO"</span>, <span style="color: #ff0000;">"ONE"</span> <span style="color: #000000;">)</span>, ;<br /> nMth := <span style="color: #000000;">(</span> ++nMth <span style="color: #000000;">)</span> % <span style="color: #000000;">12</span>, ;<br /> oBar:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">3</span>,<span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> cPrompt1 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oBar VCENTER<br /> @ <span style="color: #000000;">3</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">SAY</span> <span style="color: #000000;">{</span> || ntocmonth<span style="color: #000000;">(</span> nMth + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oBar VCENTER<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3b6e46a0] |
Change Text on ButtonBar! | Thank you Mr. Rao, Cesar. |
Change Treeview bitmap at runtime | Hi!
I'm trying to implement a control access menu based in SysTreeView32.
I want to check/uncheck menu items that the user can or not access.
[code:3voqq14b]
{-}--Menu 1
| |---[ ] Menu 1.1
| |---[x] Menu 1.2
| +---[ ] Menu 1.3
|
{-}--Menu 2
|---[x] Menu 2.1
+---[x] Menu 2.2
[/code:3voqq14b]
Using TreeView I did any like this and I will use a bitmap to checked and other to unchecked state.
1. How can I change bitmap when we click over?
2. How can I know if a item is checked or not to save the results in a database?
Best regards,
Maurilio[/img] |
Change Treeview bitmap at runtime | Although not as fancy, a browse would be much easier to program.
James |
Change Treeview bitmap at runtime | [quote="Maurilio Viana":1xvxc5lz]1. How can I change bitmap when we click over?[/quote:1xvxc5lz]
Try to change the image in the oImageList and then use SetImageList() method.
[quote="Maurilio Viana":1xvxc5lz]2. How can I know if a item is checked or not to save the results in a database?[/quote:1xvxc5lz]
Store the info in an array or a database and toggle it when you click on a tree item.
EMG |
Change Treeview bitmap at runtime | Maurilio
From the oImageList
IF oItem:nImage = 1
oItem:Set( ,2)
oItem:nImage := 2
ELSE
oItem:Set( ,1)
oItem:nImage := 1
ENDIF
Regards Maurizio |
Change Treeview bitmap at runtime | Olá Maurilio beleza <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
O que você precisa seia algo como a imagem abaixo ?
[img:1ac4igp4]http://br.geocities.com/qiinformatica2000/treee.PNG[/img:1ac4igp4]
Abraços,
Rossine. |
Change Treeview bitmap at runtime | [quote="Rossine":1bnhwghg]
O que você precisa seia algo como a imagem abaixo ?
[/quote:1bnhwghg]
Isso mesmo, Rossine!
[ ]'s
Maurilio |
Change Treeview bitmap at runtime | Olá Maurilio,
Se eu não estou enganado eu peguei este exemplo aqui mesmo <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
[url:13snl9z1]http://geocities.yahoo.com.br/qiinformatica2000/tree.zip[/url:13snl9z1]
Este exemplo tem vários recursos:
- Mudar a cor do fundo
- Mudar o label das opções ( Basta clicar duas vezes emcima delas)
- Opção para acionar um calendário
- Mudar o bitmap ao clicar duas vezes, etc...
Espero que te ajude <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
Abraços,
Rossine. |
Change Treeview bitmap at runtime | where is the ch files ?
--------------- |
Change Treeview bitmap at runtime | [quote="Rossine":1z6c8a67]
Se eu não estou enganado eu peguei este exemplo aqui mesmo <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
[url:1z6c8a67]http://geocities.yahoo.com.br/qiinformatica2000/tree.zip[/url:1z6c8a67]
[/quote:1z6c8a67]
Obrigado, Rossine!
Vou testar. Eu estava apanhando, pois eu estava tentando montar como um browse e estava horrivel, o treeview tem opcao de esconder os sub-itens...
[ ]'s
Maurilio |
Change Version Problem | Old:FWH27XHB 09961BCCNew:FWH705XHB 1.00BCCAo rodar minha aplicação, aparece uma tela MS-DOS por trás. When executo my application, shows a screen in the background MSDOS |
Change Version Problem | Marcelo,Tienes que enlazar GTGUI.lib en vez de GTWIN.lib |
Change Version Problem | [img:yybwampb]http://picasaweb.google.com.br/kabrau/TelasCompatilhadas/photo#5202514276493173938[/img:yybwampb][url]http://picasaweb.google.com.br/kabrau/TelasCompatilhadas/photo#5202514276493173938[/url] |
Change Version Problem | Marcelo, Tienes que enlazar GTGUI.lib en vez de GTWIN.lib |
Change Version Problem | Gracias !!!Thanks !!! |
Change Windows Background color in Windows 8 | [url:cqdfp82x]http://social.technet.microsoft.com/Forums/en-US/w8itprogeneral/thread/a5699003-9233-4ddc-96fc-e3c1e4a2a81b/[/url:cqdfp82x]
HKEY_CURRENT_USER\Control Panel\Colors |
Change Windows Background color in Windows 8 | regedit.exe
search for WindowText, repeat with F3
change two lines above (Window) from 255 255 255 to 180 180 180 |
Change Windows Background color in Windows 8 | Antonio,
[quote="Antonio Linares":1arjmvec]regedit.exe
search for WindowText, repeat with F3
change two lines above (Window) from 255 255 255 to 180 180 180[/quote:1arjmvec]
Did you mean Window, not WindowText, right?
EMG |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.