Search found 398 matches: simpler

Return to advanced search

Re: cGetFile()

OFT.
Just a casual discussion.
...
Another simpler alternative appears to be:
Code: Select all  Expand view
TrueName( "." ) // --> c:\fwh\samples
TrueName( ".\") // --> c:\fwh\samples\
by nageswaragunupudi
Sat Sep 16, 2023 1:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: cGetFile()
Replies: 10
Views: 848

Re: not ISOEM(), ISANSI() or IsUTF8()

Code: Select all  Expand view
OemToAnsi( cOem ) --> cAnsi

seems to function perfectly and much simpler to use.

We can also convert from Ansi to Utf8 as explained earlier
by nageswaragunupudi
Tue Aug 29, 2023 10:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: not ISOEM(), ISANSI() or IsUTF8()
Replies: 34
Views: 2519

Re: Request For TDataRow Example for MariDB

... cTable )oRec := TDataRow():New( oRs )oRec:Edit() OR simply oRs:Record():Edit() OR even much simpler oRs := oCn:RowSet( cTable )oRs:Edit() All three alternative codes above do exactly the same thing. The reason why you do not ...
by nageswaragunupudi
Tue Aug 01, 2023 3:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Request For TDataRow Example for MariDB
Replies: 4
Views: 283

Re: Webview question

We discard the above way as it does not work. We have choosen to directly modify https://github.com/webview/webview as it is simpler and easier for us: 1. First we do a checkout from the official repo: git clone https://github.com/webview/webview Then we need to include in webview.h ...
by Antonio Linares
Sat Jul 01, 2023 7:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Webview question
Replies: 36
Views: 3260

Re: Icon in Webview

While ExtractAssociatedIcon(...) is one way of fetching the icon of the associated application of a file, FWH provides much simpler way. Most used FW_ReadImage()/oWnd:ReadImage() can also be used. Just to check, please run this one line code: XIMAGE( "name.pdf(256x256)" ...
by nageswaragunupudi
Sun May 28, 2023 9:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Icon in Webview
Replies: 5
Views: 413

Re: ChatGPT

...  hDC, oRect:nRight - nWidth - 2 , oRect:nTop, nWidth, oRect:nHeight )      DeleteObject( hBmp )   endifreturn nil Please consider this simpler one line code: oBar:bPainted := { || oBar:DrawImage( "..\bitmaps\logo.bmp", "R" ) } Sample for testing: ...
by nageswaragunupudi
Thu May 18, 2023 4:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ChatGPT
Replies: 19
Views: 1417

Re: Protecting certain functions to be used

simpler: function Main()   local pFunPtr := HB_Protect( "memoWrit" )   memoWrit()   // later on   // HB_Unprotect( "memoWrit", pFunPtr )return ...
by Antonio Linares
Wed May 03, 2023 6:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Protecting certain functions to be used
Replies: 6
Views: 379

Re: Protecting certain functions to be used

Simpler and Harbour generates an error as the functions becomes undefined, even if the functions are linked. Once Unprotect()ed they become available again :-) function Main()   Protect( { "FErase" ...
by Antonio Linares
Tue May 02, 2023 6:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Protecting certain functions to be used
Replies: 6
Views: 379

Re: How to make Slide to Unlock alike iPhone (unlock)?

... => TBTNBMP:HANDLEEVENT(2006)   Called from : .\source\classes\WINDOW.PRG => _FWH(3541) Dear Dutch, This version is simpler and respect the colors: The code can be also modified so the slider stays at the right if it was properly slided... slide.prg #include "FiveWin.ch"function ...
by dutch
Fri Apr 14, 2023 3:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to make Slide to Unlock alike iPhone (unlock)?
Replies: 7
Views: 531

Re: How to make Slide to Unlock alike iPhone (unlock)?

Dear Dutch, This version is simpler and respect the colors: The code can be also modified so the slider stays at the right if it was properly slided... slide.prg #include "FiveWin.ch"function Main()   local oWnd, oBar, ...
by Antonio Linares
Wed Apr 12, 2023 10:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to make Slide to Unlock alike iPhone (unlock)?
Replies: 7
Views: 531

Re: HASH vs single variables

Victor, assume that I know both types of programming. Using a hash table instead of classes can have its own advantages as well. Hash tables are simpler and more lightweight, and can be faster for certain types of operations, such as looking up an item by key. They also don't require the overhead ...
by Otto
Tue Jan 17, 2023 9:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HASH vs single variables
Replies: 15
Views: 1317

Re: REDEFINE SAY on Buttonbar

Enrico Maria Giordano wrote:What's wrong with mine? At least it is simpler. Both codes use bPainted codeblock so they are equivalent.


It is working indeed... But I wonder why bPainted is needed ? What does it do ?
by Marc Venken
Tue Dec 06, 2022 10:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: REDEFINE SAY on Buttonbar
Replies: 33
Views: 2196

Re: REDEFINE SAY on Buttonbar

What's wrong with mine? At least it is simpler. Both codes use bPainted codeblock so they are equivalent.
by Enrico Maria Giordano
Tue Dec 06, 2022 10:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: REDEFINE SAY on Buttonbar
Replies: 33
Views: 2196

Re: Newbie Question : XBROWSE

...               >   ACTIVATE WINDOW oWnd ON INIT MakeTop( oWnd, oBrwDBF ) CENTERRETURN It is much simpler to use Dialogs instead of windows, except for the main window.
by nageswaragunupudi
Sat Nov 26, 2022 5:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Newbie Question : XBROWSE
Replies: 17
Views: 1661
PreviousNext

Return to advanced search