Search found 196 matches

by edk
Thu Dec 14, 2017 10:34 pm
Forum: Issues and Discussions related to Harbour
Topic: code page 852 in console mode
Replies: 5
Views: 78

Re: code page 852 in console mode

I set up the Slovenian keyboard in the system and there is no problem with entering national characters. Here is the code that works for me: REQUEST HB_GT_WIN_DEFAULT #include <i_lang.ch> #include "hblang.ch" REQUEST HB_LANG_SL852 request HB_CODEPAGE_SL852 function Main() Local cTest := SPACE(40) SE...
by edk
Thu Dec 14, 2017 10:08 pm
Forum: Issues and Discussions related to Harbour
Topic: code page 852 in console mode
Replies: 5
Views: 78

Re: code page 852 in console mode

I do not understand very much. You mean national characters? In the Polish version of Windows there is no problem with the keyboard, I can set two modes in the system: Polish programmer - the characters are obtained with right ALT pressed or Polish typists for a dedicated keyboard layout. When you r...
by edk
Thu Dec 14, 2017 9:08 pm
Forum: Issues and Discussions related to Harbour
Topic: code page 852 in console mode
Replies: 5
Views: 78

Re: code page 852 in console mode

Try this:

Code: Select all

#include "hblang.ch"

REQUEST HB_LANG_SL852
request HB_CODEPAGE_SL852

SET LANGUAGE TO SLOVENIAN
set( _SET_CODEPAGE, "SL852" )
hb_LangSelect( 'SL852')
by edk
Thu Dec 14, 2017 2:50 pm
Forum: HMG Utilities
Topic: Drag grid item to another grid
Replies: 16
Views: 555

Re: Drag grid item to another grid

Another version.
While dragging the data, a preview of what we drag. :)
Unfortunately, when dragging ListBox, the preview is not precise. :(
DragAndDrop_0.003.7z
(1.1 MiB) Downloaded 9 times
PS Improvement of small bugs:
DragAndDrop_prg.7z
(3.51 KiB) Downloaded 8 times
by edk
Wed Dec 13, 2017 3:22 pm
Forum: HMG Utilities
Topic: Drag grid item to another grid
Replies: 16
Views: 555

Re: Drag grid item to another grid

Next version. Support for LISTBOX and LISTBOX Multiselect has been added. Support for Grid Multiselect has been added. Because the Multiselect support has been added, the concept of storing the dragged variables has been changed. Each table item is one record. Each record is an array containing data...
by edk
Tue Dec 12, 2017 3:38 pm
Forum: HMG Utilities
Topic: Drag grid item to another grid
Replies: 16
Views: 555

Re: Drag grid item to another grid

Hi. I'm trying to fabricate the universal DragAndDrop support. My intention was not to change HMG sources and create additional events for controls, but only to use available methods. I thought to use the existing "GetFocus" event. The projects are not complete yet and free of errors, but I present ...
by edk
Sun Dec 10, 2017 8:51 pm
Forum: Issues and Discussions related to Harbour
Topic: Having trouble with AT Function Behaviour
Replies: 4
Views: 142

Re: Having trouble with AT Function Behaviour

franco wrote:
Sun Dec 10, 2017 7:04 pm
c = substr(a,b+10,1000) // use 1000 not knowing length of variable
In this case just use c = substr(a,b+10)
As a result, we get a string "a" cutted from the character in position b+10 up to the end of the string.
by edk
Sat Dec 09, 2017 2:01 pm
Forum: HMG General Help
Topic: Hard coding picture on a button
Replies: 22
Views: 419

Re: Hard coding picture on a button

esgici wrote:
Sat Dec 09, 2017 1:58 pm

@Rajeev:

A last and small note to add Edward:

name of .rc file should be same as .prg ( in the sample: demo.rc for demo.prg )

Happy HMG'ing :D
This is obvious, just like .hpc,. hbp ;)
by edk
Sat Dec 09, 2017 1:52 pm
Forum: HMG General Help
Topic: Hard coding picture on a button
Replies: 22
Views: 419

Re: Hard coding picture on a button

Hi Rajeev. It's simple, just look into demo.rc file. There are defined files, whitch should be embedded in your exe file. example: B1 BITMAP res\BUTTON.BMP B2 PNG res\img.PNG B3 ICON res\img.ICO Where: B1, B2 and B3 are alises of embedded files; BITMAP, PNG, ICON are types of embedded files; res\BUT...
by edk
Fri Dec 08, 2017 11:19 pm
Forum: HMG General Help
Topic: Hard coding picture on a button
Replies: 22
Views: 419

Re: Hard coding picture on a button

IMHO .ico files not convenient for button images and there is tons of utility (included freeware) to convert images from one type to another (my favorite is IrfanView). Still may be possible to add .ico type to images types supported by BUTTON control of HMG ( if one of our developers start to do )...