Search found 193 matches

by edk
Thu Dec 14, 2017 2:50 pm
Forum: HMG Utilities
Topic: Drag grid item to another grid
Replies: 16
Views: 519

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. :(
by edk
Wed Dec 13, 2017 3:22 pm
Forum: HMG Utilities
Topic: Drag grid item to another grid
Replies: 16
Views: 519

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

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

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

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

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

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 )...
by edk
Fri Dec 08, 2017 1:52 pm
Forum: HMG General Help
Topic: Hard coding picture on a button
Replies: 22
Views: 418

Re: Hard coding picture on a button

Works fine with bitmap, png, gif, jpg, tif
by edk
Fri Dec 08, 2017 11:59 am
Forum: HMG Unicode version
Topic: HPDFPRINT UNICODE
Replies: 10
Views: 226

Re: HPDFPRINT UNICODE

You do not have to convert all code to ANSI. The entire source code can be in UNICODE. I mean, you can only convert content when you create a PDF. [Main program] [Some function] (...) //temporary switch to CP1250, only for create PDF SET CODEPAGE TO SLOVENIAN SELECT HPDFDOC "example.pdf" TO lSuccess...
by edk
Fri Dec 08, 2017 10:29 am
Forum: HMG General Help
Topic: Hard coding picture on a button
Replies: 22
Views: 418

Re: Hard coding picture on a button

It seems to me that the icon files (ico) included in resources are not supported by the PICTURE property for the BUTTON control.
Bez tytułu.png
Bez tytułu.png (3.01 KiB) Viewed 152 times
b0.7z
(1.09 MiB) Downloaded 14 times