MCI_v.3.3_Sample-Menu_Embedded-Graphics+Double-Click

Moderator: Forum moderators

Post Reply
User avatar
glene77is
Posts: 55
Joined: Thu Aug 13, 2020 7:44 pm
Location: Univ of TN, Memphis,TN,USA
Has thanked: 46 times
Been thanked: 7 times
Contact:

MCI_v.3.3_Sample-Menu_Embedded-Graphics+Double-Click

Post by glene77is »

"MCI" v.3.3
Menu Framework , Double-Click <button> , E.mbeded Graphics <button>
Written with BASH + GTK code.

:thumbup2:
"MCI" ... Edited 240323 :thumbup2:
Studies in : Double-Click Button + E.mbedded Graphics + BASH + GTK

Attached is a my Sample Instructional workup "MCI" Tutorial Project
which I did to continue exploring
the use of Double-Click Button routines and E.mbedded Graphics.

===========
The "INTENT" of "MCI" is:
(1) .......to demonstrate the Double-Click GTK <button> routines.
(2) ....... to demonstrate the E.mbedded Graphics GTK <button> routines.
(3) ....... to identify implementation characteristics of BASH + GTK within the confines of this project.
(4) The "Code Format Method " is designed to prevent interaction between BASH code and GTK code .


"MCI" is a Tutorial version, with Simplified and Slimmed-Down coding.
"MCI" Script runs "STABLE" in 20+ different Puppy versions
(same list as with the 'Cold-Tar-Backup' series of programs).


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
#! "MCI" Sample INSTRUCTIONAL Version of Menu Framework series
#! "MCI" script for downloading and examination is here:

rc.z_MCI-sh-231208-1913.zip
MCI executable script zip
(16.56 KiB) Downloaded 18 times

=== === ===
Main script:
MCI main screen 231127

MCI main screen 231127
MCI main screen 231127
MCI-Screen-231127-0641.jpg (96.19 KiB) Viewed 897 times

MCI-Screen-231127-0641.jpg (96.19 KiB) Not viewed yet
"MCI" V.3 Main Screen:
=== === ===

=== === === === === === === === === === === === ====
=== You will never learn much by ONLY looking at pictures !
=== "Science" requires "Exploration, Analysis, Appreciation"
=== === === === === === === === === === === === ====

====================================
Thanks to Don White
.......Seminal idea for embedding graphics is from "june1 2012 Don White (don570)"
Thanks to WIAK and Rockedge
....... for thoughtful comments.

=== === === === === === === === ===

=== === === === === === === === ===

=== === === === === === === === ===
Scribble-Murga-Minus-Color-3_2408021701.txt


MGR is the target application, wherein the MCI techniques are used.
Do Not download "M.G.R." which has 8700 lines of Bash + GTK .

======================================================
Menu FrameWork, MGR v 6, 7, 8 .
. . . . Double-Click + E.mbedded Imag
. . . . Multiple Versions of Floating Page Windows

...................................................................................................................................
... MGR history of development ............................................................................
...................................................................................................................................
b ....... V-5: began with packed and crowded menu
...................................................................................................................................
b ....... V-6: explored a basic single page menu system.
...................................................................................................................................
b ....... V-7: demonstrates a BASH "Page-Book" of Independent Floating "message" Pages.
...................................................................................................................................
b ....... V-8: demonstrates a GTK " note-book " of Independent Floating " Note-Book " Windows.
...................................................................................................................................
Whole Project on github.com
...................................................................................................................................

Source OS Distribution Code is "original" and "as delivered" by 01Mico and PeaBee, et al..
:thumbup2:
MGR versions are Studies in : BASH and GTK application development.
:thumbup2:
MGR system is a personal Instructional / Educational Project which tests
... "pop-up Page-Windows" methods, including my re-write of GTK Box_Help (E.mbedded in this script)
... "compatability" across 20+ Puppy Distros , (using the original distributed source code).
... to demonstrate the Double-Click GTK <button> routines.
... to demonstrate the E-mbedded Graphics GTK <button> routines.
... to identify implementation characteristics and limitations of BASH + GTK
... MGR is designed to run from "/root/my-applications" , a standard Puppy system directory, No PET.
... is designed to run from "/root/my-applications" , a standard Puppy system directory, No PET.
...
MGR [Manager] is not intended to be a "Turn - Key" application.
MGR [Manager] is not intended to be a "Down - Loaded" , Just a "Post" .


=== === === === === === === === === === === === ===
In MGR-5 We began project with a very crowded menu .
=== === === === === === === === === === === === ===
In MGR-6 We explored a basic single page menu system.
=== === === === === === === === === === === === ===
In MGR-7 We explored several methods of "launching - closing" the "pop-up Page - Windows"
=== === === === === === === === === === === === ===
In MGR-8 We have explored/contrasted
the GTK ' notebook ' function versus the BASH 'Page-Book' method.
=== === === === === === === === === === === === ===

=== === === === === === === === === === === ===

MGR software has a four part organization,
. . . in order to isolate BASH from GTK code.
Intro : Setup Var and Constants : BASH
SubRoutines : BASH
. . . . which execute "Tokens" from GTK XML dialog < button >
. . . . written in the "top" section of the Source Code.
GTK GUI XML
.. . . . = interface Display and Select < button > : GTK code.
Fall-Thru "IF/fi" BASH routines to :
. . . . capture GTK < button > Select Tokens via the EXIT var
. . . . then re-direct to BASH Token SubRoutines,
. . . . which are written in top section of the Source Code.

