Hi,
hb_gfxCircle:
absolutely no topic to change my few lines with diameter style to radius,
to adopt supposed in changelog.
But it seems that nearly everywhere in Harbour it was implemented as diameter
for circles & ellipses. At moment f.e. also still in GTWVG. And even in the
tests/gfx.prg i can read a 'height' for a circle and 'width' for ellipse as
var names ?
This doc you mentionend, Viktor, i very like to read - where to find ? -
because i poorly only know the testdemo and a bit Harbour source of used GTs'.
--
Difficult question (to Pritpal ?) about all hb_gfx* in GtWVG:
If i use them as designated they are not persistent, means i can wipe them
away with another window using that as cleaning rag - even when i set
Wvt_SetGui( .T. ).
I discovered another device context (DC), this item: pWVT->hGuiDC.
Using this in opposite to pWVT->hdc, drawn graphics do not appear. But now i
can wipe them to appear :-)
So i actually work around using both in an own version of gtwvg, drawing two times the same with obviously different DCs' -- a simple trick left i haven't found yet ? Or is this maybe only on my Windows machine ?
Regards
Rolf
hb_gfxCircle:
absolutely no topic to change my few lines with diameter style to radius,
to adopt supposed in changelog.
But it seems that nearly everywhere in Harbour it was implemented as diameter
for circles & ellipses. At moment f.e. also still in GTWVG. And even in the
tests/gfx.prg i can read a 'height' for a circle and 'width' for ellipse as
var names ?
This doc you mentionend, Viktor, i very like to read - where to find ? -
because i poorly only know the testdemo and a bit Harbour source of used GTs'.
2. GTWVG implements "inheritance" from GTWVT bycopy/pasting source (twice) and extending it, so it constantlyand manually needs to be updated when GTWVT gets changed.Proper solution would be to rewrite the two GTWVG GT driversto truly inherit from GTWVT (meaning without triplicatingthousand of lines of code via copy/paste).
Difficult question (to Pritpal ?) about all hb_gfx* in GtWVG:
If i use them as designated they are not persistent, means i can wipe them
away with another window using that as cleaning rag - even when i set
Wvt_SetGui( .T. ).
I discovered another device context (DC), this item: pWVT->hGuiDC.
Using this in opposite to pWVT->hdc, drawn graphics do not appear. But now i
can wipe them to appear :-)
So i actually work around using both in an own version of gtwvg, drawing two times the same with obviously different DCs' -- a simple trick left i haven't found yet ? Or is this maybe only on my Windows machine ?
Thanks!, Pritpal
for fast answer. I will search for what you advices.
And no, i can't use that personally very important hb_gfx* draw functions directly.
Instead actually operating with an minory altered GtWVG.
And GtWVG seem to be the more mighty gtwvt, here i have all together what i need.
best Regards
Rolf
But the question is how to inherit a GT. And more specificallyhow to overload a method. In the end, almost all methods will beoverloaded, I suspect, barring a few ones.
Hi Viktor,
that you can better imagine, what i mean with 'wiped away', i attach a picture of GTWVT.
In GTWVT exists no Wvt_DrawImage, so i only can use Fi_WinDraw().
Why the bitmap drawn with Fi_WinDraw() is not persistent, is maybe explainable. Because i am after weeks of research poorly not able to get the correct device context out of gtwvt and reach it through to this function in hbfimage -- in result the bitmap is drawn at area of window, but not IN window.
Exist there _any_ example code anywhere ?
More question to you, or please direct it further to anyone who maybe know:
any suggestions please why the gtwvt hb_gfx* drawn things [coloured objects in middle] are not persistent ?
What do i make wrong, or better better ?
In GTWVG i found a solution for all, perhaps not fine but seem to work well.
For GTWVT i have not any idea where to search further, seem to be a graphical terminal but only for text ...
Regards
Rolf
that you can better imagine, what i mean with 'wiped away', i attach a picture of GTWVT.
In GTWVT exists no Wvt_DrawImage, so i only can use Fi_WinDraw().
Why the bitmap drawn with Fi_WinDraw() is not persistent, is maybe explainable. Because i am after weeks of research poorly not able to get the correct device context out of gtwvt and reach it through to this function in hbfimage -- in result the bitmap is drawn at area of window, but not IN window.
Exist there _any_ example code anywhere ?
More question to you, or please direct it further to anyone who maybe know:any suggestions please why the gtwvt hb_gfx* drawn things [coloured objects in middle] are not persistent ?
What do i make wrong, or better better ?
In GTWVG i found a solution for all, perhaps not fine but seem to work well.
For GTWVT i have not any idea where to search further, seem to be a graphical terminal but only for text ...
Hi,
combining your both answers i just got an immedeate glimpse where the origin of all my problems may lay.
THANKS!, masters of source.
It is because Windows API seem to be so fundamental different to X11 style of thinking.
In X11, after a call to the central X11 Server, which redirect this to the WM:
'hello, i have here a bitmap i want to be displayed in my window at position ...' - and it accepted that because bitmap is valid - all is done !
Even if app stops working after that moment, the content of the window will be well refreshed by WM when moving around another [my personal hit: translucent] window above.
---
> To me it looks like a bug/missing feature, but drawing
> graphics on a GUI is a very niche feature, ..
To display graphics with some simple primitives on it, or to have another windows on screen: Viktor, what did you mean is 'niche' ?
Doubtless revolutionary, because with this my Clipper [Harbour] apps after decades finally enter next, perhaps ultimate stage,
even without gui MENU with sometime confusing many colourful buttons - is a long time missed 'feature'.
Click-able menu items or displayed F-keys at footer, no topic is a must nowadays.
And probably, i am at all 'niche' ;-) - where else is really something left to develop ...
+++
Dear Pritpal,
before loosing valuable spare time for these hb_gfx* parts ..
I _much_ more miss the feature to resize the window back to dimensions it had before maximizing it.
This would perhaps benefit more users, not only me.
I am in big doubt i can do it, but perhaps you can try to give me a quick impression where to implement that.
I read at another older thread it would be much work, and you seem to have less spare time ...
best Regards
Rolf
> graphics on a GUI is a very niche feature, ..
> To me it looks like a bug/missing feature, but drawing> graphics on a GUI is a very niche feature, ..
And of course I meant CUI.
agree ! - now and in near future i explicitely want to have a:
fast !, super accurate and most reliable 'CUI-alike' based system.
You suppress a bit that the mentioned GTs are internally 'under the hood' more GUI than CUI.
F.e. all work with text INTed mouse pixel coordinates.
I only like above that CUI style a bit enhancement, call it 'E[lch]-CUI', means:
pixel mouse coordinates on demand (with a seperate request),
[big] bitmaps in defined screen area at special occasions,
plus some graphic primitives including small amounts of text at pixel coordinates.
This i have ready in gtxwc, gtwvt and really most was ready in gtwvg.
Only in gtwvt nothing of that stays persistent, as very opposite to gtxwc.
You perhaps overlooked my numbers very precise in center of wiped circles ? ;-)
That's all i need for my personal revolution ...
best Regards
Rolf
+++
Dear Pritpal,
before loosing valuable spare time for these hb_gfx* parts ..
I _much_ more miss the feature to resize the window back to dimensions it had before maximizing it.
This would perhaps benefit more users, not only me.
I am in big doubt i can do it, but perhaps you can try to give me a quick impression where to implement that.
I read at another older thread it would be much work, and you seem to have less spare time ...
One last shot, know i'm leaving topic of thread ...> To me it looks like a bug/missing feature, but drawing> graphics on a GUI is a very niche feature, ..
And of course I meant CUI.agree ! - now and in near future i explicitely want to have a:
fast !, super accurate and most reliable 'CUI-alike' based system.
You suppress a bit that the mentioned GTs are internally 'under the hood' more GUI than CUI.
F.e. all work with text INTed mouse pixel coordinates.
I only like above that CUI style a bit enhancement, call it 'E[lch]-CUI', means:
pixel mouse coordinates on demand (with a seperate request),
[big] bitmaps in defined screen area at special occasions,
plus some graphic primitives including small amounts of text at pixel coordinates.
This i have ready in gtxwc, gtwvt and really most was ready in gtwvg.
> You perhaps overlooked my numbers very precise in center of wiped circles ? ;-)
> That's all i need for my personal revolution ...
I should have put a TL;DR, I admit I didn't read the whole thing, sorry.
-- Viktor