How make a green Background by a Choose Funktion - Onieh - 03-16-2017 02:39 PM
Hallo,
How can i make a green Background by a Choose Funktion?
//-------------------------
//RECT_P(RGB(154,205,50)); //<-- Problem
//-------------------------
CHOOSE(N,"* F L U G N A V I G A T I O N*",{"ICAO-Kennung","Position","Flugstrecke","E N D E"});
IF N==1 THEN ICAO;
END;
//IF N==2 THEN Position;
//END;
IF N==3 THEN Flugstrecke;
END;
//END;
WAIT;
END;
//END;
RE: How make a green Background by a Choose Funktion - DrD - 03-16-2017 03:02 PM
Like this?
Code:
EXPORT clrs()
BEGIN
LOCAL red:=RGB(255,0,0),
green:=RGB(0,255,0),
blue:=RGB(0,0,255);
L0:={"red","green","blue"};
CHOOSE(X,"COLORS",L0);
RECT_P(G0,0,0,320,220,EXPR(L0((X))));
wait(2);
END;
RE: How make a green Background by a Choose Funktion - Onieh - 03-16-2017 03:50 PM
No, i mean i would like the choose funktion on a green background!
RE: How make a green Background by a Choose Funktion - Carlos295pz - 03-16-2017 04:23 PM
It is not possible to place a background on the integrated interfaces such as CHOOSE, MSGBOX, INPUT, EDITMAT, EDITLIST, PRINT.
RE: How make a green Background by a Choose Funktion - Onieh - 03-16-2017 06:04 PM
Okay.
is there another way to make an input with green background?
RE: How make a green Background by a Choose Funktion - eried - 03-16-2017 06:56 PM
(03-16-2017 06:04 PM)Onieh Wrote: Okay.
is there another way to make an input with green background?
Yes. You can draw everything yourself. And program the whole functionality
RE: How make a green Background by a Choose Funktion - compsystems - 03-16-2017 07:08 PM
PHP Code:
EXPORT popup_problem() BEGIN RECT_P(RGB(154,205,50)); WAIT; CHOOSE(N,"TITLE",{"A","B","C"}); //<-- Problem (NO POPUP) WAIT; END;
The hp48/49/50 series, the dialog boxes (I/O) are displayed in the current screen view, Why the HP-Prime Group did not continue with this form in hp-prime?.
Using the terminal view for example, CHOOSE and others dialog boxes cmds are displayed in the history view (HOME/CAS), I think they should be displayed in the current view as popup and you?
the DRAWMENU cmd work as a popup =), but if each menu calls an MSGBOX OR CHOOSE does not work =(
PHP Code:
EXPORT popup2_problem() BEGIN PRINT(); PRINT("INTRO"); WAIT; CHOOSE(N,"TITLE",{"A","B","C"}); //<-- Problem PRINT("2"); WAIT; MSGBOX("TEXT"); //<-- Problem PRINT("3"); WAIT; DRAWMENU("MENU1","","MENU2"); //<-- ok WAIT; PRINT("4"); WAIT; END;
The background (HISTORY VIEW) must be controlled by a command similar to LCD-> & TEXT { "History View" « LCD-> ->STR TEXT 1 WAIT 7 » }
...And also for some errors, such as compilation errors, the message popup is displayed outside the current view and in some cases in the history view, It is very uncomfortable to be returning manually to the preview, it should remain in the current
This can be seen in the following gif (Syntax error)
An example, where CHOOSE DBOX (HP-50) is shown popup
PHP Code:
%%HP: T(0)A(D)F(.); @ Author: compsystems @ Version: 1.0 @ Creado con el IDE HPUserEdit 6 (PERU) DIR SetBackGround « -90 SF holdDisplay DO "Select Background" listBackground posBackground IF CHOOSE THEN EVAL 'posBackground' STO OBJ-> putGraphicObjCoo00 holdDisplay 2 WAIT ELSE KILL END UNTIL 0 END »
listBackground { { "BlackBackgroundG" « "BlackBackgroundG" 1 » } { "PixelBackgroundG" « "PixelBackgroundG" 2 » } { "GrideBackgroundG" « "GrideBackgroundG" 3 » } { "CircleBackgrondG" « "CircleBackgrondG" 4 » } { "Circle2BackgrndG" « "Circle2BackgrndG" 5 » } { "FloorBackgroundG" « "FloorBackgroundG" 6 » } { "History View" « LCD-> ->STR TEXT 1 WAIT 7 » } }
EmptyBackgroundG GROB 131 80 0 BlackBackgroundG « EmptyBackgroundG NEG » PixelBackgroundG GROB 131 80 55555555555555555555555555555555500000000000000000000000000000000000555555555555555555555555555555555000000000000000000000000000000000005555555555555555555555555555555550000000000000000000000000000000000055555555555555555555555555555555500000000000000000000000000000000000555555555555555555555555555555555000000000000000000000000000000000005555555555555555555555555555555550000000000000000000000000000000000055555555555555555555555555555555500000000000000000000000000000000000555555555555555555555555555555555000000000000000000000000000000000005555555555555555555555555555555550000000000000000000000000000000000055555555555555555555555555555555500000000000000000000000000000000000555555555555555555555555555555555000000000000000000000000000000000005555555555555555555555555555555550000000000000000000000000000000000055555555555555555555555555555555500000000000000000000000000000000000555555555555555555555555555555555000000000000000000000000000000000005555555555555555555555555555555550000000000000000000000000000000000055555555555555555555555555555555500000000000000000000000000000000000555555555555555555555555555555555000000000000000000000000000000000005555555555555555555555555555555550000000000000000000000000000000000055555555555555555555555555555555500000000000000000000000000000000000555555555555555555555555555555555000000000000000000000000000000000005555555555555555555555555555555550000000000000000000000000000000000055555555555555555555555555555555500000000000000000000000000000000000555555555555555555555555555555555000000000000000000000000000000000005555555555555555555555555555555550000000000000000000000000000000000055555555555555555555555555555555500000000000000000000000000000000000555555555555555555555555555555555000000000000000000000000000000000005555555555555555555555555555555550000000000000000000000000000000000055555555555555555555555555555555500000000000000000000000000000000000555555555555555555555555555555555000000000000000000000000000000000005555555555555555555555555555555550000000000000000000000000000000000055555555555555555555555555555555500000000000000000000000000000000000555555555555555555555555555555555000000000000000000000000000000000005555555555555555555555555555555550000000000000000000000000000000000055555555555555555555555555555555500000000000000000000000000000000000555555555555555555555555555555555000000000000000000000000000000000005555555555555555555555555555555550000000000000000000000000000000000055555555555555555555555555555555500000000000000000000000000000000000555555555555555555555555555555555000000000000000000000000000000000005555555555555555555555555555555550000000000000000000000000000000000055555555555555555555555555555555500000000000000000000000000000000000 GrideBackgroundG « PixelBackgroundG NEG » CircleBackgrondG GROB 131 80 6BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B50942942942942942942942942942942942094294294294294294294294294294294206BD6BD6BD6BD6BD6BD6BD6BD6BD6BD6B509429429429429429429429429429429420 Circle2BackgrndG « CircleBackgrondG NEG » FloorBackgroundG GROB 131 80 40140940208042140140940208042140102902802842010402902802842010402900020940140142180020940140142180020004001842802802904001842802802904000940208042140140940208042140140940802842010402902802842010402902802040140142180020940140142180020940101842802802904001842802802904001840208042140140940208042140140940200042010402902802842010402902802842000142180020940140142180020940140140802802904001842802802904001842802042140140940208042140140940208042100402902802842010402902802842010400180020940140142180020940140142180002904001842802802904001842802802100140940208042140140940208042140140902802842010402902802842010402902020940140142180020940140142180020104001842802802904001842802802904000940208042140140940208042140140940002842010402902802842010402902802000140142180020940140142180020940140842802802904001842802802904001842008042140140940208042140140940208002010402902802842010402902802842010142180020940140142180020940140142002802904001842802802904001842802002140140940208042140140940208042140402902802842010402902802842010402080020940140142180020940140142180002904001842802802904001842802802900140940208042140140940208042140140002802842010402902802842010402902000940140142180020940140142180020940001842802802904001842802802904001040208042140140940208042140140940202842010402902802842010402902802840140142180020940140142180020940140042802802904001842802802904001842008042140140940208042140140940208040010402902802842010402902802842010042180020940140142180020940140142102802904001842802802904001842802800140140940208042140140940208042140002902802842010402902802842010402100020940140142180020940140142180020904001842802802904001842802802904040940208042140140940208042140140102802842010402902802842010402902800940140142180020940140142180020940001842802802904001842802802904001000208042140140940208042140140940200842010402902802842010402902802842040142180020940140142180020940140102802802904001842802802904001842800042140140940208042140140940208042010402902802842010402902802842010402180020940140142180020940140142100802904001842802802904001842802802040140940208042140140940208042140102902802842010402902802842010402900020940140142180020940140142180020004001842802802904001842802802904000940208042140140940208042140140940802842010402902802842010402902802040140142180020940140142180020940101842802802904001842802802904001840208042140140940208042140140940200042010402902802842010402902802842000142180020940140142180020940140140802802904001842802802904001842802042140140940208042140140940208042100402902802842010402902802842010400180020940140142180020940140142180002904001842802802904001842802802100140940208042140140940208042140140902802842010402902802842010402902020940140142180020940140142180020104001842802802904001842802802904000
putGraphicObjCoo00 « PICT { # 0d # 0d } ROT REPL »
holdDisplay « { # 0d # 0d } PVIEW 7 FREEZE »
posBackground 1
END
RE: How make a green Background by a Choose Funktion - Onieh - 03-17-2017 11:33 AM
okay, what is with this Solution.
But i don't why the Program leave the Repeat-Until Funktion when i press 111... or 222... or 333...?
EXPORT NewInput()
BEGIN
RECT_P(0,0,320,220,RGB(0,255,0));
TEXTOUT_P("F L U G N A V I G A T I O N",31,20,7,RGB(255,255,255));
TEXTOUT_P("Press 1 für: ICAO",70,70);
TEXTOUT_P("Press 2 für: POSITION",70,100);
TEXTOUT_P("Press 3 für: FLUGSTRECKE",70,130);
TEXTOUT_P("Press Del für Abbruch",70,160);
REPEAT
K:=GETKEY;
IF K==42 THEN PRINT("ICAO"); END; //KEY Test
IF K==43 THEN PRINT("POSITION"); END; //KEY TEST
IF K==44 THEN PRINT("FLUGSTRECKE"); END; //KEY TEST
UNTIL K==19;
STARTVIEW(-1);
END;
|