topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
Bold text on a button bar
|
Mr Harvey
Buttons in Buttonbar ignore any font setting of the button.
In case a font is set to Buttonbar and that font's facename is 'Tahoma' ( not even 'TAHOMA' ) of any size that font is used and otherwise Tahoma 0,-11 is forced.
You can make the button prompts' font bold if you define
DEFINE FONT oFont NAME 'Tahoma' SIZE 0,-<anysize> BOLD
DEFINE BUTTONBAR ....
oBar:SetFont( oFont )
We may request Mr Antonio to advise if this restriction of Tahoma can be removed in the next versions.
|
Bold text on a button bar
|
All:
Thanks for all the help. Still no bold. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Roa:
You said that tahoma is forced. Then you indicated that if I define the font using tahoma and BOLD it should work.
It Doesnt always back to same font. Nothing changes.
[quote:36wtv8vu]Buttons in Buttonbar ignore any font setting of the button.
In case a font is set to Buttonbar and that font's facename is 'Tahoma' ( not even 'TAHOMA' ) of any size that font is used and otherwise Tahoma 0,-11 is forced.
You can make the button prompts' font bold if you define
DEFINE FONT oFont NAME 'Tahoma' SIZE 0,-<anysize> BOLD
DEFINE BUTTONBAR ....
oBar:SetFont( oFont )
We may request Mr Antonio to advise if this restriction of Tahoma can be removed in the next versions.[/quote:36wtv8vu]
|
Bold text on a button bar
|
Harvey,
the Solution works fine here :
[img:xflpe3as]http://www.pflegeplus.com/pictures/barfont1.jpg[/img:xflpe3as]
[code=fw:xflpe3as]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br />...<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> BOLD<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;">"Gradient-Selection for Buttonbar"</span> <span style="color: #0000ff;">MDI</span> <span style="color: #0000ff;">MENU</span> TMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /><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;">100</span>, <span style="color: #000000;">100</span> <span style="color: #000000;">2007</span> TOP<br /><br />oBar:<span style="color: #000000;">bClrGrad</span> = <span style="color: #000000;">{</span> | | <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">0.10</span>,<span style="color: #000000;">16643551</span>, <span style="color: #000000;">15716726</span> <span style="color: #000000;">}</span>, ; <br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0.10</span>, <span style="color: #000000;">15716726</span>, <span style="color: #000000;">16643551</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br />oBar:<span style="color: #000000;">nClrText</span> = <span style="color: #000000;">128</span><br />oBar:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFont <span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn1 <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> Tools<span style="color: #000000;">(</span>oWnd,oBar,oBtn1<span style="color: #000000;">)</span> ;<br /><span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"magic"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Bar-Selection"</span> TOOLTIP <span style="color: #ff0000;">"Bar-Select"</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn2 <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> MsgAlert<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Under construction"</span>, <span style="color: #ff0000;">"Open"</span><span style="color: #000000;">)</span> ;<br /><span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"open"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Open"</span> + CRLF + <span style="color: #ff0000;">"Project"</span> TOOLTIP <span style="color: #ff0000;">"Open Project"</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn3 <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> MsgAlert<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Under construction"</span>, <span style="color: #ff0000;">"Save"</span><span style="color: #000000;">)</span> ;<br /><span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"floppy"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Save"</span> + CRLF + <span style="color: #ff0000;">"Project"</span> TOOLTIP <span style="color: #ff0000;">"Save Project"</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn4 <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> MsgAlert<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Save / Restore"</span> + CRLF + ;<br /><span style="color: #ff0000;">"your design"</span> + CRLF + ; <br /><span style="color: #ff0000;">"in a INI-File"</span>,<span style="color: #ff0000;">"Project-Info"</span> <span style="color: #000000;">)</span> ;<br /><span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"help"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Help"</span> TOOLTIP <span style="color: #ff0000;">"Project"</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn5 <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span>;<br /><span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"calendar"</span> <br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn6 <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /><span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"quit"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Exit"</span> TOOLTIP <span style="color: #ff0000;">"Close Bar-Gradient"</span><br />...<br />...<br /> </div>[/code:xflpe3as]
Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
Bold text on a button bar
|
Harvey,
>You said that tahoma is forced. Then you indicated that if I define the font using tahoma >and BOLD it should work. It Doesnt always back to same font. Nothing changes.
Did you notice that he mentioned that you must use "Tahoma" in mixed case exactly like in the quotes? Not "TAHOMA" nor "tahoma."
James
|
Bold text on a button bar
|
James:
Exactly right...Now works. Thanks to all.
|
Bollettini postali
|
avete qualcosa per stampare sui bollettini postali ?TD123 ( quelli semplici ) ?grazie
|
Bollettini postali
|
Circa 5-6 anni fa ho creato questo prg (16 bit)vedi se ti può interessare[url:gknlywa9]http://rapidshare.com/files/166339527/stabol.rar[/url:gknlywa9]ciaoStefano
|
Bollettini postali
|
grazie.Ho dovuto fare delle modifiche per ricompilarloma ancora non riesco avere l'anteprima di stampa del bollettinopraticamente si potrebbe usare la funzione ImportWMF( "TD123.emf" )ma questa è solo un idea ...ho provato ma non si visualizza niente con ImportWMF( "TD123.emf" )EmG è un bug ?
|
Bollettini postali
|
Se non ricordo male, avevo modifiacto il file rpreview perchè utizzavo la lib TSBUTTONprova con i files originali di FWCiaoStefano
|
Bollettini postali
|
no utilizzavi la DBUTTONe comunque ho visto anche la tua rpreview ma non accade niente solo si allarga la preview ma la lunghezza rimane lo stesso
|
Bollettini postali
|
I bollettini postali TD123 devono essere stampati su carta OCR e con caratteristiche particolari di peso e spessore. Non puoi stampare il bollettino su carta semplice semplicemente utilizzando una immagine vettoriale EMF. Per stampare in proprio dei bollettini "da zero" è inoltre necessaria una autorizzazione da parte di Poste.Ti suggerisco di andare all'ufficio postale e prendere alcuni bollettini TD123 (sono distribuiti gratuitamente) e prevedere la stampa diretta su quei bollettini.
|
Bollettini postali
|
questo non è esatto ho creato un bollettino con un asemplce carta du modello pdf fatto da me l'ho stampato e l'ho pagato semplice no ?nessuno mi ha detto neinteSEI il presidente delle poste rifugiato a londra ?
|
Bollettini postali
|
Ti ho solo voluto avvisare che stampare i bollettini postali senza autorizzazione e senza rispettare le specifiche tecniche delle Poste non è legale, il fatto che l'operatrice non se ne sia accorta e lo abbia accettato significa solo che lo hai stampato bene ma il problema di base rimane.Ps. comunque non lavoro per le poste. Tranquillo <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
Bollettino TD 896
|
Qualcuno mi può mandare il modello del bollettino TD 896 così che possa stamparlo come sfondo della pagina? Non riesco a trovarlo...
EMG
|
Bollettino TD 896
|
non so se ti può interessare
[url:2k5cc3p0]https://www.poste-impresa.it/resources/bancoposta/pdf/pmi/bollettino/manuale-stampa-in-proprio.pdf[/url:2k5cc3p0]
stefano
|
Bollettino TD 896
|
No, grazie. A me servirebbe proprio l'immagine del bollettino. Quel PDF ce l'ho già ma la qualità delle immagini è pessima.
EMG
|
Bollettino TD 896
|
Ciao
ti ho inviato all'indirizzo email <!-- e --><a href="mailto:e.m.giordano@emagsoftware.it">e.m.giordano@emagsoftware.it</a><!-- e --> un file trovato su internet
...
saluti
Stefano
|
Bollettino TD 896
|
Grazie, ma la qualità non è sufficiente. Comunque ne ho trovato uno accettabile.
EMG
|
Bollettino TD 896
|
domandina per un problema che ho avuto anch'io
a parte il modello del bollettino come fate voi a stampare ogni lettera e cifra all'interno dei quadratini ?
|
Bollettino TD 896
|
Con questa funzione che distanzia o avvicina i caratteri:
[code=fw:1lhhsz97]<div class="fw" id="{CB}" style="font-family: monospace;">SETTEXTCHARACTEREXTRA<span style="color: #000000;">(</span> oPrn:<span style="color: #000000;">hDCOut</span>, nPunti <span style="color: #000000;">)</span></div>[/code:1lhhsz97]
EMG
|
Bollettino TD 896
|
minch.. e quando è uscita ? chi l'ha fatta ?
|
Bollettino TD 896
|
La Microsoft. E' un'API di Windows.
EMG
|
Bollettino TD 896
|
ah e c'è un esempietto ?
|
Bollettino TD 896
|
In che senso? Devi scrivere la riga che ti ho riportato sopra.
EMG
|
Bollettino TD 896
|
E naturalmente devi aggiungere il wrapper:
[code=fw:2n2c2p53]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"windows.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"math.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> SETTEXTCHARACTEREXTRA <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_retnl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LONG <span style="color: #000000;">)</span> SetTextCharacterExtra<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> HDC <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:2n2c2p53]
EMG
|
Bollettino TD 896
|
lo sai ?
ho scoperto che io già usavo questa funzione per la visualizzazione di un testo (grosso) in modo giustificato
|
Booking xbrowse example
|
Original idea by Silvio, implemented by Mr. Rao
You can drag & drop the reservations using the mouse
booking.prg
[code=fw:2vc3rd8a]<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> oDlg, oBrw, oFont, oCur<br /> <span style="color: #00C800;">local</span> aData := Array<span style="color: #000000;">(</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">11</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> n<br /> <span style="color: #00C800;">local</span> aColors := <span style="color: #000000;">{</span> METRO_AMBER, METRO_OLIVE, CLR_HMAGENTA, CLR_HBLUE, CLR_HRED, CLR_HGREEN, CLR_RED, CLR_MAGENTA, CLR_GREEN <span style="color: #000000;">}</span><br /> AEval<span style="color: #000000;">(</span> aData, <span style="color: #000000;">{</span> |a,i| AFill<span style="color: #000000;">(</span> a, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, a<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> := <span style="color: #ff0000;">"Camera n."</span> + Str<span style="color: #000000;">(</span>i,<span style="color: #000000;">1</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> SET DATE ITALIAN<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCur DRAG<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</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;">760</span>,<span style="color: #000000;">430</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL ;<br /> RESIZABLE <span style="color: #0000ff;">FONT</span> oFont<br /><br /> @ <span style="color: #000000;">5</span>,<span style="color: #000000;">5</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg DATASOURCE aData ;<br /> COLUMNS <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">8</span>,<span style="color: #000000;">9</span>,<span style="color: #000000;">10</span>,<span style="color: #000000;">11</span> ;<br /> HEADERS <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">"AM"</span>,<span style="color: #ff0000;">"PM"</span>,<span style="color: #ff0000;">"AM"</span>,<span style="color: #ff0000;">"PM"</span>,<span style="color: #ff0000;">"AM"</span>,<span style="color: #ff0000;">"PM"</span>,<span style="color: #ff0000;">"AM"</span>,<span style="color: #ff0000;">"PM"</span>,<span style="color: #ff0000;">"AM"</span>,<span style="color: #ff0000;">"PM"</span> ;<br /> NOBORDER <span style="color: #0000ff;">STYLE</span> FLAT<br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">nWidths</span> := <span style="color: #000000;">60</span><br /> :<span style="color: #000000;">nRowHeight</span> := <span style="color: #000000;">60</span><br /> :<span style="color: #000000;">nHeaderHeight</span> := <span style="color: #000000;">60</span><br /> :<span style="color: #000000;">nColDividerStyle</span> := ;<br /> :<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_LIGHTGRAY<br /> :<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_SOLIDCELL<br /> :<span style="color: #000000;">lDrawBorder</span> := .t.<br /> :<span style="color: #000000;">nDataStrAligns</span> := AL_CENTER<br /> :<span style="color: #000000;">lDisplayZeros</span> := .f.<br /> :<span style="color: #000000;">nFreeze</span> := <span style="color: #000000;">1</span><br /> :<span style="color: #000000;">lLockFreeze</span> := .t.<br /> :<span style="color: #000000;">lAllowColSwapping</span> := .f.<br /> :<span style="color: #000000;">lAllowColHiding</span> := .f.<br /> :<span style="color: #000000;">lAllowRowSizing</span> := .f.<br /> :<span style="color: #000000;">lAllowSizings</span> := .f.<br /> :<span style="color: #000000;">lColChangeNotify</span> := .t.<br /><br /> :<span style="color: #000000;">bClrStd</span> := <|b,oCol|<br /> <span style="color: #00C800;">local</span> nClr := CLR_WHITE<br /> <span style="color: #00C800;">if</span> oCol != <span style="color: #00C800;">nil</span> .and. !Empty<span style="color: #000000;">(</span> oCol:<span style="color: #000000;">Value</span> <span style="color: #000000;">)</span><br /> nClr := aColors<span style="color: #000000;">[</span> oCol:<span style="color: #000000;">Value</span> <span style="color: #000000;">]</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">{</span> ContrastClr<span style="color: #000000;">(</span> nClr <span style="color: #000000;">)</span>, nClr <span style="color: #000000;">}</span><br /> ><br /><br /> <span style="color: #00C800;">for</span> n := <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">10</span> step <span style="color: #000000;">2</span><br /> :<span style="color: #000000;">SetGroupHeader</span><span style="color: #000000;">(</span> DTOC<span style="color: #000000;">(</span> Date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> + n/<span style="color: #000000;">2</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, n, n + <span style="color: #000000;">1</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /> :<span style="color: #000000;">nWidth</span> := aData<span style="color: #000000;">[</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> + <span style="color: #ff0000;">"9999"</span><br /> :<span style="color: #000000;">bClrStd</span> := ;<br /> :<span style="color: #000000;">bClrHeader</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, RGB<span style="color: #000000;">(</span><span style="color: #000000;">125</span>,<span style="color: #000000;">135</span>,<span style="color: #000000;">249</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">nDataStrAlign</span> := AL_CENTER<br /> END<br /><br /> :<span style="color: #000000;">bPopUp</span> := <span style="color: #000000;">{</span> |oCol| CellMenu<span style="color: #000000;">(</span> oCol <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">lRecordSelector</span> := .f.<br /> :<span style="color: #000000;">lFitGridHeight</span> := .t.<br /><br /> <span style="color: #B900B9;">// drag and drop</span><br /><br /> :<span style="color: #000000;">bChange</span> := < ||<br /> <span style="color: #00C800;">local</span> oCol := oBrw:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> oCol:<span style="color: #000000;">nArrayCol</span> > <span style="color: #000000;">1</span> .and. !Empty<span style="color: #000000;">(</span> oCol:<span style="color: #000000;">Value</span> <span style="color: #000000;">)</span><br /> oBrw:<span style="color: #000000;">oDragCursor</span> := oCur<br /> <span style="color: #00C800;">else</span><br /> oBrw:<span style="color: #000000;">oDragCursor</span> := <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> ><br /><br /> :<span style="color: #000000;">bDragBegin</span> := < |r,c,f|<br /> SetDropInfo<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> oBrw:<span style="color: #000000;">nArrayAt</span>, oBrw:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">nArrayCol</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> ><br /> :<span style="color: #000000;">bDropOver</span> := < |u,r,c,f|<br /> oBrw:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span> r, c, .t. <span style="color: #000000;">)</span><br /> oBrw:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := aData<span style="color: #000000;">[</span> u<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, u<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span><br /> aData<span style="color: #000000;">[</span> u<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, u<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span> := <span style="color: #000000;">0</span><br /> XEval<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">bChange</span>, oBrw <span style="color: #000000;">)</span><br /> oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> ><br /><br /> <span style="color: #B900B9;">//</span><br /><br /> :<span style="color: #000000;">nColSel</span> := <span style="color: #000000;">2</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 /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">CURSOR</span> oCur<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <br /> <span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> <br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> CellMenu<span style="color: #000000;">(</span> oCol <span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">local</span> oPop, oItem, oBrw, nVal, n<br /> <br /> <span style="color: #00C800;">if</span> oCol:<span style="color: #000000;">nCreationOrder</span> > <span style="color: #000000;">1</span><br /> nVal := oCol:<span style="color: #000000;">Value</span><br /> oBrw := oCol:<span style="color: #000000;">oBrw</span><br /> <span style="color: #0000ff;">MENU</span> oPop <span style="color: #0000ff;">POPUP</span> <span style="color: #000000;">2010</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Reserve To:"</span><br /> <span style="color: #0000ff;">MENU</span><br /> <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">9</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Customer-"</span> + Str<span style="color: #000000;">(</span>n,<span style="color: #000000;">1</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span> BLOCK Reserve<span style="color: #000000;">(</span> oCol, n <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Cancel"</span> <span style="color: #0000ff;">WHEN</span> nVal > <span style="color: #000000;">0</span> <span style="color: #0000ff;">ACTION</span> ;<br /> <span style="color: #000000;">(</span> oCol:<span style="color: #000000;">Value</span> := <span style="color: #000000;">0</span>, oBrw:<span style="color: #000000;">RefreshCurrent</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <br /> <span style="color: #00C800;">endif</span><br /> <br /> <span style="color: #00C800;">return</span> oPop<br /> <br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> Reserve<span style="color: #000000;">(</span> oCol, n <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">{</span> || oCol:<span style="color: #000000;">Value</span> := n, oCol:<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">RefreshCurrent</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:2vc3rd8a]
[img:2vc3rd8a]https://github.com/FiveTechSoft/screenshots/blob/master/booking.png?raw=true[/img:2vc3rd8a]
|
Booking xbrowse example
|
This works great, Antonio.
It demonstrates the power of xbrowse and fwh.
Thanks for this great example. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Only a little glitch...
When the program starts and you reserve a first cell to a customer you can not immediately drag and drop this cell.
First you must click at an other cell. Then after drag and drop works well.
Regards,
Detlef
|
Booking xbrowse example
|
Thank you dear Detlef,
Mr. Rao is working on an enhanced version. Lets wait a little for him to deliver it
Its another great work from Mr. Rao <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Booking xbrowse example
|
[quote:2zd6u6od]Its another great work from Mr. Rao <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:2zd6u6od]
That's true! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
Booking xbrowse example
|
As I told you, I use on reserva.dbf a field "type" to show the type of Rome, so I need this visualizzation, there are rooms with the same number buy with type different.
sample:
Camera n.1 SS
Camera n.1 DD
For evening or morning (AM -PM) I use two logic field.
|
Booking xbrowse example
|
[quote="Antonio Linares":1jxfq2lf]Thank you dear Detlef,
Mr. Rao is working on an enhanced version. Lets wait a little for him to deliver it
Its another great work from Mr. Rao <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:1jxfq2lf]
Antonio,
when a an enhanced version ?
|
Booking xbrowse example
|
Dear Silvio,
I just asked Mr. Rao
waiting for his answer
|
Booking xbrowse example
|
Is there some progress? I'm very interested too about this topic.
I wish you all a very happy, healthy and successful new year.
Regards, Detlef
|
Booking xbrowse example
|
Dear Detlef,
I just asked Mr. Rao about it
wish you too a very happy, healthy and successful new year <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Booking xbrowse example
|
Hello friends,
Why not try recreating this example as a proof of concept to demonstrate the power of WebView as a WebView example?
Best regards,
Otto
|
Booking xbrowse example
|
Dear Otto,
thats a nice idea <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Surely you may be able to help us with some existing web code to start with
|
Booking xbrowse example
|
[quote="Antonio Linares":27fd42qh]Dear Otto,
thats a nice idea <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Surely you may be able to help us with some existing web code to start with[/quote:27fd42qh]
Yes but before It Need to have a usefull prg in Windows with the features i list above and the possibilty to insert a reservation clickinking with the mouse One or more cells , or moving the reservation to another room or period.
in this way the example of nages is nice but in Italy it is unusable at least for what I need and what they require both for hotels and for other businesses in the sector
|
Booking xbrowse example
|
Silvio,
Webview allows the use of prg programs, just as you create them, while still utilizing web technologies.
You should really look at the examples in the FIVEWIN samples.
Best regards,
Otto
|
Booking xbrowse example
|
Dear Antonio,
I am glad you like the idea. I have indeed already developed a planner with html/javascript for mod harbour.
I have not integrated anything except bootstrap and jquery.
Therefore, I believe one would only need to embed the html into a Fivewin webview.
I have already posted several webview examples.
Best regards,
Otto
[url:2j7degp7]https://forums.fivetechsupport.com/viewtopic.php?f=3&t=11204&p=265558&hilit=planner&sid=c439ca4174db5684c6b3d89dd21ba93f&sid=c439ca4174db5684c6b3d89dd21ba93f#p265558[/url:2j7degp7]
[img:2j7degp7]https://mybergland.com/fwforum/plannerhtml.jpg[/img:2j7degp7]
[img:2j7degp7]https://mybergland.com/fwforum/hyperfromfwh.gif[/img:2j7degp7]
[img:2j7degp7]https://mybergland.com/fwforum/webhyper.gif[/img:2j7degp7]
[img:2j7degp7]https://mybergland.com/fwforum/webui.gif[/img:2j7degp7]
[img:2j7degp7]https://mybergland.com/fwforum/tischplanner.jpg[/img:2j7degp7]
[img:2j7degp7]https://mybergland.com/fwforum/scheduler.gif[/img:2j7degp7]
|
Booking xbrowse example
|
[quote="Otto":13yis8rq]Silvio,
Webview allows the use of prg programs, just as you create them, while still utilizing web technologies.
You should really look at the examples in the FIVEWIN samples.
Best regards,
Otto[/quote:13yis8rq]
As I told you many times I not want make web application
HTML/JavaScript and others languages
|
Booking xbrowse example
|
Silvio,
I understand you. It's a lot of work at first. But one will not be able to avoid it.
Are you allowed to install desktop software in offices or hotels or on PCs of school administrations? Here, system administrators usually forbid it.
I programmed my FIVEWIN room plan under DOS and in 1995 as a Windows application when Windows 95 came out (promoted with the Rolling Stones song Start me up). Back then everything was hardcoded, as I had no idea about OOP. Since everything worked well and it is the most sensitive part of the software, I have not changed much over time. Therefore, I can't help here with xbrowse.
I wish you all the best for 2024.
Best regards,
Otto
|
Booking xbrowse example
|
[quote="Otto":2voa21p2]Silvio,
I understand you. It's a lot of work at first. But one will not be able to avoid it.
Are you allowed to install desktop software in offices or hotels or on PCs of school administrations? Here, system administrators usually forbid it.
I programmed my FIVEWIN room plan under DOS and in 1995 as a Windows application when Windows 95 came out (promoted with the Rolling Stones song Start me up). Back then everything was hardcoded, as I had no idea about OOP. Since everything worked well and it is the most sensitive part of the software, I have not changed much over time. Therefore, I can't help here with xbrowse.
I wish you all the best for 2024.
Best regards,
Otto[/quote:2voa21p2]
apart from the fact that in my school I manage part of the LAN network and am responsible,
in my school the offices use particular programs of the ministry of education and are software on the web, but in recent periods it has been possible to notice that the employees of the offices lose many hours due to the slowness of the Internet connection or many days the Internet connection is unusable and there is serious thought of moving the work back to desktop-type management software on Windows,
in the hotels and shops at least in my city they do not use software on the web but all local software on Windows and mostly there are two softwares that are the most popular, one of these is the Danea invoicing system, in hotels software from other companies both in my city and national software are installed but not on the web., probably for the same reason as above.
happy new year to you too
|
Books for holidays...
|
Seems that m i c r o s o f t through the house by the window:
<!-- m --><a class="postlink" href="http://blogs.msdn.com/b/mssmallbiz/archive/2012/07/30/another-large-collection-of-free-microsoft-ebooks-and-resource-kits-for-you-including-sharepoint-2013-office-2013-office-365-duet-2-0-azure-cloud-windows-phone-lync-dynamics-crm-and-more.aspx?wa=wsignin1.0">http://blogs.msdn.com/b/mssmallbiz/arch ... wsignin1.0</a><!-- m -->
<!-- m --><a class="postlink" href="http://blogs.msdn.com/b/mssmallbiz/archive/2012/07/27/large-collection-of-free-microsoft-ebooks-for-you-including-sharepoint-visual-studio-windows-phone-windows-8-office-365-office-2010-sql-server-2012-azure-and-more.aspx">http://blogs.msdn.com/b/mssmallbiz/arch ... -more.aspx</a><!-- m -->
|
Books books books...
|
[url:1rx8kiyi]http://ebooksmio.com/[/url:1rx8kiyi]
If you know other good sites for books, please comment it here, thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Books books books...
|
[url:3kvwui3o]http://www.scribd.com/[/url:3kvwui3o]
|
Books books books...
|
[url:2mybrs04]http://www.etnassoft.com/biblioteca/[/url:2mybrs04]
|
Books books books...
|
[b:3sk9dghy]Oyster Review: All-you-can-read ebooks for $9.95 per month [/b:3sk9dghy]
[url:3sk9dghy]http://www.zdnet.com/oyster-review-all-you-can-read-ebooks-for-9-95-per-month-verdict-gorgeous-7000020448/[/url:3sk9dghy]
[url:3sk9dghy]http://www.theverge.com/2013/9/5/4698442/a-few-pearls-found-in-oyster-the-netflix-of-ebooks[/url:3sk9dghy]
|
Books books books...
|
[url:2vtmicd8]https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md#professional-development[/url:2vtmicd8]
|
Books books books...
|
Queridos amigos / Dear friends,
[url:s6dcp9un]http://www.planetpdf.com/codecuts/pdfs/ooc.pdf[/url:s6dcp9un]
Saludos / Regards,
|
Books books books...
|
Dear friends / Queridos amigos,
[url:my0mk26o]http://www.efytimes.com/e1/creativenews.asp?edid=119319[/url:my0mk26o]
Regards / Saludos,
|
Books books books...
|
Dear friends / Queridos amigos,
free download programming books from GitHub / descarga más de 500 libros sobre programación:
[url:m9fzvygp]http://https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md#professional-development[/url:m9fzvygp]
Best regards
|
Books books books...
|
Dear friends / Queridos amigos,
a new link / un nuevo enlace
[url:2gdz0pf2]https://plus.google.com/+FranciscoVelasquezE/posts/QQKTE66qf6r[/url:2gdz0pf2]
Regards / Saludos
|
Books books books...
|
Gracias Felix <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Books books books...
|
Dear friends / Queridos amigos,
books from Microsoft / libros de Microsoft
[url:7dtyslnu]http://blogs.msdn.com/b/mssmallbiz/archive/2014/07/07/largest-collection-of-free-microsoft-ebooks-ever-including-windows-8-1-windows-8-windows-7-office-2013-office-365-office-2010-sharepoint-2013-dynamics-crm-powershell-exchange-server-lync-2013-system-center-azure-cloud-sql.aspx[/url:7dtyslnu]
Regards / Saludos
|
Books books books...
|
Dear friends / Queridos amigos,
more books for programmers / más libros para programadores:
[url:da1haq9c]http://www.onlineprogrammingbooks.com/[/url:da1haq9c]
Regards / Saludos,
|
Books books books...
|
Dear friends / Queridos amigos,
more books for programmers / más libros para programadores:
[url:30fhkmui]http://ebooks.programmersheaven.com/[/url:30fhkmui]
Regards / Saludos,
|
Books books books...
|
Dear friends / Queridos amigos,
more books for programmers / más libros para programadores:
[url:2ufnct4r]http://programming-motherfucker.com/become.html[/url:2ufnct4r]
Regards / Saludos,
|
Books books books...
|
Felix,
thanks a lot! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Books books books...
|
Dear friends/Queridos amigos,
more books/más libros
[url:33ziqxoq]http://4free-ebooks.com/[/url:33ziqxoq]
Regards/Saludos,
|
Books books books...
|
Dear friends/Queridos amigos,
more books/más libros
[url:2hkuf36k]http://www.it-ebooks.info/[/url:2hkuf36k]
Regards/Saludos,
|
Bootstrap 5
|
<!-- Bootstrap 5 -->
I searched for a long time before I was able to solve the problem.
|- Check the version of bootstrap. Take attention that in bootstrap 5
|- changed data-toggle to data-bs-toggle and data-target to data-bs-target
|- data-bs-dismiss
|
Bootstrap V4 dropped the Glyphicons icon font
|
<!-- m --><a class="postlink" href="https://stackoverflow.com/questions/32612690/bootstrap-4-glyphicons-migration">https://stackoverflow.com/questions/326 ... -migration</a><!-- m -->
Bootstrap V4 dropped the Glyphicons icon font.
For people who are looking for one-liner solutions, you can import Bootstrap Glyphicons only:
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css" rel="stylesheet">
|
Bootstrap mega menu
|
Hello friends,
<!-- m --><a class="postlink" href="https://mybergland.com/megamenubootstrap.pdf">https://mybergland.com/megamenubootstrap.pdf</a><!-- m -->
I am currently working on the navigation of my homepage. I'm using the bootstrap MEGA-MENU.
Best regards,
Otto
|
Bootstrap tables and mod harbour
|
Hello friends,
I switched now from datatables to bootstrap table.
I think I will have more support here as TWeb uses this lib.
Best regards,
Otto
[img:3q2bqeuh]https://mybergland.com/fwforum/onlinebienebootstraptable.gif[/img:3q2bqeuh]
|
Bootstrap tables and mod harbour
|
Hello friends,
I started working on bootstrap tables. I use a simple sample that reads data from a JSON file.
I am taking notes here. Maybe someone is interested too.
Sure it will take time before I can deal with bootstrap table in the same way as with xBrowse. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
I am so free to ask questions here and hope that we beginners will get help from experienced friends.
Best regards,
Otto
Download - Link: [url:mblygahk]https://mybergland.com/fwforum/ajaxtable_download.zip[/url:mblygahk]
[img:mblygahk]https://mybergland.com/fwforum/crud.gif[/img:mblygahk]
|
Bootstrap tables and mod harbour
|
Hello friends,
Now I read data from a DBF file.
Here is the pure Harbour code, which shows how to read from the DBF file into a HASH.
Then you convert the hash into a json .
[img:3nzmq5gn]https://mybergland.com/fwforum/readdbf.jpg[/img:3nzmq5gn]
Here you see the js code, which creates the table and fills the data.
[img:3nzmq5gn]https://mybergland.com/fwforum/filltable.jpg[/img:3nzmq5gn]
This is the table
[img:3nzmq5gn]https://mybergland.com/fwforum/bootstraptable.jpg[/img:3nzmq5gn]
Best regards,
Otto
[code=fw:3nzmq5gn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">static</span> cHash<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> hData := <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span> <br /> <span style="color: #00C800;">local</span> hItem := <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span> <br /> <br /> USE <span style="color: #000000;">(</span> hb_GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"/data/blog"</span> <span style="color: #000000;">)</span> <span style="color: #00C800;">new</span><br /> hData<span style="color: #000000;">[</span><span style="color: #ff0000;">'data'</span><span style="color: #000000;">]</span> := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> .not. eof<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> hItem := <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span> <br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'id'</span><span style="color: #000000;">]</span> := recno<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'header'</span><span style="color: #000000;">]</span> := ALLTRIM<span style="color: #000000;">(</span> field->HEADER <span style="color: #000000;">)</span><br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'subheader'</span><span style="color: #000000;">]</span> := ALLTRIM<span style="color: #000000;">(</span> field->SUBHEADER <span style="color: #000000;">)</span><br /> <br /> aadd<span style="color: #000000;">(</span> hData<span style="color: #000000;">[</span><span style="color: #ff0000;">'data'</span><span style="color: #000000;">]</span>, hItem <span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">select</span> blog<br /> skip<br /> <span style="color: #00C800;">enddo</span><br /> <span style="color: #0000ff;">select</span> blog<br /> use<br /> cHash := hb_jsonEncode<span style="color: #000000;">(</span> hData, .T. <span style="color: #000000;">)</span> <span style="color: #B900B9;">// T=pretty</span><br /> <br /> <br /> TEMPLATE PARAMS cHash <br /> <br /> <!DOCTYPE html><br /> <html lang=<span style="color: #ff0000;">"de"</span>><br /> <head><br /> <meta charset=<span style="color: #ff0000;">"utf-8"</span>/><br /> <br /> <script src=<span style="color: #ff0000;">"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"</span>></script><br /> <link rel=<span style="color: #ff0000;">"stylesheet"</span> href=<span style="color: #ff0000;">"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"</span>><br /> <br /> <br /> <link href=<span style="color: #ff0000;">"https://unpkg.com/bootstrap-table@1.18.1/dist/bootstrap-table.min.css"</span> rel=<span style="color: #ff0000;">"stylesheet"</span>><br /> <br /> <script src=<span style="color: #ff0000;">"https://unpkg.com/bootstrap-table@1.18.1/dist/bootstrap-table.min.js"</span>></script><br /> <br /> <br /> <style><br /> table, th, td <span style="color: #000000;">{</span><br /> border: 1px solid black;<br /> border-collapse: <span style="color: #000000;">collapse</span>;<br /> <span style="color: #000000;">}</span><br /> .divbs <span style="color: #000000;">{</span><br /> background-<span style="color: #0000ff;">color</span>: <span style="color: #000000;">rgb</span><span style="color: #000000;">(</span><span style="color: #000000;">183</span>, <span style="color: #000000;">212</span>, <span style="color: #000000;">155</span><span style="color: #000000;">)</span>;<br /> height: 350px;<br /> border: 1px solid black;<br /> <span style="color: #000000;">}</span><br /> </style><br /> <br /> </head><br /> <body><br /> <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"divbs"</span>><br /> <table <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"table"</span>><br /> <thead><br /> <tr><br /> <th data-field=<span style="color: #ff0000;">"id"</span>>ID</th><br /> <th data-field=<span style="color: #ff0000;">"header"</span>>Header</th><br /> <th data-field=<span style="color: #ff0000;">"subheader"</span>>Subheader</th><br /> </tr><br /> </thead><br /> </table><br /> </div> <br /> <br /> <script><br /> <br /> <span style="color: #0000ff;">var</span> $table = $<span style="color: #000000;">(</span><span style="color: #ff0000;">'#table'</span><span style="color: #000000;">)</span><br /> <br /> $<span style="color: #000000;">(</span><span style="color: #00C800;">function</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span><br /> <span style="color: #0000ff;">var</span> <span style="color: #00C800;">data</span> = <?prg <span style="color: #00C800;">return</span> <span style="color: #000000;">(</span> cHash <span style="color: #000000;">)</span>?>;<br /> $table.bootstrapTable<span style="color: #000000;">(</span> <span style="color: #00C800;">data</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #000000;">}</span><span style="color: #000000;">)</span><br /> </script><br /> <br /> ENDTEXT <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /> </div>[/code:3nzmq5gn]
|
Bootstrap tables and mod harbour
|
Change HTML to mod Harbor
The project is now of a specific size, and it is no longer easy without a framework to edit. That's why I'm currently creating a project.
Video
[url:108ccvs4]https://mybergland.com/fwforum/crud.mp4[/url:108ccvs4]
Best regards,
Otto
|
Borde ""fulero"" en el xbrowse
|
Hola.
Viendo en los post lei que habia que poner 0x50C00000 en el style para que quite las barras de scrooll...
Pero... le pone un borde alrededor que queda fulero (feo) como hago para que solo me quite las barras
(ya probé desde codigo pero no pasa anda "no las quita") ?
gracias.
|
Borde ""fulero"" en el xbrowse
|
[code=fw:164vy3d4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oBrw:<span style="color: #000000;">lHScroll</span> := .F. <br /> oBrw:<span style="color: #000000;">lVScroll</span> := .F. <br /> </div>[/code:164vy3d4]
|
Borde de Dialogo (Solucionado)
|
Cómo puedo quitar el pequeño borde que queda en el dialogo
He puesto el oDlg:nStyle -= WS_BORDER
Esta hecho mediante código, no con recursos
[url=http://imageshack.us/photo/my-images/138/savg.png/:10bz7kot][img:10bz7kot]http://img138.imageshack.us/img138/3564/savg.png[/img:10bz7kot][/url:10bz7kot]
para que quede asi:
[url=http://imageshack.us/photo/my-images/560/pfk1.png/:10bz7kot][img:10bz7kot]http://img560.imageshack.us/img560/50/pfk1.png[/img:10bz7kot][/url:10bz7kot]
|
Borde de Dialogo (Solucionado)
|
Hola,
prueba con
WS_CHILDWINDOW
saludos
Marcelo
|
Borde de Dialogo (Solucionado)
|
Cristobal,
Prueba asi:
[code=fw:z8vas9qw]<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> oDlg<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">STYLE</span> WS_POPUP<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: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:z8vas9qw]
|
Borde de Dialogo (Solucionado)
|
Marcelo
El borde con ese estilo es el mas parecido a lo que quiero, pero me sale el titulo con el sysmenu, que quiero evitar
Si no pongo caption y -WS_BORDER no me pone el titulo y por lo tanto tampoco el sysmenu pero el borde es el que aparece en las imagenes.
Gracias por tu interés
|
Borde de Dialogo (Solucionado)
|
Antonio, perfecto
Sé que son conceptos muy básicos, y que necesito poco a poco ir poniéndome al dia.
Gracias otra vez a los dos
|
Borde de Menu
|
Hay alguna forma de quitar o cambiar el color de la linea que aparece debajo de los menus?
[url=http://postimage.org/:vnr2rkpj][img:vnr2rkpj]http://s26.postimg.org/4v5tqazkp/Title59.png[/img:vnr2rkpj][/url:vnr2rkpj]
|
Borde de TBar
|
Buenos dias
Se puede eliminar el borde negro que aparece en un TBar() ?
[code=fw:m6ippgnn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oBar1 := TBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">NewAt</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">110</span>, <span style="color: #000000;">22</span>, <span style="color: #000000;">16</span>, <span style="color: #000000;">16</span>, oBar, .F. , , <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">//oBar1:l2007 := .T. //2010</span><br /><br /> oBar1:<span style="color: #000000;">nStyle</span> -= WS_BORDER<br /><br /> oBar1:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> RGB<span style="color: #000000;">(</span> <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span><span style="color: #000000;">240</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> oBar1:<span style="color: #000000;">SetBrush</span><span style="color: #000000;">(</span> oBrush <span style="color: #000000;">)</span><br /> oBar1:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">{</span> || .T. <span style="color: #000000;">}</span><br /> </div>[/code:m6ippgnn]
Asi, no funciona, ni poniendo el Brush, y color del mismo fondo que tiene el dialogo
He buscado por el foro y aqui se realizaba la misma pregunta
[url:m6ippgnn]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=26295&p=144661&hilit=border+TBar#p144661[/url:m6ippgnn]
Gracias
|
Borde de TBar
|
Buenas
Puedes experimentar utilizar
[code=fw:1gzo4adb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">ACTIVATE</span> ...... <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> SetWindowLong<span style="color: #000000;">(</span> oBar1:<span style="color: #000000;">hWnd</span>, GWL_STYLE,;<br /> nAnd<span style="color: #000000;">(</span> GetWindowLong<span style="color: #000000;">(</span> oBar1:<span style="color: #000000;">hWnd</span>, GWL_STYLE <span style="color: #000000;">)</span>, WS_BORDER<span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:1gzo4adb]
|
Borde de TBar
|
Buenas noches
He puesto:
#define GWL_STYLE -16
Es correcto?
Efectivamente, me quita el Borde, pero tambien me borra los botones
Se me olvida alguna cosa?
Gracias por tu interés y tiempo
Saludos
|
Borde de TBar
|
Cristobal.
Si haces este pequeña modificacion en la Class TBar, puedes lograrlo.
[code=fw:n3zznzu6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">DATA</span> lBorder <span style="color: #B900B9;">//FranciscoA May, 31/2013</span><br /><br /><span style="color: #00C800;">METHOD</span> NewAt<span style="color: #000000;">(</span> nRow, nCol, nWidth, nHeight, nBtnWidth, nBtnHeight, oWnd, l3D,;<br /> cMode, oCursor, lBorder <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TBar <span style="color: #B900B9;">//FranciscoA May, 31/2013</span><br /><br /> <span style="color: #00C800;">DEFAULT</span> oWnd := GetWndDefault<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nBtnWidth := BAR_HEIGHT,;<br /> nBtnHeight := BAR_HEIGHT, nHeight := BAR_HEIGHT,;<br /> l3D := .f., cMode := <span style="color: #ff0000;">"TOP"</span>, lBorder := .t. <span style="color: #B900B9;">//FranciscoA May, 31/2013</span><br /><br /> <span style="color: #B900B9;">//::nStyle = nOR( WS_BORDER, WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN )</span><br /> ::<span style="color: #000000;">nStyle</span> = <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> lBorder, nOR<span style="color: #000000;">(</span> WS_BORDER, WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span>, nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//FranciscoA May, 31/2013</span><br /><br /><span style="color: #B900B9;">//************************************************************************</span><br />La llamada sería:<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;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span> CreaBar<span style="color: #000000;">(</span>oBar,oDlg<span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> CreaBar<span style="color: #000000;">(</span>oBar,oDlg<span style="color: #000000;">)</span><br /> oBar:=TBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">NewAt</span><span style="color: #000000;">(</span><span style="color: #000000;">20</span>,<span style="color: #000000;">360</span>,<span style="color: #000000;">200</span>,<span style="color: #000000;">28</span>,<span style="color: #000000;">28</span>,<span style="color: #000000;">28</span>,oDlg,.f.,,,.f.<span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"X1"</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"hola"</span><span style="color: #000000;">)</span> NOBORDER<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"X2"</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"hola de nuevo"</span><span style="color: #000000;">)</span> NOBORDER<br /><br /> <span style="color: #B900B9;">// oBar:l2010 := .t.</span><br /> oBar:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">207</span>, <span style="color: #000000;">221</span>, <span style="color: #000000;">239</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//tu color</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:n3zznzu6]
Espero te sirva.
Saludos.
|
Borde de TBar
|
Muchas gracias Francisco
Al final he optado por hacer una clases derivada de TBar siguiendo tus lineas
[code=fw:2j5a8dpf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">CLASS</span> TBarC <span style="color: #0000ff;">FROM</span> TBar<br /><br />CLASSDATA lRegistered AS LOGICAL <br /><span style="color: #00C800;">DATA</span> lBorder<br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWnd, nBtnWidth, nBtnHeight, l3D, cMode, oCursor, l2007, l2010,;<br /> lBorder, bGrad <span style="color: #000000;">)</span> CONSTRUCTOR<br /> <br /><span style="color: #00C800;">METHOD</span> NewAt<span style="color: #000000;">(</span> nRow, nCol, nWidth, nHeight, nBtnWidth, nBtnHeight, oWnd, l3D,;<br /> cMode, oCursor, lBorder <span style="color: #000000;">)</span> CONSTRUCTOR<br /> <span style="color: #B900B9;">//Francisco A May, 31/2013</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWnd, nBtnWidth, nBtnHeight, l3D, cMode, oCursor, l2007, l2010,;<br /> lBorder <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TBarC<br /><br /> <span style="color: #00C800;">local</span> oRect<br /><br /> <span style="color: #00C800;">DEFAULT</span> oWnd := GetWndDefault<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nBtnWidth := BAR_HEIGHT,;<br /> nBtnHeight := BAR_HEIGHT, l3D := .f., cMode := <span style="color: #ff0000;">"TOP"</span>, l2007 := .F.,;<br /> l2010 := .F., lBorder := .F.<br /> <br /> oRect = oWnd:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /><br /> ::<span style="color: #000000;">nStyle</span> = <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> lBorder, nOR<span style="color: #000000;">(</span> WS_BORDER, WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span>,;<br /> nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">lBorder</span> = lBorder<br /><br />.../...<br /><br />.../...<br /><br /><br /><br /><span style="color: #00C800;">METHOD</span> NewAt<span style="color: #000000;">(</span> nRow, nCol, nWidth, nHeight, nBtnWidth, nBtnHeight, oWnd, l3D,;<br /> cMode, oCursor, lBorder <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TBarC<br /> <span style="color: #00C800;">local</span> oRect<br /> <br /> <span style="color: #00C800;">DEFAULT</span> oWnd := GetWndDefault<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nBtnWidth := BAR_HEIGHT,;<br /> nBtnHeight := BAR_HEIGHT, nHeight := BAR_HEIGHT,;<br /> l3D := .f., cMode := <span style="color: #ff0000;">"TOP"</span>, lBorder := .f. <span style="color: #B900B9;">//FranciscoA May, 31/2013</span><br /><br /> oRect = oWnd:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> ::<span style="color: #000000;">nStyle</span> = <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> lBorder, nOR<span style="color: #000000;">(</span> WS_BORDER, WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span>,;<br /> nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> ::<span style="color: #000000;">lBorder</span> = lBorder<br /><br /> .../...<br /><br /> </div>[/code:2j5a8dpf]
Un saludo
|
Borde de TBar
|
Muy interesante la solución de Cristóbal ...
Saludos
|
Borde de TBar
|
Horacio
La idea es de Francisco
Como ya he mencionado en otro post, desde que empecé con FW, nunca he modificado las clases originales que aparecen en FW.
Prefiero crear clases propias heredadas de las originales con las modificaciones que necesito, así, si estas modificaciones aparecen en versiones posteriores, lo único que tengo que hacer es eliminar ese método "propio" de mi clase, hasta que pueda llegar a "eliminar" mis clases propias y usar las standard, que sería lo ideal, aunque comprendo que es muy dificil tener en cuenta las necesidades e ideas de cada uno de nosotros.
De esta manera también puedo usar las clases originales si las necesito y evaluar las que aparecen en nuevas versiones (cuando puedo actualizarme, claro <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> )
Un saludo
|
Borde de TBar
|
Cristóbal, sé que la solución a tu inquietud la resolvió Francisco pero me gustó como lo implementaste. Yo también he eliminado el borde en TBar, pero modificando la clase. Hacerlo como una clase derivada, además de ser practico, ya que no la modificamos, es muy elegante.
Saludos
|
Borde de TBar
|
[quote="cnavarro":1o6wd24n]Muchas gracias Francisco
Al final he optado por hacer una clases derivada de TBar siguiendo tus lineas
[code=fw:1o6wd24n]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">CLASS</span> TBarC <span style="color: #0000ff;">FROM</span> TBar<br /><br />CLASSDATA lRegistered AS LOGICAL <br /><span style="color: #00C800;">DATA</span> lBorder<br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWnd, nBtnWidth, nBtnHeight, l3D, cMode, oCursor, l2007, l2010, l2013,;<br /> lBorder, bGrad <span style="color: #000000;">)</span> CONSTRUCTOR<br /> <br /><span style="color: #00C800;">METHOD</span> NewAt<span style="color: #000000;">(</span> nRow, nCol, nWidth, nHeight, nBtnWidth, nBtnHeight, oWnd, l3D,;<br /> cMode, oCursor, lBorder <span style="color: #000000;">)</span> CONSTRUCTOR<br /> <span style="color: #B900B9;">//Francisco A May, 31/2013</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWnd, nBtnWidth, nBtnHeight, l3D, cMode, oCursor, l2007, l2010,;<br /> lBorder <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TBarC<br /><br /> <span style="color: #00C800;">local</span> oRect<br /><br /> <span style="color: #00C800;">DEFAULT</span> oWnd := GetWndDefault<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nBtnWidth := BAR_HEIGHT,;<br /> nBtnHeight := BAR_HEIGHT, l3D := .f., cMode := <span style="color: #ff0000;">"TOP"</span>, l2007 := .F.,;<br /> l2010 := .F., lBorder := .F.<br /> <br /> oRect = oWnd:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /><br /> ::<span style="color: #000000;">nStyle</span> = <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> lBorder, nOR<span style="color: #000000;">(</span> WS_BORDER, WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span>,;<br /> nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">lBorder</span> = lBorder<br /><br />.../...<br /><br />.../...<br /><br /><br /><br /><span style="color: #00C800;">METHOD</span> NewAt<span style="color: #000000;">(</span> nRow, nCol, nWidth, nHeight, nBtnWidth, nBtnHeight, oWnd, l3D,;<br /> cMode, oCursor, lBorder <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TBarC<br /> <span style="color: #00C800;">local</span> oRect<br /> <br /> <span style="color: #00C800;">DEFAULT</span> oWnd := GetWndDefault<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nBtnWidth := BAR_HEIGHT,;<br /> nBtnHeight := BAR_HEIGHT, nHeight := BAR_HEIGHT,;<br /> l3D := .f., cMode := <span style="color: #ff0000;">"TOP"</span>, lBorder := .f. <span style="color: #B900B9;">//FranciscoA May, 31/2013</span><br /><br /> oRect = oWnd:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> ::<span style="color: #000000;">nStyle</span> = <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> lBorder, nOR<span style="color: #000000;">(</span> WS_BORDER, WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span>,;<br /> nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> ::<span style="color: #000000;">lBorder</span> = lBorder<br /><br /> .../...<br /><br /> </div>[/code:1o6wd24n]
Un saludo[/quote:1o6wd24n]
Antonio, podría ser posible añadirlo a FWH?
Gracias
|
Borde de TBar
|
[quote="cnavarro":h1tyv00o][quote="cnavarro":h1tyv00o]Muchas gracias Francisco
Al final he optado por hacer una clases derivada de TBar siguiendo tus lineas
[code=fw:h1tyv00o]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">CLASS</span> TBarC <span style="color: #0000ff;">FROM</span> TBar<br /><br />CLASSDATA lRegistered AS LOGICAL <br /><span style="color: #00C800;">DATA</span> lBorder<br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWnd, nBtnWidth, nBtnHeight, l3D, cMode, oCursor, l2007, l2010, l2013,;<br /> lBorder, bGrad <span style="color: #000000;">)</span> CONSTRUCTOR<br /> <br /><span style="color: #00C800;">METHOD</span> NewAt<span style="color: #000000;">(</span> nRow, nCol, nWidth, nHeight, nBtnWidth, nBtnHeight, oWnd, l3D,;<br /> cMode, oCursor, lBorder <span style="color: #000000;">)</span> CONSTRUCTOR<br /> <span style="color: #B900B9;">//Francisco A May, 31/2013</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWnd, nBtnWidth, nBtnHeight, l3D, cMode, oCursor, l2007, l2010,;<br /> lBorder <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TBarC<br /><br /> <span style="color: #00C800;">local</span> oRect<br /><br /> <span style="color: #00C800;">DEFAULT</span> oWnd := GetWndDefault<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nBtnWidth := BAR_HEIGHT,;<br /> nBtnHeight := BAR_HEIGHT, l3D := .f., cMode := <span style="color: #ff0000;">"TOP"</span>, l2007 := .F.,;<br /> l2010 := .F., lBorder := .F.<br /> <br /> oRect = oWnd:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /><br /> ::<span style="color: #000000;">nStyle</span> = <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> lBorder, nOR<span style="color: #000000;">(</span> WS_BORDER, WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span>,;<br /> nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">lBorder</span> = lBorder<br /><br />.../...<br /><br />.../...<br /><br /><br /><br /><span style="color: #00C800;">METHOD</span> NewAt<span style="color: #000000;">(</span> nRow, nCol, nWidth, nHeight, nBtnWidth, nBtnHeight, oWnd, l3D,;<br /> cMode, oCursor, lBorder <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TBarC<br /> <span style="color: #00C800;">local</span> oRect<br /> <br /> <span style="color: #00C800;">DEFAULT</span> oWnd := GetWndDefault<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, nBtnWidth := BAR_HEIGHT,;<br /> nBtnHeight := BAR_HEIGHT, nHeight := BAR_HEIGHT,;<br /> l3D := .f., cMode := <span style="color: #ff0000;">"TOP"</span>, lBorder := .f. <span style="color: #B900B9;">//FranciscoA May, 31/2013</span><br /><br /> oRect = oWnd:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> ::<span style="color: #000000;">nStyle</span> = <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> lBorder, nOR<span style="color: #000000;">(</span> WS_BORDER, WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span>,;<br /> nOR<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> ::<span style="color: #000000;">lBorder</span> = lBorder<br /><br /> .../...<br /><br /> </div>[/code:h1tyv00o]
Un saludo[/quote:h1tyv00o]
Antonio, podría ser posible añadirlo a FWH?
Gracias[/quote:h1tyv00o]
++1
|
Borde de TBar
|
Implementado para FWH 14.09, gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Borde plano en custom control
|
Hola a todos,
en mis programas utilizo la clase TTagEver - <!-- m --><a class="postlink" href="https://github.com/JoseluisSanchez/TTagEver">https://github.com/JoseluisSanchez/TTagEver</a><!-- m --> - que incorporo en los díalogos como un custom control de esta manera:
CONTROL "", 110, "TTagEver", 0x50A10000, 8, 8, 245, 90
Es decir, en el apartado Style del control indico 0x50A10000 - que confieso que ni se lo que significa ni de donde lo saqué <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> y el control se ve de esta manera:
[img:lsimtj9c]https://www.alanit.com/wp-content/uploads/2021/12/TTagever.png[/img:lsimtj9c]
Como podeis ver, el campo donde van las etiquetas tiene efecto 3D y me gustaría que el borde fuera plano como el resto de los controles. ¿ Sabéis cómo lo puedo hacer ? Creo que es algo del estilo del control, pero ni idea de qué valor utilizar.
Saludos,
|
Borde plano en custom control
|
José Luis,
La primera idea:
usar Spy++ que viene con Visual Studio Community para comparar los estilos de esos controles
|
Borde plano en custom control
|
Otra opción:
Usar el editor de recursos de Visual Studio Community para revisar los estilos del recurso
También podrias hacerlo usando ResEdit ó PellesC editor de recursos
|
Borde plano en custom control
|
En estos foros buscar por 0x50A10000 y tienes algunos mensajes pero no creo que aclaren lo que buscas
|
Borde plano en custom control
|
Esto? No creo sea la misma cosa,
[url:mn6qnc8t]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=40923[/url:mn6qnc8t]
Saludos.
|
Borde plano en custom control
|
Gracias por la contestación.
En la clase original de Paco García el estilo es:
::nStyle = nOR( WS_CHILD, WS_VISIBLE, WS_CLIPSIBLINGS, WS_CLIPCHILDREN, WS_TABSTOP, WS_VSCROLL, WS_BORDER )
Probando a quitar el WS_BORDER me queda el control ... sin el borde. De esta manera:
[img:2pxbhktw]https://www.alanit.com/wp-content/uploads/2021/12/TTagever2.png[/img:2pxbhktw]
y en cuanto meto el WS_BORDER el borde me lo pinta en 3D que es lo que no quiero.
Estoy viendo que si abro el .rc con VSCode puedo indicar el estilo con
CONTROL "", 106, "TTagEver", WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_TABSTOP, 50, 85, 256, 33
y luego con ResEdit lo transforma en la cadena hexadecimal apropiada. Muy cómodo para hacer probaturas.
Saludos,
|
Borde plano en custom control
|
¿ No irán los tiros por el .manifest ?
Lo digo porque los controles normales sí cogen borde plano con el manifest pero sin él salen como en 3D.
Saludos,
|
Borde plano en custom control
|
Posiblemente
de todas formas con el Spy++ puedes comparar los estilos y ver que falta, si es que falta algo
Otra opción es que tu pintes el recuadro gris que falta, pero eso es un tanto "chapu", lo suyo es que se pinte por el manifest
|
Borde plano en custom control
|
José Luis,
Sospecho que necesitas poner un [code=fw:1zny1tdi]<div class="fw" id="{CB}" style="font-family: monospace;">::<span style="color: #000000;">l3D</span>:= .t.</div>[/code:1zny1tdi] en ese control. No sé como se incorpora por recursos, nunca utilicé recursos, pero muy probablemente van por ahí los tiros
Tambien chapuceando un poco, en el on init del dialogo podrias poner [code=fw:1zny1tdi]<div class="fw" id="{CB}" style="font-family: monospace;">oTag:<span style="color: #000000;">Set3DLook</span><span style="color: #000000;">(</span>.t.<span style="color: #000000;">)</span></div>[/code:1zny1tdi]
Salu2
|
Borde plano en custom control
|
Paquito, que hace esto?
[code=fw:2f4lgbek]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> SET 3DLOOK <span style="color: #0000ff;">ON</span><br /> SET MULTIPLE OFF<br /> SetWin95Look<span style="color: #000000;">(</span>.T.<span style="color: #000000;">)</span> <span style="color: #B900B9;">// -> ???</span><br /> </div>[/code:2f4lgbek]
Regards, saludos.
|
Borde plano en custom control
|
Perhaps, look like Windows 95
Look at win95lok.c
|
Borde plano en custom control
|
He conseguido el efecto que quería dejando el control sin borde en los recursos y luego pintando el borde en la propia clase que tiene una data para ello y no lo sabía. Queda de esta manera:
[img:o8ruveju]https://www.alanit.com/wp-content/uploads/2021/12/TTagever3.png[/img:o8ruveju]
Muchas gracias a todos por vuestra ayuda !!
Saludos,
|
Border
|
Hi
oSheet:Cells( nRow, 3 ):Value="Name"
How to draw a border on the left (or right, or up, or bottom)
Regards
ACWoo
Using FWH1510
FWH528
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.