=== === === === === === === === === === === === ===

=== === === === === === === === === === === === ===

MGR-7 & 8 "PageBook" pages are GTK coded, but not using GTK "< notebook >" function.
MGR "PageBook" pages are intended to function only from BASH code.
This is Bare Bones project, so code is simplified wherever possible, easy to trace and read.
Although no one has down loaded to read, but me. Some have 'looked' at the pictures. ha!
Subroutines are grouped in similarly named "function()" blocks.
...
Process of each GTK gui <Button> <Action> is :
. . . (1) <button> <action> "selection-token"
. . . (2) fall thru to "IF [EXIT=???}" to capture the <action> "selection-token".
. . . (3) jump to Sbr_SubRoutines() to execute the <button> "selection-token" .
. . .
Just BASH and GTK..,
....... so, if you download the source of "MCI",
....... then , Trace a single <button> Execution Topically,
....... thus, Read the Code.

This MGR Script includes DUMPING <button> for :
(1) Dumping Source code ,
(2) Dumping GUI code ,
(3) Dumping Imag Code
(4) Help
(5) PUPSTATE
(6) FAQ
(7) UP-Legal
(8) System-Info
(9) Dump_Source_to_Base-64

"Utility" GUI Screen includes a display array of all E.mbedded images
(with tool-tip to show the name of each I.mage)

The "INTENT" of this "Manager FrameWork" project is:
() ....... to implement a Bare Bones Method of compacted FrameWork Menu application. [/b]
()
The MGR-8 script is cleaner, and runs "STABLE" on a daily basis,
. . . . in 20 different Puppy Distros, 32bit and 64bit.
. . . . MGR is used to "flip" between Distros for testing this "MGR" code.


() PURPOSE of this project:

() ....... to demonstrate the Double-Click GTK <button> routines.
() ....... to demonstrate the E.mbedded-Graphics GTK <button> routines.
() ....... to identify implementation characteristics and limitations of BASH + GTK .

() The "Code Format" "organization of execution" is
. . . . . . . an old XML code method from SCO-Unix / Xenix projects.
. . . . . . . which provides separation between strict BASH code and strict GTK code.
. . . . . . . chosen to prohibit interaction between "BASH" code and "GTK" code .
. . . . . . . designed to run from Puppy "/root/my-applications"
. . . . . . . designed to be "self-contained"
. . . . . . . ( exception is the "CTA" series loaded into /root/my-applications.
. . . . . . . ( which must be uploaded if you want "Cold Tar.gz Archive" .
. . . . . . . script designed to run from /root/my-applications ...
. . . . . . . . . . . . just drag the main Icon to the desktop, and no PET is required.

...................................................................................................................................

...................................................................................................................................

Distro List : as delivered by Mico and PhilB, et al .
#! MGR is tested on Each OS via its own original distro BASH .
#! MGR is tested on Each OS via its own original distro GTK .

Running Tests on 20 Puppy OS, 32 and 64 bit, including:

iso-BionicPup64-8.0-uefi________64 bit_231219
iso_BookwormPup32-23.11-B4_K:6
64 bit
____231210
iso-BionicPup32-8.0+30_BionicBeaver
220407
iso_BionicPup32-19.03-K5.9_231209.iso
K:5.9_231209
iso_ManticPup32-23.10+1.iso
__________K:6.1_231209
iso-KineticPup32-22.10+2
__________230604
iso-JammyPup32-22.04+8_JammyJellyfish
22123
iso-UPupFF+D-20.12+4_Focal-Fossa
___201210
iso-UpupTahr-6.0.6-k4.1.30-uefi
______K:4.1_190211
iso-Slacko-7.0_DpupS7_14.2
_________220205
iso_devuanpup-9.7.0-chimaera_4.0_i386
211206
iso_LxPupSc-slacko-20.01+0-T-k64_____200129
iso_slacko64_14.2_32-64-bit_compatible
220227
iso-S15Pup-64_22.12+1-T______________220922
iso-Xenial-64_7.5_XL
_________________220401
iso-Quirky_April-7.0.1F-uefi
_________200511

. . . now Running on BionicPup64-8.0-uefi.iso

#! Each OS is tested via its own original distro BASH
... as delivered by Mico and PhilB, et al .
#! Each OS is tested via its own original distro GTK
... as delivered by Mico and PhilB, et al .

Seminal idea for embedding graphics is from "june1 2012 per Don White (don570)" (thanks)

=== === === === === === === === === === === === ====
Do Not download "M.G.R." which has 8700 lines of Bash + GTK .
=== === === === === === === === === === === === ====
=== "Science" requires "Exploration, Analysis, Appreciation"
=== === === === === === === === === === === === ====



Last bumped by glene77is on Mon Aug 12, 2024 11:17 am.

*Just an old Apprentice caught Tinkering in the Master's WorkShop. *
Glen Ellis ( ͡° ͜ʖ ͡° ) K4KKQ , Electronic Engineering :ugeek:
Website: http://www.GeoCities.WS/glene77is :thumbup2:
Electrical Science , Memphis, TN

Post Reply

Return to “Utilities”