Search found 198 matches

by edk
Sat Dec 16, 2017 10:10 pm
Forum: HMG Utilities
Topic: Drag grid item to another grid
Replies: 19
Views: 681

Re: Drag grid item to another grid

Next version. Support for dragging GRID column headers has been added. Due to the ON HEADCLICK event handler, dragging is possible with the right mouse button only. Within the same Grid, dragging the header changes the order of the columns. Dragging a column header from GRID Form_1 to Grid Form_2 or...
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: 92

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: 92

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: 92

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: 19
Views: 681

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 16 times
PS Improvement of small bugs:
DragAndDrop_prg.7z
(3.51 KiB) Downloaded 14 times
by edk
Wed Dec 13, 2017 3:22 pm
Forum: HMG Utilities
Topic: Drag grid item to another grid
Replies: 19
Views: 681

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: 19
Views: 681

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: 145

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: 438

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 ;)