Repaint static / bitmap

This forum is for eXpress++ general support.
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4734
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Repaint static / bitmap

#11 Post by rdonnay »

jdsoft wrote:Hello Roger,

P.s. Some time ago, you mentioned a webpage to present a Express++ program.
How about that?
I don't recall this. Please refresh my memory.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4734
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Repaint static / bitmap

#12 Post by rdonnay »

Jack -

I really like your sample program.
It is a good example of both the SUBCLASS feature of DC* commands and using the Graphics functions.

I have added it to my sample programs for the next release.

Thanks.

Roger
The eXpress train is coming - and it has more cars.

Victorio
Posts: 631
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Repaint static / bitmap

#13 Post by Victorio »

Hi,
I want examine PAint_express placed here, but in Alaska 2.0 I have runtime error :
Error Base/3..
what is problem ?
Attachments
error.jpg
error.jpg (75.79 KiB) Viewed 12285 times

User avatar
rdonnay
Site Admin
Posts: 4734
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Repaint static / bitmap

#14 Post by rdonnay »

I am getting in the car to drive home from vacation.

I don't have an answer for you.
This will have to wait until I arrive home.
The eXpress train is coming - and it has more cars.

Victorio
Posts: 631
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Repaint static / bitmap

#15 Post by Victorio »

ok, no problem. thanks

bwolfsohn
Posts: 649
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: Repaint static / bitmap

#16 Post by bwolfsohn »

rdonnay wrote:I am getting in the car to drive home from vacation.

I don't have an answer for you.
This will have to wait until I arrive home.
DON'T forget to wear your helmet...

(oh, it's a car...)
:)
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

skiman
Posts: 1189
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Repaint static / bitmap

#17 Post by skiman »

Hi Jack,

Nice and usefull sample.
Best regards,

Chris.
www.aboservice.be

User avatar
Auge_Ohr
Posts: 1414
Joined: Wed Feb 24, 2010 3:44 pm

Re: Repaint static / bitmap

#18 Post by Auge_Ohr »

Victorio wrote:Error Base/3..
what is problem ?
got the same Error with v1.9.355
oError:args :
-> VALTYPE: U VALUE: NIL
-> VALTYPE: N VALUE: 4
oError:canDefault : N
oError:canRetry : N
oError:canSubstitute: J
oError:cargo : NIL
oError:description : Parameter hat falschen Typ
oError:filename :
oError:genCode : 2
oError:operation : <U of >[<4>]
oError:osCode : 0
oError:severity : 2
oError:subCode : 3
oError:subSystem : BASE
oError:thread : 1
oError:tries : 0
------------------------------------------------------------------------------
CALLSTACK:
------------------------------------------------------------------------------
Aufgerufen von DC_XBPSTATIC:DRAW(743)
Aufgerufen von (B)DC_PAINTIMAGE(32)
Aufgerufen von DC_GETLIST:READGUI(3066)
Aufgerufen von DC_READGUI(109)
Aufgerufen von MAIN(12)

Code: Select all

@      0,0   DCSTATIC TYPE XBPSTATIC_TYPE_RAISEDBOX   SIZE 60,12 OBJECT oFoto PARENT oStatic SUBCLASS "xbpDrawStatic()" EVAL {|o|o:Draw({||oFoto:Repaint()})}
             DCBITMAP 100 PARENT oFoto
it happend in that EVAL Codeblock ...

@Jack : why do you rename o:PAINT() to o:REpaint() ?
o:paint does react on WM_PAINT so if you want to "override" Method you have to use same Name.

@Express User : does EVAL {|o|o:Draw(..)} point to OBJECT oFoto ?

here "original" Source Code
PEN_DRAW.ZIP
(3.87 KiB) Downloaded 712 times
i think it is based on :

Richard Hankins Jr. ( Rick ? )
Using the GRA Functions on a xbpDialog window
public.xbase++.generic
8. Februar 2003
greetings by OHR
Jimmy

Victorio
Posts: 631
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Repaint static / bitmap

#19 Post by Victorio »

Hi Auge_ohr or Jimmy ?

Have some solution to run this example?
I need some examples where is used redraw function for my map viewer based on vector graphics.
In example is some like I want.
I am comment line with error then program run and show main window with menu, but it is all what I can do.

Victorio
Posts: 631
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Repaint static / bitmap

#20 Post by Victorio »

Jimmy: I examine PEN_DRAW, thanks it is other nice example. I will study it :)

Post Reply